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 orderByComparator)
135         throws com.liferay.portal.SystemException {
136         return getPersistence()
137                    .findByCompanyId(companyId, start, end, orderByComparator);
138     }
139 
140     public static com.liferay.portal.model.Group findByCompanyId_First(
141         long companyId,
142         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
143         throws com.liferay.portal.NoSuchGroupException,
144             com.liferay.portal.SystemException {
145         return getPersistence()
146                    .findByCompanyId_First(companyId, orderByComparator);
147     }
148 
149     public static com.liferay.portal.model.Group findByCompanyId_Last(
150         long companyId,
151         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
152         throws com.liferay.portal.NoSuchGroupException,
153             com.liferay.portal.SystemException {
154         return getPersistence()
155                    .findByCompanyId_Last(companyId, orderByComparator);
156     }
157 
158     public static com.liferay.portal.model.Group[] findByCompanyId_PrevAndNext(
159         long groupId, long companyId,
160         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
161         throws com.liferay.portal.NoSuchGroupException,
162             com.liferay.portal.SystemException {
163         return getPersistence()
164                    .findByCompanyId_PrevAndNext(groupId, companyId,
165             orderByComparator);
166     }
167 
168     public static com.liferay.portal.model.Group findByLiveGroupId(
169         long liveGroupId)
170         throws com.liferay.portal.NoSuchGroupException,
171             com.liferay.portal.SystemException {
172         return getPersistence().findByLiveGroupId(liveGroupId);
173     }
174 
175     public static com.liferay.portal.model.Group fetchByLiveGroupId(
176         long liveGroupId) throws com.liferay.portal.SystemException {
177         return getPersistence().fetchByLiveGroupId(liveGroupId);
178     }
179 
180     public static com.liferay.portal.model.Group fetchByLiveGroupId(
181         long liveGroupId, boolean retrieveFromCache)
182         throws com.liferay.portal.SystemException {
183         return getPersistence()
184                    .fetchByLiveGroupId(liveGroupId, retrieveFromCache);
185     }
186 
187     public static com.liferay.portal.model.Group findByC_N(long companyId,
188         java.lang.String name)
189         throws com.liferay.portal.NoSuchGroupException,
190             com.liferay.portal.SystemException {
191         return getPersistence().findByC_N(companyId, name);
192     }
193 
194     public static com.liferay.portal.model.Group fetchByC_N(long companyId,
195         java.lang.String name) throws com.liferay.portal.SystemException {
196         return getPersistence().fetchByC_N(companyId, name);
197     }
198 
199     public static com.liferay.portal.model.Group fetchByC_N(long companyId,
200         java.lang.String name, boolean retrieveFromCache)
201         throws com.liferay.portal.SystemException {
202         return getPersistence().fetchByC_N(companyId, name, retrieveFromCache);
203     }
204 
205     public static com.liferay.portal.model.Group findByC_F(long companyId,
206         java.lang.String friendlyURL)
207         throws com.liferay.portal.NoSuchGroupException,
208             com.liferay.portal.SystemException {
209         return getPersistence().findByC_F(companyId, friendlyURL);
210     }
211 
212     public static com.liferay.portal.model.Group fetchByC_F(long companyId,
213         java.lang.String friendlyURL) throws com.liferay.portal.SystemException {
214         return getPersistence().fetchByC_F(companyId, friendlyURL);
215     }
216 
217     public static com.liferay.portal.model.Group fetchByC_F(long companyId,
218         java.lang.String friendlyURL, boolean retrieveFromCache)
219         throws com.liferay.portal.SystemException {
220         return getPersistence()
221                    .fetchByC_F(companyId, friendlyURL, retrieveFromCache);
222     }
223 
224     public static java.util.List<com.liferay.portal.model.Group> findByT_A(
225         int type, boolean active) throws com.liferay.portal.SystemException {
226         return getPersistence().findByT_A(type, active);
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         throws com.liferay.portal.SystemException {
232         return getPersistence().findByT_A(type, active, start, end);
233     }
234 
235     public static java.util.List<com.liferay.portal.model.Group> findByT_A(
236         int type, boolean active, int start, int end,
237         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
238         throws com.liferay.portal.SystemException {
239         return getPersistence()
240                    .findByT_A(type, active, start, end, orderByComparator);
241     }
242 
243     public static com.liferay.portal.model.Group findByT_A_First(int type,
244         boolean active,
245         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
246         throws com.liferay.portal.NoSuchGroupException,
247             com.liferay.portal.SystemException {
248         return getPersistence().findByT_A_First(type, active, orderByComparator);
249     }
250 
251     public static com.liferay.portal.model.Group findByT_A_Last(int type,
252         boolean active,
253         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
254         throws com.liferay.portal.NoSuchGroupException,
255             com.liferay.portal.SystemException {
256         return getPersistence().findByT_A_Last(type, active, orderByComparator);
257     }
258 
259     public static com.liferay.portal.model.Group[] findByT_A_PrevAndNext(
260         long groupId, int type, boolean active,
261         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
262         throws com.liferay.portal.NoSuchGroupException,
263             com.liferay.portal.SystemException {
264         return getPersistence()
265                    .findByT_A_PrevAndNext(groupId, type, active,
266             orderByComparator);
267     }
268 
269     public static com.liferay.portal.model.Group findByC_C_C(long companyId,
270         long classNameId, long classPK)
271         throws com.liferay.portal.NoSuchGroupException,
272             com.liferay.portal.SystemException {
273         return getPersistence().findByC_C_C(companyId, classNameId, classPK);
274     }
275 
276     public static com.liferay.portal.model.Group fetchByC_C_C(long companyId,
277         long classNameId, long classPK)
278         throws com.liferay.portal.SystemException {
279         return getPersistence().fetchByC_C_C(companyId, classNameId, classPK);
280     }
281 
282     public static com.liferay.portal.model.Group fetchByC_C_C(long companyId,
283         long classNameId, long classPK, boolean retrieveFromCache)
284         throws com.liferay.portal.SystemException {
285         return getPersistence()
286                    .fetchByC_C_C(companyId, classNameId, classPK,
287             retrieveFromCache);
288     }
289 
290     public static com.liferay.portal.model.Group findByC_L_N(long companyId,
291         long liveGroupId, java.lang.String name)
292         throws com.liferay.portal.NoSuchGroupException,
293             com.liferay.portal.SystemException {
294         return getPersistence().findByC_L_N(companyId, liveGroupId, name);
295     }
296 
297     public static com.liferay.portal.model.Group fetchByC_L_N(long companyId,
298         long liveGroupId, java.lang.String name)
299         throws com.liferay.portal.SystemException {
300         return getPersistence().fetchByC_L_N(companyId, liveGroupId, name);
301     }
302 
303     public static com.liferay.portal.model.Group fetchByC_L_N(long companyId,
304         long liveGroupId, java.lang.String name, boolean retrieveFromCache)
305         throws com.liferay.portal.SystemException {
306         return getPersistence()
307                    .fetchByC_L_N(companyId, liveGroupId, name, retrieveFromCache);
308     }
309 
310     public static com.liferay.portal.model.Group findByC_C_L_N(long companyId,
311         long classNameId, long liveGroupId, java.lang.String name)
312         throws com.liferay.portal.NoSuchGroupException,
313             com.liferay.portal.SystemException {
314         return getPersistence()
315                    .findByC_C_L_N(companyId, classNameId, liveGroupId, name);
316     }
317 
318     public static com.liferay.portal.model.Group fetchByC_C_L_N(
319         long companyId, long classNameId, long liveGroupId,
320         java.lang.String name) throws com.liferay.portal.SystemException {
321         return getPersistence()
322                    .fetchByC_C_L_N(companyId, classNameId, liveGroupId, name);
323     }
324 
325     public static com.liferay.portal.model.Group fetchByC_C_L_N(
326         long companyId, long classNameId, long liveGroupId,
327         java.lang.String name, boolean retrieveFromCache)
328         throws com.liferay.portal.SystemException {
329         return getPersistence()
330                    .fetchByC_C_L_N(companyId, classNameId, liveGroupId, name,
331             retrieveFromCache);
332     }
333 
334     public static java.util.List<com.liferay.portal.model.Group> findAll()
335         throws com.liferay.portal.SystemException {
336         return getPersistence().findAll();
337     }
338 
339     public static java.util.List<com.liferay.portal.model.Group> 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.Group> findAll(
345         int start, int end,
346         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
347         throws com.liferay.portal.SystemException {
348         return getPersistence().findAll(start, end, orderByComparator);
349     }
350 
351     public static void removeByCompanyId(long companyId)
352         throws com.liferay.portal.SystemException {
353         getPersistence().removeByCompanyId(companyId);
354     }
355 
356     public static void removeByLiveGroupId(long liveGroupId)
357         throws com.liferay.portal.NoSuchGroupException,
358             com.liferay.portal.SystemException {
359         getPersistence().removeByLiveGroupId(liveGroupId);
360     }
361 
362     public static void removeByC_N(long companyId, java.lang.String name)
363         throws com.liferay.portal.NoSuchGroupException,
364             com.liferay.portal.SystemException {
365         getPersistence().removeByC_N(companyId, name);
366     }
367 
368     public static void removeByC_F(long companyId, java.lang.String friendlyURL)
369         throws com.liferay.portal.NoSuchGroupException,
370             com.liferay.portal.SystemException {
371         getPersistence().removeByC_F(companyId, friendlyURL);
372     }
373 
374     public static void removeByT_A(int type, boolean active)
375         throws com.liferay.portal.SystemException {
376         getPersistence().removeByT_A(type, active);
377     }
378 
379     public static void removeByC_C_C(long companyId, long classNameId,
380         long classPK)
381         throws com.liferay.portal.NoSuchGroupException,
382             com.liferay.portal.SystemException {
383         getPersistence().removeByC_C_C(companyId, classNameId, classPK);
384     }
385 
386     public static void removeByC_L_N(long companyId, long liveGroupId,
387         java.lang.String name)
388         throws com.liferay.portal.NoSuchGroupException,
389             com.liferay.portal.SystemException {
390         getPersistence().removeByC_L_N(companyId, liveGroupId, name);
391     }
392 
393     public static void removeByC_C_L_N(long companyId, long classNameId,
394         long liveGroupId, java.lang.String name)
395         throws com.liferay.portal.NoSuchGroupException,
396             com.liferay.portal.SystemException {
397         getPersistence()
398             .removeByC_C_L_N(companyId, classNameId, liveGroupId, name);
399     }
400 
401     public static void removeAll() throws com.liferay.portal.SystemException {
402         getPersistence().removeAll();
403     }
404 
405     public static int countByCompanyId(long companyId)
406         throws com.liferay.portal.SystemException {
407         return getPersistence().countByCompanyId(companyId);
408     }
409 
410     public static int countByLiveGroupId(long liveGroupId)
411         throws com.liferay.portal.SystemException {
412         return getPersistence().countByLiveGroupId(liveGroupId);
413     }
414 
415     public static int countByC_N(long companyId, java.lang.String name)
416         throws com.liferay.portal.SystemException {
417         return getPersistence().countByC_N(companyId, name);
418     }
419 
420     public static int countByC_F(long companyId, java.lang.String friendlyURL)
421         throws com.liferay.portal.SystemException {
422         return getPersistence().countByC_F(companyId, friendlyURL);
423     }
424 
425     public static int countByT_A(int type, boolean active)
426         throws com.liferay.portal.SystemException {
427         return getPersistence().countByT_A(type, active);
428     }
429 
430     public static int countByC_C_C(long companyId, long classNameId,
431         long classPK) throws com.liferay.portal.SystemException {
432         return getPersistence().countByC_C_C(companyId, classNameId, classPK);
433     }
434 
435     public static int countByC_L_N(long companyId, long liveGroupId,
436         java.lang.String name) throws com.liferay.portal.SystemException {
437         return getPersistence().countByC_L_N(companyId, liveGroupId, name);
438     }
439 
440     public static int countByC_C_L_N(long companyId, long classNameId,
441         long liveGroupId, java.lang.String name)
442         throws com.liferay.portal.SystemException {
443         return getPersistence()
444                    .countByC_C_L_N(companyId, classNameId, liveGroupId, name);
445     }
446 
447     public static int countAll() throws com.liferay.portal.SystemException {
448         return getPersistence().countAll();
449     }
450 
451     public static java.util.List<com.liferay.portal.model.Organization> getOrganizations(
452         long pk) throws com.liferay.portal.SystemException {
453         return getPersistence().getOrganizations(pk);
454     }
455 
456     public static java.util.List<com.liferay.portal.model.Organization> getOrganizations(
457         long pk, int start, int end) throws com.liferay.portal.SystemException {
458         return getPersistence().getOrganizations(pk, start, end);
459     }
460 
461     public static java.util.List<com.liferay.portal.model.Organization> getOrganizations(
462         long pk, int start, int end,
463         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
464         throws com.liferay.portal.SystemException {
465         return getPersistence()
466                    .getOrganizations(pk, start, end, orderByComparator);
467     }
468 
469     public static int getOrganizationsSize(long pk)
470         throws com.liferay.portal.SystemException {
471         return getPersistence().getOrganizationsSize(pk);
472     }
473 
474     public static boolean containsOrganization(long pk, long organizationPK)
475         throws com.liferay.portal.SystemException {
476         return getPersistence().containsOrganization(pk, organizationPK);
477     }
478 
479     public static boolean containsOrganizations(long pk)
480         throws com.liferay.portal.SystemException {
481         return getPersistence().containsOrganizations(pk);
482     }
483 
484     public static void addOrganization(long pk, long organizationPK)
485         throws com.liferay.portal.SystemException {
486         getPersistence().addOrganization(pk, organizationPK);
487     }
488 
489     public static void addOrganization(long pk,
490         com.liferay.portal.model.Organization organization)
491         throws com.liferay.portal.SystemException {
492         getPersistence().addOrganization(pk, organization);
493     }
494 
495     public static void addOrganizations(long pk, long[] organizationPKs)
496         throws com.liferay.portal.SystemException {
497         getPersistence().addOrganizations(pk, organizationPKs);
498     }
499 
500     public static void addOrganizations(long pk,
501         java.util.List<com.liferay.portal.model.Organization> organizations)
502         throws com.liferay.portal.SystemException {
503         getPersistence().addOrganizations(pk, organizations);
504     }
505 
506     public static void clearOrganizations(long pk)
507         throws com.liferay.portal.SystemException {
508         getPersistence().clearOrganizations(pk);
509     }
510 
511     public static void removeOrganization(long pk, long organizationPK)
512         throws com.liferay.portal.SystemException {
513         getPersistence().removeOrganization(pk, organizationPK);
514     }
515 
516     public static void removeOrganization(long pk,
517         com.liferay.portal.model.Organization organization)
518         throws com.liferay.portal.SystemException {
519         getPersistence().removeOrganization(pk, organization);
520     }
521 
522     public static void removeOrganizations(long pk, long[] organizationPKs)
523         throws com.liferay.portal.SystemException {
524         getPersistence().removeOrganizations(pk, organizationPKs);
525     }
526 
527     public static void removeOrganizations(long pk,
528         java.util.List<com.liferay.portal.model.Organization> organizations)
529         throws com.liferay.portal.SystemException {
530         getPersistence().removeOrganizations(pk, organizations);
531     }
532 
533     public static void setOrganizations(long pk, long[] organizationPKs)
534         throws com.liferay.portal.SystemException {
535         getPersistence().setOrganizations(pk, organizationPKs);
536     }
537 
538     public static void setOrganizations(long pk,
539         java.util.List<com.liferay.portal.model.Organization> organizations)
540         throws com.liferay.portal.SystemException {
541         getPersistence().setOrganizations(pk, organizations);
542     }
543 
544     public static java.util.List<com.liferay.portal.model.Permission> getPermissions(
545         long pk) throws com.liferay.portal.SystemException {
546         return getPersistence().getPermissions(pk);
547     }
548 
549     public static java.util.List<com.liferay.portal.model.Permission> getPermissions(
550         long pk, int start, int end) throws com.liferay.portal.SystemException {
551         return getPersistence().getPermissions(pk, start, end);
552     }
553 
554     public static java.util.List<com.liferay.portal.model.Permission> getPermissions(
555         long pk, int start, int end,
556         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
557         throws com.liferay.portal.SystemException {
558         return getPersistence().getPermissions(pk, start, end, orderByComparator);
559     }
560 
561     public static int getPermissionsSize(long pk)
562         throws com.liferay.portal.SystemException {
563         return getPersistence().getPermissionsSize(pk);
564     }
565 
566     public static boolean containsPermission(long pk, long permissionPK)
567         throws com.liferay.portal.SystemException {
568         return getPersistence().containsPermission(pk, permissionPK);
569     }
570 
571     public static boolean containsPermissions(long pk)
572         throws com.liferay.portal.SystemException {
573         return getPersistence().containsPermissions(pk);
574     }
575 
576     public static void addPermission(long pk, long permissionPK)
577         throws com.liferay.portal.SystemException {
578         getPersistence().addPermission(pk, permissionPK);
579     }
580 
581     public static void addPermission(long pk,
582         com.liferay.portal.model.Permission permission)
583         throws com.liferay.portal.SystemException {
584         getPersistence().addPermission(pk, permission);
585     }
586 
587     public static void addPermissions(long pk, long[] permissionPKs)
588         throws com.liferay.portal.SystemException {
589         getPersistence().addPermissions(pk, permissionPKs);
590     }
591 
592     public static void addPermissions(long pk,
593         java.util.List<com.liferay.portal.model.Permission> permissions)
594         throws com.liferay.portal.SystemException {
595         getPersistence().addPermissions(pk, permissions);
596     }
597 
598     public static void clearPermissions(long pk)
599         throws com.liferay.portal.SystemException {
600         getPersistence().clearPermissions(pk);
601     }
602 
603     public static void removePermission(long pk, long permissionPK)
604         throws com.liferay.portal.SystemException {
605         getPersistence().removePermission(pk, permissionPK);
606     }
607 
608     public static void removePermission(long pk,
609         com.liferay.portal.model.Permission permission)
610         throws com.liferay.portal.SystemException {
611         getPersistence().removePermission(pk, permission);
612     }
613 
614     public static void removePermissions(long pk, long[] permissionPKs)
615         throws com.liferay.portal.SystemException {
616         getPersistence().removePermissions(pk, permissionPKs);
617     }
618 
619     public static void removePermissions(long pk,
620         java.util.List<com.liferay.portal.model.Permission> permissions)
621         throws com.liferay.portal.SystemException {
622         getPersistence().removePermissions(pk, permissions);
623     }
624 
625     public static void setPermissions(long pk, long[] permissionPKs)
626         throws com.liferay.portal.SystemException {
627         getPersistence().setPermissions(pk, permissionPKs);
628     }
629 
630     public static void setPermissions(long pk,
631         java.util.List<com.liferay.portal.model.Permission> permissions)
632         throws com.liferay.portal.SystemException {
633         getPersistence().setPermissions(pk, permissions);
634     }
635 
636     public static java.util.List<com.liferay.portal.model.Role> getRoles(
637         long pk) throws com.liferay.portal.SystemException {
638         return getPersistence().getRoles(pk);
639     }
640 
641     public static java.util.List<com.liferay.portal.model.Role> getRoles(
642         long pk, int start, int end) throws com.liferay.portal.SystemException {
643         return getPersistence().getRoles(pk, start, end);
644     }
645 
646     public static java.util.List<com.liferay.portal.model.Role> getRoles(
647         long pk, int start, int end,
648         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
649         throws com.liferay.portal.SystemException {
650         return getPersistence().getRoles(pk, start, end, orderByComparator);
651     }
652 
653     public static int getRolesSize(long pk)
654         throws com.liferay.portal.SystemException {
655         return getPersistence().getRolesSize(pk);
656     }
657 
658     public static boolean containsRole(long pk, long rolePK)
659         throws com.liferay.portal.SystemException {
660         return getPersistence().containsRole(pk, rolePK);
661     }
662 
663     public static boolean containsRoles(long pk)
664         throws com.liferay.portal.SystemException {
665         return getPersistence().containsRoles(pk);
666     }
667 
668     public static void addRole(long pk, long rolePK)
669         throws com.liferay.portal.SystemException {
670         getPersistence().addRole(pk, rolePK);
671     }
672 
673     public static void addRole(long pk, com.liferay.portal.model.Role role)
674         throws com.liferay.portal.SystemException {
675         getPersistence().addRole(pk, role);
676     }
677 
678     public static void addRoles(long pk, long[] rolePKs)
679         throws com.liferay.portal.SystemException {
680         getPersistence().addRoles(pk, rolePKs);
681     }
682 
683     public static void addRoles(long pk,
684         java.util.List<com.liferay.portal.model.Role> roles)
685         throws com.liferay.portal.SystemException {
686         getPersistence().addRoles(pk, roles);
687     }
688 
689     public static void clearRoles(long pk)
690         throws com.liferay.portal.SystemException {
691         getPersistence().clearRoles(pk);
692     }
693 
694     public static void removeRole(long pk, long rolePK)
695         throws com.liferay.portal.SystemException {
696         getPersistence().removeRole(pk, rolePK);
697     }
698 
699     public static void removeRole(long pk, com.liferay.portal.model.Role role)
700         throws com.liferay.portal.SystemException {
701         getPersistence().removeRole(pk, role);
702     }
703 
704     public static void removeRoles(long pk, long[] rolePKs)
705         throws com.liferay.portal.SystemException {
706         getPersistence().removeRoles(pk, rolePKs);
707     }
708 
709     public static void removeRoles(long pk,
710         java.util.List<com.liferay.portal.model.Role> roles)
711         throws com.liferay.portal.SystemException {
712         getPersistence().removeRoles(pk, roles);
713     }
714 
715     public static void setRoles(long pk, long[] rolePKs)
716         throws com.liferay.portal.SystemException {
717         getPersistence().setRoles(pk, rolePKs);
718     }
719 
720     public static void setRoles(long pk,
721         java.util.List<com.liferay.portal.model.Role> roles)
722         throws com.liferay.portal.SystemException {
723         getPersistence().setRoles(pk, roles);
724     }
725 
726     public static java.util.List<com.liferay.portal.model.UserGroup> getUserGroups(
727         long pk) throws com.liferay.portal.SystemException {
728         return getPersistence().getUserGroups(pk);
729     }
730 
731     public static java.util.List<com.liferay.portal.model.UserGroup> getUserGroups(
732         long pk, int start, int end) throws com.liferay.portal.SystemException {
733         return getPersistence().getUserGroups(pk, start, end);
734     }
735 
736     public static java.util.List<com.liferay.portal.model.UserGroup> getUserGroups(
737         long pk, int start, int end,
738         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
739         throws com.liferay.portal.SystemException {
740         return getPersistence().getUserGroups(pk, start, end, orderByComparator);
741     }
742 
743     public static int getUserGroupsSize(long pk)
744         throws com.liferay.portal.SystemException {
745         return getPersistence().getUserGroupsSize(pk);
746     }
747 
748     public static boolean containsUserGroup(long pk, long userGroupPK)
749         throws com.liferay.portal.SystemException {
750         return getPersistence().containsUserGroup(pk, userGroupPK);
751     }
752 
753     public static boolean containsUserGroups(long pk)
754         throws com.liferay.portal.SystemException {
755         return getPersistence().containsUserGroups(pk);
756     }
757 
758     public static void addUserGroup(long pk, long userGroupPK)
759         throws com.liferay.portal.SystemException {
760         getPersistence().addUserGroup(pk, userGroupPK);
761     }
762 
763     public static void addUserGroup(long pk,
764         com.liferay.portal.model.UserGroup userGroup)
765         throws com.liferay.portal.SystemException {
766         getPersistence().addUserGroup(pk, userGroup);
767     }
768 
769     public static void addUserGroups(long pk, long[] userGroupPKs)
770         throws com.liferay.portal.SystemException {
771         getPersistence().addUserGroups(pk, userGroupPKs);
772     }
773 
774     public static void addUserGroups(long pk,
775         java.util.List<com.liferay.portal.model.UserGroup> userGroups)
776         throws com.liferay.portal.SystemException {
777         getPersistence().addUserGroups(pk, userGroups);
778     }
779 
780     public static void clearUserGroups(long pk)
781         throws com.liferay.portal.SystemException {
782         getPersistence().clearUserGroups(pk);
783     }
784 
785     public static void removeUserGroup(long pk, long userGroupPK)
786         throws com.liferay.portal.SystemException {
787         getPersistence().removeUserGroup(pk, userGroupPK);
788     }
789 
790     public static void removeUserGroup(long pk,
791         com.liferay.portal.model.UserGroup userGroup)
792         throws com.liferay.portal.SystemException {
793         getPersistence().removeUserGroup(pk, userGroup);
794     }
795 
796     public static void removeUserGroups(long pk, long[] userGroupPKs)
797         throws com.liferay.portal.SystemException {
798         getPersistence().removeUserGroups(pk, userGroupPKs);
799     }
800 
801     public static void removeUserGroups(long pk,
802         java.util.List<com.liferay.portal.model.UserGroup> userGroups)
803         throws com.liferay.portal.SystemException {
804         getPersistence().removeUserGroups(pk, userGroups);
805     }
806 
807     public static void setUserGroups(long pk, long[] userGroupPKs)
808         throws com.liferay.portal.SystemException {
809         getPersistence().setUserGroups(pk, userGroupPKs);
810     }
811 
812     public static void setUserGroups(long pk,
813         java.util.List<com.liferay.portal.model.UserGroup> userGroups)
814         throws com.liferay.portal.SystemException {
815         getPersistence().setUserGroups(pk, userGroups);
816     }
817 
818     public static java.util.List<com.liferay.portal.model.User> getUsers(
819         long pk) throws com.liferay.portal.SystemException {
820         return getPersistence().getUsers(pk);
821     }
822 
823     public static java.util.List<com.liferay.portal.model.User> getUsers(
824         long pk, int start, int end) throws com.liferay.portal.SystemException {
825         return getPersistence().getUsers(pk, start, end);
826     }
827 
828     public static java.util.List<com.liferay.portal.model.User> getUsers(
829         long pk, int start, int end,
830         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
831         throws com.liferay.portal.SystemException {
832         return getPersistence().getUsers(pk, start, end, orderByComparator);
833     }
834 
835     public static int getUsersSize(long pk)
836         throws com.liferay.portal.SystemException {
837         return getPersistence().getUsersSize(pk);
838     }
839 
840     public static boolean containsUser(long pk, long userPK)
841         throws com.liferay.portal.SystemException {
842         return getPersistence().containsUser(pk, userPK);
843     }
844 
845     public static boolean containsUsers(long pk)
846         throws com.liferay.portal.SystemException {
847         return getPersistence().containsUsers(pk);
848     }
849 
850     public static void addUser(long pk, long userPK)
851         throws com.liferay.portal.SystemException {
852         getPersistence().addUser(pk, userPK);
853     }
854 
855     public static void addUser(long pk, com.liferay.portal.model.User user)
856         throws com.liferay.portal.SystemException {
857         getPersistence().addUser(pk, user);
858     }
859 
860     public static void addUsers(long pk, long[] userPKs)
861         throws com.liferay.portal.SystemException {
862         getPersistence().addUsers(pk, userPKs);
863     }
864 
865     public static void addUsers(long pk,
866         java.util.List<com.liferay.portal.model.User> users)
867         throws com.liferay.portal.SystemException {
868         getPersistence().addUsers(pk, users);
869     }
870 
871     public static void clearUsers(long pk)
872         throws com.liferay.portal.SystemException {
873         getPersistence().clearUsers(pk);
874     }
875 
876     public static void removeUser(long pk, long userPK)
877         throws com.liferay.portal.SystemException {
878         getPersistence().removeUser(pk, userPK);
879     }
880 
881     public static void removeUser(long pk, com.liferay.portal.model.User user)
882         throws com.liferay.portal.SystemException {
883         getPersistence().removeUser(pk, user);
884     }
885 
886     public static void removeUsers(long pk, long[] userPKs)
887         throws com.liferay.portal.SystemException {
888         getPersistence().removeUsers(pk, userPKs);
889     }
890 
891     public static void removeUsers(long pk,
892         java.util.List<com.liferay.portal.model.User> users)
893         throws com.liferay.portal.SystemException {
894         getPersistence().removeUsers(pk, users);
895     }
896 
897     public static void setUsers(long pk, long[] userPKs)
898         throws com.liferay.portal.SystemException {
899         getPersistence().setUsers(pk, userPKs);
900     }
901 
902     public static void setUsers(long pk,
903         java.util.List<com.liferay.portal.model.User> users)
904         throws com.liferay.portal.SystemException {
905         getPersistence().setUsers(pk, users);
906     }
907 
908     public static GroupPersistence getPersistence() {
909         if (_persistence == null) {
910             _persistence = (GroupPersistence)PortalBeanLocatorUtil.locate(GroupPersistence.class.getName());
911         }
912 
913         return _persistence;
914     }
915 
916     public void setPersistence(GroupPersistence persistence) {
917         _persistence = persistence;
918     }
919 
920     private static GroupPersistence _persistence;
921 }