1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portal.service.persistence;
16  
17  import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18  import com.liferay.portal.kernel.dao.orm.DynamicQuery;
19  import com.liferay.portal.kernel.exception.SystemException;
20  import com.liferay.portal.model.Role;
21  
22  import java.util.List;
23  
24  /**
25   * <a href="RoleUtil.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       RolePersistence
34   * @see       RolePersistenceImpl
35   * @generated
36   */
37  public class RoleUtil {
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#clearCache(Role)
47       */
48      public static void clearCache(Role role) {
49          getPersistence().clearCache(role);
50      }
51  
52      /**
53       * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
54       */
55      public long countWithDynamicQuery(DynamicQuery dynamicQuery)
56          throws SystemException {
57          return getPersistence().countWithDynamicQuery(dynamicQuery);
58      }
59  
60      /**
61       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
62       */
63      public static List<Role> findWithDynamicQuery(DynamicQuery dynamicQuery)
64          throws SystemException {
65          return getPersistence().findWithDynamicQuery(dynamicQuery);
66      }
67  
68      /**
69       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
70       */
71      public static List<Role> findWithDynamicQuery(DynamicQuery dynamicQuery,
72          int start, int end) throws SystemException {
73          return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
74      }
75  
76      /**
77       * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel)
78       */
79      public static Role remove(Role role) throws SystemException {
80          return getPersistence().remove(role);
81      }
82  
83      /**
84       * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
85       */
86      public static Role update(Role role, boolean merge)
87          throws SystemException {
88          return getPersistence().update(role, merge);
89      }
90  
91      public static void cacheResult(com.liferay.portal.model.Role role) {
92          getPersistence().cacheResult(role);
93      }
94  
95      public static void cacheResult(
96          java.util.List<com.liferay.portal.model.Role> roles) {
97          getPersistence().cacheResult(roles);
98      }
99  
100     public static com.liferay.portal.model.Role create(long roleId) {
101         return getPersistence().create(roleId);
102     }
103 
104     public static com.liferay.portal.model.Role remove(long roleId)
105         throws com.liferay.portal.NoSuchRoleException,
106             com.liferay.portal.kernel.exception.SystemException {
107         return getPersistence().remove(roleId);
108     }
109 
110     public static com.liferay.portal.model.Role updateImpl(
111         com.liferay.portal.model.Role role, boolean merge)
112         throws com.liferay.portal.kernel.exception.SystemException {
113         return getPersistence().updateImpl(role, merge);
114     }
115 
116     public static com.liferay.portal.model.Role findByPrimaryKey(long roleId)
117         throws com.liferay.portal.NoSuchRoleException,
118             com.liferay.portal.kernel.exception.SystemException {
119         return getPersistence().findByPrimaryKey(roleId);
120     }
121 
122     public static com.liferay.portal.model.Role fetchByPrimaryKey(long roleId)
123         throws com.liferay.portal.kernel.exception.SystemException {
124         return getPersistence().fetchByPrimaryKey(roleId);
125     }
126 
127     public static java.util.List<com.liferay.portal.model.Role> findByCompanyId(
128         long companyId)
129         throws com.liferay.portal.kernel.exception.SystemException {
130         return getPersistence().findByCompanyId(companyId);
131     }
132 
133     public static java.util.List<com.liferay.portal.model.Role> findByCompanyId(
134         long companyId, int start, int end)
135         throws com.liferay.portal.kernel.exception.SystemException {
136         return getPersistence().findByCompanyId(companyId, start, end);
137     }
138 
139     public static java.util.List<com.liferay.portal.model.Role> findByCompanyId(
140         long companyId, int start, int end,
141         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
142         throws com.liferay.portal.kernel.exception.SystemException {
143         return getPersistence()
144                    .findByCompanyId(companyId, start, end, orderByComparator);
145     }
146 
147     public static com.liferay.portal.model.Role findByCompanyId_First(
148         long companyId,
149         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
150         throws com.liferay.portal.NoSuchRoleException,
151             com.liferay.portal.kernel.exception.SystemException {
152         return getPersistence()
153                    .findByCompanyId_First(companyId, orderByComparator);
154     }
155 
156     public static com.liferay.portal.model.Role findByCompanyId_Last(
157         long companyId,
158         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
159         throws com.liferay.portal.NoSuchRoleException,
160             com.liferay.portal.kernel.exception.SystemException {
161         return getPersistence()
162                    .findByCompanyId_Last(companyId, orderByComparator);
163     }
164 
165     public static com.liferay.portal.model.Role[] findByCompanyId_PrevAndNext(
166         long roleId, long companyId,
167         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
168         throws com.liferay.portal.NoSuchRoleException,
169             com.liferay.portal.kernel.exception.SystemException {
170         return getPersistence()
171                    .findByCompanyId_PrevAndNext(roleId, companyId,
172             orderByComparator);
173     }
174 
175     public static java.util.List<com.liferay.portal.model.Role> findBySubtype(
176         java.lang.String subtype)
177         throws com.liferay.portal.kernel.exception.SystemException {
178         return getPersistence().findBySubtype(subtype);
179     }
180 
181     public static java.util.List<com.liferay.portal.model.Role> findBySubtype(
182         java.lang.String subtype, int start, int end)
183         throws com.liferay.portal.kernel.exception.SystemException {
184         return getPersistence().findBySubtype(subtype, start, end);
185     }
186 
187     public static java.util.List<com.liferay.portal.model.Role> findBySubtype(
188         java.lang.String subtype, int start, int end,
189         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
190         throws com.liferay.portal.kernel.exception.SystemException {
191         return getPersistence()
192                    .findBySubtype(subtype, start, end, orderByComparator);
193     }
194 
195     public static com.liferay.portal.model.Role findBySubtype_First(
196         java.lang.String subtype,
197         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
198         throws com.liferay.portal.NoSuchRoleException,
199             com.liferay.portal.kernel.exception.SystemException {
200         return getPersistence().findBySubtype_First(subtype, orderByComparator);
201     }
202 
203     public static com.liferay.portal.model.Role findBySubtype_Last(
204         java.lang.String subtype,
205         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
206         throws com.liferay.portal.NoSuchRoleException,
207             com.liferay.portal.kernel.exception.SystemException {
208         return getPersistence().findBySubtype_Last(subtype, orderByComparator);
209     }
210 
211     public static com.liferay.portal.model.Role[] findBySubtype_PrevAndNext(
212         long roleId, java.lang.String subtype,
213         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
214         throws com.liferay.portal.NoSuchRoleException,
215             com.liferay.portal.kernel.exception.SystemException {
216         return getPersistence()
217                    .findBySubtype_PrevAndNext(roleId, subtype, orderByComparator);
218     }
219 
220     public static com.liferay.portal.model.Role findByC_N(long companyId,
221         java.lang.String name)
222         throws com.liferay.portal.NoSuchRoleException,
223             com.liferay.portal.kernel.exception.SystemException {
224         return getPersistence().findByC_N(companyId, name);
225     }
226 
227     public static com.liferay.portal.model.Role fetchByC_N(long companyId,
228         java.lang.String name)
229         throws com.liferay.portal.kernel.exception.SystemException {
230         return getPersistence().fetchByC_N(companyId, name);
231     }
232 
233     public static com.liferay.portal.model.Role fetchByC_N(long companyId,
234         java.lang.String name, boolean retrieveFromCache)
235         throws com.liferay.portal.kernel.exception.SystemException {
236         return getPersistence().fetchByC_N(companyId, name, retrieveFromCache);
237     }
238 
239     public static java.util.List<com.liferay.portal.model.Role> findByT_S(
240         int type, java.lang.String subtype)
241         throws com.liferay.portal.kernel.exception.SystemException {
242         return getPersistence().findByT_S(type, subtype);
243     }
244 
245     public static java.util.List<com.liferay.portal.model.Role> findByT_S(
246         int type, java.lang.String subtype, int start, int end)
247         throws com.liferay.portal.kernel.exception.SystemException {
248         return getPersistence().findByT_S(type, subtype, start, end);
249     }
250 
251     public static java.util.List<com.liferay.portal.model.Role> findByT_S(
252         int type, java.lang.String subtype, int start, int end,
253         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
254         throws com.liferay.portal.kernel.exception.SystemException {
255         return getPersistence()
256                    .findByT_S(type, subtype, start, end, orderByComparator);
257     }
258 
259     public static com.liferay.portal.model.Role findByT_S_First(int type,
260         java.lang.String subtype,
261         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
262         throws com.liferay.portal.NoSuchRoleException,
263             com.liferay.portal.kernel.exception.SystemException {
264         return getPersistence().findByT_S_First(type, subtype, orderByComparator);
265     }
266 
267     public static com.liferay.portal.model.Role findByT_S_Last(int type,
268         java.lang.String subtype,
269         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
270         throws com.liferay.portal.NoSuchRoleException,
271             com.liferay.portal.kernel.exception.SystemException {
272         return getPersistence().findByT_S_Last(type, subtype, orderByComparator);
273     }
274 
275     public static com.liferay.portal.model.Role[] findByT_S_PrevAndNext(
276         long roleId, int type, java.lang.String subtype,
277         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
278         throws com.liferay.portal.NoSuchRoleException,
279             com.liferay.portal.kernel.exception.SystemException {
280         return getPersistence()
281                    .findByT_S_PrevAndNext(roleId, type, subtype,
282             orderByComparator);
283     }
284 
285     public static com.liferay.portal.model.Role findByC_C_C(long companyId,
286         long classNameId, long classPK)
287         throws com.liferay.portal.NoSuchRoleException,
288             com.liferay.portal.kernel.exception.SystemException {
289         return getPersistence().findByC_C_C(companyId, classNameId, classPK);
290     }
291 
292     public static com.liferay.portal.model.Role fetchByC_C_C(long companyId,
293         long classNameId, long classPK)
294         throws com.liferay.portal.kernel.exception.SystemException {
295         return getPersistence().fetchByC_C_C(companyId, classNameId, classPK);
296     }
297 
298     public static com.liferay.portal.model.Role fetchByC_C_C(long companyId,
299         long classNameId, long classPK, boolean retrieveFromCache)
300         throws com.liferay.portal.kernel.exception.SystemException {
301         return getPersistence()
302                    .fetchByC_C_C(companyId, classNameId, classPK,
303             retrieveFromCache);
304     }
305 
306     public static java.util.List<com.liferay.portal.model.Role> findAll()
307         throws com.liferay.portal.kernel.exception.SystemException {
308         return getPersistence().findAll();
309     }
310 
311     public static java.util.List<com.liferay.portal.model.Role> findAll(
312         int start, int end)
313         throws com.liferay.portal.kernel.exception.SystemException {
314         return getPersistence().findAll(start, end);
315     }
316 
317     public static java.util.List<com.liferay.portal.model.Role> findAll(
318         int start, int end,
319         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
320         throws com.liferay.portal.kernel.exception.SystemException {
321         return getPersistence().findAll(start, end, orderByComparator);
322     }
323 
324     public static void removeByCompanyId(long companyId)
325         throws com.liferay.portal.kernel.exception.SystemException {
326         getPersistence().removeByCompanyId(companyId);
327     }
328 
329     public static void removeBySubtype(java.lang.String subtype)
330         throws com.liferay.portal.kernel.exception.SystemException {
331         getPersistence().removeBySubtype(subtype);
332     }
333 
334     public static void removeByC_N(long companyId, java.lang.String name)
335         throws com.liferay.portal.NoSuchRoleException,
336             com.liferay.portal.kernel.exception.SystemException {
337         getPersistence().removeByC_N(companyId, name);
338     }
339 
340     public static void removeByT_S(int type, java.lang.String subtype)
341         throws com.liferay.portal.kernel.exception.SystemException {
342         getPersistence().removeByT_S(type, subtype);
343     }
344 
345     public static void removeByC_C_C(long companyId, long classNameId,
346         long classPK)
347         throws com.liferay.portal.NoSuchRoleException,
348             com.liferay.portal.kernel.exception.SystemException {
349         getPersistence().removeByC_C_C(companyId, classNameId, classPK);
350     }
351 
352     public static void removeAll()
353         throws com.liferay.portal.kernel.exception.SystemException {
354         getPersistence().removeAll();
355     }
356 
357     public static int countByCompanyId(long companyId)
358         throws com.liferay.portal.kernel.exception.SystemException {
359         return getPersistence().countByCompanyId(companyId);
360     }
361 
362     public static int countBySubtype(java.lang.String subtype)
363         throws com.liferay.portal.kernel.exception.SystemException {
364         return getPersistence().countBySubtype(subtype);
365     }
366 
367     public static int countByC_N(long companyId, java.lang.String name)
368         throws com.liferay.portal.kernel.exception.SystemException {
369         return getPersistence().countByC_N(companyId, name);
370     }
371 
372     public static int countByT_S(int type, java.lang.String subtype)
373         throws com.liferay.portal.kernel.exception.SystemException {
374         return getPersistence().countByT_S(type, subtype);
375     }
376 
377     public static int countByC_C_C(long companyId, long classNameId,
378         long classPK)
379         throws com.liferay.portal.kernel.exception.SystemException {
380         return getPersistence().countByC_C_C(companyId, classNameId, classPK);
381     }
382 
383     public static int countAll()
384         throws com.liferay.portal.kernel.exception.SystemException {
385         return getPersistence().countAll();
386     }
387 
388     public static java.util.List<com.liferay.portal.model.Group> getGroups(
389         long pk) throws com.liferay.portal.kernel.exception.SystemException {
390         return getPersistence().getGroups(pk);
391     }
392 
393     public static java.util.List<com.liferay.portal.model.Group> getGroups(
394         long pk, int start, int end)
395         throws com.liferay.portal.kernel.exception.SystemException {
396         return getPersistence().getGroups(pk, start, end);
397     }
398 
399     public static java.util.List<com.liferay.portal.model.Group> getGroups(
400         long pk, int start, int end,
401         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
402         throws com.liferay.portal.kernel.exception.SystemException {
403         return getPersistence().getGroups(pk, start, end, orderByComparator);
404     }
405 
406     public static int getGroupsSize(long pk)
407         throws com.liferay.portal.kernel.exception.SystemException {
408         return getPersistence().getGroupsSize(pk);
409     }
410 
411     public static boolean containsGroup(long pk, long groupPK)
412         throws com.liferay.portal.kernel.exception.SystemException {
413         return getPersistence().containsGroup(pk, groupPK);
414     }
415 
416     public static boolean containsGroups(long pk)
417         throws com.liferay.portal.kernel.exception.SystemException {
418         return getPersistence().containsGroups(pk);
419     }
420 
421     public static void addGroup(long pk, long groupPK)
422         throws com.liferay.portal.kernel.exception.SystemException {
423         getPersistence().addGroup(pk, groupPK);
424     }
425 
426     public static void addGroup(long pk, com.liferay.portal.model.Group group)
427         throws com.liferay.portal.kernel.exception.SystemException {
428         getPersistence().addGroup(pk, group);
429     }
430 
431     public static void addGroups(long pk, long[] groupPKs)
432         throws com.liferay.portal.kernel.exception.SystemException {
433         getPersistence().addGroups(pk, groupPKs);
434     }
435 
436     public static void addGroups(long pk,
437         java.util.List<com.liferay.portal.model.Group> groups)
438         throws com.liferay.portal.kernel.exception.SystemException {
439         getPersistence().addGroups(pk, groups);
440     }
441 
442     public static void clearGroups(long pk)
443         throws com.liferay.portal.kernel.exception.SystemException {
444         getPersistence().clearGroups(pk);
445     }
446 
447     public static void removeGroup(long pk, long groupPK)
448         throws com.liferay.portal.kernel.exception.SystemException {
449         getPersistence().removeGroup(pk, groupPK);
450     }
451 
452     public static void removeGroup(long pk, com.liferay.portal.model.Group group)
453         throws com.liferay.portal.kernel.exception.SystemException {
454         getPersistence().removeGroup(pk, group);
455     }
456 
457     public static void removeGroups(long pk, long[] groupPKs)
458         throws com.liferay.portal.kernel.exception.SystemException {
459         getPersistence().removeGroups(pk, groupPKs);
460     }
461 
462     public static void removeGroups(long pk,
463         java.util.List<com.liferay.portal.model.Group> groups)
464         throws com.liferay.portal.kernel.exception.SystemException {
465         getPersistence().removeGroups(pk, groups);
466     }
467 
468     public static void setGroups(long pk, long[] groupPKs)
469         throws com.liferay.portal.kernel.exception.SystemException {
470         getPersistence().setGroups(pk, groupPKs);
471     }
472 
473     public static void setGroups(long pk,
474         java.util.List<com.liferay.portal.model.Group> groups)
475         throws com.liferay.portal.kernel.exception.SystemException {
476         getPersistence().setGroups(pk, groups);
477     }
478 
479     public static java.util.List<com.liferay.portal.model.Permission> getPermissions(
480         long pk) throws com.liferay.portal.kernel.exception.SystemException {
481         return getPersistence().getPermissions(pk);
482     }
483 
484     public static java.util.List<com.liferay.portal.model.Permission> getPermissions(
485         long pk, int start, int end)
486         throws com.liferay.portal.kernel.exception.SystemException {
487         return getPersistence().getPermissions(pk, start, end);
488     }
489 
490     public static java.util.List<com.liferay.portal.model.Permission> getPermissions(
491         long pk, int start, int end,
492         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
493         throws com.liferay.portal.kernel.exception.SystemException {
494         return getPersistence().getPermissions(pk, start, end, orderByComparator);
495     }
496 
497     public static int getPermissionsSize(long pk)
498         throws com.liferay.portal.kernel.exception.SystemException {
499         return getPersistence().getPermissionsSize(pk);
500     }
501 
502     public static boolean containsPermission(long pk, long permissionPK)
503         throws com.liferay.portal.kernel.exception.SystemException {
504         return getPersistence().containsPermission(pk, permissionPK);
505     }
506 
507     public static boolean containsPermissions(long pk)
508         throws com.liferay.portal.kernel.exception.SystemException {
509         return getPersistence().containsPermissions(pk);
510     }
511 
512     public static void addPermission(long pk, long permissionPK)
513         throws com.liferay.portal.kernel.exception.SystemException {
514         getPersistence().addPermission(pk, permissionPK);
515     }
516 
517     public static void addPermission(long pk,
518         com.liferay.portal.model.Permission permission)
519         throws com.liferay.portal.kernel.exception.SystemException {
520         getPersistence().addPermission(pk, permission);
521     }
522 
523     public static void addPermissions(long pk, long[] permissionPKs)
524         throws com.liferay.portal.kernel.exception.SystemException {
525         getPersistence().addPermissions(pk, permissionPKs);
526     }
527 
528     public static void addPermissions(long pk,
529         java.util.List<com.liferay.portal.model.Permission> permissions)
530         throws com.liferay.portal.kernel.exception.SystemException {
531         getPersistence().addPermissions(pk, permissions);
532     }
533 
534     public static void clearPermissions(long pk)
535         throws com.liferay.portal.kernel.exception.SystemException {
536         getPersistence().clearPermissions(pk);
537     }
538 
539     public static void removePermission(long pk, long permissionPK)
540         throws com.liferay.portal.kernel.exception.SystemException {
541         getPersistence().removePermission(pk, permissionPK);
542     }
543 
544     public static void removePermission(long pk,
545         com.liferay.portal.model.Permission permission)
546         throws com.liferay.portal.kernel.exception.SystemException {
547         getPersistence().removePermission(pk, permission);
548     }
549 
550     public static void removePermissions(long pk, long[] permissionPKs)
551         throws com.liferay.portal.kernel.exception.SystemException {
552         getPersistence().removePermissions(pk, permissionPKs);
553     }
554 
555     public static void removePermissions(long pk,
556         java.util.List<com.liferay.portal.model.Permission> permissions)
557         throws com.liferay.portal.kernel.exception.SystemException {
558         getPersistence().removePermissions(pk, permissions);
559     }
560 
561     public static void setPermissions(long pk, long[] permissionPKs)
562         throws com.liferay.portal.kernel.exception.SystemException {
563         getPersistence().setPermissions(pk, permissionPKs);
564     }
565 
566     public static void setPermissions(long pk,
567         java.util.List<com.liferay.portal.model.Permission> permissions)
568         throws com.liferay.portal.kernel.exception.SystemException {
569         getPersistence().setPermissions(pk, permissions);
570     }
571 
572     public static java.util.List<com.liferay.portal.model.User> getUsers(
573         long pk) throws com.liferay.portal.kernel.exception.SystemException {
574         return getPersistence().getUsers(pk);
575     }
576 
577     public static java.util.List<com.liferay.portal.model.User> getUsers(
578         long pk, int start, int end)
579         throws com.liferay.portal.kernel.exception.SystemException {
580         return getPersistence().getUsers(pk, start, end);
581     }
582 
583     public static java.util.List<com.liferay.portal.model.User> getUsers(
584         long pk, int start, int end,
585         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
586         throws com.liferay.portal.kernel.exception.SystemException {
587         return getPersistence().getUsers(pk, start, end, orderByComparator);
588     }
589 
590     public static int getUsersSize(long pk)
591         throws com.liferay.portal.kernel.exception.SystemException {
592         return getPersistence().getUsersSize(pk);
593     }
594 
595     public static boolean containsUser(long pk, long userPK)
596         throws com.liferay.portal.kernel.exception.SystemException {
597         return getPersistence().containsUser(pk, userPK);
598     }
599 
600     public static boolean containsUsers(long pk)
601         throws com.liferay.portal.kernel.exception.SystemException {
602         return getPersistence().containsUsers(pk);
603     }
604 
605     public static void addUser(long pk, long userPK)
606         throws com.liferay.portal.kernel.exception.SystemException {
607         getPersistence().addUser(pk, userPK);
608     }
609 
610     public static void addUser(long pk, com.liferay.portal.model.User user)
611         throws com.liferay.portal.kernel.exception.SystemException {
612         getPersistence().addUser(pk, user);
613     }
614 
615     public static void addUsers(long pk, long[] userPKs)
616         throws com.liferay.portal.kernel.exception.SystemException {
617         getPersistence().addUsers(pk, userPKs);
618     }
619 
620     public static void addUsers(long pk,
621         java.util.List<com.liferay.portal.model.User> users)
622         throws com.liferay.portal.kernel.exception.SystemException {
623         getPersistence().addUsers(pk, users);
624     }
625 
626     public static void clearUsers(long pk)
627         throws com.liferay.portal.kernel.exception.SystemException {
628         getPersistence().clearUsers(pk);
629     }
630 
631     public static void removeUser(long pk, long userPK)
632         throws com.liferay.portal.kernel.exception.SystemException {
633         getPersistence().removeUser(pk, userPK);
634     }
635 
636     public static void removeUser(long pk, com.liferay.portal.model.User user)
637         throws com.liferay.portal.kernel.exception.SystemException {
638         getPersistence().removeUser(pk, user);
639     }
640 
641     public static void removeUsers(long pk, long[] userPKs)
642         throws com.liferay.portal.kernel.exception.SystemException {
643         getPersistence().removeUsers(pk, userPKs);
644     }
645 
646     public static void removeUsers(long pk,
647         java.util.List<com.liferay.portal.model.User> users)
648         throws com.liferay.portal.kernel.exception.SystemException {
649         getPersistence().removeUsers(pk, users);
650     }
651 
652     public static void setUsers(long pk, long[] userPKs)
653         throws com.liferay.portal.kernel.exception.SystemException {
654         getPersistence().setUsers(pk, userPKs);
655     }
656 
657     public static void setUsers(long pk,
658         java.util.List<com.liferay.portal.model.User> users)
659         throws com.liferay.portal.kernel.exception.SystemException {
660         getPersistence().setUsers(pk, users);
661     }
662 
663     public static RolePersistence getPersistence() {
664         if (_persistence == null) {
665             _persistence = (RolePersistence)PortalBeanLocatorUtil.locate(RolePersistence.class.getName());
666         }
667 
668         return _persistence;
669     }
670 
671     public void setPersistence(RolePersistence persistence) {
672         _persistence = persistence;
673     }
674 
675     private static RolePersistence _persistence;
676 }