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