1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    *
5    *
6    *
7    * The contents of this file are subject to the terms of the Liferay Enterprise
8    * Subscription License ("License"). You may not use this file except in
9    * compliance with the License. You can obtain a copy of the License by
10   * contacting Liferay, Inc. See the License for the specific language governing
11   * permissions and limitations under the License, including but not limited to
12   * distribution rights of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portal.service.persistence;
24  
25  
26  /**
27   * <a href="RoleUtil.java.html"><b><i>View Source</i></b></a>
28   *
29   * <p>
30   * ServiceBuilder generated this class. Modifications in this class will be
31   * overwritten the next time is generated.
32   * </p>
33   *
34   * @author    Brian Wing Shun Chan
35   * @see       RolePersistence
36   * @see       RolePersistenceImpl
37   * @generated
38   */
39  public class RoleUtil {
40      public static void cacheResult(com.liferay.portal.model.Role role) {
41          getPersistence().cacheResult(role);
42      }
43  
44      public static void cacheResult(
45          java.util.List<com.liferay.portal.model.Role> roles) {
46          getPersistence().cacheResult(roles);
47      }
48  
49      public static void clearCache() {
50          getPersistence().clearCache();
51      }
52  
53      public static com.liferay.portal.model.Role create(long roleId) {
54          return getPersistence().create(roleId);
55      }
56  
57      public static com.liferay.portal.model.Role remove(long roleId)
58          throws com.liferay.portal.NoSuchRoleException,
59              com.liferay.portal.SystemException {
60          return getPersistence().remove(roleId);
61      }
62  
63      public static com.liferay.portal.model.Role remove(
64          com.liferay.portal.model.Role role)
65          throws com.liferay.portal.SystemException {
66          return getPersistence().remove(role);
67      }
68  
69      /**
70       * @deprecated Use {@link #update(Role, boolean merge)}.
71       */
72      public static com.liferay.portal.model.Role update(
73          com.liferay.portal.model.Role role)
74          throws com.liferay.portal.SystemException {
75          return getPersistence().update(role);
76      }
77  
78      /**
79       * Add, update, or merge, the entity. This method also calls the model
80       * listeners to trigger the proper events associated with adding, deleting,
81       * or updating an entity.
82       *
83       * @param  role the entity to add, update, or merge
84       * @param  merge boolean value for whether to merge the entity. The default
85       *         value is false. Setting merge to true is more expensive and
86       *         should only be true when role is transient. See
87       *         LEP-5473 for a detailed discussion of this method.
88       * @return the entity that was added, updated, or merged
89       */
90      public static com.liferay.portal.model.Role update(
91          com.liferay.portal.model.Role role, boolean merge)
92          throws com.liferay.portal.SystemException {
93          return getPersistence().update(role, merge);
94      }
95  
96      public static com.liferay.portal.model.Role updateImpl(
97          com.liferay.portal.model.Role role, boolean merge)
98          throws com.liferay.portal.SystemException {
99          return getPersistence().updateImpl(role, merge);
100     }
101 
102     public static com.liferay.portal.model.Role findByPrimaryKey(long roleId)
103         throws com.liferay.portal.NoSuchRoleException,
104             com.liferay.portal.SystemException {
105         return getPersistence().findByPrimaryKey(roleId);
106     }
107 
108     public static com.liferay.portal.model.Role fetchByPrimaryKey(long roleId)
109         throws com.liferay.portal.SystemException {
110         return getPersistence().fetchByPrimaryKey(roleId);
111     }
112 
113     public static java.util.List<com.liferay.portal.model.Role> findByCompanyId(
114         long companyId) throws com.liferay.portal.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.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.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.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.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.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) throws com.liferay.portal.SystemException {
156         return getPersistence().findBySubtype(subtype);
157     }
158 
159     public static java.util.List<com.liferay.portal.model.Role> findBySubtype(
160         java.lang.String subtype, int start, int end)
161         throws com.liferay.portal.SystemException {
162         return getPersistence().findBySubtype(subtype, start, end);
163     }
164 
165     public static java.util.List<com.liferay.portal.model.Role> findBySubtype(
166         java.lang.String subtype, int start, int end,
167         com.liferay.portal.kernel.util.OrderByComparator obc)
168         throws com.liferay.portal.SystemException {
169         return getPersistence().findBySubtype(subtype, start, end, obc);
170     }
171 
172     public static com.liferay.portal.model.Role findBySubtype_First(
173         java.lang.String subtype,
174         com.liferay.portal.kernel.util.OrderByComparator obc)
175         throws com.liferay.portal.NoSuchRoleException,
176             com.liferay.portal.SystemException {
177         return getPersistence().findBySubtype_First(subtype, obc);
178     }
179 
180     public static com.liferay.portal.model.Role findBySubtype_Last(
181         java.lang.String subtype,
182         com.liferay.portal.kernel.util.OrderByComparator obc)
183         throws com.liferay.portal.NoSuchRoleException,
184             com.liferay.portal.SystemException {
185         return getPersistence().findBySubtype_Last(subtype, obc);
186     }
187 
188     public static com.liferay.portal.model.Role[] findBySubtype_PrevAndNext(
189         long roleId, java.lang.String subtype,
190         com.liferay.portal.kernel.util.OrderByComparator obc)
191         throws com.liferay.portal.NoSuchRoleException,
192             com.liferay.portal.SystemException {
193         return getPersistence().findBySubtype_PrevAndNext(roleId, subtype, obc);
194     }
195 
196     public static com.liferay.portal.model.Role findByC_N(long companyId,
197         java.lang.String name)
198         throws com.liferay.portal.NoSuchRoleException,
199             com.liferay.portal.SystemException {
200         return getPersistence().findByC_N(companyId, name);
201     }
202 
203     public static com.liferay.portal.model.Role fetchByC_N(long companyId,
204         java.lang.String name) throws com.liferay.portal.SystemException {
205         return getPersistence().fetchByC_N(companyId, name);
206     }
207 
208     public static com.liferay.portal.model.Role fetchByC_N(long companyId,
209         java.lang.String name, boolean retrieveFromCache)
210         throws com.liferay.portal.SystemException {
211         return getPersistence().fetchByC_N(companyId, name, retrieveFromCache);
212     }
213 
214     public static java.util.List<com.liferay.portal.model.Role> findByT_S(
215         int type, java.lang.String subtype)
216         throws com.liferay.portal.SystemException {
217         return getPersistence().findByT_S(type, subtype);
218     }
219 
220     public static java.util.List<com.liferay.portal.model.Role> findByT_S(
221         int type, java.lang.String subtype, int start, int end)
222         throws com.liferay.portal.SystemException {
223         return getPersistence().findByT_S(type, subtype, start, end);
224     }
225 
226     public static java.util.List<com.liferay.portal.model.Role> findByT_S(
227         int type, java.lang.String subtype, int start, int end,
228         com.liferay.portal.kernel.util.OrderByComparator obc)
229         throws com.liferay.portal.SystemException {
230         return getPersistence().findByT_S(type, subtype, start, end, obc);
231     }
232 
233     public static com.liferay.portal.model.Role findByT_S_First(int type,
234         java.lang.String subtype,
235         com.liferay.portal.kernel.util.OrderByComparator obc)
236         throws com.liferay.portal.NoSuchRoleException,
237             com.liferay.portal.SystemException {
238         return getPersistence().findByT_S_First(type, subtype, obc);
239     }
240 
241     public static com.liferay.portal.model.Role findByT_S_Last(int type,
242         java.lang.String subtype,
243         com.liferay.portal.kernel.util.OrderByComparator obc)
244         throws com.liferay.portal.NoSuchRoleException,
245             com.liferay.portal.SystemException {
246         return getPersistence().findByT_S_Last(type, subtype, obc);
247     }
248 
249     public static com.liferay.portal.model.Role[] findByT_S_PrevAndNext(
250         long roleId, int type, java.lang.String subtype,
251         com.liferay.portal.kernel.util.OrderByComparator obc)
252         throws com.liferay.portal.NoSuchRoleException,
253             com.liferay.portal.SystemException {
254         return getPersistence().findByT_S_PrevAndNext(roleId, type, subtype, obc);
255     }
256 
257     public static com.liferay.portal.model.Role findByC_C_C(long companyId,
258         long classNameId, long classPK)
259         throws com.liferay.portal.NoSuchRoleException,
260             com.liferay.portal.SystemException {
261         return getPersistence().findByC_C_C(companyId, classNameId, classPK);
262     }
263 
264     public static com.liferay.portal.model.Role fetchByC_C_C(long companyId,
265         long classNameId, long classPK)
266         throws com.liferay.portal.SystemException {
267         return getPersistence().fetchByC_C_C(companyId, classNameId, classPK);
268     }
269 
270     public static com.liferay.portal.model.Role fetchByC_C_C(long companyId,
271         long classNameId, long classPK, boolean retrieveFromCache)
272         throws com.liferay.portal.SystemException {
273         return getPersistence()
274                    .fetchByC_C_C(companyId, classNameId, classPK,
275             retrieveFromCache);
276     }
277 
278     public static java.util.List<Object> findWithDynamicQuery(
279         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
280         throws com.liferay.portal.SystemException {
281         return getPersistence().findWithDynamicQuery(dynamicQuery);
282     }
283 
284     public static java.util.List<Object> findWithDynamicQuery(
285         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
286         int end) throws com.liferay.portal.SystemException {
287         return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
288     }
289 
290     public static java.util.List<com.liferay.portal.model.Role> findAll()
291         throws com.liferay.portal.SystemException {
292         return getPersistence().findAll();
293     }
294 
295     public static java.util.List<com.liferay.portal.model.Role> findAll(
296         int start, int end) throws com.liferay.portal.SystemException {
297         return getPersistence().findAll(start, end);
298     }
299 
300     public static java.util.List<com.liferay.portal.model.Role> findAll(
301         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
302         throws com.liferay.portal.SystemException {
303         return getPersistence().findAll(start, end, obc);
304     }
305 
306     public static void removeByCompanyId(long companyId)
307         throws com.liferay.portal.SystemException {
308         getPersistence().removeByCompanyId(companyId);
309     }
310 
311     public static void removeBySubtype(java.lang.String subtype)
312         throws com.liferay.portal.SystemException {
313         getPersistence().removeBySubtype(subtype);
314     }
315 
316     public static void removeByC_N(long companyId, java.lang.String name)
317         throws com.liferay.portal.NoSuchRoleException,
318             com.liferay.portal.SystemException {
319         getPersistence().removeByC_N(companyId, name);
320     }
321 
322     public static void removeByT_S(int type, java.lang.String subtype)
323         throws com.liferay.portal.SystemException {
324         getPersistence().removeByT_S(type, subtype);
325     }
326 
327     public static void removeByC_C_C(long companyId, long classNameId,
328         long classPK)
329         throws com.liferay.portal.NoSuchRoleException,
330             com.liferay.portal.SystemException {
331         getPersistence().removeByC_C_C(companyId, classNameId, classPK);
332     }
333 
334     public static void removeAll() throws com.liferay.portal.SystemException {
335         getPersistence().removeAll();
336     }
337 
338     public static int countByCompanyId(long companyId)
339         throws com.liferay.portal.SystemException {
340         return getPersistence().countByCompanyId(companyId);
341     }
342 
343     public static int countBySubtype(java.lang.String subtype)
344         throws com.liferay.portal.SystemException {
345         return getPersistence().countBySubtype(subtype);
346     }
347 
348     public static int countByC_N(long companyId, java.lang.String name)
349         throws com.liferay.portal.SystemException {
350         return getPersistence().countByC_N(companyId, name);
351     }
352 
353     public static int countByT_S(int type, java.lang.String subtype)
354         throws com.liferay.portal.SystemException {
355         return getPersistence().countByT_S(type, subtype);
356     }
357 
358     public static int countByC_C_C(long companyId, long classNameId,
359         long classPK) throws com.liferay.portal.SystemException {
360         return getPersistence().countByC_C_C(companyId, classNameId, classPK);
361     }
362 
363     public static int countAll() throws com.liferay.portal.SystemException {
364         return getPersistence().countAll();
365     }
366 
367     public static java.util.List<com.liferay.portal.model.Group> getGroups(
368         long pk) throws com.liferay.portal.SystemException {
369         return getPersistence().getGroups(pk);
370     }
371 
372     public static java.util.List<com.liferay.portal.model.Group> getGroups(
373         long pk, int start, int end) throws com.liferay.portal.SystemException {
374         return getPersistence().getGroups(pk, start, end);
375     }
376 
377     public static java.util.List<com.liferay.portal.model.Group> getGroups(
378         long pk, int start, int end,
379         com.liferay.portal.kernel.util.OrderByComparator obc)
380         throws com.liferay.portal.SystemException {
381         return getPersistence().getGroups(pk, start, end, obc);
382     }
383 
384     public static int getGroupsSize(long pk)
385         throws com.liferay.portal.SystemException {
386         return getPersistence().getGroupsSize(pk);
387     }
388 
389     public static boolean containsGroup(long pk, long groupPK)
390         throws com.liferay.portal.SystemException {
391         return getPersistence().containsGroup(pk, groupPK);
392     }
393 
394     public static boolean containsGroups(long pk)
395         throws com.liferay.portal.SystemException {
396         return getPersistence().containsGroups(pk);
397     }
398 
399     public static void addGroup(long pk, long groupPK)
400         throws com.liferay.portal.SystemException {
401         getPersistence().addGroup(pk, groupPK);
402     }
403 
404     public static void addGroup(long pk, com.liferay.portal.model.Group group)
405         throws com.liferay.portal.SystemException {
406         getPersistence().addGroup(pk, group);
407     }
408 
409     public static void addGroups(long pk, long[] groupPKs)
410         throws com.liferay.portal.SystemException {
411         getPersistence().addGroups(pk, groupPKs);
412     }
413 
414     public static void addGroups(long pk,
415         java.util.List<com.liferay.portal.model.Group> groups)
416         throws com.liferay.portal.SystemException {
417         getPersistence().addGroups(pk, groups);
418     }
419 
420     public static void clearGroups(long pk)
421         throws com.liferay.portal.SystemException {
422         getPersistence().clearGroups(pk);
423     }
424 
425     public static void removeGroup(long pk, long groupPK)
426         throws com.liferay.portal.SystemException {
427         getPersistence().removeGroup(pk, groupPK);
428     }
429 
430     public static void removeGroup(long pk, com.liferay.portal.model.Group group)
431         throws com.liferay.portal.SystemException {
432         getPersistence().removeGroup(pk, group);
433     }
434 
435     public static void removeGroups(long pk, long[] groupPKs)
436         throws com.liferay.portal.SystemException {
437         getPersistence().removeGroups(pk, groupPKs);
438     }
439 
440     public static void removeGroups(long pk,
441         java.util.List<com.liferay.portal.model.Group> groups)
442         throws com.liferay.portal.SystemException {
443         getPersistence().removeGroups(pk, groups);
444     }
445 
446     public static void setGroups(long pk, long[] groupPKs)
447         throws com.liferay.portal.SystemException {
448         getPersistence().setGroups(pk, groupPKs);
449     }
450 
451     public static void setGroups(long pk,
452         java.util.List<com.liferay.portal.model.Group> groups)
453         throws com.liferay.portal.SystemException {
454         getPersistence().setGroups(pk, groups);
455     }
456 
457     public static java.util.List<com.liferay.portal.model.Permission> getPermissions(
458         long pk) throws com.liferay.portal.SystemException {
459         return getPersistence().getPermissions(pk);
460     }
461 
462     public static java.util.List<com.liferay.portal.model.Permission> getPermissions(
463         long pk, int start, int end) throws com.liferay.portal.SystemException {
464         return getPersistence().getPermissions(pk, start, end);
465     }
466 
467     public static java.util.List<com.liferay.portal.model.Permission> getPermissions(
468         long pk, int start, int end,
469         com.liferay.portal.kernel.util.OrderByComparator obc)
470         throws com.liferay.portal.SystemException {
471         return getPersistence().getPermissions(pk, start, end, obc);
472     }
473 
474     public static int getPermissionsSize(long pk)
475         throws com.liferay.portal.SystemException {
476         return getPersistence().getPermissionsSize(pk);
477     }
478 
479     public static boolean containsPermission(long pk, long permissionPK)
480         throws com.liferay.portal.SystemException {
481         return getPersistence().containsPermission(pk, permissionPK);
482     }
483 
484     public static boolean containsPermissions(long pk)
485         throws com.liferay.portal.SystemException {
486         return getPersistence().containsPermissions(pk);
487     }
488 
489     public static void addPermission(long pk, long permissionPK)
490         throws com.liferay.portal.SystemException {
491         getPersistence().addPermission(pk, permissionPK);
492     }
493 
494     public static void addPermission(long pk,
495         com.liferay.portal.model.Permission permission)
496         throws com.liferay.portal.SystemException {
497         getPersistence().addPermission(pk, permission);
498     }
499 
500     public static void addPermissions(long pk, long[] permissionPKs)
501         throws com.liferay.portal.SystemException {
502         getPersistence().addPermissions(pk, permissionPKs);
503     }
504 
505     public static void addPermissions(long pk,
506         java.util.List<com.liferay.portal.model.Permission> permissions)
507         throws com.liferay.portal.SystemException {
508         getPersistence().addPermissions(pk, permissions);
509     }
510 
511     public static void clearPermissions(long pk)
512         throws com.liferay.portal.SystemException {
513         getPersistence().clearPermissions(pk);
514     }
515 
516     public static void removePermission(long pk, long permissionPK)
517         throws com.liferay.portal.SystemException {
518         getPersistence().removePermission(pk, permissionPK);
519     }
520 
521     public static void removePermission(long pk,
522         com.liferay.portal.model.Permission permission)
523         throws com.liferay.portal.SystemException {
524         getPersistence().removePermission(pk, permission);
525     }
526 
527     public static void removePermissions(long pk, long[] permissionPKs)
528         throws com.liferay.portal.SystemException {
529         getPersistence().removePermissions(pk, permissionPKs);
530     }
531 
532     public static void removePermissions(long pk,
533         java.util.List<com.liferay.portal.model.Permission> permissions)
534         throws com.liferay.portal.SystemException {
535         getPersistence().removePermissions(pk, permissions);
536     }
537 
538     public static void setPermissions(long pk, long[] permissionPKs)
539         throws com.liferay.portal.SystemException {
540         getPersistence().setPermissions(pk, permissionPKs);
541     }
542 
543     public static void setPermissions(long pk,
544         java.util.List<com.liferay.portal.model.Permission> permissions)
545         throws com.liferay.portal.SystemException {
546         getPersistence().setPermissions(pk, permissions);
547     }
548 
549     public static java.util.List<com.liferay.portal.model.User> getUsers(
550         long pk) throws com.liferay.portal.SystemException {
551         return getPersistence().getUsers(pk);
552     }
553 
554     public static java.util.List<com.liferay.portal.model.User> getUsers(
555         long pk, int start, int end) throws com.liferay.portal.SystemException {
556         return getPersistence().getUsers(pk, start, end);
557     }
558 
559     public static java.util.List<com.liferay.portal.model.User> getUsers(
560         long pk, int start, int end,
561         com.liferay.portal.kernel.util.OrderByComparator obc)
562         throws com.liferay.portal.SystemException {
563         return getPersistence().getUsers(pk, start, end, obc);
564     }
565 
566     public static int getUsersSize(long pk)
567         throws com.liferay.portal.SystemException {
568         return getPersistence().getUsersSize(pk);
569     }
570 
571     public static boolean containsUser(long pk, long userPK)
572         throws com.liferay.portal.SystemException {
573         return getPersistence().containsUser(pk, userPK);
574     }
575 
576     public static boolean containsUsers(long pk)
577         throws com.liferay.portal.SystemException {
578         return getPersistence().containsUsers(pk);
579     }
580 
581     public static void addUser(long pk, long userPK)
582         throws com.liferay.portal.SystemException {
583         getPersistence().addUser(pk, userPK);
584     }
585 
586     public static void addUser(long pk, com.liferay.portal.model.User user)
587         throws com.liferay.portal.SystemException {
588         getPersistence().addUser(pk, user);
589     }
590 
591     public static void addUsers(long pk, long[] userPKs)
592         throws com.liferay.portal.SystemException {
593         getPersistence().addUsers(pk, userPKs);
594     }
595 
596     public static void addUsers(long pk,
597         java.util.List<com.liferay.portal.model.User> users)
598         throws com.liferay.portal.SystemException {
599         getPersistence().addUsers(pk, users);
600     }
601 
602     public static void clearUsers(long pk)
603         throws com.liferay.portal.SystemException {
604         getPersistence().clearUsers(pk);
605     }
606 
607     public static void removeUser(long pk, long userPK)
608         throws com.liferay.portal.SystemException {
609         getPersistence().removeUser(pk, userPK);
610     }
611 
612     public static void removeUser(long pk, com.liferay.portal.model.User user)
613         throws com.liferay.portal.SystemException {
614         getPersistence().removeUser(pk, user);
615     }
616 
617     public static void removeUsers(long pk, long[] userPKs)
618         throws com.liferay.portal.SystemException {
619         getPersistence().removeUsers(pk, userPKs);
620     }
621 
622     public static void removeUsers(long pk,
623         java.util.List<com.liferay.portal.model.User> users)
624         throws com.liferay.portal.SystemException {
625         getPersistence().removeUsers(pk, users);
626     }
627 
628     public static void setUsers(long pk, long[] userPKs)
629         throws com.liferay.portal.SystemException {
630         getPersistence().setUsers(pk, userPKs);
631     }
632 
633     public static void setUsers(long pk,
634         java.util.List<com.liferay.portal.model.User> users)
635         throws com.liferay.portal.SystemException {
636         getPersistence().setUsers(pk, users);
637     }
638 
639     public static RolePersistence getPersistence() {
640         return _persistence;
641     }
642 
643     public void setPersistence(RolePersistence persistence) {
644         _persistence = persistence;
645     }
646 
647     private static RolePersistence _persistence;
648 }