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