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