001
014
015 package com.liferay.portal.service.persistence;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018 import com.liferay.portal.kernel.dao.orm.DynamicQuery;
019 import com.liferay.portal.kernel.exception.SystemException;
020 import com.liferay.portal.kernel.util.OrderByComparator;
021 import com.liferay.portal.model.UserIdMapper;
022 import com.liferay.portal.service.ServiceContext;
023
024 import java.util.List;
025
026
032 public class UserIdMapperUtil {
033
036 public static void clearCache() {
037 getPersistence().clearCache();
038 }
039
040
043 public static void clearCache(UserIdMapper userIdMapper) {
044 getPersistence().clearCache(userIdMapper);
045 }
046
047
050 public long countWithDynamicQuery(DynamicQuery dynamicQuery)
051 throws SystemException {
052 return getPersistence().countWithDynamicQuery(dynamicQuery);
053 }
054
055
058 public static List<UserIdMapper> findWithDynamicQuery(
059 DynamicQuery dynamicQuery) throws SystemException {
060 return getPersistence().findWithDynamicQuery(dynamicQuery);
061 }
062
063
066 public static List<UserIdMapper> findWithDynamicQuery(
067 DynamicQuery dynamicQuery, int start, int end)
068 throws SystemException {
069 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
070 }
071
072
075 public static List<UserIdMapper> findWithDynamicQuery(
076 DynamicQuery dynamicQuery, int start, int end,
077 OrderByComparator orderByComparator) throws SystemException {
078 return getPersistence()
079 .findWithDynamicQuery(dynamicQuery, start, end,
080 orderByComparator);
081 }
082
083
086 public static UserIdMapper remove(UserIdMapper userIdMapper)
087 throws SystemException {
088 return getPersistence().remove(userIdMapper);
089 }
090
091
094 public static UserIdMapper update(UserIdMapper userIdMapper, boolean merge)
095 throws SystemException {
096 return getPersistence().update(userIdMapper, merge);
097 }
098
099
102 public static UserIdMapper update(UserIdMapper userIdMapper, boolean merge,
103 ServiceContext serviceContext) throws SystemException {
104 return getPersistence().update(userIdMapper, merge, serviceContext);
105 }
106
107 public static void cacheResult(
108 com.liferay.portal.model.UserIdMapper userIdMapper) {
109 getPersistence().cacheResult(userIdMapper);
110 }
111
112 public static void cacheResult(
113 java.util.List<com.liferay.portal.model.UserIdMapper> userIdMappers) {
114 getPersistence().cacheResult(userIdMappers);
115 }
116
117 public static com.liferay.portal.model.UserIdMapper create(
118 long userIdMapperId) {
119 return getPersistence().create(userIdMapperId);
120 }
121
122 public static com.liferay.portal.model.UserIdMapper remove(
123 long userIdMapperId)
124 throws com.liferay.portal.NoSuchUserIdMapperException,
125 com.liferay.portal.kernel.exception.SystemException {
126 return getPersistence().remove(userIdMapperId);
127 }
128
129 public static com.liferay.portal.model.UserIdMapper updateImpl(
130 com.liferay.portal.model.UserIdMapper userIdMapper, boolean merge)
131 throws com.liferay.portal.kernel.exception.SystemException {
132 return getPersistence().updateImpl(userIdMapper, merge);
133 }
134
135 public static com.liferay.portal.model.UserIdMapper findByPrimaryKey(
136 long userIdMapperId)
137 throws com.liferay.portal.NoSuchUserIdMapperException,
138 com.liferay.portal.kernel.exception.SystemException {
139 return getPersistence().findByPrimaryKey(userIdMapperId);
140 }
141
142 public static com.liferay.portal.model.UserIdMapper fetchByPrimaryKey(
143 long userIdMapperId)
144 throws com.liferay.portal.kernel.exception.SystemException {
145 return getPersistence().fetchByPrimaryKey(userIdMapperId);
146 }
147
148 public static java.util.List<com.liferay.portal.model.UserIdMapper> findByUserId(
149 long userId) throws com.liferay.portal.kernel.exception.SystemException {
150 return getPersistence().findByUserId(userId);
151 }
152
153 public static java.util.List<com.liferay.portal.model.UserIdMapper> findByUserId(
154 long userId, int start, int end)
155 throws com.liferay.portal.kernel.exception.SystemException {
156 return getPersistence().findByUserId(userId, start, end);
157 }
158
159 public static java.util.List<com.liferay.portal.model.UserIdMapper> findByUserId(
160 long userId, int start, int end,
161 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
162 throws com.liferay.portal.kernel.exception.SystemException {
163 return getPersistence()
164 .findByUserId(userId, start, end, orderByComparator);
165 }
166
167 public static com.liferay.portal.model.UserIdMapper findByUserId_First(
168 long userId,
169 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
170 throws com.liferay.portal.NoSuchUserIdMapperException,
171 com.liferay.portal.kernel.exception.SystemException {
172 return getPersistence().findByUserId_First(userId, orderByComparator);
173 }
174
175 public static com.liferay.portal.model.UserIdMapper findByUserId_Last(
176 long userId,
177 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
178 throws com.liferay.portal.NoSuchUserIdMapperException,
179 com.liferay.portal.kernel.exception.SystemException {
180 return getPersistence().findByUserId_Last(userId, orderByComparator);
181 }
182
183 public static com.liferay.portal.model.UserIdMapper[] findByUserId_PrevAndNext(
184 long userIdMapperId, long userId,
185 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
186 throws com.liferay.portal.NoSuchUserIdMapperException,
187 com.liferay.portal.kernel.exception.SystemException {
188 return getPersistence()
189 .findByUserId_PrevAndNext(userIdMapperId, userId,
190 orderByComparator);
191 }
192
193 public static com.liferay.portal.model.UserIdMapper findByU_T(long userId,
194 java.lang.String type)
195 throws com.liferay.portal.NoSuchUserIdMapperException,
196 com.liferay.portal.kernel.exception.SystemException {
197 return getPersistence().findByU_T(userId, type);
198 }
199
200 public static com.liferay.portal.model.UserIdMapper fetchByU_T(
201 long userId, java.lang.String type)
202 throws com.liferay.portal.kernel.exception.SystemException {
203 return getPersistence().fetchByU_T(userId, type);
204 }
205
206 public static com.liferay.portal.model.UserIdMapper fetchByU_T(
207 long userId, java.lang.String type, boolean retrieveFromCache)
208 throws com.liferay.portal.kernel.exception.SystemException {
209 return getPersistence().fetchByU_T(userId, type, retrieveFromCache);
210 }
211
212 public static com.liferay.portal.model.UserIdMapper findByT_E(
213 java.lang.String type, java.lang.String externalUserId)
214 throws com.liferay.portal.NoSuchUserIdMapperException,
215 com.liferay.portal.kernel.exception.SystemException {
216 return getPersistence().findByT_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 throws com.liferay.portal.kernel.exception.SystemException {
222 return getPersistence().fetchByT_E(type, externalUserId);
223 }
224
225 public static com.liferay.portal.model.UserIdMapper fetchByT_E(
226 java.lang.String type, java.lang.String externalUserId,
227 boolean retrieveFromCache)
228 throws com.liferay.portal.kernel.exception.SystemException {
229 return getPersistence()
230 .fetchByT_E(type, externalUserId, retrieveFromCache);
231 }
232
233 public static java.util.List<com.liferay.portal.model.UserIdMapper> findAll()
234 throws com.liferay.portal.kernel.exception.SystemException {
235 return getPersistence().findAll();
236 }
237
238 public static java.util.List<com.liferay.portal.model.UserIdMapper> findAll(
239 int start, int end)
240 throws com.liferay.portal.kernel.exception.SystemException {
241 return getPersistence().findAll(start, end);
242 }
243
244 public static java.util.List<com.liferay.portal.model.UserIdMapper> findAll(
245 int start, int end,
246 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
247 throws com.liferay.portal.kernel.exception.SystemException {
248 return getPersistence().findAll(start, end, orderByComparator);
249 }
250
251 public static void removeByUserId(long userId)
252 throws com.liferay.portal.kernel.exception.SystemException {
253 getPersistence().removeByUserId(userId);
254 }
255
256 public static void removeByU_T(long userId, java.lang.String type)
257 throws com.liferay.portal.NoSuchUserIdMapperException,
258 com.liferay.portal.kernel.exception.SystemException {
259 getPersistence().removeByU_T(userId, type);
260 }
261
262 public static void removeByT_E(java.lang.String type,
263 java.lang.String externalUserId)
264 throws com.liferay.portal.NoSuchUserIdMapperException,
265 com.liferay.portal.kernel.exception.SystemException {
266 getPersistence().removeByT_E(type, externalUserId);
267 }
268
269 public static void removeAll()
270 throws com.liferay.portal.kernel.exception.SystemException {
271 getPersistence().removeAll();
272 }
273
274 public static int countByUserId(long userId)
275 throws com.liferay.portal.kernel.exception.SystemException {
276 return getPersistence().countByUserId(userId);
277 }
278
279 public static int countByU_T(long userId, java.lang.String type)
280 throws com.liferay.portal.kernel.exception.SystemException {
281 return getPersistence().countByU_T(userId, type);
282 }
283
284 public static int countByT_E(java.lang.String type,
285 java.lang.String externalUserId)
286 throws com.liferay.portal.kernel.exception.SystemException {
287 return getPersistence().countByT_E(type, externalUserId);
288 }
289
290 public static int countAll()
291 throws com.liferay.portal.kernel.exception.SystemException {
292 return getPersistence().countAll();
293 }
294
295 public static UserIdMapperPersistence getPersistence() {
296 if (_persistence == null) {
297 _persistence = (UserIdMapperPersistence)PortalBeanLocatorUtil.locate(UserIdMapperPersistence.class.getName());
298 }
299
300 return _persistence;
301 }
302
303 public void setPersistence(UserIdMapperPersistence persistence) {
304 _persistence = persistence;
305 }
306
307 private static UserIdMapperPersistence _persistence;
308 }