1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   * 
13   */
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.Group;
21  
22  import java.util.List;
23  
24  /**
25   * <a href="GroupUtil.java.html"><b><i>View Source</i></b></a>
26   *
27   * <p>
28   * ServiceBuilder generated this class. Modifications in this class will be
29   * overwritten the next time is generated.
30   * </p>
31   *
32   * @author    Brian Wing Shun Chan
33   * @see       GroupPersistence
34   * @see       GroupPersistenceImpl
35   * @generated
36   */
37  public class GroupUtil {
38      /**
39       * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
40       */
41      public static void clearCache() {
42          getPersistence().clearCache();
43      }
44  
45      /**
46       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
47       */
48      public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery)
49          throws SystemException {
50          return getPersistence().findWithDynamicQuery(dynamicQuery);
51      }
52  
53      /**
54       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
55       */
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      /**
62       * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel)
63       */
64      public static Group remove(Group group) throws SystemException {
65          return getPersistence().remove(group);
66      }
67  
68      /**
69       * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
70       */
71      public static Group update(Group group, boolean merge)
72          throws SystemException {
73          return getPersistence().update(group, merge);
74      }
75  
76      public static void cacheResult(com.liferay.portal.model.Group group) {
77          getPersistence().cacheResult(group);
78      }
79  
80      public static void cacheResult(
81          java.util.List<com.liferay.portal.model.Group> groups) {
82          getPersistence().cacheResult(groups);
83      }
84  
85      public static com.liferay.portal.model.Group create(long groupId) {
86          return getPersistence().create(groupId);
87      }
88  
89      public static com.liferay.portal.model.Group remove(long groupId)
90          throws com.liferay.portal.NoSuchGroupException,
91              com.liferay.portal.SystemException {
92          return getPersistence().remove(groupId);
93      }
94  
95      /**
96       * @deprecated Use {@link com.liferay.portal.service.persistence.BasePersistence.#update(com.liferay.portal.model.BaseModel, boolean)}.
97       */
98      public static com.liferay.portal.model.Group update(
99          com.liferay.portal.model.Group group)
100         throws com.liferay.portal.SystemException {
101         return getPersistence().update(group);
102     }
103 
104     public static com.liferay.portal.model.Group updateImpl(
105         com.liferay.portal.model.Group group, boolean merge)
106         throws com.liferay.portal.SystemException {
107         return getPersistence().updateImpl(group, merge);
108     }
109 
110     public static com.liferay.portal.model.Group findByPrimaryKey(long groupId)
111         throws com.liferay.portal.NoSuchGroupException,
112             com.liferay.portal.SystemException {
113         return getPersistence().findByPrimaryKey(groupId);
114     }
115 
116     public static com.liferay.portal.model.Group fetchByPrimaryKey(long groupId)
117         throws com.liferay.portal.SystemException {
118         return getPersistence().fetchByPrimaryKey(groupId);
119     }
120 
121     public static java.util.List<com.liferay.portal.model.Group> findByCompanyId(
122         long companyId) throws com.liferay.portal.SystemException {
123         return getPersistence().findByCompanyId(companyId);
124     }
125 
126     public static java.util.List<com.liferay.portal.model.Group> findByCompanyId(
127         long companyId, int start, int end)
128         throws com.liferay.portal.SystemException {
129         return getPersistence().findByCompanyId(companyId, start, end);
130     }
131 
132     public static java.util.List<com.liferay.portal.model.Group> findByCompanyId(
133         long companyId, int start, int end,
134         com.liferay.portal.kernel.util.OrderByComparator obc)
135         throws com.liferay.portal.SystemException {
136         return getPersistence().findByCompanyId(companyId, start, end, obc);
137     }
138 
139     public static com.liferay.portal.model.Group findByCompanyId_First(
140         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
141         throws com.liferay.portal.NoSuchGroupException,
142             com.liferay.portal.SystemException {
143         return getPersistence().findByCompanyId_First(companyId, obc);
144     }
145 
146     public static com.liferay.portal.model.Group findByCompanyId_Last(
147         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
148         throws com.liferay.portal.NoSuchGroupException,
149             com.liferay.portal.SystemException {
150         return getPersistence().findByCompanyId_Last(companyId, obc);
151     }
152 
153     public static com.liferay.portal.model.Group[] findByCompanyId_PrevAndNext(
154         long groupId, long companyId,
155         com.liferay.portal.kernel.util.OrderByComparator obc)
156         throws com.liferay.portal.NoSuchGroupException,
157             com.liferay.portal.SystemException {
158         return getPersistence()
159                    .findByCompanyId_PrevAndNext(groupId, companyId, obc);
160     }
161 
162     public static com.liferay.portal.model.Group findByLiveGroupId(
163         long liveGroupId)
164         throws com.liferay.portal.NoSuchGroupException,
165             com.liferay.portal.SystemException {
166         return getPersistence().findByLiveGroupId(liveGroupId);
167     }
168 
169     public static com.liferay.portal.model.Group fetchByLiveGroupId(
170         long liveGroupId) throws com.liferay.portal.SystemException {
171         return getPersistence().fetchByLiveGroupId(liveGroupId);
172     }
173 
174     public static com.liferay.portal.model.Group fetchByLiveGroupId(
175         long liveGroupId, boolean retrieveFromCache)
176         throws com.liferay.portal.SystemException {
177         return getPersistence()
178                    .fetchByLiveGroupId(liveGroupId, retrieveFromCache);
179     }
180 
181     public static com.liferay.portal.model.Group findByC_N(long companyId,
182         java.lang.String name)
183         throws com.liferay.portal.NoSuchGroupException,
184             com.liferay.portal.SystemException {
185         return getPersistence().findByC_N(companyId, name);
186     }
187 
188     public static com.liferay.portal.model.Group fetchByC_N(long companyId,
189         java.lang.String name) throws com.liferay.portal.SystemException {
190         return getPersistence().fetchByC_N(companyId, name);
191     }
192 
193     public static com.liferay.portal.model.Group fetchByC_N(long companyId,
194         java.lang.String name, boolean retrieveFromCache)
195         throws com.liferay.portal.SystemException {
196         return getPersistence().fetchByC_N(companyId, name, retrieveFromCache);
197     }
198 
199     public static com.liferay.portal.model.Group findByC_F(long companyId,
200         java.lang.String friendlyURL)
201         throws com.liferay.portal.NoSuchGroupException,
202             com.liferay.portal.SystemException {
203         return getPersistence().findByC_F(companyId, friendlyURL);
204     }
205 
206     public static com.liferay.portal.model.Group fetchByC_F(long companyId,
207         java.lang.String friendlyURL) throws com.liferay.portal.SystemException {
208         return getPersistence().fetchByC_F(companyId, friendlyURL);
209     }
210 
211     public static com.liferay.portal.model.Group fetchByC_F(long companyId,
212         java.lang.String friendlyURL, boolean retrieveFromCache)
213         throws com.liferay.portal.SystemException {
214         return getPersistence()
215                    .fetchByC_F(companyId, friendlyURL, retrieveFromCache);
216     }
217 
218     public static java.util.List<com.liferay.portal.model.Group> findByT_A(
219         int type, boolean active) throws com.liferay.portal.SystemException {
220         return getPersistence().findByT_A(type, active);
221     }
222 
223     public static java.util.List<com.liferay.portal.model.Group> findByT_A(
224         int type, boolean active, int start, int end)
225         throws com.liferay.portal.SystemException {
226         return getPersistence().findByT_A(type, active, start, end);
227     }
228 
229     public static java.util.List<com.liferay.portal.model.Group> findByT_A(
230         int type, boolean active, int start, int end,
231         com.liferay.portal.kernel.util.OrderByComparator obc)
232         throws com.liferay.portal.SystemException {
233         return getPersistence().findByT_A(type, active, start, end, obc);
234     }
235 
236     public static com.liferay.portal.model.Group findByT_A_First(int type,
237         boolean active, com.liferay.portal.kernel.util.OrderByComparator obc)
238         throws com.liferay.portal.NoSuchGroupException,
239             com.liferay.portal.SystemException {
240         return getPersistence().findByT_A_First(type, active, obc);
241     }
242 
243     public static com.liferay.portal.model.Group findByT_A_Last(int type,
244         boolean active, com.liferay.portal.kernel.util.OrderByComparator obc)
245         throws com.liferay.portal.NoSuchGroupException,
246             com.liferay.portal.SystemException {
247         return getPersistence().findByT_A_Last(type, active, obc);
248     }
249 
250     public static com.liferay.portal.model.Group[] findByT_A_PrevAndNext(
251         long groupId, int type, boolean active,
252         com.liferay.portal.kernel.util.OrderByComparator obc)
253         throws com.liferay.portal.NoSuchGroupException,
254             com.liferay.portal.SystemException {
255         return getPersistence().findByT_A_PrevAndNext(groupId, type, active, obc);
256     }
257 
258     public static com.liferay.portal.model.Group findByC_C_C(long companyId,
259         long classNameId, long classPK)
260         throws com.liferay.portal.NoSuchGroupException,
261             com.liferay.portal.SystemException {
262         return getPersistence().findByC_C_C(companyId, classNameId, classPK);
263     }
264 
265     public static com.liferay.portal.model.Group fetchByC_C_C(long companyId,
266         long classNameId, long classPK)
267         throws com.liferay.portal.SystemException {
268         return getPersistence().fetchByC_C_C(companyId, classNameId, classPK);
269     }
270 
271     public static com.liferay.portal.model.Group fetchByC_C_C(long companyId,
272         long classNameId, long classPK, boolean retrieveFromCache)
273         throws com.liferay.portal.SystemException {
274         return getPersistence()
275                    .fetchByC_C_C(companyId, classNameId, classPK,
276             retrieveFromCache);
277     }
278 
279     public static com.liferay.portal.model.Group findByC_L_N(long companyId,
280         long liveGroupId, java.lang.String name)
281         throws com.liferay.portal.NoSuchGroupException,
282             com.liferay.portal.SystemException {
283         return getPersistence().findByC_L_N(companyId, liveGroupId, name);
284     }
285 
286     public static com.liferay.portal.model.Group fetchByC_L_N(long companyId,
287         long liveGroupId, java.lang.String name)
288         throws com.liferay.portal.SystemException {
289         return getPersistence().fetchByC_L_N(companyId, liveGroupId, name);
290     }
291 
292     public static com.liferay.portal.model.Group fetchByC_L_N(long companyId,
293         long liveGroupId, java.lang.String name, boolean retrieveFromCache)
294         throws com.liferay.portal.SystemException {
295         return getPersistence()
296                    .fetchByC_L_N(companyId, liveGroupId, name, retrieveFromCache);
297     }
298 
299     public static com.liferay.portal.model.Group findByC_C_L_N(long companyId,
300         long classNameId, long liveGroupId, java.lang.String name)
301         throws com.liferay.portal.NoSuchGroupException,
302             com.liferay.portal.SystemException {
303         return getPersistence()
304                    .findByC_C_L_N(companyId, classNameId, liveGroupId, name);
305     }
306 
307     public static com.liferay.portal.model.Group fetchByC_C_L_N(
308         long companyId, long classNameId, long liveGroupId,
309         java.lang.String name) throws com.liferay.portal.SystemException {
310         return getPersistence()
311                    .fetchByC_C_L_N(companyId, classNameId, liveGroupId, name);
312     }
313 
314     public static com.liferay.portal.model.Group fetchByC_C_L_N(
315         long companyId, long classNameId, long liveGroupId,
316         java.lang.String name, boolean retrieveFromCache)
317         throws com.liferay.portal.SystemException {
318         return getPersistence()
319                    .fetchByC_C_L_N(companyId, classNameId, liveGroupId, name,
320             retrieveFromCache);
321     }
322 
323     public static java.util.List<com.liferay.portal.model.Group> findAll()
324         throws com.liferay.portal.SystemException {
325         return getPersistence().findAll();
326     }
327 
328     public static java.util.List<com.liferay.portal.model.Group> findAll(
329         int start, int end) throws com.liferay.portal.SystemException {
330         return getPersistence().findAll(start, end);
331     }
332 
333     public static java.util.List<com.liferay.portal.model.Group> findAll(
334         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
335         throws com.liferay.portal.SystemException {
336         return getPersistence().findAll(start, end, obc);
337     }
338 
339     public static void removeByCompanyId(long companyId)
340         throws com.liferay.portal.SystemException {
341         getPersistence().removeByCompanyId(companyId);
342     }
343 
344     public static void removeByLiveGroupId(long liveGroupId)
345         throws com.liferay.portal.NoSuchGroupException,
346             com.liferay.portal.SystemException {
347         getPersistence().removeByLiveGroupId(liveGroupId);
348     }
349 
350     public static void removeByC_N(long companyId, java.lang.String name)
351         throws com.liferay.portal.NoSuchGroupException,
352             com.liferay.portal.SystemException {
353         getPersistence().removeByC_N(companyId, name);
354     }
355 
356     public static void removeByC_F(long companyId, java.lang.String friendlyURL)
357         throws com.liferay.portal.NoSuchGroupException,
358             com.liferay.portal.SystemException {
359         getPersistence().removeByC_F(companyId, friendlyURL);
360     }
361 
362     public static void removeByT_A(int type, boolean active)
363         throws com.liferay.portal.SystemException {
364         getPersistence().removeByT_A(type, active);
365     }
366 
367     public static void removeByC_C_C(long companyId, long classNameId,
368         long classPK)
369         throws com.liferay.portal.NoSuchGroupException,
370             com.liferay.portal.SystemException {
371         getPersistence().removeByC_C_C(companyId, classNameId, classPK);
372     }
373 
374     public static void removeByC_L_N(long companyId, long liveGroupId,
375         java.lang.String name)
376         throws com.liferay.portal.NoSuchGroupException,
377             com.liferay.portal.SystemException {
378         getPersistence().removeByC_L_N(companyId, liveGroupId, name);
379     }
380 
381     public static void removeByC_C_L_N(long companyId, long classNameId,
382         long liveGroupId, java.lang.String name)
383         throws com.liferay.portal.NoSuchGroupException,
384             com.liferay.portal.SystemException {
385         getPersistence()
386             .removeByC_C_L_N(companyId, classNameId, liveGroupId, name);
387     }
388 
389     public static void removeAll() throws com.liferay.portal.SystemException {
390         getPersistence().removeAll();
391     }
392 
393     public static int countByCompanyId(long companyId)
394         throws com.liferay.portal.SystemException {
395         return getPersistence().countByCompanyId(companyId);
396     }
397 
398     public static int countByLiveGroupId(long liveGroupId)
399         throws com.liferay.portal.SystemException {
400         return getPersistence().countByLiveGroupId(liveGroupId);
401     }
402 
403     public static int countByC_N(long companyId, java.lang.String name)
404         throws com.liferay.portal.SystemException {
405         return getPersistence().countByC_N(companyId, name);
406     }
407 
408     public static int countByC_F(long companyId, java.lang.String friendlyURL)
409         throws com.liferay.portal.SystemException {
410         return getPersistence().countByC_F(companyId, friendlyURL);
411     }
412 
413     public static int countByT_A(int type, boolean active)
414         throws com.liferay.portal.SystemException {
415         return getPersistence().countByT_A(type, active);
416     }
417 
418     public static int countByC_C_C(long companyId, long classNameId,
419         long classPK) throws com.liferay.portal.SystemException {
420         return getPersistence().countByC_C_C(companyId, classNameId, classPK);
421     }
422 
423     public static int countByC_L_N(long companyId, long liveGroupId,
424         java.lang.String name) throws com.liferay.portal.SystemException {
425         return getPersistence().countByC_L_N(companyId, liveGroupId, name);
426     }
427 
428     public static int countByC_C_L_N(long companyId, long classNameId,
429         long liveGroupId, java.lang.String name)
430         throws com.liferay.portal.SystemException {
431         return getPersistence()
432                    .countByC_C_L_N(companyId, classNameId, liveGroupId, name);
433     }
434 
435     public static int countAll() throws com.liferay.portal.SystemException {
436         return getPersistence().countAll();
437     }
438 
439     public static java.util.List<com.liferay.portal.model.Organization> getOrganizations(
440         long pk) throws com.liferay.portal.SystemException {
441         return getPersistence().getOrganizations(pk);
442     }
443 
444     public static java.util.List<com.liferay.portal.model.Organization> getOrganizations(
445         long pk, int start, int end) throws com.liferay.portal.SystemException {
446         return getPersistence().getOrganizations(pk, start, end);
447     }
448 
449     public static java.util.List<com.liferay.portal.model.Organization> getOrganizations(
450         long pk, int start, int end,
451         com.liferay.portal.kernel.util.OrderByComparator obc)
452         throws com.liferay.portal.SystemException {
453         return getPersistence().getOrganizations(pk, start, end, obc);
454     }
455 
456     public static int getOrganizationsSize(long pk)
457         throws com.liferay.portal.SystemException {
458         return getPersistence().getOrganizationsSize(pk);
459     }
460 
461     public static boolean containsOrganization(long pk, long organizationPK)
462         throws com.liferay.portal.SystemException {
463         return getPersistence().containsOrganization(pk, organizationPK);
464     }
465 
466     public static boolean containsOrganizations(long pk)
467         throws com.liferay.portal.SystemException {
468         return getPersistence().containsOrganizations(pk);
469     }
470 
471     public static void addOrganization(long pk, long organizationPK)
472         throws com.liferay.portal.SystemException {
473         getPersistence().addOrganization(pk, organizationPK);
474     }
475 
476     public static void addOrganization(long pk,
477         com.liferay.portal.model.Organization organization)
478         throws com.liferay.portal.SystemException {
479         getPersistence().addOrganization(pk, organization);
480     }
481 
482     public static void addOrganizations(long pk, long[] organizationPKs)
483         throws com.liferay.portal.SystemException {
484         getPersistence().addOrganizations(pk, organizationPKs);
485     }
486 
487     public static void addOrganizations(long pk,
488         java.util.List<com.liferay.portal.model.Organization> organizations)
489         throws com.liferay.portal.SystemException {
490         getPersistence().addOrganizations(pk, organizations);
491     }
492 
493     public static void clearOrganizations(long pk)
494         throws com.liferay.portal.SystemException {
495         getPersistence().clearOrganizations(pk);
496     }
497 
498     public static void removeOrganization(long pk, long organizationPK)
499         throws com.liferay.portal.SystemException {
500         getPersistence().removeOrganization(pk, organizationPK);
501     }
502 
503     public static void removeOrganization(long pk,
504         com.liferay.portal.model.Organization organization)
505         throws com.liferay.portal.SystemException {
506         getPersistence().removeOrganization(pk, organization);
507     }
508 
509     public static void removeOrganizations(long pk, long[] organizationPKs)
510         throws com.liferay.portal.SystemException {
511         getPersistence().removeOrganizations(pk, organizationPKs);
512     }
513 
514     public static void removeOrganizations(long pk,
515         java.util.List<com.liferay.portal.model.Organization> organizations)
516         throws com.liferay.portal.SystemException {
517         getPersistence().removeOrganizations(pk, organizations);
518     }
519 
520     public static void setOrganizations(long pk, long[] organizationPKs)
521         throws com.liferay.portal.SystemException {
522         getPersistence().setOrganizations(pk, organizationPKs);
523     }
524 
525     public static void setOrganizations(long pk,
526         java.util.List<com.liferay.portal.model.Organization> organizations)
527         throws com.liferay.portal.SystemException {
528         getPersistence().setOrganizations(pk, organizations);
529     }
530 
531     public static java.util.List<com.liferay.portal.model.Permission> getPermissions(
532         long pk) throws com.liferay.portal.SystemException {
533         return getPersistence().getPermissions(pk);
534     }
535 
536     public static java.util.List<com.liferay.portal.model.Permission> getPermissions(
537         long pk, int start, int end) throws com.liferay.portal.SystemException {
538         return getPersistence().getPermissions(pk, start, end);
539     }
540 
541     public static java.util.List<com.liferay.portal.model.Permission> getPermissions(
542         long pk, int start, int end,
543         com.liferay.portal.kernel.util.OrderByComparator obc)
544         throws com.liferay.portal.SystemException {
545         return getPersistence().getPermissions(pk, start, end, obc);
546     }
547 
548     public static int getPermissionsSize(long pk)
549         throws com.liferay.portal.SystemException {
550         return getPersistence().getPermissionsSize(pk);
551     }
552 
553     public static boolean containsPermission(long pk, long permissionPK)
554         throws com.liferay.portal.SystemException {
555         return getPersistence().containsPermission(pk, permissionPK);
556     }
557 
558     public static boolean containsPermissions(long pk)
559         throws com.liferay.portal.SystemException {
560         return getPersistence().containsPermissions(pk);
561     }
562 
563     public static void addPermission(long pk, long permissionPK)
564         throws com.liferay.portal.SystemException {
565         getPersistence().addPermission(pk, permissionPK);
566     }
567 
568     public static void addPermission(long pk,
569         com.liferay.portal.model.Permission permission)
570         throws com.liferay.portal.SystemException {
571         getPersistence().addPermission(pk, permission);
572     }
573 
574     public static void addPermissions(long pk, long[] permissionPKs)
575         throws com.liferay.portal.SystemException {
576         getPersistence().addPermissions(pk, permissionPKs);
577     }
578 
579     public static void addPermissions(long pk,
580         java.util.List<com.liferay.portal.model.Permission> permissions)
581         throws com.liferay.portal.SystemException {
582         getPersistence().addPermissions(pk, permissions);
583     }
584 
585     public static void clearPermissions(long pk)
586         throws com.liferay.portal.SystemException {
587         getPersistence().clearPermissions(pk);
588     }
589 
590     public static void removePermission(long pk, long permissionPK)
591         throws com.liferay.portal.SystemException {
592         getPersistence().removePermission(pk, permissionPK);
593     }
594 
595     public static void removePermission(long pk,
596         com.liferay.portal.model.Permission permission)
597         throws com.liferay.portal.SystemException {
598         getPersistence().removePermission(pk, permission);
599     }
600 
601     public static void removePermissions(long pk, long[] permissionPKs)
602         throws com.liferay.portal.SystemException {
603         getPersistence().removePermissions(pk, permissionPKs);
604     }
605 
606     public static void removePermissions(long pk,
607         java.util.List<com.liferay.portal.model.Permission> permissions)
608         throws com.liferay.portal.SystemException {
609         getPersistence().removePermissions(pk, permissions);
610     }
611 
612     public static void setPermissions(long pk, long[] permissionPKs)
613         throws com.liferay.portal.SystemException {
614         getPersistence().setPermissions(pk, permissionPKs);
615     }
616 
617     public static void setPermissions(long pk,
618         java.util.List<com.liferay.portal.model.Permission> permissions)
619         throws com.liferay.portal.SystemException {
620         getPersistence().setPermissions(pk, permissions);
621     }
622 
623     public static java.util.List<com.liferay.portal.model.Role> getRoles(
624         long pk) throws com.liferay.portal.SystemException {
625         return getPersistence().getRoles(pk);
626     }
627 
628     public static java.util.List<com.liferay.portal.model.Role> getRoles(
629         long pk, int start, int end) throws com.liferay.portal.SystemException {
630         return getPersistence().getRoles(pk, start, end);
631     }
632 
633     public static java.util.List<com.liferay.portal.model.Role> getRoles(
634         long pk, int start, int end,
635         com.liferay.portal.kernel.util.OrderByComparator obc)
636         throws com.liferay.portal.SystemException {
637         return getPersistence().getRoles(pk, start, end, obc);
638     }
639 
640     public static int getRolesSize(long pk)
641         throws com.liferay.portal.SystemException {
642         return getPersistence().getRolesSize(pk);
643     }
644 
645     public static boolean containsRole(long pk, long rolePK)
646         throws com.liferay.portal.SystemException {
647         return getPersistence().containsRole(pk, rolePK);
648     }
649 
650     public static boolean containsRoles(long pk)
651         throws com.liferay.portal.SystemException {
652         return getPersistence().containsRoles(pk);
653     }
654 
655     public static void addRole(long pk, long rolePK)
656         throws com.liferay.portal.SystemException {
657         getPersistence().addRole(pk, rolePK);
658     }
659 
660     public static void addRole(long pk, com.liferay.portal.model.Role role)
661         throws com.liferay.portal.SystemException {
662         getPersistence().addRole(pk, role);
663     }
664 
665     public static void addRoles(long pk, long[] rolePKs)
666         throws com.liferay.portal.SystemException {
667         getPersistence().addRoles(pk, rolePKs);
668     }
669 
670     public static void addRoles(long pk,
671         java.util.List<com.liferay.portal.model.Role> roles)
672         throws com.liferay.portal.SystemException {
673         getPersistence().addRoles(pk, roles);
674     }
675 
676     public static void clearRoles(long pk)
677         throws com.liferay.portal.SystemException {
678         getPersistence().clearRoles(pk);
679     }
680 
681     public static void removeRole(long pk, long rolePK)
682         throws com.liferay.portal.SystemException {
683         getPersistence().removeRole(pk, rolePK);
684     }
685 
686     public static void removeRole(long pk, com.liferay.portal.model.Role role)
687         throws com.liferay.portal.SystemException {
688         getPersistence().removeRole(pk, role);
689     }
690 
691     public static void removeRoles(long pk, long[] rolePKs)
692         throws com.liferay.portal.SystemException {
693         getPersistence().removeRoles(pk, rolePKs);
694     }
695 
696     public static void removeRoles(long pk,
697         java.util.List<com.liferay.portal.model.Role> roles)
698         throws com.liferay.portal.SystemException {
699         getPersistence().removeRoles(pk, roles);
700     }
701 
702     public static void setRoles(long pk, long[] rolePKs)
703         throws com.liferay.portal.SystemException {
704         getPersistence().setRoles(pk, rolePKs);
705     }
706 
707     public static void setRoles(long pk,
708         java.util.List<com.liferay.portal.model.Role> roles)
709         throws com.liferay.portal.SystemException {
710         getPersistence().setRoles(pk, roles);
711     }
712 
713     public static java.util.List<com.liferay.portal.model.UserGroup> getUserGroups(
714         long pk) throws com.liferay.portal.SystemException {
715         return getPersistence().getUserGroups(pk);
716     }
717 
718     public static java.util.List<com.liferay.portal.model.UserGroup> getUserGroups(
719         long pk, int start, int end) throws com.liferay.portal.SystemException {
720         return getPersistence().getUserGroups(pk, start, end);
721     }
722 
723     public static java.util.List<com.liferay.portal.model.UserGroup> getUserGroups(
724         long pk, int start, int end,
725         com.liferay.portal.kernel.util.OrderByComparator obc)
726         throws com.liferay.portal.SystemException {
727         return getPersistence().getUserGroups(pk, start, end, obc);
728     }
729 
730     public static int getUserGroupsSize(long pk)
731         throws com.liferay.portal.SystemException {
732         return getPersistence().getUserGroupsSize(pk);
733     }
734 
735     public static boolean containsUserGroup(long pk, long userGroupPK)
736         throws com.liferay.portal.SystemException {
737         return getPersistence().containsUserGroup(pk, userGroupPK);
738     }
739 
740     public static boolean containsUserGroups(long pk)
741         throws com.liferay.portal.SystemException {
742         return getPersistence().containsUserGroups(pk);
743     }
744 
745     public static void addUserGroup(long pk, long userGroupPK)
746         throws com.liferay.portal.SystemException {
747         getPersistence().addUserGroup(pk, userGroupPK);
748     }
749 
750     public static void addUserGroup(long pk,
751         com.liferay.portal.model.UserGroup userGroup)
752         throws com.liferay.portal.SystemException {
753         getPersistence().addUserGroup(pk, userGroup);
754     }
755 
756     public static void addUserGroups(long pk, long[] userGroupPKs)
757         throws com.liferay.portal.SystemException {
758         getPersistence().addUserGroups(pk, userGroupPKs);
759     }
760 
761     public static void addUserGroups(long pk,
762         java.util.List<com.liferay.portal.model.UserGroup> userGroups)
763         throws com.liferay.portal.SystemException {
764         getPersistence().addUserGroups(pk, userGroups);
765     }
766 
767     public static void clearUserGroups(long pk)
768         throws com.liferay.portal.SystemException {
769         getPersistence().clearUserGroups(pk);
770     }
771 
772     public static void removeUserGroup(long pk, long userGroupPK)
773         throws com.liferay.portal.SystemException {
774         getPersistence().removeUserGroup(pk, userGroupPK);
775     }
776 
777     public static void removeUserGroup(long pk,
778         com.liferay.portal.model.UserGroup userGroup)
779         throws com.liferay.portal.SystemException {
780         getPersistence().removeUserGroup(pk, userGroup);
781     }
782 
783     public static void removeUserGroups(long pk, long[] userGroupPKs)
784         throws com.liferay.portal.SystemException {
785         getPersistence().removeUserGroups(pk, userGroupPKs);
786     }
787 
788     public static void removeUserGroups(long pk,
789         java.util.List<com.liferay.portal.model.UserGroup> userGroups)
790         throws com.liferay.portal.SystemException {
791         getPersistence().removeUserGroups(pk, userGroups);
792     }
793 
794     public static void setUserGroups(long pk, long[] userGroupPKs)
795         throws com.liferay.portal.SystemException {
796         getPersistence().setUserGroups(pk, userGroupPKs);
797     }
798 
799     public static void setUserGroups(long pk,
800         java.util.List<com.liferay.portal.model.UserGroup> userGroups)
801         throws com.liferay.portal.SystemException {
802         getPersistence().setUserGroups(pk, userGroups);
803     }
804 
805     public static java.util.List<com.liferay.portal.model.User> getUsers(
806         long pk) throws com.liferay.portal.SystemException {
807         return getPersistence().getUsers(pk);
808     }
809 
810     public static java.util.List<com.liferay.portal.model.User> getUsers(
811         long pk, int start, int end) throws com.liferay.portal.SystemException {
812         return getPersistence().getUsers(pk, start, end);
813     }
814 
815     public static java.util.List<com.liferay.portal.model.User> getUsers(
816         long pk, int start, int end,
817         com.liferay.portal.kernel.util.OrderByComparator obc)
818         throws com.liferay.portal.SystemException {
819         return getPersistence().getUsers(pk, start, end, obc);
820     }
821 
822     public static int getUsersSize(long pk)
823         throws com.liferay.portal.SystemException {
824         return getPersistence().getUsersSize(pk);
825     }
826 
827     public static boolean containsUser(long pk, long userPK)
828         throws com.liferay.portal.SystemException {
829         return getPersistence().containsUser(pk, userPK);
830     }
831 
832     public static boolean containsUsers(long pk)
833         throws com.liferay.portal.SystemException {
834         return getPersistence().containsUsers(pk);
835     }
836 
837     public static void addUser(long pk, long userPK)
838         throws com.liferay.portal.SystemException {
839         getPersistence().addUser(pk, userPK);
840     }
841 
842     public static void addUser(long pk, com.liferay.portal.model.User user)
843         throws com.liferay.portal.SystemException {
844         getPersistence().addUser(pk, user);
845     }
846 
847     public static void addUsers(long pk, long[] userPKs)
848         throws com.liferay.portal.SystemException {
849         getPersistence().addUsers(pk, userPKs);
850     }
851 
852     public static void addUsers(long pk,
853         java.util.List<com.liferay.portal.model.User> users)
854         throws com.liferay.portal.SystemException {
855         getPersistence().addUsers(pk, users);
856     }
857 
858     public static void clearUsers(long pk)
859         throws com.liferay.portal.SystemException {
860         getPersistence().clearUsers(pk);
861     }
862 
863     public static void removeUser(long pk, long userPK)
864         throws com.liferay.portal.SystemException {
865         getPersistence().removeUser(pk, userPK);
866     }
867 
868     public static void removeUser(long pk, com.liferay.portal.model.User user)
869         throws com.liferay.portal.SystemException {
870         getPersistence().removeUser(pk, user);
871     }
872 
873     public static void removeUsers(long pk, long[] userPKs)
874         throws com.liferay.portal.SystemException {
875         getPersistence().removeUsers(pk, userPKs);
876     }
877 
878     public static void removeUsers(long pk,
879         java.util.List<com.liferay.portal.model.User> users)
880         throws com.liferay.portal.SystemException {
881         getPersistence().removeUsers(pk, users);
882     }
883 
884     public static void setUsers(long pk, long[] userPKs)
885         throws com.liferay.portal.SystemException {
886         getPersistence().setUsers(pk, userPKs);
887     }
888 
889     public static void setUsers(long pk,
890         java.util.List<com.liferay.portal.model.User> users)
891         throws com.liferay.portal.SystemException {
892         getPersistence().setUsers(pk, users);
893     }
894 
895     public static GroupPersistence getPersistence() {
896         if (_persistence == null) {
897             _persistence = (GroupPersistence)PortalBeanLocatorUtil.locate(GroupPersistence.class.getName());
898         }
899 
900         return _persistence;
901     }
902 
903     public void setPersistence(GroupPersistence persistence) {
904         _persistence = persistence;
905     }
906 
907     private static GroupPersistence _persistence;
908 }