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.UserGroupGroupRole;
21
22 import java.util.List;
23
24
37 public class UserGroupGroupRoleUtil {
38
41 public static void clearCache() {
42 getPersistence().clearCache();
43 }
44
45
48 public static void clearCache(UserGroupGroupRole userGroupGroupRole) {
49 getPersistence().clearCache(userGroupGroupRole);
50 }
51
52
55 public long countWithDynamicQuery(DynamicQuery dynamicQuery)
56 throws SystemException {
57 return getPersistence().countWithDynamicQuery(dynamicQuery);
58 }
59
60
63 public static List<UserGroupGroupRole> findWithDynamicQuery(
64 DynamicQuery dynamicQuery) throws SystemException {
65 return getPersistence().findWithDynamicQuery(dynamicQuery);
66 }
67
68
71 public static List<UserGroupGroupRole> findWithDynamicQuery(
72 DynamicQuery dynamicQuery, int start, int end)
73 throws SystemException {
74 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
75 }
76
77
80 public static UserGroupGroupRole remove(
81 UserGroupGroupRole userGroupGroupRole) throws SystemException {
82 return getPersistence().remove(userGroupGroupRole);
83 }
84
85
88 public static UserGroupGroupRole update(
89 UserGroupGroupRole userGroupGroupRole, boolean merge)
90 throws SystemException {
91 return getPersistence().update(userGroupGroupRole, merge);
92 }
93
94 public static void cacheResult(
95 com.liferay.portal.model.UserGroupGroupRole userGroupGroupRole) {
96 getPersistence().cacheResult(userGroupGroupRole);
97 }
98
99 public static void cacheResult(
100 java.util.List<com.liferay.portal.model.UserGroupGroupRole> userGroupGroupRoles) {
101 getPersistence().cacheResult(userGroupGroupRoles);
102 }
103
104 public static com.liferay.portal.model.UserGroupGroupRole create(
105 com.liferay.portal.service.persistence.UserGroupGroupRolePK userGroupGroupRolePK) {
106 return getPersistence().create(userGroupGroupRolePK);
107 }
108
109 public static com.liferay.portal.model.UserGroupGroupRole remove(
110 com.liferay.portal.service.persistence.UserGroupGroupRolePK userGroupGroupRolePK)
111 throws com.liferay.portal.NoSuchUserGroupGroupRoleException,
112 com.liferay.portal.kernel.exception.SystemException {
113 return getPersistence().remove(userGroupGroupRolePK);
114 }
115
116 public static com.liferay.portal.model.UserGroupGroupRole updateImpl(
117 com.liferay.portal.model.UserGroupGroupRole userGroupGroupRole,
118 boolean merge)
119 throws com.liferay.portal.kernel.exception.SystemException {
120 return getPersistence().updateImpl(userGroupGroupRole, merge);
121 }
122
123 public static com.liferay.portal.model.UserGroupGroupRole findByPrimaryKey(
124 com.liferay.portal.service.persistence.UserGroupGroupRolePK userGroupGroupRolePK)
125 throws com.liferay.portal.NoSuchUserGroupGroupRoleException,
126 com.liferay.portal.kernel.exception.SystemException {
127 return getPersistence().findByPrimaryKey(userGroupGroupRolePK);
128 }
129
130 public static com.liferay.portal.model.UserGroupGroupRole fetchByPrimaryKey(
131 com.liferay.portal.service.persistence.UserGroupGroupRolePK userGroupGroupRolePK)
132 throws com.liferay.portal.kernel.exception.SystemException {
133 return getPersistence().fetchByPrimaryKey(userGroupGroupRolePK);
134 }
135
136 public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByUserGroupId(
137 long userGroupId)
138 throws com.liferay.portal.kernel.exception.SystemException {
139 return getPersistence().findByUserGroupId(userGroupId);
140 }
141
142 public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByUserGroupId(
143 long userGroupId, int start, int end)
144 throws com.liferay.portal.kernel.exception.SystemException {
145 return getPersistence().findByUserGroupId(userGroupId, start, end);
146 }
147
148 public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByUserGroupId(
149 long userGroupId, int start, int end,
150 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
151 throws com.liferay.portal.kernel.exception.SystemException {
152 return getPersistence()
153 .findByUserGroupId(userGroupId, start, end, orderByComparator);
154 }
155
156 public static com.liferay.portal.model.UserGroupGroupRole findByUserGroupId_First(
157 long userGroupId,
158 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
159 throws com.liferay.portal.NoSuchUserGroupGroupRoleException,
160 com.liferay.portal.kernel.exception.SystemException {
161 return getPersistence()
162 .findByUserGroupId_First(userGroupId, orderByComparator);
163 }
164
165 public static com.liferay.portal.model.UserGroupGroupRole findByUserGroupId_Last(
166 long userGroupId,
167 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
168 throws com.liferay.portal.NoSuchUserGroupGroupRoleException,
169 com.liferay.portal.kernel.exception.SystemException {
170 return getPersistence()
171 .findByUserGroupId_Last(userGroupId, orderByComparator);
172 }
173
174 public static com.liferay.portal.model.UserGroupGroupRole[] findByUserGroupId_PrevAndNext(
175 com.liferay.portal.service.persistence.UserGroupGroupRolePK userGroupGroupRolePK,
176 long userGroupId,
177 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
178 throws com.liferay.portal.NoSuchUserGroupGroupRoleException,
179 com.liferay.portal.kernel.exception.SystemException {
180 return getPersistence()
181 .findByUserGroupId_PrevAndNext(userGroupGroupRolePK,
182 userGroupId, orderByComparator);
183 }
184
185 public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByGroupId(
186 long groupId)
187 throws com.liferay.portal.kernel.exception.SystemException {
188 return getPersistence().findByGroupId(groupId);
189 }
190
191 public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByGroupId(
192 long groupId, int start, int end)
193 throws com.liferay.portal.kernel.exception.SystemException {
194 return getPersistence().findByGroupId(groupId, start, end);
195 }
196
197 public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByGroupId(
198 long groupId, int start, int end,
199 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
200 throws com.liferay.portal.kernel.exception.SystemException {
201 return getPersistence()
202 .findByGroupId(groupId, start, end, orderByComparator);
203 }
204
205 public static com.liferay.portal.model.UserGroupGroupRole findByGroupId_First(
206 long groupId,
207 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
208 throws com.liferay.portal.NoSuchUserGroupGroupRoleException,
209 com.liferay.portal.kernel.exception.SystemException {
210 return getPersistence().findByGroupId_First(groupId, orderByComparator);
211 }
212
213 public static com.liferay.portal.model.UserGroupGroupRole findByGroupId_Last(
214 long groupId,
215 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
216 throws com.liferay.portal.NoSuchUserGroupGroupRoleException,
217 com.liferay.portal.kernel.exception.SystemException {
218 return getPersistence().findByGroupId_Last(groupId, orderByComparator);
219 }
220
221 public static com.liferay.portal.model.UserGroupGroupRole[] findByGroupId_PrevAndNext(
222 com.liferay.portal.service.persistence.UserGroupGroupRolePK userGroupGroupRolePK,
223 long groupId,
224 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
225 throws com.liferay.portal.NoSuchUserGroupGroupRoleException,
226 com.liferay.portal.kernel.exception.SystemException {
227 return getPersistence()
228 .findByGroupId_PrevAndNext(userGroupGroupRolePK, groupId,
229 orderByComparator);
230 }
231
232 public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByRoleId(
233 long roleId) throws com.liferay.portal.kernel.exception.SystemException {
234 return getPersistence().findByRoleId(roleId);
235 }
236
237 public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByRoleId(
238 long roleId, int start, int end)
239 throws com.liferay.portal.kernel.exception.SystemException {
240 return getPersistence().findByRoleId(roleId, start, end);
241 }
242
243 public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByRoleId(
244 long roleId, int start, int end,
245 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
246 throws com.liferay.portal.kernel.exception.SystemException {
247 return getPersistence()
248 .findByRoleId(roleId, start, end, orderByComparator);
249 }
250
251 public static com.liferay.portal.model.UserGroupGroupRole findByRoleId_First(
252 long roleId,
253 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
254 throws com.liferay.portal.NoSuchUserGroupGroupRoleException,
255 com.liferay.portal.kernel.exception.SystemException {
256 return getPersistence().findByRoleId_First(roleId, orderByComparator);
257 }
258
259 public static com.liferay.portal.model.UserGroupGroupRole findByRoleId_Last(
260 long roleId,
261 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
262 throws com.liferay.portal.NoSuchUserGroupGroupRoleException,
263 com.liferay.portal.kernel.exception.SystemException {
264 return getPersistence().findByRoleId_Last(roleId, orderByComparator);
265 }
266
267 public static com.liferay.portal.model.UserGroupGroupRole[] findByRoleId_PrevAndNext(
268 com.liferay.portal.service.persistence.UserGroupGroupRolePK userGroupGroupRolePK,
269 long roleId,
270 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
271 throws com.liferay.portal.NoSuchUserGroupGroupRoleException,
272 com.liferay.portal.kernel.exception.SystemException {
273 return getPersistence()
274 .findByRoleId_PrevAndNext(userGroupGroupRolePK, roleId,
275 orderByComparator);
276 }
277
278 public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByU_G(
279 long userGroupId, long groupId)
280 throws com.liferay.portal.kernel.exception.SystemException {
281 return getPersistence().findByU_G(userGroupId, groupId);
282 }
283
284 public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByU_G(
285 long userGroupId, long groupId, int start, int end)
286 throws com.liferay.portal.kernel.exception.SystemException {
287 return getPersistence().findByU_G(userGroupId, groupId, start, end);
288 }
289
290 public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByU_G(
291 long userGroupId, long groupId, int start, int end,
292 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
293 throws com.liferay.portal.kernel.exception.SystemException {
294 return getPersistence()
295 .findByU_G(userGroupId, groupId, start, end,
296 orderByComparator);
297 }
298
299 public static com.liferay.portal.model.UserGroupGroupRole findByU_G_First(
300 long userGroupId, long groupId,
301 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
302 throws com.liferay.portal.NoSuchUserGroupGroupRoleException,
303 com.liferay.portal.kernel.exception.SystemException {
304 return getPersistence()
305 .findByU_G_First(userGroupId, groupId, orderByComparator);
306 }
307
308 public static com.liferay.portal.model.UserGroupGroupRole findByU_G_Last(
309 long userGroupId, long groupId,
310 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
311 throws com.liferay.portal.NoSuchUserGroupGroupRoleException,
312 com.liferay.portal.kernel.exception.SystemException {
313 return getPersistence()
314 .findByU_G_Last(userGroupId, groupId, orderByComparator);
315 }
316
317 public static com.liferay.portal.model.UserGroupGroupRole[] findByU_G_PrevAndNext(
318 com.liferay.portal.service.persistence.UserGroupGroupRolePK userGroupGroupRolePK,
319 long userGroupId, long groupId,
320 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
321 throws com.liferay.portal.NoSuchUserGroupGroupRoleException,
322 com.liferay.portal.kernel.exception.SystemException {
323 return getPersistence()
324 .findByU_G_PrevAndNext(userGroupGroupRolePK, userGroupId,
325 groupId, orderByComparator);
326 }
327
328 public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByG_R(
329 long groupId, long roleId)
330 throws com.liferay.portal.kernel.exception.SystemException {
331 return getPersistence().findByG_R(groupId, roleId);
332 }
333
334 public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByG_R(
335 long groupId, long roleId, int start, int end)
336 throws com.liferay.portal.kernel.exception.SystemException {
337 return getPersistence().findByG_R(groupId, roleId, start, end);
338 }
339
340 public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByG_R(
341 long groupId, long roleId, int start, int end,
342 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
343 throws com.liferay.portal.kernel.exception.SystemException {
344 return getPersistence()
345 .findByG_R(groupId, roleId, start, end, orderByComparator);
346 }
347
348 public static com.liferay.portal.model.UserGroupGroupRole findByG_R_First(
349 long groupId, long roleId,
350 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
351 throws com.liferay.portal.NoSuchUserGroupGroupRoleException,
352 com.liferay.portal.kernel.exception.SystemException {
353 return getPersistence()
354 .findByG_R_First(groupId, roleId, orderByComparator);
355 }
356
357 public static com.liferay.portal.model.UserGroupGroupRole findByG_R_Last(
358 long groupId, long roleId,
359 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
360 throws com.liferay.portal.NoSuchUserGroupGroupRoleException,
361 com.liferay.portal.kernel.exception.SystemException {
362 return getPersistence()
363 .findByG_R_Last(groupId, roleId, orderByComparator);
364 }
365
366 public static com.liferay.portal.model.UserGroupGroupRole[] findByG_R_PrevAndNext(
367 com.liferay.portal.service.persistence.UserGroupGroupRolePK userGroupGroupRolePK,
368 long groupId, long roleId,
369 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
370 throws com.liferay.portal.NoSuchUserGroupGroupRoleException,
371 com.liferay.portal.kernel.exception.SystemException {
372 return getPersistence()
373 .findByG_R_PrevAndNext(userGroupGroupRolePK, groupId,
374 roleId, orderByComparator);
375 }
376
377 public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> findAll()
378 throws com.liferay.portal.kernel.exception.SystemException {
379 return getPersistence().findAll();
380 }
381
382 public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> findAll(
383 int start, int end)
384 throws com.liferay.portal.kernel.exception.SystemException {
385 return getPersistence().findAll(start, end);
386 }
387
388 public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> findAll(
389 int start, int end,
390 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
391 throws com.liferay.portal.kernel.exception.SystemException {
392 return getPersistence().findAll(start, end, orderByComparator);
393 }
394
395 public static void removeByUserGroupId(long userGroupId)
396 throws com.liferay.portal.kernel.exception.SystemException {
397 getPersistence().removeByUserGroupId(userGroupId);
398 }
399
400 public static void removeByGroupId(long groupId)
401 throws com.liferay.portal.kernel.exception.SystemException {
402 getPersistence().removeByGroupId(groupId);
403 }
404
405 public static void removeByRoleId(long roleId)
406 throws com.liferay.portal.kernel.exception.SystemException {
407 getPersistence().removeByRoleId(roleId);
408 }
409
410 public static void removeByU_G(long userGroupId, long groupId)
411 throws com.liferay.portal.kernel.exception.SystemException {
412 getPersistence().removeByU_G(userGroupId, groupId);
413 }
414
415 public static void removeByG_R(long groupId, long roleId)
416 throws com.liferay.portal.kernel.exception.SystemException {
417 getPersistence().removeByG_R(groupId, roleId);
418 }
419
420 public static void removeAll()
421 throws com.liferay.portal.kernel.exception.SystemException {
422 getPersistence().removeAll();
423 }
424
425 public static int countByUserGroupId(long userGroupId)
426 throws com.liferay.portal.kernel.exception.SystemException {
427 return getPersistence().countByUserGroupId(userGroupId);
428 }
429
430 public static int countByGroupId(long groupId)
431 throws com.liferay.portal.kernel.exception.SystemException {
432 return getPersistence().countByGroupId(groupId);
433 }
434
435 public static int countByRoleId(long roleId)
436 throws com.liferay.portal.kernel.exception.SystemException {
437 return getPersistence().countByRoleId(roleId);
438 }
439
440 public static int countByU_G(long userGroupId, long groupId)
441 throws com.liferay.portal.kernel.exception.SystemException {
442 return getPersistence().countByU_G(userGroupId, groupId);
443 }
444
445 public static int countByG_R(long groupId, long roleId)
446 throws com.liferay.portal.kernel.exception.SystemException {
447 return getPersistence().countByG_R(groupId, roleId);
448 }
449
450 public static int countAll()
451 throws com.liferay.portal.kernel.exception.SystemException {
452 return getPersistence().countAll();
453 }
454
455 public static UserGroupGroupRolePersistence getPersistence() {
456 if (_persistence == null) {
457 _persistence = (UserGroupGroupRolePersistence)PortalBeanLocatorUtil.locate(UserGroupGroupRolePersistence.class.getName());
458 }
459
460 return _persistence;
461 }
462
463 public void setPersistence(UserGroupGroupRolePersistence persistence) {
464 _persistence = persistence;
465 }
466
467 private static UserGroupGroupRolePersistence _persistence;
468 }