001
014
015 package com.liferay.portal.service.persistence;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018 import com.liferay.portal.kernel.dao.orm.DynamicQuery;
019 import com.liferay.portal.kernel.exception.SystemException;
020 import com.liferay.portal.kernel.util.OrderByComparator;
021 import com.liferay.portal.model.UserGroupGroupRole;
022 import com.liferay.portal.service.ServiceContext;
023
024 import java.util.List;
025
026
032 public class UserGroupGroupRoleUtil {
033
036 public static void clearCache() {
037 getPersistence().clearCache();
038 }
039
040
043 public static void clearCache(UserGroupGroupRole userGroupGroupRole) {
044 getPersistence().clearCache(userGroupGroupRole);
045 }
046
047
050 public long countWithDynamicQuery(DynamicQuery dynamicQuery)
051 throws SystemException {
052 return getPersistence().countWithDynamicQuery(dynamicQuery);
053 }
054
055
058 public static List<UserGroupGroupRole> findWithDynamicQuery(
059 DynamicQuery dynamicQuery) throws SystemException {
060 return getPersistence().findWithDynamicQuery(dynamicQuery);
061 }
062
063
066 public static List<UserGroupGroupRole> findWithDynamicQuery(
067 DynamicQuery dynamicQuery, int start, int end)
068 throws SystemException {
069 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
070 }
071
072
075 public static List<UserGroupGroupRole> findWithDynamicQuery(
076 DynamicQuery dynamicQuery, int start, int end,
077 OrderByComparator orderByComparator) throws SystemException {
078 return getPersistence()
079 .findWithDynamicQuery(dynamicQuery, start, end,
080 orderByComparator);
081 }
082
083
086 public static UserGroupGroupRole remove(
087 UserGroupGroupRole userGroupGroupRole) throws SystemException {
088 return getPersistence().remove(userGroupGroupRole);
089 }
090
091
094 public static UserGroupGroupRole update(
095 UserGroupGroupRole userGroupGroupRole, boolean merge)
096 throws SystemException {
097 return getPersistence().update(userGroupGroupRole, merge);
098 }
099
100
103 public static UserGroupGroupRole update(
104 UserGroupGroupRole userGroupGroupRole, boolean merge,
105 ServiceContext serviceContext) throws SystemException {
106 return getPersistence().update(userGroupGroupRole, merge, serviceContext);
107 }
108
109 public static void cacheResult(
110 com.liferay.portal.model.UserGroupGroupRole userGroupGroupRole) {
111 getPersistence().cacheResult(userGroupGroupRole);
112 }
113
114 public static void cacheResult(
115 java.util.List<com.liferay.portal.model.UserGroupGroupRole> userGroupGroupRoles) {
116 getPersistence().cacheResult(userGroupGroupRoles);
117 }
118
119 public static com.liferay.portal.model.UserGroupGroupRole create(
120 com.liferay.portal.service.persistence.UserGroupGroupRolePK userGroupGroupRolePK) {
121 return getPersistence().create(userGroupGroupRolePK);
122 }
123
124 public static com.liferay.portal.model.UserGroupGroupRole remove(
125 com.liferay.portal.service.persistence.UserGroupGroupRolePK userGroupGroupRolePK)
126 throws com.liferay.portal.NoSuchUserGroupGroupRoleException,
127 com.liferay.portal.kernel.exception.SystemException {
128 return getPersistence().remove(userGroupGroupRolePK);
129 }
130
131 public static com.liferay.portal.model.UserGroupGroupRole updateImpl(
132 com.liferay.portal.model.UserGroupGroupRole userGroupGroupRole,
133 boolean merge)
134 throws com.liferay.portal.kernel.exception.SystemException {
135 return getPersistence().updateImpl(userGroupGroupRole, merge);
136 }
137
138 public static com.liferay.portal.model.UserGroupGroupRole findByPrimaryKey(
139 com.liferay.portal.service.persistence.UserGroupGroupRolePK userGroupGroupRolePK)
140 throws com.liferay.portal.NoSuchUserGroupGroupRoleException,
141 com.liferay.portal.kernel.exception.SystemException {
142 return getPersistence().findByPrimaryKey(userGroupGroupRolePK);
143 }
144
145 public static com.liferay.portal.model.UserGroupGroupRole fetchByPrimaryKey(
146 com.liferay.portal.service.persistence.UserGroupGroupRolePK userGroupGroupRolePK)
147 throws com.liferay.portal.kernel.exception.SystemException {
148 return getPersistence().fetchByPrimaryKey(userGroupGroupRolePK);
149 }
150
151 public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByUserGroupId(
152 long userGroupId)
153 throws com.liferay.portal.kernel.exception.SystemException {
154 return getPersistence().findByUserGroupId(userGroupId);
155 }
156
157 public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByUserGroupId(
158 long userGroupId, int start, int end)
159 throws com.liferay.portal.kernel.exception.SystemException {
160 return getPersistence().findByUserGroupId(userGroupId, start, end);
161 }
162
163 public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByUserGroupId(
164 long userGroupId, int start, int end,
165 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
166 throws com.liferay.portal.kernel.exception.SystemException {
167 return getPersistence()
168 .findByUserGroupId(userGroupId, start, end, orderByComparator);
169 }
170
171 public static com.liferay.portal.model.UserGroupGroupRole findByUserGroupId_First(
172 long userGroupId,
173 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
174 throws com.liferay.portal.NoSuchUserGroupGroupRoleException,
175 com.liferay.portal.kernel.exception.SystemException {
176 return getPersistence()
177 .findByUserGroupId_First(userGroupId, orderByComparator);
178 }
179
180 public static com.liferay.portal.model.UserGroupGroupRole findByUserGroupId_Last(
181 long userGroupId,
182 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
183 throws com.liferay.portal.NoSuchUserGroupGroupRoleException,
184 com.liferay.portal.kernel.exception.SystemException {
185 return getPersistence()
186 .findByUserGroupId_Last(userGroupId, orderByComparator);
187 }
188
189 public static com.liferay.portal.model.UserGroupGroupRole[] findByUserGroupId_PrevAndNext(
190 com.liferay.portal.service.persistence.UserGroupGroupRolePK userGroupGroupRolePK,
191 long userGroupId,
192 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
193 throws com.liferay.portal.NoSuchUserGroupGroupRoleException,
194 com.liferay.portal.kernel.exception.SystemException {
195 return getPersistence()
196 .findByUserGroupId_PrevAndNext(userGroupGroupRolePK,
197 userGroupId, orderByComparator);
198 }
199
200 public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByGroupId(
201 long groupId)
202 throws com.liferay.portal.kernel.exception.SystemException {
203 return getPersistence().findByGroupId(groupId);
204 }
205
206 public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByGroupId(
207 long groupId, int start, int end)
208 throws com.liferay.portal.kernel.exception.SystemException {
209 return getPersistence().findByGroupId(groupId, start, end);
210 }
211
212 public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByGroupId(
213 long groupId, int start, int end,
214 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
215 throws com.liferay.portal.kernel.exception.SystemException {
216 return getPersistence()
217 .findByGroupId(groupId, start, end, orderByComparator);
218 }
219
220 public static com.liferay.portal.model.UserGroupGroupRole findByGroupId_First(
221 long groupId,
222 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
223 throws com.liferay.portal.NoSuchUserGroupGroupRoleException,
224 com.liferay.portal.kernel.exception.SystemException {
225 return getPersistence().findByGroupId_First(groupId, orderByComparator);
226 }
227
228 public static com.liferay.portal.model.UserGroupGroupRole findByGroupId_Last(
229 long groupId,
230 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
231 throws com.liferay.portal.NoSuchUserGroupGroupRoleException,
232 com.liferay.portal.kernel.exception.SystemException {
233 return getPersistence().findByGroupId_Last(groupId, orderByComparator);
234 }
235
236 public static com.liferay.portal.model.UserGroupGroupRole[] findByGroupId_PrevAndNext(
237 com.liferay.portal.service.persistence.UserGroupGroupRolePK userGroupGroupRolePK,
238 long groupId,
239 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
240 throws com.liferay.portal.NoSuchUserGroupGroupRoleException,
241 com.liferay.portal.kernel.exception.SystemException {
242 return getPersistence()
243 .findByGroupId_PrevAndNext(userGroupGroupRolePK, groupId,
244 orderByComparator);
245 }
246
247 public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByRoleId(
248 long roleId) throws com.liferay.portal.kernel.exception.SystemException {
249 return getPersistence().findByRoleId(roleId);
250 }
251
252 public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByRoleId(
253 long roleId, int start, int end)
254 throws com.liferay.portal.kernel.exception.SystemException {
255 return getPersistence().findByRoleId(roleId, start, end);
256 }
257
258 public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByRoleId(
259 long roleId, int start, int end,
260 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
261 throws com.liferay.portal.kernel.exception.SystemException {
262 return getPersistence()
263 .findByRoleId(roleId, start, end, orderByComparator);
264 }
265
266 public static com.liferay.portal.model.UserGroupGroupRole findByRoleId_First(
267 long roleId,
268 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
269 throws com.liferay.portal.NoSuchUserGroupGroupRoleException,
270 com.liferay.portal.kernel.exception.SystemException {
271 return getPersistence().findByRoleId_First(roleId, orderByComparator);
272 }
273
274 public static com.liferay.portal.model.UserGroupGroupRole findByRoleId_Last(
275 long roleId,
276 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
277 throws com.liferay.portal.NoSuchUserGroupGroupRoleException,
278 com.liferay.portal.kernel.exception.SystemException {
279 return getPersistence().findByRoleId_Last(roleId, orderByComparator);
280 }
281
282 public static com.liferay.portal.model.UserGroupGroupRole[] findByRoleId_PrevAndNext(
283 com.liferay.portal.service.persistence.UserGroupGroupRolePK userGroupGroupRolePK,
284 long roleId,
285 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
286 throws com.liferay.portal.NoSuchUserGroupGroupRoleException,
287 com.liferay.portal.kernel.exception.SystemException {
288 return getPersistence()
289 .findByRoleId_PrevAndNext(userGroupGroupRolePK, roleId,
290 orderByComparator);
291 }
292
293 public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByU_G(
294 long userGroupId, long groupId)
295 throws com.liferay.portal.kernel.exception.SystemException {
296 return getPersistence().findByU_G(userGroupId, groupId);
297 }
298
299 public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByU_G(
300 long userGroupId, long groupId, int start, int end)
301 throws com.liferay.portal.kernel.exception.SystemException {
302 return getPersistence().findByU_G(userGroupId, groupId, start, end);
303 }
304
305 public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByU_G(
306 long userGroupId, long groupId, int start, int end,
307 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
308 throws com.liferay.portal.kernel.exception.SystemException {
309 return getPersistence()
310 .findByU_G(userGroupId, groupId, start, end,
311 orderByComparator);
312 }
313
314 public static com.liferay.portal.model.UserGroupGroupRole findByU_G_First(
315 long userGroupId, long groupId,
316 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
317 throws com.liferay.portal.NoSuchUserGroupGroupRoleException,
318 com.liferay.portal.kernel.exception.SystemException {
319 return getPersistence()
320 .findByU_G_First(userGroupId, groupId, orderByComparator);
321 }
322
323 public static com.liferay.portal.model.UserGroupGroupRole findByU_G_Last(
324 long userGroupId, long groupId,
325 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
326 throws com.liferay.portal.NoSuchUserGroupGroupRoleException,
327 com.liferay.portal.kernel.exception.SystemException {
328 return getPersistence()
329 .findByU_G_Last(userGroupId, groupId, orderByComparator);
330 }
331
332 public static com.liferay.portal.model.UserGroupGroupRole[] findByU_G_PrevAndNext(
333 com.liferay.portal.service.persistence.UserGroupGroupRolePK userGroupGroupRolePK,
334 long userGroupId, long groupId,
335 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
336 throws com.liferay.portal.NoSuchUserGroupGroupRoleException,
337 com.liferay.portal.kernel.exception.SystemException {
338 return getPersistence()
339 .findByU_G_PrevAndNext(userGroupGroupRolePK, userGroupId,
340 groupId, orderByComparator);
341 }
342
343 public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByG_R(
344 long groupId, long roleId)
345 throws com.liferay.portal.kernel.exception.SystemException {
346 return getPersistence().findByG_R(groupId, roleId);
347 }
348
349 public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByG_R(
350 long groupId, long roleId, int start, int end)
351 throws com.liferay.portal.kernel.exception.SystemException {
352 return getPersistence().findByG_R(groupId, roleId, start, end);
353 }
354
355 public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByG_R(
356 long groupId, long roleId, int start, int end,
357 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
358 throws com.liferay.portal.kernel.exception.SystemException {
359 return getPersistence()
360 .findByG_R(groupId, roleId, start, end, orderByComparator);
361 }
362
363 public static com.liferay.portal.model.UserGroupGroupRole findByG_R_First(
364 long groupId, long roleId,
365 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
366 throws com.liferay.portal.NoSuchUserGroupGroupRoleException,
367 com.liferay.portal.kernel.exception.SystemException {
368 return getPersistence()
369 .findByG_R_First(groupId, roleId, orderByComparator);
370 }
371
372 public static com.liferay.portal.model.UserGroupGroupRole findByG_R_Last(
373 long groupId, long roleId,
374 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
375 throws com.liferay.portal.NoSuchUserGroupGroupRoleException,
376 com.liferay.portal.kernel.exception.SystemException {
377 return getPersistence()
378 .findByG_R_Last(groupId, roleId, orderByComparator);
379 }
380
381 public static com.liferay.portal.model.UserGroupGroupRole[] findByG_R_PrevAndNext(
382 com.liferay.portal.service.persistence.UserGroupGroupRolePK userGroupGroupRolePK,
383 long groupId, long roleId,
384 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
385 throws com.liferay.portal.NoSuchUserGroupGroupRoleException,
386 com.liferay.portal.kernel.exception.SystemException {
387 return getPersistence()
388 .findByG_R_PrevAndNext(userGroupGroupRolePK, groupId,
389 roleId, orderByComparator);
390 }
391
392 public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> findAll()
393 throws com.liferay.portal.kernel.exception.SystemException {
394 return getPersistence().findAll();
395 }
396
397 public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> findAll(
398 int start, int end)
399 throws com.liferay.portal.kernel.exception.SystemException {
400 return getPersistence().findAll(start, end);
401 }
402
403 public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> findAll(
404 int start, int end,
405 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
406 throws com.liferay.portal.kernel.exception.SystemException {
407 return getPersistence().findAll(start, end, orderByComparator);
408 }
409
410 public static void removeByUserGroupId(long userGroupId)
411 throws com.liferay.portal.kernel.exception.SystemException {
412 getPersistence().removeByUserGroupId(userGroupId);
413 }
414
415 public static void removeByGroupId(long groupId)
416 throws com.liferay.portal.kernel.exception.SystemException {
417 getPersistence().removeByGroupId(groupId);
418 }
419
420 public static void removeByRoleId(long roleId)
421 throws com.liferay.portal.kernel.exception.SystemException {
422 getPersistence().removeByRoleId(roleId);
423 }
424
425 public static void removeByU_G(long userGroupId, long groupId)
426 throws com.liferay.portal.kernel.exception.SystemException {
427 getPersistence().removeByU_G(userGroupId, groupId);
428 }
429
430 public static void removeByG_R(long groupId, long roleId)
431 throws com.liferay.portal.kernel.exception.SystemException {
432 getPersistence().removeByG_R(groupId, roleId);
433 }
434
435 public static void removeAll()
436 throws com.liferay.portal.kernel.exception.SystemException {
437 getPersistence().removeAll();
438 }
439
440 public static int countByUserGroupId(long userGroupId)
441 throws com.liferay.portal.kernel.exception.SystemException {
442 return getPersistence().countByUserGroupId(userGroupId);
443 }
444
445 public static int countByGroupId(long groupId)
446 throws com.liferay.portal.kernel.exception.SystemException {
447 return getPersistence().countByGroupId(groupId);
448 }
449
450 public static int countByRoleId(long roleId)
451 throws com.liferay.portal.kernel.exception.SystemException {
452 return getPersistence().countByRoleId(roleId);
453 }
454
455 public static int countByU_G(long userGroupId, long groupId)
456 throws com.liferay.portal.kernel.exception.SystemException {
457 return getPersistence().countByU_G(userGroupId, groupId);
458 }
459
460 public static int countByG_R(long groupId, long roleId)
461 throws com.liferay.portal.kernel.exception.SystemException {
462 return getPersistence().countByG_R(groupId, roleId);
463 }
464
465 public static int countAll()
466 throws com.liferay.portal.kernel.exception.SystemException {
467 return getPersistence().countAll();
468 }
469
470 public static UserGroupGroupRolePersistence getPersistence() {
471 if (_persistence == null) {
472 _persistence = (UserGroupGroupRolePersistence)PortalBeanLocatorUtil.locate(UserGroupGroupRolePersistence.class.getName());
473 }
474
475 return _persistence;
476 }
477
478 public void setPersistence(UserGroupGroupRolePersistence persistence) {
479 _persistence = persistence;
480 }
481
482 private static UserGroupGroupRolePersistence _persistence;
483 }