001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.service.persistence;
016    
017    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018    import com.liferay.portal.kernel.dao.orm.DynamicQuery;
019    import com.liferay.portal.kernel.exception.SystemException;
020    import com.liferay.portal.kernel.util.OrderByComparator;
021    import com.liferay.portal.model.Role;
022    import com.liferay.portal.service.ServiceContext;
023    
024    import java.util.List;
025    
026    /**
027     * @author    Brian Wing Shun Chan
028     * @see       RolePersistence
029     * @see       RolePersistenceImpl
030     * @generated
031     */
032    public class RoleUtil {
033            /**
034             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
035             */
036            public static void clearCache() {
037                    getPersistence().clearCache();
038            }
039    
040            /**
041             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel)
042             */
043            public static void clearCache(Role role) {
044                    getPersistence().clearCache(role);
045            }
046    
047            /**
048             * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
049             */
050            public long countWithDynamicQuery(DynamicQuery dynamicQuery)
051                    throws SystemException {
052                    return getPersistence().countWithDynamicQuery(dynamicQuery);
053            }
054    
055            /**
056             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
057             */
058            public static List<Role> findWithDynamicQuery(DynamicQuery dynamicQuery)
059                    throws SystemException {
060                    return getPersistence().findWithDynamicQuery(dynamicQuery);
061            }
062    
063            /**
064             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
065             */
066            public static List<Role> findWithDynamicQuery(DynamicQuery dynamicQuery,
067                    int start, int end) throws SystemException {
068                    return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
069            }
070    
071            /**
072             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
073             */
074            public static List<Role> findWithDynamicQuery(DynamicQuery dynamicQuery,
075                    int start, int end, OrderByComparator orderByComparator)
076                    throws SystemException {
077                    return getPersistence()
078                                       .findWithDynamicQuery(dynamicQuery, start, end,
079                            orderByComparator);
080            }
081    
082            /**
083             * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel)
084             */
085            public static Role remove(Role role) throws SystemException {
086                    return getPersistence().remove(role);
087            }
088    
089            /**
090             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
091             */
092            public static Role update(Role role, boolean merge)
093                    throws SystemException {
094                    return getPersistence().update(role, merge);
095            }
096    
097            /**
098             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)
099             */
100            public static Role update(Role role, boolean merge,
101                    ServiceContext serviceContext) throws SystemException {
102                    return getPersistence().update(role, merge, serviceContext);
103            }
104    
105            public static void cacheResult(com.liferay.portal.model.Role role) {
106                    getPersistence().cacheResult(role);
107            }
108    
109            public static void cacheResult(
110                    java.util.List<com.liferay.portal.model.Role> roles) {
111                    getPersistence().cacheResult(roles);
112            }
113    
114            public static com.liferay.portal.model.Role create(long roleId) {
115                    return getPersistence().create(roleId);
116            }
117    
118            public static com.liferay.portal.model.Role remove(long roleId)
119                    throws com.liferay.portal.NoSuchRoleException,
120                            com.liferay.portal.kernel.exception.SystemException {
121                    return getPersistence().remove(roleId);
122            }
123    
124            public static com.liferay.portal.model.Role updateImpl(
125                    com.liferay.portal.model.Role role, boolean merge)
126                    throws com.liferay.portal.kernel.exception.SystemException {
127                    return getPersistence().updateImpl(role, merge);
128            }
129    
130            public static com.liferay.portal.model.Role findByPrimaryKey(long roleId)
131                    throws com.liferay.portal.NoSuchRoleException,
132                            com.liferay.portal.kernel.exception.SystemException {
133                    return getPersistence().findByPrimaryKey(roleId);
134            }
135    
136            public static com.liferay.portal.model.Role fetchByPrimaryKey(long roleId)
137                    throws com.liferay.portal.kernel.exception.SystemException {
138                    return getPersistence().fetchByPrimaryKey(roleId);
139            }
140    
141            public static java.util.List<com.liferay.portal.model.Role> findByCompanyId(
142                    long companyId)
143                    throws com.liferay.portal.kernel.exception.SystemException {
144                    return getPersistence().findByCompanyId(companyId);
145            }
146    
147            public static java.util.List<com.liferay.portal.model.Role> findByCompanyId(
148                    long companyId, int start, int end)
149                    throws com.liferay.portal.kernel.exception.SystemException {
150                    return getPersistence().findByCompanyId(companyId, start, end);
151            }
152    
153            public static java.util.List<com.liferay.portal.model.Role> findByCompanyId(
154                    long companyId, int start, int end,
155                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
156                    throws com.liferay.portal.kernel.exception.SystemException {
157                    return getPersistence()
158                                       .findByCompanyId(companyId, start, end, orderByComparator);
159            }
160    
161            public static com.liferay.portal.model.Role findByCompanyId_First(
162                    long companyId,
163                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
164                    throws com.liferay.portal.NoSuchRoleException,
165                            com.liferay.portal.kernel.exception.SystemException {
166                    return getPersistence()
167                                       .findByCompanyId_First(companyId, orderByComparator);
168            }
169    
170            public static com.liferay.portal.model.Role findByCompanyId_Last(
171                    long companyId,
172                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
173                    throws com.liferay.portal.NoSuchRoleException,
174                            com.liferay.portal.kernel.exception.SystemException {
175                    return getPersistence()
176                                       .findByCompanyId_Last(companyId, orderByComparator);
177            }
178    
179            public static com.liferay.portal.model.Role[] findByCompanyId_PrevAndNext(
180                    long roleId, long companyId,
181                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
182                    throws com.liferay.portal.NoSuchRoleException,
183                            com.liferay.portal.kernel.exception.SystemException {
184                    return getPersistence()
185                                       .findByCompanyId_PrevAndNext(roleId, companyId,
186                            orderByComparator);
187            }
188    
189            public static java.util.List<com.liferay.portal.model.Role> findBySubtype(
190                    java.lang.String subtype)
191                    throws com.liferay.portal.kernel.exception.SystemException {
192                    return getPersistence().findBySubtype(subtype);
193            }
194    
195            public static java.util.List<com.liferay.portal.model.Role> findBySubtype(
196                    java.lang.String subtype, int start, int end)
197                    throws com.liferay.portal.kernel.exception.SystemException {
198                    return getPersistence().findBySubtype(subtype, start, end);
199            }
200    
201            public static java.util.List<com.liferay.portal.model.Role> findBySubtype(
202                    java.lang.String subtype, int start, int end,
203                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
204                    throws com.liferay.portal.kernel.exception.SystemException {
205                    return getPersistence()
206                                       .findBySubtype(subtype, start, end, orderByComparator);
207            }
208    
209            public static com.liferay.portal.model.Role findBySubtype_First(
210                    java.lang.String subtype,
211                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
212                    throws com.liferay.portal.NoSuchRoleException,
213                            com.liferay.portal.kernel.exception.SystemException {
214                    return getPersistence().findBySubtype_First(subtype, orderByComparator);
215            }
216    
217            public static com.liferay.portal.model.Role findBySubtype_Last(
218                    java.lang.String subtype,
219                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
220                    throws com.liferay.portal.NoSuchRoleException,
221                            com.liferay.portal.kernel.exception.SystemException {
222                    return getPersistence().findBySubtype_Last(subtype, orderByComparator);
223            }
224    
225            public static com.liferay.portal.model.Role[] findBySubtype_PrevAndNext(
226                    long roleId, java.lang.String subtype,
227                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
228                    throws com.liferay.portal.NoSuchRoleException,
229                            com.liferay.portal.kernel.exception.SystemException {
230                    return getPersistence()
231                                       .findBySubtype_PrevAndNext(roleId, subtype, orderByComparator);
232            }
233    
234            public static com.liferay.portal.model.Role findByC_N(long companyId,
235                    java.lang.String name)
236                    throws com.liferay.portal.NoSuchRoleException,
237                            com.liferay.portal.kernel.exception.SystemException {
238                    return getPersistence().findByC_N(companyId, name);
239            }
240    
241            public static com.liferay.portal.model.Role fetchByC_N(long companyId,
242                    java.lang.String name)
243                    throws com.liferay.portal.kernel.exception.SystemException {
244                    return getPersistence().fetchByC_N(companyId, name);
245            }
246    
247            public static com.liferay.portal.model.Role fetchByC_N(long companyId,
248                    java.lang.String name, boolean retrieveFromCache)
249                    throws com.liferay.portal.kernel.exception.SystemException {
250                    return getPersistence().fetchByC_N(companyId, name, retrieveFromCache);
251            }
252    
253            public static java.util.List<com.liferay.portal.model.Role> findByT_S(
254                    int type, java.lang.String subtype)
255                    throws com.liferay.portal.kernel.exception.SystemException {
256                    return getPersistence().findByT_S(type, subtype);
257            }
258    
259            public static java.util.List<com.liferay.portal.model.Role> findByT_S(
260                    int type, java.lang.String subtype, int start, int end)
261                    throws com.liferay.portal.kernel.exception.SystemException {
262                    return getPersistence().findByT_S(type, subtype, start, end);
263            }
264    
265            public static java.util.List<com.liferay.portal.model.Role> findByT_S(
266                    int type, java.lang.String subtype, int start, int end,
267                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
268                    throws com.liferay.portal.kernel.exception.SystemException {
269                    return getPersistence()
270                                       .findByT_S(type, subtype, start, end, orderByComparator);
271            }
272    
273            public static com.liferay.portal.model.Role findByT_S_First(int type,
274                    java.lang.String subtype,
275                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
276                    throws com.liferay.portal.NoSuchRoleException,
277                            com.liferay.portal.kernel.exception.SystemException {
278                    return getPersistence().findByT_S_First(type, subtype, orderByComparator);
279            }
280    
281            public static com.liferay.portal.model.Role findByT_S_Last(int type,
282                    java.lang.String subtype,
283                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
284                    throws com.liferay.portal.NoSuchRoleException,
285                            com.liferay.portal.kernel.exception.SystemException {
286                    return getPersistence().findByT_S_Last(type, subtype, orderByComparator);
287            }
288    
289            public static com.liferay.portal.model.Role[] findByT_S_PrevAndNext(
290                    long roleId, int type, java.lang.String subtype,
291                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
292                    throws com.liferay.portal.NoSuchRoleException,
293                            com.liferay.portal.kernel.exception.SystemException {
294                    return getPersistence()
295                                       .findByT_S_PrevAndNext(roleId, type, subtype,
296                            orderByComparator);
297            }
298    
299            public static com.liferay.portal.model.Role findByC_C_C(long companyId,
300                    long classNameId, long classPK)
301                    throws com.liferay.portal.NoSuchRoleException,
302                            com.liferay.portal.kernel.exception.SystemException {
303                    return getPersistence().findByC_C_C(companyId, classNameId, classPK);
304            }
305    
306            public static com.liferay.portal.model.Role fetchByC_C_C(long companyId,
307                    long classNameId, long classPK)
308                    throws com.liferay.portal.kernel.exception.SystemException {
309                    return getPersistence().fetchByC_C_C(companyId, classNameId, classPK);
310            }
311    
312            public static com.liferay.portal.model.Role fetchByC_C_C(long companyId,
313                    long classNameId, long classPK, boolean retrieveFromCache)
314                    throws com.liferay.portal.kernel.exception.SystemException {
315                    return getPersistence()
316                                       .fetchByC_C_C(companyId, classNameId, classPK,
317                            retrieveFromCache);
318            }
319    
320            public static java.util.List<com.liferay.portal.model.Role> findAll()
321                    throws com.liferay.portal.kernel.exception.SystemException {
322                    return getPersistence().findAll();
323            }
324    
325            public static java.util.List<com.liferay.portal.model.Role> findAll(
326                    int start, int end)
327                    throws com.liferay.portal.kernel.exception.SystemException {
328                    return getPersistence().findAll(start, end);
329            }
330    
331            public static java.util.List<com.liferay.portal.model.Role> findAll(
332                    int start, int end,
333                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
334                    throws com.liferay.portal.kernel.exception.SystemException {
335                    return getPersistence().findAll(start, end, orderByComparator);
336            }
337    
338            public static void removeByCompanyId(long companyId)
339                    throws com.liferay.portal.kernel.exception.SystemException {
340                    getPersistence().removeByCompanyId(companyId);
341            }
342    
343            public static void removeBySubtype(java.lang.String subtype)
344                    throws com.liferay.portal.kernel.exception.SystemException {
345                    getPersistence().removeBySubtype(subtype);
346            }
347    
348            public static void removeByC_N(long companyId, java.lang.String name)
349                    throws com.liferay.portal.NoSuchRoleException,
350                            com.liferay.portal.kernel.exception.SystemException {
351                    getPersistence().removeByC_N(companyId, name);
352            }
353    
354            public static void removeByT_S(int type, java.lang.String subtype)
355                    throws com.liferay.portal.kernel.exception.SystemException {
356                    getPersistence().removeByT_S(type, subtype);
357            }
358    
359            public static void removeByC_C_C(long companyId, long classNameId,
360                    long classPK)
361                    throws com.liferay.portal.NoSuchRoleException,
362                            com.liferay.portal.kernel.exception.SystemException {
363                    getPersistence().removeByC_C_C(companyId, classNameId, classPK);
364            }
365    
366            public static void removeAll()
367                    throws com.liferay.portal.kernel.exception.SystemException {
368                    getPersistence().removeAll();
369            }
370    
371            public static int countByCompanyId(long companyId)
372                    throws com.liferay.portal.kernel.exception.SystemException {
373                    return getPersistence().countByCompanyId(companyId);
374            }
375    
376            public static int countBySubtype(java.lang.String subtype)
377                    throws com.liferay.portal.kernel.exception.SystemException {
378                    return getPersistence().countBySubtype(subtype);
379            }
380    
381            public static int countByC_N(long companyId, java.lang.String name)
382                    throws com.liferay.portal.kernel.exception.SystemException {
383                    return getPersistence().countByC_N(companyId, name);
384            }
385    
386            public static int countByT_S(int type, java.lang.String subtype)
387                    throws com.liferay.portal.kernel.exception.SystemException {
388                    return getPersistence().countByT_S(type, subtype);
389            }
390    
391            public static int countByC_C_C(long companyId, long classNameId,
392                    long classPK)
393                    throws com.liferay.portal.kernel.exception.SystemException {
394                    return getPersistence().countByC_C_C(companyId, classNameId, classPK);
395            }
396    
397            public static int countAll()
398                    throws com.liferay.portal.kernel.exception.SystemException {
399                    return getPersistence().countAll();
400            }
401    
402            public static java.util.List<com.liferay.portal.model.Group> getGroups(
403                    long pk) throws com.liferay.portal.kernel.exception.SystemException {
404                    return getPersistence().getGroups(pk);
405            }
406    
407            public static java.util.List<com.liferay.portal.model.Group> getGroups(
408                    long pk, int start, int end)
409                    throws com.liferay.portal.kernel.exception.SystemException {
410                    return getPersistence().getGroups(pk, start, end);
411            }
412    
413            public static java.util.List<com.liferay.portal.model.Group> getGroups(
414                    long pk, int start, int end,
415                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
416                    throws com.liferay.portal.kernel.exception.SystemException {
417                    return getPersistence().getGroups(pk, start, end, orderByComparator);
418            }
419    
420            public static int getGroupsSize(long pk)
421                    throws com.liferay.portal.kernel.exception.SystemException {
422                    return getPersistence().getGroupsSize(pk);
423            }
424    
425            public static boolean containsGroup(long pk, long groupPK)
426                    throws com.liferay.portal.kernel.exception.SystemException {
427                    return getPersistence().containsGroup(pk, groupPK);
428            }
429    
430            public static boolean containsGroups(long pk)
431                    throws com.liferay.portal.kernel.exception.SystemException {
432                    return getPersistence().containsGroups(pk);
433            }
434    
435            public static void addGroup(long pk, long groupPK)
436                    throws com.liferay.portal.kernel.exception.SystemException {
437                    getPersistence().addGroup(pk, groupPK);
438            }
439    
440            public static void addGroup(long pk, com.liferay.portal.model.Group group)
441                    throws com.liferay.portal.kernel.exception.SystemException {
442                    getPersistence().addGroup(pk, group);
443            }
444    
445            public static void addGroups(long pk, long[] groupPKs)
446                    throws com.liferay.portal.kernel.exception.SystemException {
447                    getPersistence().addGroups(pk, groupPKs);
448            }
449    
450            public static void addGroups(long pk,
451                    java.util.List<com.liferay.portal.model.Group> groups)
452                    throws com.liferay.portal.kernel.exception.SystemException {
453                    getPersistence().addGroups(pk, groups);
454            }
455    
456            public static void clearGroups(long pk)
457                    throws com.liferay.portal.kernel.exception.SystemException {
458                    getPersistence().clearGroups(pk);
459            }
460    
461            public static void removeGroup(long pk, long groupPK)
462                    throws com.liferay.portal.kernel.exception.SystemException {
463                    getPersistence().removeGroup(pk, groupPK);
464            }
465    
466            public static void removeGroup(long pk, com.liferay.portal.model.Group group)
467                    throws com.liferay.portal.kernel.exception.SystemException {
468                    getPersistence().removeGroup(pk, group);
469            }
470    
471            public static void removeGroups(long pk, long[] groupPKs)
472                    throws com.liferay.portal.kernel.exception.SystemException {
473                    getPersistence().removeGroups(pk, groupPKs);
474            }
475    
476            public static void removeGroups(long pk,
477                    java.util.List<com.liferay.portal.model.Group> groups)
478                    throws com.liferay.portal.kernel.exception.SystemException {
479                    getPersistence().removeGroups(pk, groups);
480            }
481    
482            public static void setGroups(long pk, long[] groupPKs)
483                    throws com.liferay.portal.kernel.exception.SystemException {
484                    getPersistence().setGroups(pk, groupPKs);
485            }
486    
487            public static void setGroups(long pk,
488                    java.util.List<com.liferay.portal.model.Group> groups)
489                    throws com.liferay.portal.kernel.exception.SystemException {
490                    getPersistence().setGroups(pk, groups);
491            }
492    
493            public static java.util.List<com.liferay.portal.model.Permission> getPermissions(
494                    long pk) throws com.liferay.portal.kernel.exception.SystemException {
495                    return getPersistence().getPermissions(pk);
496            }
497    
498            public static java.util.List<com.liferay.portal.model.Permission> getPermissions(
499                    long pk, int start, int end)
500                    throws com.liferay.portal.kernel.exception.SystemException {
501                    return getPersistence().getPermissions(pk, start, end);
502            }
503    
504            public static java.util.List<com.liferay.portal.model.Permission> getPermissions(
505                    long pk, int start, int end,
506                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
507                    throws com.liferay.portal.kernel.exception.SystemException {
508                    return getPersistence().getPermissions(pk, start, end, orderByComparator);
509            }
510    
511            public static int getPermissionsSize(long pk)
512                    throws com.liferay.portal.kernel.exception.SystemException {
513                    return getPersistence().getPermissionsSize(pk);
514            }
515    
516            public static boolean containsPermission(long pk, long permissionPK)
517                    throws com.liferay.portal.kernel.exception.SystemException {
518                    return getPersistence().containsPermission(pk, permissionPK);
519            }
520    
521            public static boolean containsPermissions(long pk)
522                    throws com.liferay.portal.kernel.exception.SystemException {
523                    return getPersistence().containsPermissions(pk);
524            }
525    
526            public static void addPermission(long pk, long permissionPK)
527                    throws com.liferay.portal.kernel.exception.SystemException {
528                    getPersistence().addPermission(pk, permissionPK);
529            }
530    
531            public static void addPermission(long pk,
532                    com.liferay.portal.model.Permission permission)
533                    throws com.liferay.portal.kernel.exception.SystemException {
534                    getPersistence().addPermission(pk, permission);
535            }
536    
537            public static void addPermissions(long pk, long[] permissionPKs)
538                    throws com.liferay.portal.kernel.exception.SystemException {
539                    getPersistence().addPermissions(pk, permissionPKs);
540            }
541    
542            public static void addPermissions(long pk,
543                    java.util.List<com.liferay.portal.model.Permission> permissions)
544                    throws com.liferay.portal.kernel.exception.SystemException {
545                    getPersistence().addPermissions(pk, permissions);
546            }
547    
548            public static void clearPermissions(long pk)
549                    throws com.liferay.portal.kernel.exception.SystemException {
550                    getPersistence().clearPermissions(pk);
551            }
552    
553            public static void removePermission(long pk, long permissionPK)
554                    throws com.liferay.portal.kernel.exception.SystemException {
555                    getPersistence().removePermission(pk, permissionPK);
556            }
557    
558            public static void removePermission(long pk,
559                    com.liferay.portal.model.Permission permission)
560                    throws com.liferay.portal.kernel.exception.SystemException {
561                    getPersistence().removePermission(pk, permission);
562            }
563    
564            public static void removePermissions(long pk, long[] permissionPKs)
565                    throws com.liferay.portal.kernel.exception.SystemException {
566                    getPersistence().removePermissions(pk, permissionPKs);
567            }
568    
569            public static void removePermissions(long pk,
570                    java.util.List<com.liferay.portal.model.Permission> permissions)
571                    throws com.liferay.portal.kernel.exception.SystemException {
572                    getPersistence().removePermissions(pk, permissions);
573            }
574    
575            public static void setPermissions(long pk, long[] permissionPKs)
576                    throws com.liferay.portal.kernel.exception.SystemException {
577                    getPersistence().setPermissions(pk, permissionPKs);
578            }
579    
580            public static void setPermissions(long pk,
581                    java.util.List<com.liferay.portal.model.Permission> permissions)
582                    throws com.liferay.portal.kernel.exception.SystemException {
583                    getPersistence().setPermissions(pk, permissions);
584            }
585    
586            public static java.util.List<com.liferay.portal.model.User> getUsers(
587                    long pk) throws com.liferay.portal.kernel.exception.SystemException {
588                    return getPersistence().getUsers(pk);
589            }
590    
591            public static java.util.List<com.liferay.portal.model.User> getUsers(
592                    long pk, int start, int end)
593                    throws com.liferay.portal.kernel.exception.SystemException {
594                    return getPersistence().getUsers(pk, start, end);
595            }
596    
597            public static java.util.List<com.liferay.portal.model.User> getUsers(
598                    long pk, int start, int end,
599                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
600                    throws com.liferay.portal.kernel.exception.SystemException {
601                    return getPersistence().getUsers(pk, start, end, orderByComparator);
602            }
603    
604            public static int getUsersSize(long pk)
605                    throws com.liferay.portal.kernel.exception.SystemException {
606                    return getPersistence().getUsersSize(pk);
607            }
608    
609            public static boolean containsUser(long pk, long userPK)
610                    throws com.liferay.portal.kernel.exception.SystemException {
611                    return getPersistence().containsUser(pk, userPK);
612            }
613    
614            public static boolean containsUsers(long pk)
615                    throws com.liferay.portal.kernel.exception.SystemException {
616                    return getPersistence().containsUsers(pk);
617            }
618    
619            public static void addUser(long pk, long userPK)
620                    throws com.liferay.portal.kernel.exception.SystemException {
621                    getPersistence().addUser(pk, userPK);
622            }
623    
624            public static void addUser(long pk, com.liferay.portal.model.User user)
625                    throws com.liferay.portal.kernel.exception.SystemException {
626                    getPersistence().addUser(pk, user);
627            }
628    
629            public static void addUsers(long pk, long[] userPKs)
630                    throws com.liferay.portal.kernel.exception.SystemException {
631                    getPersistence().addUsers(pk, userPKs);
632            }
633    
634            public static void addUsers(long pk,
635                    java.util.List<com.liferay.portal.model.User> users)
636                    throws com.liferay.portal.kernel.exception.SystemException {
637                    getPersistence().addUsers(pk, users);
638            }
639    
640            public static void clearUsers(long pk)
641                    throws com.liferay.portal.kernel.exception.SystemException {
642                    getPersistence().clearUsers(pk);
643            }
644    
645            public static void removeUser(long pk, long userPK)
646                    throws com.liferay.portal.kernel.exception.SystemException {
647                    getPersistence().removeUser(pk, userPK);
648            }
649    
650            public static void removeUser(long pk, com.liferay.portal.model.User user)
651                    throws com.liferay.portal.kernel.exception.SystemException {
652                    getPersistence().removeUser(pk, user);
653            }
654    
655            public static void removeUsers(long pk, long[] userPKs)
656                    throws com.liferay.portal.kernel.exception.SystemException {
657                    getPersistence().removeUsers(pk, userPKs);
658            }
659    
660            public static void removeUsers(long pk,
661                    java.util.List<com.liferay.portal.model.User> users)
662                    throws com.liferay.portal.kernel.exception.SystemException {
663                    getPersistence().removeUsers(pk, users);
664            }
665    
666            public static void setUsers(long pk, long[] userPKs)
667                    throws com.liferay.portal.kernel.exception.SystemException {
668                    getPersistence().setUsers(pk, userPKs);
669            }
670    
671            public static void setUsers(long pk,
672                    java.util.List<com.liferay.portal.model.User> users)
673                    throws com.liferay.portal.kernel.exception.SystemException {
674                    getPersistence().setUsers(pk, users);
675            }
676    
677            public static RolePersistence getPersistence() {
678                    if (_persistence == null) {
679                            _persistence = (RolePersistence)PortalBeanLocatorUtil.locate(RolePersistence.class.getName());
680                    }
681    
682                    return _persistence;
683            }
684    
685            public void setPersistence(RolePersistence persistence) {
686                    _persistence = persistence;
687            }
688    
689            private static RolePersistence _persistence;
690    }