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 obc)
140 throws com.liferay.portal.SystemException {
141 return getPersistence().findByUserId(userId, start, end, obc);
142 }
143
144 public static com.liferay.portal.model.UserIdMapper findByUserId_First(
145 long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
146 throws com.liferay.portal.NoSuchUserIdMapperException,
147 com.liferay.portal.SystemException {
148 return getPersistence().findByUserId_First(userId, obc);
149 }
150
151 public static com.liferay.portal.model.UserIdMapper findByUserId_Last(
152 long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
153 throws com.liferay.portal.NoSuchUserIdMapperException,
154 com.liferay.portal.SystemException {
155 return getPersistence().findByUserId_Last(userId, obc);
156 }
157
158 public static com.liferay.portal.model.UserIdMapper[] findByUserId_PrevAndNext(
159 long userIdMapperId, long userId,
160 com.liferay.portal.kernel.util.OrderByComparator obc)
161 throws com.liferay.portal.NoSuchUserIdMapperException,
162 com.liferay.portal.SystemException {
163 return getPersistence()
164 .findByUserId_PrevAndNext(userIdMapperId, userId, obc);
165 }
166
167 public static com.liferay.portal.model.UserIdMapper findByU_T(long userId,
168 java.lang.String type)
169 throws com.liferay.portal.NoSuchUserIdMapperException,
170 com.liferay.portal.SystemException {
171 return getPersistence().findByU_T(userId, type);
172 }
173
174 public static com.liferay.portal.model.UserIdMapper fetchByU_T(
175 long userId, java.lang.String type)
176 throws com.liferay.portal.SystemException {
177 return getPersistence().fetchByU_T(userId, type);
178 }
179
180 public static com.liferay.portal.model.UserIdMapper fetchByU_T(
181 long userId, java.lang.String type, boolean retrieveFromCache)
182 throws com.liferay.portal.SystemException {
183 return getPersistence().fetchByU_T(userId, type, retrieveFromCache);
184 }
185
186 public static com.liferay.portal.model.UserIdMapper findByT_E(
187 java.lang.String type, java.lang.String externalUserId)
188 throws com.liferay.portal.NoSuchUserIdMapperException,
189 com.liferay.portal.SystemException {
190 return getPersistence().findByT_E(type, externalUserId);
191 }
192
193 public static com.liferay.portal.model.UserIdMapper fetchByT_E(
194 java.lang.String type, java.lang.String externalUserId)
195 throws com.liferay.portal.SystemException {
196 return getPersistence().fetchByT_E(type, externalUserId);
197 }
198
199 public static com.liferay.portal.model.UserIdMapper fetchByT_E(
200 java.lang.String type, java.lang.String externalUserId,
201 boolean retrieveFromCache) throws com.liferay.portal.SystemException {
202 return getPersistence()
203 .fetchByT_E(type, externalUserId, retrieveFromCache);
204 }
205
206 public static java.util.List<com.liferay.portal.model.UserIdMapper> findAll()
207 throws com.liferay.portal.SystemException {
208 return getPersistence().findAll();
209 }
210
211 public static java.util.List<com.liferay.portal.model.UserIdMapper> findAll(
212 int start, int end) throws com.liferay.portal.SystemException {
213 return getPersistence().findAll(start, end);
214 }
215
216 public static java.util.List<com.liferay.portal.model.UserIdMapper> findAll(
217 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
218 throws com.liferay.portal.SystemException {
219 return getPersistence().findAll(start, end, obc);
220 }
221
222 public static void removeByUserId(long userId)
223 throws com.liferay.portal.SystemException {
224 getPersistence().removeByUserId(userId);
225 }
226
227 public static void removeByU_T(long userId, java.lang.String type)
228 throws com.liferay.portal.NoSuchUserIdMapperException,
229 com.liferay.portal.SystemException {
230 getPersistence().removeByU_T(userId, type);
231 }
232
233 public static void removeByT_E(java.lang.String type,
234 java.lang.String externalUserId)
235 throws com.liferay.portal.NoSuchUserIdMapperException,
236 com.liferay.portal.SystemException {
237 getPersistence().removeByT_E(type, externalUserId);
238 }
239
240 public static void removeAll() throws com.liferay.portal.SystemException {
241 getPersistence().removeAll();
242 }
243
244 public static int countByUserId(long userId)
245 throws com.liferay.portal.SystemException {
246 return getPersistence().countByUserId(userId);
247 }
248
249 public static int countByU_T(long userId, java.lang.String type)
250 throws com.liferay.portal.SystemException {
251 return getPersistence().countByU_T(userId, type);
252 }
253
254 public static int countByT_E(java.lang.String type,
255 java.lang.String externalUserId)
256 throws com.liferay.portal.SystemException {
257 return getPersistence().countByT_E(type, externalUserId);
258 }
259
260 public static int countAll() throws com.liferay.portal.SystemException {
261 return getPersistence().countAll();
262 }
263
264 public static UserIdMapperPersistence getPersistence() {
265 if (_persistence == null) {
266 _persistence = (UserIdMapperPersistence)PortalBeanLocatorUtil.locate(UserIdMapperPersistence.class.getName());
267 }
268
269 return _persistence;
270 }
271
272 public void setPersistence(UserIdMapperPersistence persistence) {
273 _persistence = persistence;
274 }
275
276 private static UserIdMapperPersistence _persistence;
277 }