1
22
23 package com.liferay.portal.service.persistence;
24
25 import com.liferay.portal.NoSuchUserGroupGroupRoleException;
26 import com.liferay.portal.SystemException;
27 import com.liferay.portal.kernel.annotation.BeanReference;
28 import com.liferay.portal.kernel.cache.CacheRegistry;
29 import com.liferay.portal.kernel.dao.orm.DynamicQuery;
30 import com.liferay.portal.kernel.dao.orm.EntityCacheUtil;
31 import com.liferay.portal.kernel.dao.orm.FinderCacheUtil;
32 import com.liferay.portal.kernel.dao.orm.FinderPath;
33 import com.liferay.portal.kernel.dao.orm.Query;
34 import com.liferay.portal.kernel.dao.orm.QueryPos;
35 import com.liferay.portal.kernel.dao.orm.QueryUtil;
36 import com.liferay.portal.kernel.dao.orm.Session;
37 import com.liferay.portal.kernel.log.Log;
38 import com.liferay.portal.kernel.log.LogFactoryUtil;
39 import com.liferay.portal.kernel.util.GetterUtil;
40 import com.liferay.portal.kernel.util.OrderByComparator;
41 import com.liferay.portal.kernel.util.StringPool;
42 import com.liferay.portal.kernel.util.StringUtil;
43 import com.liferay.portal.model.ModelListener;
44 import com.liferay.portal.model.UserGroupGroupRole;
45 import com.liferay.portal.model.impl.UserGroupGroupRoleImpl;
46 import com.liferay.portal.model.impl.UserGroupGroupRoleModelImpl;
47 import com.liferay.portal.service.persistence.impl.BasePersistenceImpl;
48
49 import java.util.ArrayList;
50 import java.util.Collections;
51 import java.util.List;
52
53
59 public class UserGroupGroupRolePersistenceImpl extends BasePersistenceImpl
60 implements UserGroupGroupRolePersistence {
61 public static final String FINDER_CLASS_NAME_ENTITY = UserGroupGroupRoleImpl.class.getName();
62 public static final String FINDER_CLASS_NAME_LIST = FINDER_CLASS_NAME_ENTITY +
63 ".List";
64 public static final FinderPath FINDER_PATH_FIND_BY_USERGROUPID = new FinderPath(UserGroupGroupRoleModelImpl.ENTITY_CACHE_ENABLED,
65 UserGroupGroupRoleModelImpl.FINDER_CACHE_ENABLED,
66 FINDER_CLASS_NAME_LIST, "findByUserGroupId",
67 new String[] { Long.class.getName() });
68 public static final FinderPath FINDER_PATH_FIND_BY_OBC_USERGROUPID = new FinderPath(UserGroupGroupRoleModelImpl.ENTITY_CACHE_ENABLED,
69 UserGroupGroupRoleModelImpl.FINDER_CACHE_ENABLED,
70 FINDER_CLASS_NAME_LIST, "findByUserGroupId",
71 new String[] {
72 Long.class.getName(),
73
74 "java.lang.Integer", "java.lang.Integer",
75 "com.liferay.portal.kernel.util.OrderByComparator"
76 });
77 public static final FinderPath FINDER_PATH_COUNT_BY_USERGROUPID = new FinderPath(UserGroupGroupRoleModelImpl.ENTITY_CACHE_ENABLED,
78 UserGroupGroupRoleModelImpl.FINDER_CACHE_ENABLED,
79 FINDER_CLASS_NAME_LIST, "countByUserGroupId",
80 new String[] { Long.class.getName() });
81 public static final FinderPath FINDER_PATH_FIND_BY_GROUPID = new FinderPath(UserGroupGroupRoleModelImpl.ENTITY_CACHE_ENABLED,
82 UserGroupGroupRoleModelImpl.FINDER_CACHE_ENABLED,
83 FINDER_CLASS_NAME_LIST, "findByGroupId",
84 new String[] { Long.class.getName() });
85 public static final FinderPath FINDER_PATH_FIND_BY_OBC_GROUPID = new FinderPath(UserGroupGroupRoleModelImpl.ENTITY_CACHE_ENABLED,
86 UserGroupGroupRoleModelImpl.FINDER_CACHE_ENABLED,
87 FINDER_CLASS_NAME_LIST, "findByGroupId",
88 new String[] {
89 Long.class.getName(),
90
91 "java.lang.Integer", "java.lang.Integer",
92 "com.liferay.portal.kernel.util.OrderByComparator"
93 });
94 public static final FinderPath FINDER_PATH_COUNT_BY_GROUPID = new FinderPath(UserGroupGroupRoleModelImpl.ENTITY_CACHE_ENABLED,
95 UserGroupGroupRoleModelImpl.FINDER_CACHE_ENABLED,
96 FINDER_CLASS_NAME_LIST, "countByGroupId",
97 new String[] { Long.class.getName() });
98 public static final FinderPath FINDER_PATH_FIND_BY_ROLEID = new FinderPath(UserGroupGroupRoleModelImpl.ENTITY_CACHE_ENABLED,
99 UserGroupGroupRoleModelImpl.FINDER_CACHE_ENABLED,
100 FINDER_CLASS_NAME_LIST, "findByRoleId",
101 new String[] { Long.class.getName() });
102 public static final FinderPath FINDER_PATH_FIND_BY_OBC_ROLEID = new FinderPath(UserGroupGroupRoleModelImpl.ENTITY_CACHE_ENABLED,
103 UserGroupGroupRoleModelImpl.FINDER_CACHE_ENABLED,
104 FINDER_CLASS_NAME_LIST, "findByRoleId",
105 new String[] {
106 Long.class.getName(),
107
108 "java.lang.Integer", "java.lang.Integer",
109 "com.liferay.portal.kernel.util.OrderByComparator"
110 });
111 public static final FinderPath FINDER_PATH_COUNT_BY_ROLEID = new FinderPath(UserGroupGroupRoleModelImpl.ENTITY_CACHE_ENABLED,
112 UserGroupGroupRoleModelImpl.FINDER_CACHE_ENABLED,
113 FINDER_CLASS_NAME_LIST, "countByRoleId",
114 new String[] { Long.class.getName() });
115 public static final FinderPath FINDER_PATH_FIND_BY_U_G = new FinderPath(UserGroupGroupRoleModelImpl.ENTITY_CACHE_ENABLED,
116 UserGroupGroupRoleModelImpl.FINDER_CACHE_ENABLED,
117 FINDER_CLASS_NAME_LIST, "findByU_G",
118 new String[] { Long.class.getName(), Long.class.getName() });
119 public static final FinderPath FINDER_PATH_FIND_BY_OBC_U_G = new FinderPath(UserGroupGroupRoleModelImpl.ENTITY_CACHE_ENABLED,
120 UserGroupGroupRoleModelImpl.FINDER_CACHE_ENABLED,
121 FINDER_CLASS_NAME_LIST, "findByU_G",
122 new String[] {
123 Long.class.getName(), Long.class.getName(),
124
125 "java.lang.Integer", "java.lang.Integer",
126 "com.liferay.portal.kernel.util.OrderByComparator"
127 });
128 public static final FinderPath FINDER_PATH_COUNT_BY_U_G = new FinderPath(UserGroupGroupRoleModelImpl.ENTITY_CACHE_ENABLED,
129 UserGroupGroupRoleModelImpl.FINDER_CACHE_ENABLED,
130 FINDER_CLASS_NAME_LIST, "countByU_G",
131 new String[] { Long.class.getName(), Long.class.getName() });
132 public static final FinderPath FINDER_PATH_FIND_BY_G_R = new FinderPath(UserGroupGroupRoleModelImpl.ENTITY_CACHE_ENABLED,
133 UserGroupGroupRoleModelImpl.FINDER_CACHE_ENABLED,
134 FINDER_CLASS_NAME_LIST, "findByG_R",
135 new String[] { Long.class.getName(), Long.class.getName() });
136 public static final FinderPath FINDER_PATH_FIND_BY_OBC_G_R = new FinderPath(UserGroupGroupRoleModelImpl.ENTITY_CACHE_ENABLED,
137 UserGroupGroupRoleModelImpl.FINDER_CACHE_ENABLED,
138 FINDER_CLASS_NAME_LIST, "findByG_R",
139 new String[] {
140 Long.class.getName(), Long.class.getName(),
141
142 "java.lang.Integer", "java.lang.Integer",
143 "com.liferay.portal.kernel.util.OrderByComparator"
144 });
145 public static final FinderPath FINDER_PATH_COUNT_BY_G_R = new FinderPath(UserGroupGroupRoleModelImpl.ENTITY_CACHE_ENABLED,
146 UserGroupGroupRoleModelImpl.FINDER_CACHE_ENABLED,
147 FINDER_CLASS_NAME_LIST, "countByG_R",
148 new String[] { Long.class.getName(), Long.class.getName() });
149 public static final FinderPath FINDER_PATH_FIND_ALL = new FinderPath(UserGroupGroupRoleModelImpl.ENTITY_CACHE_ENABLED,
150 UserGroupGroupRoleModelImpl.FINDER_CACHE_ENABLED,
151 FINDER_CLASS_NAME_LIST, "findAll", new String[0]);
152 public static final FinderPath FINDER_PATH_COUNT_ALL = new FinderPath(UserGroupGroupRoleModelImpl.ENTITY_CACHE_ENABLED,
153 UserGroupGroupRoleModelImpl.FINDER_CACHE_ENABLED,
154 FINDER_CLASS_NAME_LIST, "countAll", new String[0]);
155
156 public void cacheResult(UserGroupGroupRole userGroupGroupRole) {
157 EntityCacheUtil.putResult(UserGroupGroupRoleModelImpl.ENTITY_CACHE_ENABLED,
158 UserGroupGroupRoleImpl.class, userGroupGroupRole.getPrimaryKey(),
159 userGroupGroupRole);
160 }
161
162 public void cacheResult(List<UserGroupGroupRole> userGroupGroupRoles) {
163 for (UserGroupGroupRole userGroupGroupRole : userGroupGroupRoles) {
164 if (EntityCacheUtil.getResult(
165 UserGroupGroupRoleModelImpl.ENTITY_CACHE_ENABLED,
166 UserGroupGroupRoleImpl.class,
167 userGroupGroupRole.getPrimaryKey(), this) == null) {
168 cacheResult(userGroupGroupRole);
169 }
170 }
171 }
172
173 public void clearCache() {
174 CacheRegistry.clear(UserGroupGroupRoleImpl.class.getName());
175 EntityCacheUtil.clearCache(UserGroupGroupRoleImpl.class.getName());
176 FinderCacheUtil.clearCache(FINDER_CLASS_NAME_ENTITY);
177 FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST);
178 }
179
180 public UserGroupGroupRole create(UserGroupGroupRolePK userGroupGroupRolePK) {
181 UserGroupGroupRole userGroupGroupRole = new UserGroupGroupRoleImpl();
182
183 userGroupGroupRole.setNew(true);
184 userGroupGroupRole.setPrimaryKey(userGroupGroupRolePK);
185
186 return userGroupGroupRole;
187 }
188
189 public UserGroupGroupRole remove(UserGroupGroupRolePK userGroupGroupRolePK)
190 throws NoSuchUserGroupGroupRoleException, SystemException {
191 Session session = null;
192
193 try {
194 session = openSession();
195
196 UserGroupGroupRole userGroupGroupRole = (UserGroupGroupRole)session.get(UserGroupGroupRoleImpl.class,
197 userGroupGroupRolePK);
198
199 if (userGroupGroupRole == null) {
200 if (_log.isWarnEnabled()) {
201 _log.warn(
202 "No UserGroupGroupRole exists with the primary key " +
203 userGroupGroupRolePK);
204 }
205
206 throw new NoSuchUserGroupGroupRoleException(
207 "No UserGroupGroupRole exists with the primary key " +
208 userGroupGroupRolePK);
209 }
210
211 return remove(userGroupGroupRole);
212 }
213 catch (NoSuchUserGroupGroupRoleException nsee) {
214 throw nsee;
215 }
216 catch (Exception e) {
217 throw processException(e);
218 }
219 finally {
220 closeSession(session);
221 }
222 }
223
224 public UserGroupGroupRole remove(UserGroupGroupRole userGroupGroupRole)
225 throws SystemException {
226 for (ModelListener<UserGroupGroupRole> listener : listeners) {
227 listener.onBeforeRemove(userGroupGroupRole);
228 }
229
230 userGroupGroupRole = removeImpl(userGroupGroupRole);
231
232 for (ModelListener<UserGroupGroupRole> listener : listeners) {
233 listener.onAfterRemove(userGroupGroupRole);
234 }
235
236 return userGroupGroupRole;
237 }
238
239 protected UserGroupGroupRole removeImpl(
240 UserGroupGroupRole userGroupGroupRole) throws SystemException {
241 Session session = null;
242
243 try {
244 session = openSession();
245
246 if (userGroupGroupRole.isCachedModel() ||
247 BatchSessionUtil.isEnabled()) {
248 Object staleObject = session.get(UserGroupGroupRoleImpl.class,
249 userGroupGroupRole.getPrimaryKeyObj());
250
251 if (staleObject != null) {
252 session.evict(staleObject);
253 }
254 }
255
256 session.delete(userGroupGroupRole);
257
258 session.flush();
259 }
260 catch (Exception e) {
261 throw processException(e);
262 }
263 finally {
264 closeSession(session);
265 }
266
267 FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST);
268
269 EntityCacheUtil.removeResult(UserGroupGroupRoleModelImpl.ENTITY_CACHE_ENABLED,
270 UserGroupGroupRoleImpl.class, userGroupGroupRole.getPrimaryKey());
271
272 return userGroupGroupRole;
273 }
274
275
278 public UserGroupGroupRole update(UserGroupGroupRole userGroupGroupRole)
279 throws SystemException {
280 if (_log.isWarnEnabled()) {
281 _log.warn(
282 "Using the deprecated update(UserGroupGroupRole userGroupGroupRole) method. Use update(UserGroupGroupRole userGroupGroupRole, boolean merge) instead.");
283 }
284
285 return update(userGroupGroupRole, false);
286 }
287
288
301 public UserGroupGroupRole update(UserGroupGroupRole userGroupGroupRole,
302 boolean merge) throws SystemException {
303 boolean isNew = userGroupGroupRole.isNew();
304
305 for (ModelListener<UserGroupGroupRole> listener : listeners) {
306 if (isNew) {
307 listener.onBeforeCreate(userGroupGroupRole);
308 }
309 else {
310 listener.onBeforeUpdate(userGroupGroupRole);
311 }
312 }
313
314 userGroupGroupRole = updateImpl(userGroupGroupRole, merge);
315
316 for (ModelListener<UserGroupGroupRole> listener : listeners) {
317 if (isNew) {
318 listener.onAfterCreate(userGroupGroupRole);
319 }
320 else {
321 listener.onAfterUpdate(userGroupGroupRole);
322 }
323 }
324
325 return userGroupGroupRole;
326 }
327
328 public UserGroupGroupRole updateImpl(
329 com.liferay.portal.model.UserGroupGroupRole userGroupGroupRole,
330 boolean merge) throws SystemException {
331 Session session = null;
332
333 try {
334 session = openSession();
335
336 BatchSessionUtil.update(session, userGroupGroupRole, merge);
337
338 userGroupGroupRole.setNew(false);
339 }
340 catch (Exception e) {
341 throw processException(e);
342 }
343 finally {
344 closeSession(session);
345 }
346
347 FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST);
348
349 EntityCacheUtil.putResult(UserGroupGroupRoleModelImpl.ENTITY_CACHE_ENABLED,
350 UserGroupGroupRoleImpl.class, userGroupGroupRole.getPrimaryKey(),
351 userGroupGroupRole);
352
353 return userGroupGroupRole;
354 }
355
356 public UserGroupGroupRole findByPrimaryKey(
357 UserGroupGroupRolePK userGroupGroupRolePK)
358 throws NoSuchUserGroupGroupRoleException, SystemException {
359 UserGroupGroupRole userGroupGroupRole = fetchByPrimaryKey(userGroupGroupRolePK);
360
361 if (userGroupGroupRole == null) {
362 if (_log.isWarnEnabled()) {
363 _log.warn("No UserGroupGroupRole exists with the primary key " +
364 userGroupGroupRolePK);
365 }
366
367 throw new NoSuchUserGroupGroupRoleException(
368 "No UserGroupGroupRole exists with the primary key " +
369 userGroupGroupRolePK);
370 }
371
372 return userGroupGroupRole;
373 }
374
375 public UserGroupGroupRole fetchByPrimaryKey(
376 UserGroupGroupRolePK userGroupGroupRolePK) throws SystemException {
377 UserGroupGroupRole userGroupGroupRole = (UserGroupGroupRole)EntityCacheUtil.getResult(UserGroupGroupRoleModelImpl.ENTITY_CACHE_ENABLED,
378 UserGroupGroupRoleImpl.class, userGroupGroupRolePK, this);
379
380 if (userGroupGroupRole == null) {
381 Session session = null;
382
383 try {
384 session = openSession();
385
386 userGroupGroupRole = (UserGroupGroupRole)session.get(UserGroupGroupRoleImpl.class,
387 userGroupGroupRolePK);
388 }
389 catch (Exception e) {
390 throw processException(e);
391 }
392 finally {
393 if (userGroupGroupRole != null) {
394 cacheResult(userGroupGroupRole);
395 }
396
397 closeSession(session);
398 }
399 }
400
401 return userGroupGroupRole;
402 }
403
404 public List<UserGroupGroupRole> findByUserGroupId(long userGroupId)
405 throws SystemException {
406 Object[] finderArgs = new Object[] { new Long(userGroupId) };
407
408 List<UserGroupGroupRole> list = (List<UserGroupGroupRole>)FinderCacheUtil.getResult(FINDER_PATH_FIND_BY_USERGROUPID,
409 finderArgs, this);
410
411 if (list == null) {
412 Session session = null;
413
414 try {
415 session = openSession();
416
417 StringBuilder query = new StringBuilder();
418
419 query.append(
420 "SELECT userGroupGroupRole FROM UserGroupGroupRole userGroupGroupRole WHERE ");
421
422 query.append("userGroupGroupRole.id.userGroupId = ?");
423
424 query.append(" ");
425
426 Query q = session.createQuery(query.toString());
427
428 QueryPos qPos = QueryPos.getInstance(q);
429
430 qPos.add(userGroupId);
431
432 list = q.list();
433 }
434 catch (Exception e) {
435 throw processException(e);
436 }
437 finally {
438 if (list == null) {
439 list = new ArrayList<UserGroupGroupRole>();
440 }
441
442 cacheResult(list);
443
444 FinderCacheUtil.putResult(FINDER_PATH_FIND_BY_USERGROUPID,
445 finderArgs, list);
446
447 closeSession(session);
448 }
449 }
450
451 return list;
452 }
453
454 public List<UserGroupGroupRole> findByUserGroupId(long userGroupId,
455 int start, int end) throws SystemException {
456 return findByUserGroupId(userGroupId, start, end, null);
457 }
458
459 public List<UserGroupGroupRole> findByUserGroupId(long userGroupId,
460 int start, int end, OrderByComparator obc) throws SystemException {
461 Object[] finderArgs = new Object[] {
462 new Long(userGroupId),
463
464 String.valueOf(start), String.valueOf(end), String.valueOf(obc)
465 };
466
467 List<UserGroupGroupRole> list = (List<UserGroupGroupRole>)FinderCacheUtil.getResult(FINDER_PATH_FIND_BY_OBC_USERGROUPID,
468 finderArgs, this);
469
470 if (list == null) {
471 Session session = null;
472
473 try {
474 session = openSession();
475
476 StringBuilder query = new StringBuilder();
477
478 query.append(
479 "SELECT userGroupGroupRole FROM UserGroupGroupRole userGroupGroupRole WHERE ");
480
481 query.append("userGroupGroupRole.id.userGroupId = ?");
482
483 query.append(" ");
484
485 if (obc != null) {
486 query.append("ORDER BY ");
487
488 String[] orderByFields = obc.getOrderByFields();
489
490 for (int i = 0; i < orderByFields.length; i++) {
491 query.append("userGroupGroupRole.");
492 query.append(orderByFields[i]);
493
494 if (obc.isAscending()) {
495 query.append(" ASC");
496 }
497 else {
498 query.append(" DESC");
499 }
500
501 if ((i + 1) < orderByFields.length) {
502 query.append(", ");
503 }
504 }
505 }
506
507 Query q = session.createQuery(query.toString());
508
509 QueryPos qPos = QueryPos.getInstance(q);
510
511 qPos.add(userGroupId);
512
513 list = (List<UserGroupGroupRole>)QueryUtil.list(q,
514 getDialect(), start, end);
515 }
516 catch (Exception e) {
517 throw processException(e);
518 }
519 finally {
520 if (list == null) {
521 list = new ArrayList<UserGroupGroupRole>();
522 }
523
524 cacheResult(list);
525
526 FinderCacheUtil.putResult(FINDER_PATH_FIND_BY_OBC_USERGROUPID,
527 finderArgs, list);
528
529 closeSession(session);
530 }
531 }
532
533 return list;
534 }
535
536 public UserGroupGroupRole findByUserGroupId_First(long userGroupId,
537 OrderByComparator obc)
538 throws NoSuchUserGroupGroupRoleException, SystemException {
539 List<UserGroupGroupRole> list = findByUserGroupId(userGroupId, 0, 1, obc);
540
541 if (list.isEmpty()) {
542 StringBuilder msg = new StringBuilder();
543
544 msg.append("No UserGroupGroupRole exists with the key {");
545
546 msg.append("userGroupId=" + userGroupId);
547
548 msg.append(StringPool.CLOSE_CURLY_BRACE);
549
550 throw new NoSuchUserGroupGroupRoleException(msg.toString());
551 }
552 else {
553 return list.get(0);
554 }
555 }
556
557 public UserGroupGroupRole findByUserGroupId_Last(long userGroupId,
558 OrderByComparator obc)
559 throws NoSuchUserGroupGroupRoleException, SystemException {
560 int count = countByUserGroupId(userGroupId);
561
562 List<UserGroupGroupRole> list = findByUserGroupId(userGroupId,
563 count - 1, count, obc);
564
565 if (list.isEmpty()) {
566 StringBuilder msg = new StringBuilder();
567
568 msg.append("No UserGroupGroupRole exists with the key {");
569
570 msg.append("userGroupId=" + userGroupId);
571
572 msg.append(StringPool.CLOSE_CURLY_BRACE);
573
574 throw new NoSuchUserGroupGroupRoleException(msg.toString());
575 }
576 else {
577 return list.get(0);
578 }
579 }
580
581 public UserGroupGroupRole[] findByUserGroupId_PrevAndNext(
582 UserGroupGroupRolePK userGroupGroupRolePK, long userGroupId,
583 OrderByComparator obc)
584 throws NoSuchUserGroupGroupRoleException, SystemException {
585 UserGroupGroupRole userGroupGroupRole = findByPrimaryKey(userGroupGroupRolePK);
586
587 int count = countByUserGroupId(userGroupId);
588
589 Session session = null;
590
591 try {
592 session = openSession();
593
594 StringBuilder query = new StringBuilder();
595
596 query.append(
597 "SELECT userGroupGroupRole FROM UserGroupGroupRole userGroupGroupRole WHERE ");
598
599 query.append("userGroupGroupRole.id.userGroupId = ?");
600
601 query.append(" ");
602
603 if (obc != null) {
604 query.append("ORDER BY ");
605
606 String[] orderByFields = obc.getOrderByFields();
607
608 for (int i = 0; i < orderByFields.length; i++) {
609 query.append("userGroupGroupRole.");
610 query.append(orderByFields[i]);
611
612 if (obc.isAscending()) {
613 query.append(" ASC");
614 }
615 else {
616 query.append(" DESC");
617 }
618
619 if ((i + 1) < orderByFields.length) {
620 query.append(", ");
621 }
622 }
623 }
624
625 Query q = session.createQuery(query.toString());
626
627 QueryPos qPos = QueryPos.getInstance(q);
628
629 qPos.add(userGroupId);
630
631 Object[] objArray = QueryUtil.getPrevAndNext(q, count, obc,
632 userGroupGroupRole);
633
634 UserGroupGroupRole[] array = new UserGroupGroupRoleImpl[3];
635
636 array[0] = (UserGroupGroupRole)objArray[0];
637 array[1] = (UserGroupGroupRole)objArray[1];
638 array[2] = (UserGroupGroupRole)objArray[2];
639
640 return array;
641 }
642 catch (Exception e) {
643 throw processException(e);
644 }
645 finally {
646 closeSession(session);
647 }
648 }
649
650 public List<UserGroupGroupRole> findByGroupId(long groupId)
651 throws SystemException {
652 Object[] finderArgs = new Object[] { new Long(groupId) };
653
654 List<UserGroupGroupRole> list = (List<UserGroupGroupRole>)FinderCacheUtil.getResult(FINDER_PATH_FIND_BY_GROUPID,
655 finderArgs, this);
656
657 if (list == null) {
658 Session session = null;
659
660 try {
661 session = openSession();
662
663 StringBuilder query = new StringBuilder();
664
665 query.append(
666 "SELECT userGroupGroupRole FROM UserGroupGroupRole userGroupGroupRole WHERE ");
667
668 query.append("userGroupGroupRole.id.groupId = ?");
669
670 query.append(" ");
671
672 Query q = session.createQuery(query.toString());
673
674 QueryPos qPos = QueryPos.getInstance(q);
675
676 qPos.add(groupId);
677
678 list = q.list();
679 }
680 catch (Exception e) {
681 throw processException(e);
682 }
683 finally {
684 if (list == null) {
685 list = new ArrayList<UserGroupGroupRole>();
686 }
687
688 cacheResult(list);
689
690 FinderCacheUtil.putResult(FINDER_PATH_FIND_BY_GROUPID,
691 finderArgs, list);
692
693 closeSession(session);
694 }
695 }
696
697 return list;
698 }
699
700 public List<UserGroupGroupRole> findByGroupId(long groupId, int start,
701 int end) throws SystemException {
702 return findByGroupId(groupId, start, end, null);
703 }
704
705 public List<UserGroupGroupRole> findByGroupId(long groupId, int start,
706 int end, OrderByComparator obc) throws SystemException {
707 Object[] finderArgs = new Object[] {
708 new Long(groupId),
709
710 String.valueOf(start), String.valueOf(end), String.valueOf(obc)
711 };
712
713 List<UserGroupGroupRole> list = (List<UserGroupGroupRole>)FinderCacheUtil.getResult(FINDER_PATH_FIND_BY_OBC_GROUPID,
714 finderArgs, this);
715
716 if (list == null) {
717 Session session = null;
718
719 try {
720 session = openSession();
721
722 StringBuilder query = new StringBuilder();
723
724 query.append(
725 "SELECT userGroupGroupRole FROM UserGroupGroupRole userGroupGroupRole WHERE ");
726
727 query.append("userGroupGroupRole.id.groupId = ?");
728
729 query.append(" ");
730
731 if (obc != null) {
732 query.append("ORDER BY ");
733
734 String[] orderByFields = obc.getOrderByFields();
735
736 for (int i = 0; i < orderByFields.length; i++) {
737 query.append("userGroupGroupRole.");
738 query.append(orderByFields[i]);
739
740 if (obc.isAscending()) {
741 query.append(" ASC");
742 }
743 else {
744 query.append(" DESC");
745 }
746
747 if ((i + 1) < orderByFields.length) {
748 query.append(", ");
749 }
750 }
751 }
752
753 Query q = session.createQuery(query.toString());
754
755 QueryPos qPos = QueryPos.getInstance(q);
756
757 qPos.add(groupId);
758
759 list = (List<UserGroupGroupRole>)QueryUtil.list(q,
760 getDialect(), start, end);
761 }
762 catch (Exception e) {
763 throw processException(e);
764 }
765 finally {
766 if (list == null) {
767 list = new ArrayList<UserGroupGroupRole>();
768 }
769
770 cacheResult(list);
771
772 FinderCacheUtil.putResult(FINDER_PATH_FIND_BY_OBC_GROUPID,
773 finderArgs, list);
774
775 closeSession(session);
776 }
777 }
778
779 return list;
780 }
781
782 public UserGroupGroupRole findByGroupId_First(long groupId,
783 OrderByComparator obc)
784 throws NoSuchUserGroupGroupRoleException, SystemException {
785 List<UserGroupGroupRole> list = findByGroupId(groupId, 0, 1, obc);
786
787 if (list.isEmpty()) {
788 StringBuilder msg = new StringBuilder();
789
790 msg.append("No UserGroupGroupRole exists with the key {");
791
792 msg.append("groupId=" + groupId);
793
794 msg.append(StringPool.CLOSE_CURLY_BRACE);
795
796 throw new NoSuchUserGroupGroupRoleException(msg.toString());
797 }
798 else {
799 return list.get(0);
800 }
801 }
802
803 public UserGroupGroupRole findByGroupId_Last(long groupId,
804 OrderByComparator obc)
805 throws NoSuchUserGroupGroupRoleException, SystemException {
806 int count = countByGroupId(groupId);
807
808 List<UserGroupGroupRole> list = findByGroupId(groupId, count - 1,
809 count, obc);
810
811 if (list.isEmpty()) {
812 StringBuilder msg = new StringBuilder();
813
814 msg.append("No UserGroupGroupRole exists with the key {");
815
816 msg.append("groupId=" + groupId);
817
818 msg.append(StringPool.CLOSE_CURLY_BRACE);
819
820 throw new NoSuchUserGroupGroupRoleException(msg.toString());
821 }
822 else {
823 return list.get(0);
824 }
825 }
826
827 public UserGroupGroupRole[] findByGroupId_PrevAndNext(
828 UserGroupGroupRolePK userGroupGroupRolePK, long groupId,
829 OrderByComparator obc)
830 throws NoSuchUserGroupGroupRoleException, SystemException {
831 UserGroupGroupRole userGroupGroupRole = findByPrimaryKey(userGroupGroupRolePK);
832
833 int count = countByGroupId(groupId);
834
835 Session session = null;
836
837 try {
838 session = openSession();
839
840 StringBuilder query = new StringBuilder();
841
842 query.append(
843 "SELECT userGroupGroupRole FROM UserGroupGroupRole userGroupGroupRole WHERE ");
844
845 query.append("userGroupGroupRole.id.groupId = ?");
846
847 query.append(" ");
848
849 if (obc != null) {
850 query.append("ORDER BY ");
851
852 String[] orderByFields = obc.getOrderByFields();
853
854 for (int i = 0; i < orderByFields.length; i++) {
855 query.append("userGroupGroupRole.");
856 query.append(orderByFields[i]);
857
858 if (obc.isAscending()) {
859 query.append(" ASC");
860 }
861 else {
862 query.append(" DESC");
863 }
864
865 if ((i + 1) < orderByFields.length) {
866 query.append(", ");
867 }
868 }
869 }
870
871 Query q = session.createQuery(query.toString());
872
873 QueryPos qPos = QueryPos.getInstance(q);
874
875 qPos.add(groupId);
876
877 Object[] objArray = QueryUtil.getPrevAndNext(q, count, obc,
878 userGroupGroupRole);
879
880 UserGroupGroupRole[] array = new UserGroupGroupRoleImpl[3];
881
882 array[0] = (UserGroupGroupRole)objArray[0];
883 array[1] = (UserGroupGroupRole)objArray[1];
884 array[2] = (UserGroupGroupRole)objArray[2];
885
886 return array;
887 }
888 catch (Exception e) {
889 throw processException(e);
890 }
891 finally {
892 closeSession(session);
893 }
894 }
895
896 public List<UserGroupGroupRole> findByRoleId(long roleId)
897 throws SystemException {
898 Object[] finderArgs = new Object[] { new Long(roleId) };
899
900 List<UserGroupGroupRole> list = (List<UserGroupGroupRole>)FinderCacheUtil.getResult(FINDER_PATH_FIND_BY_ROLEID,
901 finderArgs, this);
902
903 if (list == null) {
904 Session session = null;
905
906 try {
907 session = openSession();
908
909 StringBuilder query = new StringBuilder();
910
911 query.append(
912 "SELECT userGroupGroupRole FROM UserGroupGroupRole userGroupGroupRole WHERE ");
913
914 query.append("userGroupGroupRole.id.roleId = ?");
915
916 query.append(" ");
917
918 Query q = session.createQuery(query.toString());
919
920 QueryPos qPos = QueryPos.getInstance(q);
921
922 qPos.add(roleId);
923
924 list = q.list();
925 }
926 catch (Exception e) {
927 throw processException(e);
928 }
929 finally {
930 if (list == null) {
931 list = new ArrayList<UserGroupGroupRole>();
932 }
933
934 cacheResult(list);
935
936 FinderCacheUtil.putResult(FINDER_PATH_FIND_BY_ROLEID,
937 finderArgs, list);
938
939 closeSession(session);
940 }
941 }
942
943 return list;
944 }
945
946 public List<UserGroupGroupRole> findByRoleId(long roleId, int start, int end)
947 throws SystemException {
948 return findByRoleId(roleId, start, end, null);
949 }
950
951 public List<UserGroupGroupRole> findByRoleId(long roleId, int start,
952 int end, OrderByComparator obc) throws SystemException {
953 Object[] finderArgs = new Object[] {
954 new Long(roleId),
955
956 String.valueOf(start), String.valueOf(end), String.valueOf(obc)
957 };
958
959 List<UserGroupGroupRole> list = (List<UserGroupGroupRole>)FinderCacheUtil.getResult(FINDER_PATH_FIND_BY_OBC_ROLEID,
960 finderArgs, this);
961
962 if (list == null) {
963 Session session = null;
964
965 try {
966 session = openSession();
967
968 StringBuilder query = new StringBuilder();
969
970 query.append(
971 "SELECT userGroupGroupRole FROM UserGroupGroupRole userGroupGroupRole WHERE ");
972
973 query.append("userGroupGroupRole.id.roleId = ?");
974
975 query.append(" ");
976
977 if (obc != null) {
978 query.append("ORDER BY ");
979
980 String[] orderByFields = obc.getOrderByFields();
981
982 for (int i = 0; i < orderByFields.length; i++) {
983 query.append("userGroupGroupRole.");
984 query.append(orderByFields[i]);
985
986 if (obc.isAscending()) {
987 query.append(" ASC");
988 }
989 else {
990 query.append(" DESC");
991 }
992
993 if ((i + 1) < orderByFields.length) {
994 query.append(", ");
995 }
996 }
997 }
998
999 Query q = session.createQuery(query.toString());
1000
1001 QueryPos qPos = QueryPos.getInstance(q);
1002
1003 qPos.add(roleId);
1004
1005 list = (List<UserGroupGroupRole>)QueryUtil.list(q,
1006 getDialect(), start, end);
1007 }
1008 catch (Exception e) {
1009 throw processException(e);
1010 }
1011 finally {
1012 if (list == null) {
1013 list = new ArrayList<UserGroupGroupRole>();
1014 }
1015
1016 cacheResult(list);
1017
1018 FinderCacheUtil.putResult(FINDER_PATH_FIND_BY_OBC_ROLEID,
1019 finderArgs, list);
1020
1021 closeSession(session);
1022 }
1023 }
1024
1025 return list;
1026 }
1027
1028 public UserGroupGroupRole findByRoleId_First(long roleId,
1029 OrderByComparator obc)
1030 throws NoSuchUserGroupGroupRoleException, SystemException {
1031 List<UserGroupGroupRole> list = findByRoleId(roleId, 0, 1, obc);
1032
1033 if (list.isEmpty()) {
1034 StringBuilder msg = new StringBuilder();
1035
1036 msg.append("No UserGroupGroupRole exists with the key {");
1037
1038 msg.append("roleId=" + roleId);
1039
1040 msg.append(StringPool.CLOSE_CURLY_BRACE);
1041
1042 throw new NoSuchUserGroupGroupRoleException(msg.toString());
1043 }
1044 else {
1045 return list.get(0);
1046 }
1047 }
1048
1049 public UserGroupGroupRole findByRoleId_Last(long roleId,
1050 OrderByComparator obc)
1051 throws NoSuchUserGroupGroupRoleException, SystemException {
1052 int count = countByRoleId(roleId);
1053
1054 List<UserGroupGroupRole> list = findByRoleId(roleId, count - 1, count,
1055 obc);
1056
1057 if (list.isEmpty()) {
1058 StringBuilder msg = new StringBuilder();
1059
1060 msg.append("No UserGroupGroupRole exists with the key {");
1061
1062 msg.append("roleId=" + roleId);
1063
1064 msg.append(StringPool.CLOSE_CURLY_BRACE);
1065
1066 throw new NoSuchUserGroupGroupRoleException(msg.toString());
1067 }
1068 else {
1069 return list.get(0);
1070 }
1071 }
1072
1073 public UserGroupGroupRole[] findByRoleId_PrevAndNext(
1074 UserGroupGroupRolePK userGroupGroupRolePK, long roleId,
1075 OrderByComparator obc)
1076 throws NoSuchUserGroupGroupRoleException, SystemException {
1077 UserGroupGroupRole userGroupGroupRole = findByPrimaryKey(userGroupGroupRolePK);
1078
1079 int count = countByRoleId(roleId);
1080
1081 Session session = null;
1082
1083 try {
1084 session = openSession();
1085
1086 StringBuilder query = new StringBuilder();
1087
1088 query.append(
1089 "SELECT userGroupGroupRole FROM UserGroupGroupRole userGroupGroupRole WHERE ");
1090
1091 query.append("userGroupGroupRole.id.roleId = ?");
1092
1093 query.append(" ");
1094
1095 if (obc != null) {
1096 query.append("ORDER BY ");
1097
1098 String[] orderByFields = obc.getOrderByFields();
1099
1100 for (int i = 0; i < orderByFields.length; i++) {
1101 query.append("userGroupGroupRole.");
1102 query.append(orderByFields[i]);
1103
1104 if (obc.isAscending()) {
1105 query.append(" ASC");
1106 }
1107 else {
1108 query.append(" DESC");
1109 }
1110
1111 if ((i + 1) < orderByFields.length) {
1112 query.append(", ");
1113 }
1114 }
1115 }
1116
1117 Query q = session.createQuery(query.toString());
1118
1119 QueryPos qPos = QueryPos.getInstance(q);
1120
1121 qPos.add(roleId);
1122
1123 Object[] objArray = QueryUtil.getPrevAndNext(q, count, obc,
1124 userGroupGroupRole);
1125
1126 UserGroupGroupRole[] array = new UserGroupGroupRoleImpl[3];
1127
1128 array[0] = (UserGroupGroupRole)objArray[0];
1129 array[1] = (UserGroupGroupRole)objArray[1];
1130 array[2] = (UserGroupGroupRole)objArray[2];
1131
1132 return array;
1133 }
1134 catch (Exception e) {
1135 throw processException(e);
1136 }
1137 finally {
1138 closeSession(session);
1139 }
1140 }
1141
1142 public List<UserGroupGroupRole> findByU_G(long userGroupId, long groupId)
1143 throws SystemException {
1144 Object[] finderArgs = new Object[] {
1145 new Long(userGroupId), new Long(groupId)
1146 };
1147
1148 List<UserGroupGroupRole> list = (List<UserGroupGroupRole>)FinderCacheUtil.getResult(FINDER_PATH_FIND_BY_U_G,
1149 finderArgs, this);
1150
1151 if (list == null) {
1152 Session session = null;
1153
1154 try {
1155 session = openSession();
1156
1157 StringBuilder query = new StringBuilder();
1158
1159 query.append(
1160 "SELECT userGroupGroupRole FROM UserGroupGroupRole userGroupGroupRole WHERE ");
1161
1162 query.append("userGroupGroupRole.id.userGroupId = ?");
1163
1164 query.append(" AND ");
1165
1166 query.append("userGroupGroupRole.id.groupId = ?");
1167
1168 query.append(" ");
1169
1170 Query q = session.createQuery(query.toString());
1171
1172 QueryPos qPos = QueryPos.getInstance(q);
1173
1174 qPos.add(userGroupId);
1175
1176 qPos.add(groupId);
1177
1178 list = q.list();
1179 }
1180 catch (Exception e) {
1181 throw processException(e);
1182 }
1183 finally {
1184 if (list == null) {
1185 list = new ArrayList<UserGroupGroupRole>();
1186 }
1187
1188 cacheResult(list);
1189
1190 FinderCacheUtil.putResult(FINDER_PATH_FIND_BY_U_G, finderArgs,
1191 list);
1192
1193 closeSession(session);
1194 }
1195 }
1196
1197 return list;
1198 }
1199
1200 public List<UserGroupGroupRole> findByU_G(long userGroupId, long groupId,
1201 int start, int end) throws SystemException {
1202 return findByU_G(userGroupId, groupId, start, end, null);
1203 }
1204
1205 public List<UserGroupGroupRole> findByU_G(long userGroupId, long groupId,
1206 int start, int end, OrderByComparator obc) throws SystemException {
1207 Object[] finderArgs = new Object[] {
1208 new Long(userGroupId), new Long(groupId),
1209
1210 String.valueOf(start), String.valueOf(end), String.valueOf(obc)
1211 };
1212
1213 List<UserGroupGroupRole> list = (List<UserGroupGroupRole>)FinderCacheUtil.getResult(FINDER_PATH_FIND_BY_OBC_U_G,
1214 finderArgs, this);
1215
1216 if (list == null) {
1217 Session session = null;
1218
1219 try {
1220 session = openSession();
1221
1222 StringBuilder query = new StringBuilder();
1223
1224 query.append(
1225 "SELECT userGroupGroupRole FROM UserGroupGroupRole userGroupGroupRole WHERE ");
1226
1227 query.append("userGroupGroupRole.id.userGroupId = ?");
1228
1229 query.append(" AND ");
1230
1231 query.append("userGroupGroupRole.id.groupId = ?");
1232
1233 query.append(" ");
1234
1235 if (obc != null) {
1236 query.append("ORDER BY ");
1237
1238 String[] orderByFields = obc.getOrderByFields();
1239
1240 for (int i = 0; i < orderByFields.length; i++) {
1241 query.append("userGroupGroupRole.");
1242 query.append(orderByFields[i]);
1243
1244 if (obc.isAscending()) {
1245 query.append(" ASC");
1246 }
1247 else {
1248 query.append(" DESC");
1249 }
1250
1251 if ((i + 1) < orderByFields.length) {
1252 query.append(", ");
1253 }
1254 }
1255 }
1256
1257 Query q = session.createQuery(query.toString());
1258
1259 QueryPos qPos = QueryPos.getInstance(q);
1260
1261 qPos.add(userGroupId);
1262
1263 qPos.add(groupId);
1264
1265 list = (List<UserGroupGroupRole>)QueryUtil.list(q,
1266 getDialect(), start, end);
1267 }
1268 catch (Exception e) {
1269 throw processException(e);
1270 }
1271 finally {
1272 if (list == null) {
1273 list = new ArrayList<UserGroupGroupRole>();
1274 }
1275
1276 cacheResult(list);
1277
1278 FinderCacheUtil.putResult(FINDER_PATH_FIND_BY_OBC_U_G,
1279 finderArgs, list);
1280
1281 closeSession(session);
1282 }
1283 }
1284
1285 return list;
1286 }
1287
1288 public UserGroupGroupRole findByU_G_First(long userGroupId, long groupId,
1289 OrderByComparator obc)
1290 throws NoSuchUserGroupGroupRoleException, SystemException {
1291 List<UserGroupGroupRole> list = findByU_G(userGroupId, groupId, 0, 1,
1292 obc);
1293
1294 if (list.isEmpty()) {
1295 StringBuilder msg = new StringBuilder();
1296
1297 msg.append("No UserGroupGroupRole exists with the key {");
1298
1299 msg.append("userGroupId=" + userGroupId);
1300
1301 msg.append(", ");
1302 msg.append("groupId=" + groupId);
1303
1304 msg.append(StringPool.CLOSE_CURLY_BRACE);
1305
1306 throw new NoSuchUserGroupGroupRoleException(msg.toString());
1307 }
1308 else {
1309 return list.get(0);
1310 }
1311 }
1312
1313 public UserGroupGroupRole findByU_G_Last(long userGroupId, long groupId,
1314 OrderByComparator obc)
1315 throws NoSuchUserGroupGroupRoleException, SystemException {
1316 int count = countByU_G(userGroupId, groupId);
1317
1318 List<UserGroupGroupRole> list = findByU_G(userGroupId, groupId,
1319 count - 1, count, obc);
1320
1321 if (list.isEmpty()) {
1322 StringBuilder msg = new StringBuilder();
1323
1324 msg.append("No UserGroupGroupRole exists with the key {");
1325
1326 msg.append("userGroupId=" + userGroupId);
1327
1328 msg.append(", ");
1329 msg.append("groupId=" + groupId);
1330
1331 msg.append(StringPool.CLOSE_CURLY_BRACE);
1332
1333 throw new NoSuchUserGroupGroupRoleException(msg.toString());
1334 }
1335 else {
1336 return list.get(0);
1337 }
1338 }
1339
1340 public UserGroupGroupRole[] findByU_G_PrevAndNext(
1341 UserGroupGroupRolePK userGroupGroupRolePK, long userGroupId,
1342 long groupId, OrderByComparator obc)
1343 throws NoSuchUserGroupGroupRoleException, SystemException {
1344 UserGroupGroupRole userGroupGroupRole = findByPrimaryKey(userGroupGroupRolePK);
1345
1346 int count = countByU_G(userGroupId, groupId);
1347
1348 Session session = null;
1349
1350 try {
1351 session = openSession();
1352
1353 StringBuilder query = new StringBuilder();
1354
1355 query.append(
1356 "SELECT userGroupGroupRole FROM UserGroupGroupRole userGroupGroupRole WHERE ");
1357
1358 query.append("userGroupGroupRole.id.userGroupId = ?");
1359
1360 query.append(" AND ");
1361
1362 query.append("userGroupGroupRole.id.groupId = ?");
1363
1364 query.append(" ");
1365
1366 if (obc != null) {
1367 query.append("ORDER BY ");
1368
1369 String[] orderByFields = obc.getOrderByFields();
1370
1371 for (int i = 0; i < orderByFields.length; i++) {
1372 query.append("userGroupGroupRole.");
1373 query.append(orderByFields[i]);
1374
1375 if (obc.isAscending()) {
1376 query.append(" ASC");
1377 }
1378 else {
1379 query.append(" DESC");
1380 }
1381
1382 if ((i + 1) < orderByFields.length) {
1383 query.append(", ");
1384 }
1385 }
1386 }
1387
1388 Query q = session.createQuery(query.toString());
1389
1390 QueryPos qPos = QueryPos.getInstance(q);
1391
1392 qPos.add(userGroupId);
1393
1394 qPos.add(groupId);
1395
1396 Object[] objArray = QueryUtil.getPrevAndNext(q, count, obc,
1397 userGroupGroupRole);
1398
1399 UserGroupGroupRole[] array = new UserGroupGroupRoleImpl[3];
1400
1401 array[0] = (UserGroupGroupRole)objArray[0];
1402 array[1] = (UserGroupGroupRole)objArray[1];
1403 array[2] = (UserGroupGroupRole)objArray[2];
1404
1405 return array;
1406 }
1407 catch (Exception e) {
1408 throw processException(e);
1409 }
1410 finally {
1411 closeSession(session);
1412 }
1413 }
1414
1415 public List<UserGroupGroupRole> findByG_R(long groupId, long roleId)
1416 throws SystemException {
1417 Object[] finderArgs = new Object[] { new Long(groupId), new Long(roleId) };
1418
1419 List<UserGroupGroupRole> list = (List<UserGroupGroupRole>)FinderCacheUtil.getResult(FINDER_PATH_FIND_BY_G_R,
1420 finderArgs, this);
1421
1422 if (list == null) {
1423 Session session = null;
1424
1425 try {
1426 session = openSession();
1427
1428 StringBuilder query = new StringBuilder();
1429
1430 query.append(
1431 "SELECT userGroupGroupRole FROM UserGroupGroupRole userGroupGroupRole WHERE ");
1432
1433 query.append("userGroupGroupRole.id.groupId = ?");
1434
1435 query.append(" AND ");
1436
1437 query.append("userGroupGroupRole.id.roleId = ?");
1438
1439 query.append(" ");
1440
1441 Query q = session.createQuery(query.toString());
1442
1443 QueryPos qPos = QueryPos.getInstance(q);
1444
1445 qPos.add(groupId);
1446
1447 qPos.add(roleId);
1448
1449 list = q.list();
1450 }
1451 catch (Exception e) {
1452 throw processException(e);
1453 }
1454 finally {
1455 if (list == null) {
1456 list = new ArrayList<UserGroupGroupRole>();
1457 }
1458
1459 cacheResult(list);
1460
1461 FinderCacheUtil.putResult(FINDER_PATH_FIND_BY_G_R, finderArgs,
1462 list);
1463
1464 closeSession(session);
1465 }
1466 }
1467
1468 return list;
1469 }
1470
1471 public List<UserGroupGroupRole> findByG_R(long groupId, long roleId,
1472 int start, int end) throws SystemException {
1473 return findByG_R(groupId, roleId, start, end, null);
1474 }
1475
1476 public List<UserGroupGroupRole> findByG_R(long groupId, long roleId,
1477 int start, int end, OrderByComparator obc) throws SystemException {
1478 Object[] finderArgs = new Object[] {
1479 new Long(groupId), new Long(roleId),
1480
1481 String.valueOf(start), String.valueOf(end), String.valueOf(obc)
1482 };
1483
1484 List<UserGroupGroupRole> list = (List<UserGroupGroupRole>)FinderCacheUtil.getResult(FINDER_PATH_FIND_BY_OBC_G_R,
1485 finderArgs, this);
1486
1487 if (list == null) {
1488 Session session = null;
1489
1490 try {
1491 session = openSession();
1492
1493 StringBuilder query = new StringBuilder();
1494
1495 query.append(
1496 "SELECT userGroupGroupRole FROM UserGroupGroupRole userGroupGroupRole WHERE ");
1497
1498 query.append("userGroupGroupRole.id.groupId = ?");
1499
1500 query.append(" AND ");
1501
1502 query.append("userGroupGroupRole.id.roleId = ?");
1503
1504 query.append(" ");
1505
1506 if (obc != null) {
1507 query.append("ORDER BY ");
1508
1509 String[] orderByFields = obc.getOrderByFields();
1510
1511 for (int i = 0; i < orderByFields.length; i++) {
1512 query.append("userGroupGroupRole.");
1513 query.append(orderByFields[i]);
1514
1515 if (obc.isAscending()) {
1516 query.append(" ASC");
1517 }
1518 else {
1519 query.append(" DESC");
1520 }
1521
1522 if ((i + 1) < orderByFields.length) {
1523 query.append(", ");
1524 }
1525 }
1526 }
1527
1528 Query q = session.createQuery(query.toString());
1529
1530 QueryPos qPos = QueryPos.getInstance(q);
1531
1532 qPos.add(groupId);
1533
1534 qPos.add(roleId);
1535
1536 list = (List<UserGroupGroupRole>)QueryUtil.list(q,
1537 getDialect(), start, end);
1538 }
1539 catch (Exception e) {
1540 throw processException(e);
1541 }
1542 finally {
1543 if (list == null) {
1544 list = new ArrayList<UserGroupGroupRole>();
1545 }
1546
1547 cacheResult(list);
1548
1549 FinderCacheUtil.putResult(FINDER_PATH_FIND_BY_OBC_G_R,
1550 finderArgs, list);
1551
1552 closeSession(session);
1553 }
1554 }
1555
1556 return list;
1557 }
1558
1559 public UserGroupGroupRole findByG_R_First(long groupId, long roleId,
1560 OrderByComparator obc)
1561 throws NoSuchUserGroupGroupRoleException, SystemException {
1562 List<UserGroupGroupRole> list = findByG_R(groupId, roleId, 0, 1, obc);
1563
1564 if (list.isEmpty()) {
1565 StringBuilder msg = new StringBuilder();
1566
1567 msg.append("No UserGroupGroupRole exists with the key {");
1568
1569 msg.append("groupId=" + groupId);
1570
1571 msg.append(", ");
1572 msg.append("roleId=" + roleId);
1573
1574 msg.append(StringPool.CLOSE_CURLY_BRACE);
1575
1576 throw new NoSuchUserGroupGroupRoleException(msg.toString());
1577 }
1578 else {
1579 return list.get(0);
1580 }
1581 }
1582
1583 public UserGroupGroupRole findByG_R_Last(long groupId, long roleId,
1584 OrderByComparator obc)
1585 throws NoSuchUserGroupGroupRoleException, SystemException {
1586 int count = countByG_R(groupId, roleId);
1587
1588 List<UserGroupGroupRole> list = findByG_R(groupId, roleId, count - 1,
1589 count, obc);
1590
1591 if (list.isEmpty()) {
1592 StringBuilder msg = new StringBuilder();
1593
1594 msg.append("No UserGroupGroupRole exists with the key {");
1595
1596 msg.append("groupId=" + groupId);
1597
1598 msg.append(", ");
1599 msg.append("roleId=" + roleId);
1600
1601 msg.append(StringPool.CLOSE_CURLY_BRACE);
1602
1603 throw new NoSuchUserGroupGroupRoleException(msg.toString());
1604 }
1605 else {
1606 return list.get(0);
1607 }
1608 }
1609
1610 public UserGroupGroupRole[] findByG_R_PrevAndNext(
1611 UserGroupGroupRolePK userGroupGroupRolePK, long groupId, long roleId,
1612 OrderByComparator obc)
1613 throws NoSuchUserGroupGroupRoleException, SystemException {
1614 UserGroupGroupRole userGroupGroupRole = findByPrimaryKey(userGroupGroupRolePK);
1615
1616 int count = countByG_R(groupId, roleId);
1617
1618 Session session = null;
1619
1620 try {
1621 session = openSession();
1622
1623 StringBuilder query = new StringBuilder();
1624
1625 query.append(
1626 "SELECT userGroupGroupRole FROM UserGroupGroupRole userGroupGroupRole WHERE ");
1627
1628 query.append("userGroupGroupRole.id.groupId = ?");
1629
1630 query.append(" AND ");
1631
1632 query.append("userGroupGroupRole.id.roleId = ?");
1633
1634 query.append(" ");
1635
1636 if (obc != null) {
1637 query.append("ORDER BY ");
1638
1639 String[] orderByFields = obc.getOrderByFields();
1640
1641 for (int i = 0; i < orderByFields.length; i++) {
1642 query.append("userGroupGroupRole.");
1643 query.append(orderByFields[i]);
1644
1645 if (obc.isAscending()) {
1646 query.append(" ASC");
1647 }
1648 else {
1649 query.append(" DESC");
1650 }
1651
1652 if ((i + 1) < orderByFields.length) {
1653 query.append(", ");
1654 }
1655 }
1656 }
1657
1658 Query q = session.createQuery(query.toString());
1659
1660 QueryPos qPos = QueryPos.getInstance(q);
1661
1662 qPos.add(groupId);
1663
1664 qPos.add(roleId);
1665
1666 Object[] objArray = QueryUtil.getPrevAndNext(q, count, obc,
1667 userGroupGroupRole);
1668
1669 UserGroupGroupRole[] array = new UserGroupGroupRoleImpl[3];
1670
1671 array[0] = (UserGroupGroupRole)objArray[0];
1672 array[1] = (UserGroupGroupRole)objArray[1];
1673 array[2] = (UserGroupGroupRole)objArray[2];
1674
1675 return array;
1676 }
1677 catch (Exception e) {
1678 throw processException(e);
1679 }
1680 finally {
1681 closeSession(session);
1682 }
1683 }
1684
1685 public List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery)
1686 throws SystemException {
1687 Session session = null;
1688
1689 try {
1690 session = openSession();
1691
1692 dynamicQuery.compile(session);
1693
1694 return dynamicQuery.list();
1695 }
1696 catch (Exception e) {
1697 throw processException(e);
1698 }
1699 finally {
1700 closeSession(session);
1701 }
1702 }
1703
1704 public List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery,
1705 int start, int end) throws SystemException {
1706 Session session = null;
1707
1708 try {
1709 session = openSession();
1710
1711 dynamicQuery.setLimit(start, end);
1712
1713 dynamicQuery.compile(session);
1714
1715 return dynamicQuery.list();
1716 }
1717 catch (Exception e) {
1718 throw processException(e);
1719 }
1720 finally {
1721 closeSession(session);
1722 }
1723 }
1724
1725 public List<UserGroupGroupRole> findAll() throws SystemException {
1726 return findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
1727 }
1728
1729 public List<UserGroupGroupRole> findAll(int start, int end)
1730 throws SystemException {
1731 return findAll(start, end, null);
1732 }
1733
1734 public List<UserGroupGroupRole> findAll(int start, int end,
1735 OrderByComparator obc) throws SystemException {
1736 Object[] finderArgs = new Object[] {
1737 String.valueOf(start), String.valueOf(end), String.valueOf(obc)
1738 };
1739
1740 List<UserGroupGroupRole> list = (List<UserGroupGroupRole>)FinderCacheUtil.getResult(FINDER_PATH_FIND_ALL,
1741 finderArgs, this);
1742
1743 if (list == null) {
1744 Session session = null;
1745
1746 try {
1747 session = openSession();
1748
1749 StringBuilder query = new StringBuilder();
1750
1751 query.append(
1752 "SELECT userGroupGroupRole FROM UserGroupGroupRole userGroupGroupRole ");
1753
1754 if (obc != null) {
1755 query.append("ORDER BY ");
1756
1757 String[] orderByFields = obc.getOrderByFields();
1758
1759 for (int i = 0; i < orderByFields.length; i++) {
1760 query.append("userGroupGroupRole.");
1761 query.append(orderByFields[i]);
1762
1763 if (obc.isAscending()) {
1764 query.append(" ASC");
1765 }
1766 else {
1767 query.append(" DESC");
1768 }
1769
1770 if ((i + 1) < orderByFields.length) {
1771 query.append(", ");
1772 }
1773 }
1774 }
1775
1776 Query q = session.createQuery(query.toString());
1777
1778 if (obc == null) {
1779 list = (List<UserGroupGroupRole>)QueryUtil.list(q,
1780 getDialect(), start, end, false);
1781
1782 Collections.sort(list);
1783 }
1784 else {
1785 list = (List<UserGroupGroupRole>)QueryUtil.list(q,
1786 getDialect(), start, end);
1787 }
1788 }
1789 catch (Exception e) {
1790 throw processException(e);
1791 }
1792 finally {
1793 if (list == null) {
1794 list = new ArrayList<UserGroupGroupRole>();
1795 }
1796
1797 cacheResult(list);
1798
1799 FinderCacheUtil.putResult(FINDER_PATH_FIND_ALL, finderArgs, list);
1800
1801 closeSession(session);
1802 }
1803 }
1804
1805 return list;
1806 }
1807
1808 public void removeByUserGroupId(long userGroupId) throws SystemException {
1809 for (UserGroupGroupRole userGroupGroupRole : findByUserGroupId(
1810 userGroupId)) {
1811 remove(userGroupGroupRole);
1812 }
1813 }
1814
1815 public void removeByGroupId(long groupId) throws SystemException {
1816 for (UserGroupGroupRole userGroupGroupRole : findByGroupId(groupId)) {
1817 remove(userGroupGroupRole);
1818 }
1819 }
1820
1821 public void removeByRoleId(long roleId) throws SystemException {
1822 for (UserGroupGroupRole userGroupGroupRole : findByRoleId(roleId)) {
1823 remove(userGroupGroupRole);
1824 }
1825 }
1826
1827 public void removeByU_G(long userGroupId, long groupId)
1828 throws SystemException {
1829 for (UserGroupGroupRole userGroupGroupRole : findByU_G(userGroupId,
1830 groupId)) {
1831 remove(userGroupGroupRole);
1832 }
1833 }
1834
1835 public void removeByG_R(long groupId, long roleId)
1836 throws SystemException {
1837 for (UserGroupGroupRole userGroupGroupRole : findByG_R(groupId, roleId)) {
1838 remove(userGroupGroupRole);
1839 }
1840 }
1841
1842 public void removeAll() throws SystemException {
1843 for (UserGroupGroupRole userGroupGroupRole : findAll()) {
1844 remove(userGroupGroupRole);
1845 }
1846 }
1847
1848 public int countByUserGroupId(long userGroupId) throws SystemException {
1849 Object[] finderArgs = new Object[] { new Long(userGroupId) };
1850
1851 Long count = (Long)FinderCacheUtil.getResult(FINDER_PATH_COUNT_BY_USERGROUPID,
1852 finderArgs, this);
1853
1854 if (count == null) {
1855 Session session = null;
1856
1857 try {
1858 session = openSession();
1859
1860 StringBuilder query = new StringBuilder();
1861
1862 query.append("SELECT COUNT(userGroupGroupRole) ");
1863 query.append(
1864 "FROM UserGroupGroupRole userGroupGroupRole WHERE ");
1865
1866 query.append("userGroupGroupRole.id.userGroupId = ?");
1867
1868 query.append(" ");
1869
1870 Query q = session.createQuery(query.toString());
1871
1872 QueryPos qPos = QueryPos.getInstance(q);
1873
1874 qPos.add(userGroupId);
1875
1876 count = (Long)q.uniqueResult();
1877 }
1878 catch (Exception e) {
1879 throw processException(e);
1880 }
1881 finally {
1882 if (count == null) {
1883 count = Long.valueOf(0);
1884 }
1885
1886 FinderCacheUtil.putResult(FINDER_PATH_COUNT_BY_USERGROUPID,
1887 finderArgs, count);
1888
1889 closeSession(session);
1890 }
1891 }
1892
1893 return count.intValue();
1894 }
1895
1896 public int countByGroupId(long groupId) throws SystemException {
1897 Object[] finderArgs = new Object[] { new Long(groupId) };
1898
1899 Long count = (Long)FinderCacheUtil.getResult(FINDER_PATH_COUNT_BY_GROUPID,
1900 finderArgs, this);
1901
1902 if (count == null) {
1903 Session session = null;
1904
1905 try {
1906 session = openSession();
1907
1908 StringBuilder query = new StringBuilder();
1909
1910 query.append("SELECT COUNT(userGroupGroupRole) ");
1911 query.append(
1912 "FROM UserGroupGroupRole userGroupGroupRole WHERE ");
1913
1914 query.append("userGroupGroupRole.id.groupId = ?");
1915
1916 query.append(" ");
1917
1918 Query q = session.createQuery(query.toString());
1919
1920 QueryPos qPos = QueryPos.getInstance(q);
1921
1922 qPos.add(groupId);
1923
1924 count = (Long)q.uniqueResult();
1925 }
1926 catch (Exception e) {
1927 throw processException(e);
1928 }
1929 finally {
1930 if (count == null) {
1931 count = Long.valueOf(0);
1932 }
1933
1934 FinderCacheUtil.putResult(FINDER_PATH_COUNT_BY_GROUPID,
1935 finderArgs, count);
1936
1937 closeSession(session);
1938 }
1939 }
1940
1941 return count.intValue();
1942 }
1943
1944 public int countByRoleId(long roleId) throws SystemException {
1945 Object[] finderArgs = new Object[] { new Long(roleId) };
1946
1947 Long count = (Long)FinderCacheUtil.getResult(FINDER_PATH_COUNT_BY_ROLEID,
1948 finderArgs, this);
1949
1950 if (count == null) {
1951 Session session = null;
1952
1953 try {
1954 session = openSession();
1955
1956 StringBuilder query = new StringBuilder();
1957
1958 query.append("SELECT COUNT(userGroupGroupRole) ");
1959 query.append(
1960 "FROM UserGroupGroupRole userGroupGroupRole WHERE ");
1961
1962 query.append("userGroupGroupRole.id.roleId = ?");
1963
1964 query.append(" ");
1965
1966 Query q = session.createQuery(query.toString());
1967
1968 QueryPos qPos = QueryPos.getInstance(q);
1969
1970 qPos.add(roleId);
1971
1972 count = (Long)q.uniqueResult();
1973 }
1974 catch (Exception e) {
1975 throw processException(e);
1976 }
1977 finally {
1978 if (count == null) {
1979 count = Long.valueOf(0);
1980 }
1981
1982 FinderCacheUtil.putResult(FINDER_PATH_COUNT_BY_ROLEID,
1983 finderArgs, count);
1984
1985 closeSession(session);
1986 }
1987 }
1988
1989 return count.intValue();
1990 }
1991
1992 public int countByU_G(long userGroupId, long groupId)
1993 throws SystemException {
1994 Object[] finderArgs = new Object[] {
1995 new Long(userGroupId), new Long(groupId)
1996 };
1997
1998 Long count = (Long)FinderCacheUtil.getResult(FINDER_PATH_COUNT_BY_U_G,
1999 finderArgs, this);
2000
2001 if (count == null) {
2002 Session session = null;
2003
2004 try {
2005 session = openSession();
2006
2007 StringBuilder query = new StringBuilder();
2008
2009 query.append("SELECT COUNT(userGroupGroupRole) ");
2010 query.append(
2011 "FROM UserGroupGroupRole userGroupGroupRole WHERE ");
2012
2013 query.append("userGroupGroupRole.id.userGroupId = ?");
2014
2015 query.append(" AND ");
2016
2017 query.append("userGroupGroupRole.id.groupId = ?");
2018
2019 query.append(" ");
2020
2021 Query q = session.createQuery(query.toString());
2022
2023 QueryPos qPos = QueryPos.getInstance(q);
2024
2025 qPos.add(userGroupId);
2026
2027 qPos.add(groupId);
2028
2029 count = (Long)q.uniqueResult();
2030 }
2031 catch (Exception e) {
2032 throw processException(e);
2033 }
2034 finally {
2035 if (count == null) {
2036 count = Long.valueOf(0);
2037 }
2038
2039 FinderCacheUtil.putResult(FINDER_PATH_COUNT_BY_U_G, finderArgs,
2040 count);
2041
2042 closeSession(session);
2043 }
2044 }
2045
2046 return count.intValue();
2047 }
2048
2049 public int countByG_R(long groupId, long roleId) throws SystemException {
2050 Object[] finderArgs = new Object[] { new Long(groupId), new Long(roleId) };
2051
2052 Long count = (Long)FinderCacheUtil.getResult(FINDER_PATH_COUNT_BY_G_R,
2053 finderArgs, this);
2054
2055 if (count == null) {
2056 Session session = null;
2057
2058 try {
2059 session = openSession();
2060
2061 StringBuilder query = new StringBuilder();
2062
2063 query.append("SELECT COUNT(userGroupGroupRole) ");
2064 query.append(
2065 "FROM UserGroupGroupRole userGroupGroupRole WHERE ");
2066
2067 query.append("userGroupGroupRole.id.groupId = ?");
2068
2069 query.append(" AND ");
2070
2071 query.append("userGroupGroupRole.id.roleId = ?");
2072
2073 query.append(" ");
2074
2075 Query q = session.createQuery(query.toString());
2076
2077 QueryPos qPos = QueryPos.getInstance(q);
2078
2079 qPos.add(groupId);
2080
2081 qPos.add(roleId);
2082
2083 count = (Long)q.uniqueResult();
2084 }
2085 catch (Exception e) {
2086 throw processException(e);
2087 }
2088 finally {
2089 if (count == null) {
2090 count = Long.valueOf(0);
2091 }
2092
2093 FinderCacheUtil.putResult(FINDER_PATH_COUNT_BY_G_R, finderArgs,
2094 count);
2095
2096 closeSession(session);
2097 }
2098 }
2099
2100 return count.intValue();
2101 }
2102
2103 public int countAll() throws SystemException {
2104 Object[] finderArgs = new Object[0];
2105
2106 Long count = (Long)FinderCacheUtil.getResult(FINDER_PATH_COUNT_ALL,
2107 finderArgs, this);
2108
2109 if (count == null) {
2110 Session session = null;
2111
2112 try {
2113 session = openSession();
2114
2115 Query q = session.createQuery(
2116 "SELECT COUNT(userGroupGroupRole) FROM UserGroupGroupRole userGroupGroupRole");
2117
2118 count = (Long)q.uniqueResult();
2119 }
2120 catch (Exception e) {
2121 throw processException(e);
2122 }
2123 finally {
2124 if (count == null) {
2125 count = Long.valueOf(0);
2126 }
2127
2128 FinderCacheUtil.putResult(FINDER_PATH_COUNT_ALL, finderArgs,
2129 count);
2130
2131 closeSession(session);
2132 }
2133 }
2134
2135 return count.intValue();
2136 }
2137
2138 public void afterPropertiesSet() {
2139 String[] listenerClassNames = StringUtil.split(GetterUtil.getString(
2140 com.liferay.portal.util.PropsUtil.get(
2141 "value.object.listener.com.liferay.portal.model.UserGroupGroupRole")));
2142
2143 if (listenerClassNames.length > 0) {
2144 try {
2145 List<ModelListener<UserGroupGroupRole>> listenersList = new ArrayList<ModelListener<UserGroupGroupRole>>();
2146
2147 for (String listenerClassName : listenerClassNames) {
2148 listenersList.add((ModelListener<UserGroupGroupRole>)Class.forName(
2149 listenerClassName).newInstance());
2150 }
2151
2152 listeners = listenersList.toArray(new ModelListener[listenersList.size()]);
2153 }
2154 catch (Exception e) {
2155 _log.error(e);
2156 }
2157 }
2158 }
2159
2160 @BeanReference(name = "com.liferay.portal.service.persistence.AccountPersistence.impl")
2161 protected com.liferay.portal.service.persistence.AccountPersistence accountPersistence;
2162 @BeanReference(name = "com.liferay.portal.service.persistence.AddressPersistence.impl")
2163 protected com.liferay.portal.service.persistence.AddressPersistence addressPersistence;
2164 @BeanReference(name = "com.liferay.portal.service.persistence.BrowserTrackerPersistence.impl")
2165 protected com.liferay.portal.service.persistence.BrowserTrackerPersistence browserTrackerPersistence;
2166 @BeanReference(name = "com.liferay.portal.service.persistence.ClassNamePersistence.impl")
2167 protected com.liferay.portal.service.persistence.ClassNamePersistence classNamePersistence;
2168 @BeanReference(name = "com.liferay.portal.service.persistence.CompanyPersistence.impl")
2169 protected com.liferay.portal.service.persistence.CompanyPersistence companyPersistence;
2170 @BeanReference(name = "com.liferay.portal.service.persistence.ContactPersistence.impl")
2171 protected com.liferay.portal.service.persistence.ContactPersistence contactPersistence;
2172 @BeanReference(name = "com.liferay.portal.service.persistence.CountryPersistence.impl")
2173 protected com.liferay.portal.service.persistence.CountryPersistence countryPersistence;
2174 @BeanReference(name = "com.liferay.portal.service.persistence.EmailAddressPersistence.impl")
2175 protected com.liferay.portal.service.persistence.EmailAddressPersistence emailAddressPersistence;
2176 @BeanReference(name = "com.liferay.portal.service.persistence.GroupPersistence.impl")
2177 protected com.liferay.portal.service.persistence.GroupPersistence groupPersistence;
2178 @BeanReference(name = "com.liferay.portal.service.persistence.ImagePersistence.impl")
2179 protected com.liferay.portal.service.persistence.ImagePersistence imagePersistence;
2180 @BeanReference(name = "com.liferay.portal.service.persistence.LayoutPersistence.impl")
2181 protected com.liferay.portal.service.persistence.LayoutPersistence layoutPersistence;
2182 @BeanReference(name = "com.liferay.portal.service.persistence.LayoutSetPersistence.impl")
2183 protected com.liferay.portal.service.persistence.LayoutSetPersistence layoutSetPersistence;
2184 @BeanReference(name = "com.liferay.portal.service.persistence.ListTypePersistence.impl")
2185 protected com.liferay.portal.service.persistence.ListTypePersistence listTypePersistence;
2186 @BeanReference(name = "com.liferay.portal.service.persistence.MembershipRequestPersistence.impl")
2187 protected com.liferay.portal.service.persistence.MembershipRequestPersistence membershipRequestPersistence;
2188 @BeanReference(name = "com.liferay.portal.service.persistence.OrganizationPersistence.impl")
2189 protected com.liferay.portal.service.persistence.OrganizationPersistence organizationPersistence;
2190 @BeanReference(name = "com.liferay.portal.service.persistence.OrgGroupPermissionPersistence.impl")
2191 protected com.liferay.portal.service.persistence.OrgGroupPermissionPersistence orgGroupPermissionPersistence;
2192 @BeanReference(name = "com.liferay.portal.service.persistence.OrgGroupRolePersistence.impl")
2193 protected com.liferay.portal.service.persistence.OrgGroupRolePersistence orgGroupRolePersistence;
2194 @BeanReference(name = "com.liferay.portal.service.persistence.OrgLaborPersistence.impl")
2195 protected com.liferay.portal.service.persistence.OrgLaborPersistence orgLaborPersistence;
2196 @BeanReference(name = "com.liferay.portal.service.persistence.PasswordPolicyPersistence.impl")
2197 protected com.liferay.portal.service.persistence.PasswordPolicyPersistence passwordPolicyPersistence;
2198 @BeanReference(name = "com.liferay.portal.service.persistence.PasswordPolicyRelPersistence.impl")
2199 protected com.liferay.portal.service.persistence.PasswordPolicyRelPersistence passwordPolicyRelPersistence;
2200 @BeanReference(name = "com.liferay.portal.service.persistence.PasswordTrackerPersistence.impl")
2201 protected com.liferay.portal.service.persistence.PasswordTrackerPersistence passwordTrackerPersistence;
2202 @BeanReference(name = "com.liferay.portal.service.persistence.PermissionPersistence.impl")
2203 protected com.liferay.portal.service.persistence.PermissionPersistence permissionPersistence;
2204 @BeanReference(name = "com.liferay.portal.service.persistence.PhonePersistence.impl")
2205 protected com.liferay.portal.service.persistence.PhonePersistence phonePersistence;
2206 @BeanReference(name = "com.liferay.portal.service.persistence.PluginSettingPersistence.impl")
2207 protected com.liferay.portal.service.persistence.PluginSettingPersistence pluginSettingPersistence;
2208 @BeanReference(name = "com.liferay.portal.service.persistence.PortletPersistence.impl")
2209 protected com.liferay.portal.service.persistence.PortletPersistence portletPersistence;
2210 @BeanReference(name = "com.liferay.portal.service.persistence.PortletItemPersistence.impl")
2211 protected com.liferay.portal.service.persistence.PortletItemPersistence portletItemPersistence;
2212 @BeanReference(name = "com.liferay.portal.service.persistence.PortletPreferencesPersistence.impl")
2213 protected com.liferay.portal.service.persistence.PortletPreferencesPersistence portletPreferencesPersistence;
2214 @BeanReference(name = "com.liferay.portal.service.persistence.RegionPersistence.impl")
2215 protected com.liferay.portal.service.persistence.RegionPersistence regionPersistence;
2216 @BeanReference(name = "com.liferay.portal.service.persistence.ReleasePersistence.impl")
2217 protected com.liferay.portal.service.persistence.ReleasePersistence releasePersistence;
2218 @BeanReference(name = "com.liferay.portal.service.persistence.ResourcePersistence.impl")
2219 protected com.liferay.portal.service.persistence.ResourcePersistence resourcePersistence;
2220 @BeanReference(name = "com.liferay.portal.service.persistence.ResourceActionPersistence.impl")
2221 protected com.liferay.portal.service.persistence.ResourceActionPersistence resourceActionPersistence;
2222 @BeanReference(name = "com.liferay.portal.service.persistence.ResourceCodePersistence.impl")
2223 protected com.liferay.portal.service.persistence.ResourceCodePersistence resourceCodePersistence;
2224 @BeanReference(name = "com.liferay.portal.service.persistence.ResourcePermissionPersistence.impl")
2225 protected com.liferay.portal.service.persistence.ResourcePermissionPersistence resourcePermissionPersistence;
2226 @BeanReference(name = "com.liferay.portal.service.persistence.RolePersistence.impl")
2227 protected com.liferay.portal.service.persistence.RolePersistence rolePersistence;
2228 @BeanReference(name = "com.liferay.portal.service.persistence.ServiceComponentPersistence.impl")
2229 protected com.liferay.portal.service.persistence.ServiceComponentPersistence serviceComponentPersistence;
2230 @BeanReference(name = "com.liferay.portal.service.persistence.ShardPersistence.impl")
2231 protected com.liferay.portal.service.persistence.ShardPersistence shardPersistence;
2232 @BeanReference(name = "com.liferay.portal.service.persistence.SubscriptionPersistence.impl")
2233 protected com.liferay.portal.service.persistence.SubscriptionPersistence subscriptionPersistence;
2234 @BeanReference(name = "com.liferay.portal.service.persistence.UserPersistence.impl")
2235 protected com.liferay.portal.service.persistence.UserPersistence userPersistence;
2236 @BeanReference(name = "com.liferay.portal.service.persistence.UserGroupPersistence.impl")
2237 protected com.liferay.portal.service.persistence.UserGroupPersistence userGroupPersistence;
2238 @BeanReference(name = "com.liferay.portal.service.persistence.UserGroupGroupRolePersistence.impl")
2239 protected com.liferay.portal.service.persistence.UserGroupGroupRolePersistence userGroupGroupRolePersistence;
2240 @BeanReference(name = "com.liferay.portal.service.persistence.UserGroupRolePersistence.impl")
2241 protected com.liferay.portal.service.persistence.UserGroupRolePersistence userGroupRolePersistence;
2242 @BeanReference(name = "com.liferay.portal.service.persistence.UserIdMapperPersistence.impl")
2243 protected com.liferay.portal.service.persistence.UserIdMapperPersistence userIdMapperPersistence;
2244 @BeanReference(name = "com.liferay.portal.service.persistence.UserTrackerPersistence.impl")
2245 protected com.liferay.portal.service.persistence.UserTrackerPersistence userTrackerPersistence;
2246 @BeanReference(name = "com.liferay.portal.service.persistence.UserTrackerPathPersistence.impl")
2247 protected com.liferay.portal.service.persistence.UserTrackerPathPersistence userTrackerPathPersistence;
2248 @BeanReference(name = "com.liferay.portal.service.persistence.WebDAVPropsPersistence.impl")
2249 protected com.liferay.portal.service.persistence.WebDAVPropsPersistence webDAVPropsPersistence;
2250 @BeanReference(name = "com.liferay.portal.service.persistence.WebsitePersistence.impl")
2251 protected com.liferay.portal.service.persistence.WebsitePersistence websitePersistence;
2252 private static Log _log = LogFactoryUtil.getLog(UserGroupGroupRolePersistenceImpl.class);
2253}