1
14
15 package com.liferay.portal.service.persistence;
16
17 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18 import com.liferay.portal.kernel.dao.orm.DynamicQuery;
19 import com.liferay.portal.kernel.exception.SystemException;
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.kernel.exception.SystemException {
96 return getPersistence().remove(userIdMapperId);
97 }
98
99 public static com.liferay.portal.model.UserIdMapper updateImpl(
100 com.liferay.portal.model.UserIdMapper userIdMapper, boolean merge)
101 throws com.liferay.portal.kernel.exception.SystemException {
102 return getPersistence().updateImpl(userIdMapper, merge);
103 }
104
105 public static com.liferay.portal.model.UserIdMapper findByPrimaryKey(
106 long userIdMapperId)
107 throws com.liferay.portal.NoSuchUserIdMapperException,
108 com.liferay.portal.kernel.exception.SystemException {
109 return getPersistence().findByPrimaryKey(userIdMapperId);
110 }
111
112 public static com.liferay.portal.model.UserIdMapper fetchByPrimaryKey(
113 long userIdMapperId)
114 throws com.liferay.portal.kernel.exception.SystemException {
115 return getPersistence().fetchByPrimaryKey(userIdMapperId);
116 }
117
118 public static java.util.List<com.liferay.portal.model.UserIdMapper> findByUserId(
119 long userId) throws com.liferay.portal.kernel.exception.SystemException {
120 return getPersistence().findByUserId(userId);
121 }
122
123 public static java.util.List<com.liferay.portal.model.UserIdMapper> findByUserId(
124 long userId, int start, int end)
125 throws com.liferay.portal.kernel.exception.SystemException {
126 return getPersistence().findByUserId(userId, start, end);
127 }
128
129 public static java.util.List<com.liferay.portal.model.UserIdMapper> findByUserId(
130 long userId, int start, int end,
131 com.liferay.portal.kernel.util.OrderByComparator obc)
132 throws com.liferay.portal.kernel.exception.SystemException {
133 return getPersistence().findByUserId(userId, start, end, obc);
134 }
135
136 public static com.liferay.portal.model.UserIdMapper findByUserId_First(
137 long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
138 throws com.liferay.portal.NoSuchUserIdMapperException,
139 com.liferay.portal.kernel.exception.SystemException {
140 return getPersistence().findByUserId_First(userId, obc);
141 }
142
143 public static com.liferay.portal.model.UserIdMapper findByUserId_Last(
144 long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
145 throws com.liferay.portal.NoSuchUserIdMapperException,
146 com.liferay.portal.kernel.exception.SystemException {
147 return getPersistence().findByUserId_Last(userId, obc);
148 }
149
150 public static com.liferay.portal.model.UserIdMapper[] findByUserId_PrevAndNext(
151 long userIdMapperId, long userId,
152 com.liferay.portal.kernel.util.OrderByComparator obc)
153 throws com.liferay.portal.NoSuchUserIdMapperException,
154 com.liferay.portal.kernel.exception.SystemException {
155 return getPersistence()
156 .findByUserId_PrevAndNext(userIdMapperId, userId, obc);
157 }
158
159 public static com.liferay.portal.model.UserIdMapper findByU_T(long userId,
160 java.lang.String type)
161 throws com.liferay.portal.NoSuchUserIdMapperException,
162 com.liferay.portal.kernel.exception.SystemException {
163 return getPersistence().findByU_T(userId, type);
164 }
165
166 public static com.liferay.portal.model.UserIdMapper fetchByU_T(
167 long userId, java.lang.String type)
168 throws com.liferay.portal.kernel.exception.SystemException {
169 return getPersistence().fetchByU_T(userId, type);
170 }
171
172 public static com.liferay.portal.model.UserIdMapper fetchByU_T(
173 long userId, java.lang.String type, boolean retrieveFromCache)
174 throws com.liferay.portal.kernel.exception.SystemException {
175 return getPersistence().fetchByU_T(userId, type, retrieveFromCache);
176 }
177
178 public static com.liferay.portal.model.UserIdMapper findByT_E(
179 java.lang.String type, java.lang.String externalUserId)
180 throws com.liferay.portal.NoSuchUserIdMapperException,
181 com.liferay.portal.kernel.exception.SystemException {
182 return getPersistence().findByT_E(type, externalUserId);
183 }
184
185 public static com.liferay.portal.model.UserIdMapper fetchByT_E(
186 java.lang.String type, java.lang.String externalUserId)
187 throws com.liferay.portal.kernel.exception.SystemException {
188 return getPersistence().fetchByT_E(type, externalUserId);
189 }
190
191 public static com.liferay.portal.model.UserIdMapper fetchByT_E(
192 java.lang.String type, java.lang.String externalUserId,
193 boolean retrieveFromCache)
194 throws com.liferay.portal.kernel.exception.SystemException {
195 return getPersistence()
196 .fetchByT_E(type, externalUserId, retrieveFromCache);
197 }
198
199 public static java.util.List<com.liferay.portal.model.UserIdMapper> findAll()
200 throws com.liferay.portal.kernel.exception.SystemException {
201 return getPersistence().findAll();
202 }
203
204 public static java.util.List<com.liferay.portal.model.UserIdMapper> findAll(
205 int start, int end)
206 throws com.liferay.portal.kernel.exception.SystemException {
207 return getPersistence().findAll(start, end);
208 }
209
210 public static java.util.List<com.liferay.portal.model.UserIdMapper> findAll(
211 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
212 throws com.liferay.portal.kernel.exception.SystemException {
213 return getPersistence().findAll(start, end, obc);
214 }
215
216 public static void removeByUserId(long userId)
217 throws com.liferay.portal.kernel.exception.SystemException {
218 getPersistence().removeByUserId(userId);
219 }
220
221 public static void removeByU_T(long userId, java.lang.String type)
222 throws com.liferay.portal.NoSuchUserIdMapperException,
223 com.liferay.portal.kernel.exception.SystemException {
224 getPersistence().removeByU_T(userId, type);
225 }
226
227 public static void removeByT_E(java.lang.String type,
228 java.lang.String externalUserId)
229 throws com.liferay.portal.NoSuchUserIdMapperException,
230 com.liferay.portal.kernel.exception.SystemException {
231 getPersistence().removeByT_E(type, externalUserId);
232 }
233
234 public static void removeAll()
235 throws com.liferay.portal.kernel.exception.SystemException {
236 getPersistence().removeAll();
237 }
238
239 public static int countByUserId(long userId)
240 throws com.liferay.portal.kernel.exception.SystemException {
241 return getPersistence().countByUserId(userId);
242 }
243
244 public static int countByU_T(long userId, java.lang.String type)
245 throws com.liferay.portal.kernel.exception.SystemException {
246 return getPersistence().countByU_T(userId, type);
247 }
248
249 public static int countByT_E(java.lang.String type,
250 java.lang.String externalUserId)
251 throws com.liferay.portal.kernel.exception.SystemException {
252 return getPersistence().countByT_E(type, externalUserId);
253 }
254
255 public static int countAll()
256 throws com.liferay.portal.kernel.exception.SystemException {
257 return getPersistence().countAll();
258 }
259
260 public static UserIdMapperPersistence getPersistence() {
261 if (_persistence == null) {
262 _persistence = (UserIdMapperPersistence)PortalBeanLocatorUtil.locate(UserIdMapperPersistence.class.getName());
263 }
264
265 return _persistence;
266 }
267
268 public void setPersistence(UserIdMapperPersistence persistence) {
269 _persistence = persistence;
270 }
271
272 private static UserIdMapperPersistence _persistence;
273 }