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