1
14
15 package com.liferay.portal.service.persistence;
16
17 import com.liferay.portal.SystemException;
18 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
19 import com.liferay.portal.kernel.dao.orm.DynamicQuery;
20 import com.liferay.portal.kernel.util.ReferenceRegistry;
21 import com.liferay.portal.model.UserIdMapper;
22
23 import java.util.List;
24
25
38 public class UserIdMapperUtil {
39
42 public static void clearCache() {
43 getPersistence().clearCache();
44 }
45
46
49 public static void clearCache(UserIdMapper userIdMapper) {
50 getPersistence().clearCache(userIdMapper);
51 }
52
53
56 public int countWithDynamicQuery(DynamicQuery dynamicQuery)
57 throws SystemException {
58 return getPersistence().countWithDynamicQuery(dynamicQuery);
59 }
60
61
64 public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery)
65 throws SystemException {
66 return getPersistence().findWithDynamicQuery(dynamicQuery);
67 }
68
69
72 public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery,
73 int start, int end) throws SystemException {
74 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
75 }
76
77
80 public static UserIdMapper remove(UserIdMapper userIdMapper)
81 throws SystemException {
82 return getPersistence().remove(userIdMapper);
83 }
84
85
88 public static UserIdMapper update(UserIdMapper userIdMapper, boolean merge)
89 throws SystemException {
90 return getPersistence().update(userIdMapper, merge);
91 }
92
93 public static void cacheResult(
94 com.liferay.portal.model.UserIdMapper userIdMapper) {
95 getPersistence().cacheResult(userIdMapper);
96 }
97
98 public static void cacheResult(
99 java.util.List<com.liferay.portal.model.UserIdMapper> userIdMappers) {
100 getPersistence().cacheResult(userIdMappers);
101 }
102
103 public static com.liferay.portal.model.UserIdMapper create(
104 long userIdMapperId) {
105 return getPersistence().create(userIdMapperId);
106 }
107
108 public static com.liferay.portal.model.UserIdMapper remove(
109 long userIdMapperId)
110 throws com.liferay.portal.NoSuchUserIdMapperException,
111 com.liferay.portal.SystemException {
112 return getPersistence().remove(userIdMapperId);
113 }
114
115
118 public static com.liferay.portal.model.UserIdMapper update(
119 com.liferay.portal.model.UserIdMapper userIdMapper)
120 throws com.liferay.portal.SystemException {
121 return getPersistence().update(userIdMapper);
122 }
123
124 public static com.liferay.portal.model.UserIdMapper updateImpl(
125 com.liferay.portal.model.UserIdMapper userIdMapper, boolean merge)
126 throws com.liferay.portal.SystemException {
127 return getPersistence().updateImpl(userIdMapper, merge);
128 }
129
130 public static com.liferay.portal.model.UserIdMapper findByPrimaryKey(
131 long userIdMapperId)
132 throws com.liferay.portal.NoSuchUserIdMapperException,
133 com.liferay.portal.SystemException {
134 return getPersistence().findByPrimaryKey(userIdMapperId);
135 }
136
137 public static com.liferay.portal.model.UserIdMapper fetchByPrimaryKey(
138 long userIdMapperId) throws com.liferay.portal.SystemException {
139 return getPersistence().fetchByPrimaryKey(userIdMapperId);
140 }
141
142 public static java.util.List<com.liferay.portal.model.UserIdMapper> findByUserId(
143 long userId) throws com.liferay.portal.SystemException {
144 return getPersistence().findByUserId(userId);
145 }
146
147 public static java.util.List<com.liferay.portal.model.UserIdMapper> findByUserId(
148 long userId, int start, int end)
149 throws com.liferay.portal.SystemException {
150 return getPersistence().findByUserId(userId, start, end);
151 }
152
153 public static java.util.List<com.liferay.portal.model.UserIdMapper> findByUserId(
154 long userId, int start, int end,
155 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
156 throws com.liferay.portal.SystemException {
157 return getPersistence()
158 .findByUserId(userId, start, end, orderByComparator);
159 }
160
161 public static com.liferay.portal.model.UserIdMapper findByUserId_First(
162 long userId,
163 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
164 throws com.liferay.portal.NoSuchUserIdMapperException,
165 com.liferay.portal.SystemException {
166 return getPersistence().findByUserId_First(userId, orderByComparator);
167 }
168
169 public static com.liferay.portal.model.UserIdMapper findByUserId_Last(
170 long userId,
171 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
172 throws com.liferay.portal.NoSuchUserIdMapperException,
173 com.liferay.portal.SystemException {
174 return getPersistence().findByUserId_Last(userId, orderByComparator);
175 }
176
177 public static com.liferay.portal.model.UserIdMapper[] findByUserId_PrevAndNext(
178 long userIdMapperId, long userId,
179 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
180 throws com.liferay.portal.NoSuchUserIdMapperException,
181 com.liferay.portal.SystemException {
182 return getPersistence()
183 .findByUserId_PrevAndNext(userIdMapperId, userId,
184 orderByComparator);
185 }
186
187 public static com.liferay.portal.model.UserIdMapper findByU_T(long userId,
188 java.lang.String type)
189 throws com.liferay.portal.NoSuchUserIdMapperException,
190 com.liferay.portal.SystemException {
191 return getPersistence().findByU_T(userId, type);
192 }
193
194 public static com.liferay.portal.model.UserIdMapper fetchByU_T(
195 long userId, java.lang.String type)
196 throws com.liferay.portal.SystemException {
197 return getPersistence().fetchByU_T(userId, type);
198 }
199
200 public static com.liferay.portal.model.UserIdMapper fetchByU_T(
201 long userId, java.lang.String type, boolean retrieveFromCache)
202 throws com.liferay.portal.SystemException {
203 return getPersistence().fetchByU_T(userId, type, retrieveFromCache);
204 }
205
206 public static com.liferay.portal.model.UserIdMapper findByT_E(
207 java.lang.String type, java.lang.String externalUserId)
208 throws com.liferay.portal.NoSuchUserIdMapperException,
209 com.liferay.portal.SystemException {
210 return getPersistence().findByT_E(type, externalUserId);
211 }
212
213 public static com.liferay.portal.model.UserIdMapper fetchByT_E(
214 java.lang.String type, java.lang.String externalUserId)
215 throws com.liferay.portal.SystemException {
216 return getPersistence().fetchByT_E(type, externalUserId);
217 }
218
219 public static com.liferay.portal.model.UserIdMapper fetchByT_E(
220 java.lang.String type, java.lang.String externalUserId,
221 boolean retrieveFromCache) throws com.liferay.portal.SystemException {
222 return getPersistence()
223 .fetchByT_E(type, externalUserId, retrieveFromCache);
224 }
225
226 public static java.util.List<com.liferay.portal.model.UserIdMapper> findAll()
227 throws com.liferay.portal.SystemException {
228 return getPersistence().findAll();
229 }
230
231 public static java.util.List<com.liferay.portal.model.UserIdMapper> findAll(
232 int start, int end) throws com.liferay.portal.SystemException {
233 return getPersistence().findAll(start, end);
234 }
235
236 public static java.util.List<com.liferay.portal.model.UserIdMapper> findAll(
237 int start, int end,
238 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
239 throws com.liferay.portal.SystemException {
240 return getPersistence().findAll(start, end, orderByComparator);
241 }
242
243 public static void removeByUserId(long userId)
244 throws com.liferay.portal.SystemException {
245 getPersistence().removeByUserId(userId);
246 }
247
248 public static void removeByU_T(long userId, java.lang.String type)
249 throws com.liferay.portal.NoSuchUserIdMapperException,
250 com.liferay.portal.SystemException {
251 getPersistence().removeByU_T(userId, type);
252 }
253
254 public static void removeByT_E(java.lang.String type,
255 java.lang.String externalUserId)
256 throws com.liferay.portal.NoSuchUserIdMapperException,
257 com.liferay.portal.SystemException {
258 getPersistence().removeByT_E(type, externalUserId);
259 }
260
261 public static void removeAll() throws com.liferay.portal.SystemException {
262 getPersistence().removeAll();
263 }
264
265 public static int countByUserId(long userId)
266 throws com.liferay.portal.SystemException {
267 return getPersistence().countByUserId(userId);
268 }
269
270 public static int countByU_T(long userId, java.lang.String type)
271 throws com.liferay.portal.SystemException {
272 return getPersistence().countByU_T(userId, type);
273 }
274
275 public static int countByT_E(java.lang.String type,
276 java.lang.String externalUserId)
277 throws com.liferay.portal.SystemException {
278 return getPersistence().countByT_E(type, externalUserId);
279 }
280
281 public static int countAll() throws com.liferay.portal.SystemException {
282 return getPersistence().countAll();
283 }
284
285 public static UserIdMapperPersistence getPersistence() {
286 if (_persistence == null) {
287 _persistence = (UserIdMapperPersistence)PortalBeanLocatorUtil.locate(UserIdMapperPersistence.class.getName());
288
289 ReferenceRegistry.registerReference(UserIdMapperUtil.class,
290 "_persistence");
291 }
292
293 return _persistence;
294 }
295
296 public void setPersistence(UserIdMapperPersistence persistence) {
297 _persistence = persistence;
298
299 ReferenceRegistry.registerReference(UserIdMapperUtil.class,
300 "_persistence");
301 }
302
303 private static UserIdMapperPersistence _persistence;
304 }