1
22
23 package com.liferay.portal.service.persistence;
24
25
31 public class UserGroupRoleUtil {
32 public static void cacheResult(
33 com.liferay.portal.model.UserGroupRole userGroupRole) {
34 getPersistence().cacheResult(userGroupRole);
35 }
36
37 public static void cacheResult(
38 java.util.List<com.liferay.portal.model.UserGroupRole> userGroupRoles) {
39 getPersistence().cacheResult(userGroupRoles);
40 }
41
42 public static void clearCache() {
43 getPersistence().clearCache();
44 }
45
46 public static com.liferay.portal.model.UserGroupRole create(
47 com.liferay.portal.service.persistence.UserGroupRolePK userGroupRolePK) {
48 return getPersistence().create(userGroupRolePK);
49 }
50
51 public static com.liferay.portal.model.UserGroupRole remove(
52 com.liferay.portal.service.persistence.UserGroupRolePK userGroupRolePK)
53 throws com.liferay.portal.NoSuchUserGroupRoleException,
54 com.liferay.portal.SystemException {
55 return getPersistence().remove(userGroupRolePK);
56 }
57
58 public static com.liferay.portal.model.UserGroupRole remove(
59 com.liferay.portal.model.UserGroupRole userGroupRole)
60 throws com.liferay.portal.SystemException {
61 return getPersistence().remove(userGroupRole);
62 }
63
64
67 public static com.liferay.portal.model.UserGroupRole update(
68 com.liferay.portal.model.UserGroupRole userGroupRole)
69 throws com.liferay.portal.SystemException {
70 return getPersistence().update(userGroupRole);
71 }
72
73
86 public static com.liferay.portal.model.UserGroupRole update(
87 com.liferay.portal.model.UserGroupRole userGroupRole, boolean merge)
88 throws com.liferay.portal.SystemException {
89 return getPersistence().update(userGroupRole, merge);
90 }
91
92 public static com.liferay.portal.model.UserGroupRole updateImpl(
93 com.liferay.portal.model.UserGroupRole userGroupRole, boolean merge)
94 throws com.liferay.portal.SystemException {
95 return getPersistence().updateImpl(userGroupRole, merge);
96 }
97
98 public static com.liferay.portal.model.UserGroupRole findByPrimaryKey(
99 com.liferay.portal.service.persistence.UserGroupRolePK userGroupRolePK)
100 throws com.liferay.portal.NoSuchUserGroupRoleException,
101 com.liferay.portal.SystemException {
102 return getPersistence().findByPrimaryKey(userGroupRolePK);
103 }
104
105 public static com.liferay.portal.model.UserGroupRole fetchByPrimaryKey(
106 com.liferay.portal.service.persistence.UserGroupRolePK userGroupRolePK)
107 throws com.liferay.portal.SystemException {
108 return getPersistence().fetchByPrimaryKey(userGroupRolePK);
109 }
110
111 public static java.util.List<com.liferay.portal.model.UserGroupRole> findByUserId(
112 long userId) throws com.liferay.portal.SystemException {
113 return getPersistence().findByUserId(userId);
114 }
115
116 public static java.util.List<com.liferay.portal.model.UserGroupRole> findByUserId(
117 long userId, int start, int end)
118 throws com.liferay.portal.SystemException {
119 return getPersistence().findByUserId(userId, start, end);
120 }
121
122 public static java.util.List<com.liferay.portal.model.UserGroupRole> findByUserId(
123 long userId, int start, int end,
124 com.liferay.portal.kernel.util.OrderByComparator obc)
125 throws com.liferay.portal.SystemException {
126 return getPersistence().findByUserId(userId, start, end, obc);
127 }
128
129 public static com.liferay.portal.model.UserGroupRole findByUserId_First(
130 long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
131 throws com.liferay.portal.NoSuchUserGroupRoleException,
132 com.liferay.portal.SystemException {
133 return getPersistence().findByUserId_First(userId, obc);
134 }
135
136 public static com.liferay.portal.model.UserGroupRole findByUserId_Last(
137 long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
138 throws com.liferay.portal.NoSuchUserGroupRoleException,
139 com.liferay.portal.SystemException {
140 return getPersistence().findByUserId_Last(userId, obc);
141 }
142
143 public static com.liferay.portal.model.UserGroupRole[] findByUserId_PrevAndNext(
144 com.liferay.portal.service.persistence.UserGroupRolePK userGroupRolePK,
145 long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
146 throws com.liferay.portal.NoSuchUserGroupRoleException,
147 com.liferay.portal.SystemException {
148 return getPersistence()
149 .findByUserId_PrevAndNext(userGroupRolePK, userId, obc);
150 }
151
152 public static java.util.List<com.liferay.portal.model.UserGroupRole> findByGroupId(
153 long groupId) throws com.liferay.portal.SystemException {
154 return getPersistence().findByGroupId(groupId);
155 }
156
157 public static java.util.List<com.liferay.portal.model.UserGroupRole> findByGroupId(
158 long groupId, int start, int end)
159 throws com.liferay.portal.SystemException {
160 return getPersistence().findByGroupId(groupId, start, end);
161 }
162
163 public static java.util.List<com.liferay.portal.model.UserGroupRole> findByGroupId(
164 long groupId, int start, int end,
165 com.liferay.portal.kernel.util.OrderByComparator obc)
166 throws com.liferay.portal.SystemException {
167 return getPersistence().findByGroupId(groupId, start, end, obc);
168 }
169
170 public static com.liferay.portal.model.UserGroupRole findByGroupId_First(
171 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
172 throws com.liferay.portal.NoSuchUserGroupRoleException,
173 com.liferay.portal.SystemException {
174 return getPersistence().findByGroupId_First(groupId, obc);
175 }
176
177 public static com.liferay.portal.model.UserGroupRole findByGroupId_Last(
178 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
179 throws com.liferay.portal.NoSuchUserGroupRoleException,
180 com.liferay.portal.SystemException {
181 return getPersistence().findByGroupId_Last(groupId, obc);
182 }
183
184 public static com.liferay.portal.model.UserGroupRole[] findByGroupId_PrevAndNext(
185 com.liferay.portal.service.persistence.UserGroupRolePK userGroupRolePK,
186 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
187 throws com.liferay.portal.NoSuchUserGroupRoleException,
188 com.liferay.portal.SystemException {
189 return getPersistence()
190 .findByGroupId_PrevAndNext(userGroupRolePK, groupId, obc);
191 }
192
193 public static java.util.List<com.liferay.portal.model.UserGroupRole> findByRoleId(
194 long roleId) throws com.liferay.portal.SystemException {
195 return getPersistence().findByRoleId(roleId);
196 }
197
198 public static java.util.List<com.liferay.portal.model.UserGroupRole> findByRoleId(
199 long roleId, int start, int end)
200 throws com.liferay.portal.SystemException {
201 return getPersistence().findByRoleId(roleId, start, end);
202 }
203
204 public static java.util.List<com.liferay.portal.model.UserGroupRole> findByRoleId(
205 long roleId, int start, int end,
206 com.liferay.portal.kernel.util.OrderByComparator obc)
207 throws com.liferay.portal.SystemException {
208 return getPersistence().findByRoleId(roleId, start, end, obc);
209 }
210
211 public static com.liferay.portal.model.UserGroupRole findByRoleId_First(
212 long roleId, com.liferay.portal.kernel.util.OrderByComparator obc)
213 throws com.liferay.portal.NoSuchUserGroupRoleException,
214 com.liferay.portal.SystemException {
215 return getPersistence().findByRoleId_First(roleId, obc);
216 }
217
218 public static com.liferay.portal.model.UserGroupRole findByRoleId_Last(
219 long roleId, com.liferay.portal.kernel.util.OrderByComparator obc)
220 throws com.liferay.portal.NoSuchUserGroupRoleException,
221 com.liferay.portal.SystemException {
222 return getPersistence().findByRoleId_Last(roleId, obc);
223 }
224
225 public static com.liferay.portal.model.UserGroupRole[] findByRoleId_PrevAndNext(
226 com.liferay.portal.service.persistence.UserGroupRolePK userGroupRolePK,
227 long roleId, com.liferay.portal.kernel.util.OrderByComparator obc)
228 throws com.liferay.portal.NoSuchUserGroupRoleException,
229 com.liferay.portal.SystemException {
230 return getPersistence()
231 .findByRoleId_PrevAndNext(userGroupRolePK, roleId, obc);
232 }
233
234 public static java.util.List<com.liferay.portal.model.UserGroupRole> findByU_G(
235 long userId, long groupId) throws com.liferay.portal.SystemException {
236 return getPersistence().findByU_G(userId, groupId);
237 }
238
239 public static java.util.List<com.liferay.portal.model.UserGroupRole> findByU_G(
240 long userId, long groupId, int start, int end)
241 throws com.liferay.portal.SystemException {
242 return getPersistence().findByU_G(userId, groupId, start, end);
243 }
244
245 public static java.util.List<com.liferay.portal.model.UserGroupRole> findByU_G(
246 long userId, long groupId, int start, int end,
247 com.liferay.portal.kernel.util.OrderByComparator obc)
248 throws com.liferay.portal.SystemException {
249 return getPersistence().findByU_G(userId, groupId, start, end, obc);
250 }
251
252 public static com.liferay.portal.model.UserGroupRole findByU_G_First(
253 long userId, long groupId,
254 com.liferay.portal.kernel.util.OrderByComparator obc)
255 throws com.liferay.portal.NoSuchUserGroupRoleException,
256 com.liferay.portal.SystemException {
257 return getPersistence().findByU_G_First(userId, groupId, obc);
258 }
259
260 public static com.liferay.portal.model.UserGroupRole findByU_G_Last(
261 long userId, long groupId,
262 com.liferay.portal.kernel.util.OrderByComparator obc)
263 throws com.liferay.portal.NoSuchUserGroupRoleException,
264 com.liferay.portal.SystemException {
265 return getPersistence().findByU_G_Last(userId, groupId, obc);
266 }
267
268 public static com.liferay.portal.model.UserGroupRole[] findByU_G_PrevAndNext(
269 com.liferay.portal.service.persistence.UserGroupRolePK userGroupRolePK,
270 long userId, long groupId,
271 com.liferay.portal.kernel.util.OrderByComparator obc)
272 throws com.liferay.portal.NoSuchUserGroupRoleException,
273 com.liferay.portal.SystemException {
274 return getPersistence()
275 .findByU_G_PrevAndNext(userGroupRolePK, userId, groupId, obc);
276 }
277
278 public static java.util.List<com.liferay.portal.model.UserGroupRole> findByG_R(
279 long groupId, long roleId) throws com.liferay.portal.SystemException {
280 return getPersistence().findByG_R(groupId, roleId);
281 }
282
283 public static java.util.List<com.liferay.portal.model.UserGroupRole> findByG_R(
284 long groupId, long roleId, int start, int end)
285 throws com.liferay.portal.SystemException {
286 return getPersistence().findByG_R(groupId, roleId, start, end);
287 }
288
289 public static java.util.List<com.liferay.portal.model.UserGroupRole> findByG_R(
290 long groupId, long roleId, int start, int end,
291 com.liferay.portal.kernel.util.OrderByComparator obc)
292 throws com.liferay.portal.SystemException {
293 return getPersistence().findByG_R(groupId, roleId, start, end, obc);
294 }
295
296 public static com.liferay.portal.model.UserGroupRole findByG_R_First(
297 long groupId, long roleId,
298 com.liferay.portal.kernel.util.OrderByComparator obc)
299 throws com.liferay.portal.NoSuchUserGroupRoleException,
300 com.liferay.portal.SystemException {
301 return getPersistence().findByG_R_First(groupId, roleId, obc);
302 }
303
304 public static com.liferay.portal.model.UserGroupRole findByG_R_Last(
305 long groupId, long roleId,
306 com.liferay.portal.kernel.util.OrderByComparator obc)
307 throws com.liferay.portal.NoSuchUserGroupRoleException,
308 com.liferay.portal.SystemException {
309 return getPersistence().findByG_R_Last(groupId, roleId, obc);
310 }
311
312 public static com.liferay.portal.model.UserGroupRole[] findByG_R_PrevAndNext(
313 com.liferay.portal.service.persistence.UserGroupRolePK userGroupRolePK,
314 long groupId, long roleId,
315 com.liferay.portal.kernel.util.OrderByComparator obc)
316 throws com.liferay.portal.NoSuchUserGroupRoleException,
317 com.liferay.portal.SystemException {
318 return getPersistence()
319 .findByG_R_PrevAndNext(userGroupRolePK, groupId, roleId, obc);
320 }
321
322 public static java.util.List<Object> findWithDynamicQuery(
323 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
324 throws com.liferay.portal.SystemException {
325 return getPersistence().findWithDynamicQuery(dynamicQuery);
326 }
327
328 public static java.util.List<Object> findWithDynamicQuery(
329 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
330 int end) throws com.liferay.portal.SystemException {
331 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
332 }
333
334 public static java.util.List<com.liferay.portal.model.UserGroupRole> findAll()
335 throws com.liferay.portal.SystemException {
336 return getPersistence().findAll();
337 }
338
339 public static java.util.List<com.liferay.portal.model.UserGroupRole> findAll(
340 int start, int end) throws com.liferay.portal.SystemException {
341 return getPersistence().findAll(start, end);
342 }
343
344 public static java.util.List<com.liferay.portal.model.UserGroupRole> findAll(
345 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
346 throws com.liferay.portal.SystemException {
347 return getPersistence().findAll(start, end, obc);
348 }
349
350 public static void removeByUserId(long userId)
351 throws com.liferay.portal.SystemException {
352 getPersistence().removeByUserId(userId);
353 }
354
355 public static void removeByGroupId(long groupId)
356 throws com.liferay.portal.SystemException {
357 getPersistence().removeByGroupId(groupId);
358 }
359
360 public static void removeByRoleId(long roleId)
361 throws com.liferay.portal.SystemException {
362 getPersistence().removeByRoleId(roleId);
363 }
364
365 public static void removeByU_G(long userId, long groupId)
366 throws com.liferay.portal.SystemException {
367 getPersistence().removeByU_G(userId, groupId);
368 }
369
370 public static void removeByG_R(long groupId, long roleId)
371 throws com.liferay.portal.SystemException {
372 getPersistence().removeByG_R(groupId, roleId);
373 }
374
375 public static void removeAll() throws com.liferay.portal.SystemException {
376 getPersistence().removeAll();
377 }
378
379 public static int countByUserId(long userId)
380 throws com.liferay.portal.SystemException {
381 return getPersistence().countByUserId(userId);
382 }
383
384 public static int countByGroupId(long groupId)
385 throws com.liferay.portal.SystemException {
386 return getPersistence().countByGroupId(groupId);
387 }
388
389 public static int countByRoleId(long roleId)
390 throws com.liferay.portal.SystemException {
391 return getPersistence().countByRoleId(roleId);
392 }
393
394 public static int countByU_G(long userId, long groupId)
395 throws com.liferay.portal.SystemException {
396 return getPersistence().countByU_G(userId, groupId);
397 }
398
399 public static int countByG_R(long groupId, long roleId)
400 throws com.liferay.portal.SystemException {
401 return getPersistence().countByG_R(groupId, roleId);
402 }
403
404 public static int countAll() throws com.liferay.portal.SystemException {
405 return getPersistence().countAll();
406 }
407
408 public static UserGroupRolePersistence getPersistence() {
409 return _persistence;
410 }
411
412 public void setPersistence(UserGroupRolePersistence persistence) {
413 _persistence = persistence;
414 }
415
416 private static UserGroupRolePersistence _persistence;
417 }