1
14
15 package com.liferay.portal.service.persistence;
16
17 import com.liferay.portal.NoSuchModelException;
18 import com.liferay.portal.NoSuchPasswordPolicyRelException;
19 import com.liferay.portal.kernel.annotation.BeanReference;
20 import com.liferay.portal.kernel.cache.CacheRegistry;
21 import com.liferay.portal.kernel.dao.orm.DynamicQuery;
22 import com.liferay.portal.kernel.dao.orm.EntityCacheUtil;
23 import com.liferay.portal.kernel.dao.orm.FinderCacheUtil;
24 import com.liferay.portal.kernel.dao.orm.FinderPath;
25 import com.liferay.portal.kernel.dao.orm.Query;
26 import com.liferay.portal.kernel.dao.orm.QueryPos;
27 import com.liferay.portal.kernel.dao.orm.QueryUtil;
28 import com.liferay.portal.kernel.dao.orm.Session;
29 import com.liferay.portal.kernel.exception.SystemException;
30 import com.liferay.portal.kernel.log.Log;
31 import com.liferay.portal.kernel.log.LogFactoryUtil;
32 import com.liferay.portal.kernel.util.GetterUtil;
33 import com.liferay.portal.kernel.util.OrderByComparator;
34 import com.liferay.portal.kernel.util.StringBundler;
35 import com.liferay.portal.kernel.util.StringPool;
36 import com.liferay.portal.kernel.util.StringUtil;
37 import com.liferay.portal.model.ModelListener;
38 import com.liferay.portal.model.PasswordPolicyRel;
39 import com.liferay.portal.model.impl.PasswordPolicyRelImpl;
40 import com.liferay.portal.model.impl.PasswordPolicyRelModelImpl;
41 import com.liferay.portal.service.persistence.impl.BasePersistenceImpl;
42
43 import java.io.Serializable;
44
45 import java.util.ArrayList;
46 import java.util.Collections;
47 import java.util.List;
48
49
62 public class PasswordPolicyRelPersistenceImpl extends BasePersistenceImpl<PasswordPolicyRel>
63 implements PasswordPolicyRelPersistence {
64 public static final String FINDER_CLASS_NAME_ENTITY = PasswordPolicyRelImpl.class.getName();
65 public static final String FINDER_CLASS_NAME_LIST = FINDER_CLASS_NAME_ENTITY +
66 ".List";
67 public static final FinderPath FINDER_PATH_FIND_BY_PASSWORDPOLICYID = new FinderPath(PasswordPolicyRelModelImpl.ENTITY_CACHE_ENABLED,
68 PasswordPolicyRelModelImpl.FINDER_CACHE_ENABLED,
69 FINDER_CLASS_NAME_LIST, "findByPasswordPolicyId",
70 new String[] { Long.class.getName() });
71 public static final FinderPath FINDER_PATH_FIND_BY_OBC_PASSWORDPOLICYID = new FinderPath(PasswordPolicyRelModelImpl.ENTITY_CACHE_ENABLED,
72 PasswordPolicyRelModelImpl.FINDER_CACHE_ENABLED,
73 FINDER_CLASS_NAME_LIST, "findByPasswordPolicyId",
74 new String[] {
75 Long.class.getName(),
76
77 "java.lang.Integer", "java.lang.Integer",
78 "com.liferay.portal.kernel.util.OrderByComparator"
79 });
80 public static final FinderPath FINDER_PATH_COUNT_BY_PASSWORDPOLICYID = new FinderPath(PasswordPolicyRelModelImpl.ENTITY_CACHE_ENABLED,
81 PasswordPolicyRelModelImpl.FINDER_CACHE_ENABLED,
82 FINDER_CLASS_NAME_LIST, "countByPasswordPolicyId",
83 new String[] { Long.class.getName() });
84 public static final FinderPath FINDER_PATH_FETCH_BY_C_C = new FinderPath(PasswordPolicyRelModelImpl.ENTITY_CACHE_ENABLED,
85 PasswordPolicyRelModelImpl.FINDER_CACHE_ENABLED,
86 FINDER_CLASS_NAME_ENTITY, "fetchByC_C",
87 new String[] { Long.class.getName(), Long.class.getName() });
88 public static final FinderPath FINDER_PATH_COUNT_BY_C_C = new FinderPath(PasswordPolicyRelModelImpl.ENTITY_CACHE_ENABLED,
89 PasswordPolicyRelModelImpl.FINDER_CACHE_ENABLED,
90 FINDER_CLASS_NAME_LIST, "countByC_C",
91 new String[] { Long.class.getName(), Long.class.getName() });
92 public static final FinderPath FINDER_PATH_FETCH_BY_P_C_C = new FinderPath(PasswordPolicyRelModelImpl.ENTITY_CACHE_ENABLED,
93 PasswordPolicyRelModelImpl.FINDER_CACHE_ENABLED,
94 FINDER_CLASS_NAME_ENTITY, "fetchByP_C_C",
95 new String[] {
96 Long.class.getName(), Long.class.getName(), Long.class.getName()
97 });
98 public static final FinderPath FINDER_PATH_COUNT_BY_P_C_C = new FinderPath(PasswordPolicyRelModelImpl.ENTITY_CACHE_ENABLED,
99 PasswordPolicyRelModelImpl.FINDER_CACHE_ENABLED,
100 FINDER_CLASS_NAME_LIST, "countByP_C_C",
101 new String[] {
102 Long.class.getName(), Long.class.getName(), Long.class.getName()
103 });
104 public static final FinderPath FINDER_PATH_FIND_ALL = new FinderPath(PasswordPolicyRelModelImpl.ENTITY_CACHE_ENABLED,
105 PasswordPolicyRelModelImpl.FINDER_CACHE_ENABLED,
106 FINDER_CLASS_NAME_LIST, "findAll", new String[0]);
107 public static final FinderPath FINDER_PATH_COUNT_ALL = new FinderPath(PasswordPolicyRelModelImpl.ENTITY_CACHE_ENABLED,
108 PasswordPolicyRelModelImpl.FINDER_CACHE_ENABLED,
109 FINDER_CLASS_NAME_LIST, "countAll", new String[0]);
110
111 public void cacheResult(PasswordPolicyRel passwordPolicyRel) {
112 EntityCacheUtil.putResult(PasswordPolicyRelModelImpl.ENTITY_CACHE_ENABLED,
113 PasswordPolicyRelImpl.class, passwordPolicyRel.getPrimaryKey(),
114 passwordPolicyRel);
115
116 FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_C_C,
117 new Object[] {
118 new Long(passwordPolicyRel.getClassNameId()),
119 new Long(passwordPolicyRel.getClassPK())
120 }, passwordPolicyRel);
121
122 FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_P_C_C,
123 new Object[] {
124 new Long(passwordPolicyRel.getPasswordPolicyId()),
125 new Long(passwordPolicyRel.getClassNameId()),
126 new Long(passwordPolicyRel.getClassPK())
127 }, passwordPolicyRel);
128 }
129
130 public void cacheResult(List<PasswordPolicyRel> passwordPolicyRels) {
131 for (PasswordPolicyRel passwordPolicyRel : passwordPolicyRels) {
132 if (EntityCacheUtil.getResult(
133 PasswordPolicyRelModelImpl.ENTITY_CACHE_ENABLED,
134 PasswordPolicyRelImpl.class,
135 passwordPolicyRel.getPrimaryKey(), this) == null) {
136 cacheResult(passwordPolicyRel);
137 }
138 }
139 }
140
141 public void clearCache() {
142 CacheRegistry.clear(PasswordPolicyRelImpl.class.getName());
143 EntityCacheUtil.clearCache(PasswordPolicyRelImpl.class.getName());
144 FinderCacheUtil.clearCache(FINDER_CLASS_NAME_ENTITY);
145 FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST);
146 }
147
148 public PasswordPolicyRel create(long passwordPolicyRelId) {
149 PasswordPolicyRel passwordPolicyRel = new PasswordPolicyRelImpl();
150
151 passwordPolicyRel.setNew(true);
152 passwordPolicyRel.setPrimaryKey(passwordPolicyRelId);
153
154 return passwordPolicyRel;
155 }
156
157 public PasswordPolicyRel remove(Serializable primaryKey)
158 throws NoSuchModelException, SystemException {
159 return remove(((Long)primaryKey).longValue());
160 }
161
162 public PasswordPolicyRel remove(long passwordPolicyRelId)
163 throws NoSuchPasswordPolicyRelException, SystemException {
164 Session session = null;
165
166 try {
167 session = openSession();
168
169 PasswordPolicyRel passwordPolicyRel = (PasswordPolicyRel)session.get(PasswordPolicyRelImpl.class,
170 new Long(passwordPolicyRelId));
171
172 if (passwordPolicyRel == null) {
173 if (_log.isWarnEnabled()) {
174 _log.warn(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY +
175 passwordPolicyRelId);
176 }
177
178 throw new NoSuchPasswordPolicyRelException(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY +
179 passwordPolicyRelId);
180 }
181
182 return remove(passwordPolicyRel);
183 }
184 catch (NoSuchPasswordPolicyRelException nsee) {
185 throw nsee;
186 }
187 catch (Exception e) {
188 throw processException(e);
189 }
190 finally {
191 closeSession(session);
192 }
193 }
194
195 public PasswordPolicyRel remove(PasswordPolicyRel passwordPolicyRel)
196 throws SystemException {
197 for (ModelListener<PasswordPolicyRel> listener : listeners) {
198 listener.onBeforeRemove(passwordPolicyRel);
199 }
200
201 passwordPolicyRel = removeImpl(passwordPolicyRel);
202
203 for (ModelListener<PasswordPolicyRel> listener : listeners) {
204 listener.onAfterRemove(passwordPolicyRel);
205 }
206
207 return passwordPolicyRel;
208 }
209
210 protected PasswordPolicyRel removeImpl(PasswordPolicyRel passwordPolicyRel)
211 throws SystemException {
212 passwordPolicyRel = toUnwrappedModel(passwordPolicyRel);
213
214 Session session = null;
215
216 try {
217 session = openSession();
218
219 if (passwordPolicyRel.isCachedModel() ||
220 BatchSessionUtil.isEnabled()) {
221 Object staleObject = session.get(PasswordPolicyRelImpl.class,
222 passwordPolicyRel.getPrimaryKeyObj());
223
224 if (staleObject != null) {
225 session.evict(staleObject);
226 }
227 }
228
229 session.delete(passwordPolicyRel);
230
231 session.flush();
232 }
233 catch (Exception e) {
234 throw processException(e);
235 }
236 finally {
237 closeSession(session);
238 }
239
240 FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST);
241
242 PasswordPolicyRelModelImpl passwordPolicyRelModelImpl = (PasswordPolicyRelModelImpl)passwordPolicyRel;
243
244 FinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_C_C,
245 new Object[] {
246 new Long(passwordPolicyRelModelImpl.getOriginalClassNameId()),
247 new Long(passwordPolicyRelModelImpl.getOriginalClassPK())
248 });
249
250 FinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_P_C_C,
251 new Object[] {
252 new Long(passwordPolicyRelModelImpl.getOriginalPasswordPolicyId()),
253 new Long(passwordPolicyRelModelImpl.getOriginalClassNameId()),
254 new Long(passwordPolicyRelModelImpl.getOriginalClassPK())
255 });
256
257 EntityCacheUtil.removeResult(PasswordPolicyRelModelImpl.ENTITY_CACHE_ENABLED,
258 PasswordPolicyRelImpl.class, passwordPolicyRel.getPrimaryKey());
259
260 return passwordPolicyRel;
261 }
262
263 public PasswordPolicyRel updateImpl(
264 com.liferay.portal.model.PasswordPolicyRel passwordPolicyRel,
265 boolean merge) throws SystemException {
266 passwordPolicyRel = toUnwrappedModel(passwordPolicyRel);
267
268 boolean isNew = passwordPolicyRel.isNew();
269
270 PasswordPolicyRelModelImpl passwordPolicyRelModelImpl = (PasswordPolicyRelModelImpl)passwordPolicyRel;
271
272 Session session = null;
273
274 try {
275 session = openSession();
276
277 BatchSessionUtil.update(session, passwordPolicyRel, merge);
278
279 passwordPolicyRel.setNew(false);
280 }
281 catch (Exception e) {
282 throw processException(e);
283 }
284 finally {
285 closeSession(session);
286 }
287
288 FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST);
289
290 EntityCacheUtil.putResult(PasswordPolicyRelModelImpl.ENTITY_CACHE_ENABLED,
291 PasswordPolicyRelImpl.class, passwordPolicyRel.getPrimaryKey(),
292 passwordPolicyRel);
293
294 if (!isNew &&
295 ((passwordPolicyRel.getClassNameId() != passwordPolicyRelModelImpl.getOriginalClassNameId()) ||
296 (passwordPolicyRel.getClassPK() != passwordPolicyRelModelImpl.getOriginalClassPK()))) {
297 FinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_C_C,
298 new Object[] {
299 new Long(passwordPolicyRelModelImpl.getOriginalClassNameId()),
300 new Long(passwordPolicyRelModelImpl.getOriginalClassPK())
301 });
302 }
303
304 if (isNew ||
305 ((passwordPolicyRel.getClassNameId() != passwordPolicyRelModelImpl.getOriginalClassNameId()) ||
306 (passwordPolicyRel.getClassPK() != passwordPolicyRelModelImpl.getOriginalClassPK()))) {
307 FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_C_C,
308 new Object[] {
309 new Long(passwordPolicyRel.getClassNameId()),
310 new Long(passwordPolicyRel.getClassPK())
311 }, passwordPolicyRel);
312 }
313
314 if (!isNew &&
315 ((passwordPolicyRel.getPasswordPolicyId() != passwordPolicyRelModelImpl.getOriginalPasswordPolicyId()) ||
316 (passwordPolicyRel.getClassNameId() != passwordPolicyRelModelImpl.getOriginalClassNameId()) ||
317 (passwordPolicyRel.getClassPK() != passwordPolicyRelModelImpl.getOriginalClassPK()))) {
318 FinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_P_C_C,
319 new Object[] {
320 new Long(passwordPolicyRelModelImpl.getOriginalPasswordPolicyId()),
321 new Long(passwordPolicyRelModelImpl.getOriginalClassNameId()),
322 new Long(passwordPolicyRelModelImpl.getOriginalClassPK())
323 });
324 }
325
326 if (isNew ||
327 ((passwordPolicyRel.getPasswordPolicyId() != passwordPolicyRelModelImpl.getOriginalPasswordPolicyId()) ||
328 (passwordPolicyRel.getClassNameId() != passwordPolicyRelModelImpl.getOriginalClassNameId()) ||
329 (passwordPolicyRel.getClassPK() != passwordPolicyRelModelImpl.getOriginalClassPK()))) {
330 FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_P_C_C,
331 new Object[] {
332 new Long(passwordPolicyRel.getPasswordPolicyId()),
333 new Long(passwordPolicyRel.getClassNameId()),
334 new Long(passwordPolicyRel.getClassPK())
335 }, passwordPolicyRel);
336 }
337
338 return passwordPolicyRel;
339 }
340
341 protected PasswordPolicyRel toUnwrappedModel(
342 PasswordPolicyRel passwordPolicyRel) {
343 if (passwordPolicyRel instanceof PasswordPolicyRelImpl) {
344 return passwordPolicyRel;
345 }
346
347 PasswordPolicyRelImpl passwordPolicyRelImpl = new PasswordPolicyRelImpl();
348
349 passwordPolicyRelImpl.setNew(passwordPolicyRel.isNew());
350 passwordPolicyRelImpl.setPrimaryKey(passwordPolicyRel.getPrimaryKey());
351
352 passwordPolicyRelImpl.setPasswordPolicyRelId(passwordPolicyRel.getPasswordPolicyRelId());
353 passwordPolicyRelImpl.setPasswordPolicyId(passwordPolicyRel.getPasswordPolicyId());
354 passwordPolicyRelImpl.setClassNameId(passwordPolicyRel.getClassNameId());
355 passwordPolicyRelImpl.setClassPK(passwordPolicyRel.getClassPK());
356
357 return passwordPolicyRelImpl;
358 }
359
360 public PasswordPolicyRel findByPrimaryKey(Serializable primaryKey)
361 throws NoSuchModelException, SystemException {
362 return findByPrimaryKey(((Long)primaryKey).longValue());
363 }
364
365 public PasswordPolicyRel findByPrimaryKey(long passwordPolicyRelId)
366 throws NoSuchPasswordPolicyRelException, SystemException {
367 PasswordPolicyRel passwordPolicyRel = fetchByPrimaryKey(passwordPolicyRelId);
368
369 if (passwordPolicyRel == null) {
370 if (_log.isWarnEnabled()) {
371 _log.warn(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY +
372 passwordPolicyRelId);
373 }
374
375 throw new NoSuchPasswordPolicyRelException(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY +
376 passwordPolicyRelId);
377 }
378
379 return passwordPolicyRel;
380 }
381
382 public PasswordPolicyRel fetchByPrimaryKey(Serializable primaryKey)
383 throws SystemException {
384 return fetchByPrimaryKey(((Long)primaryKey).longValue());
385 }
386
387 public PasswordPolicyRel fetchByPrimaryKey(long passwordPolicyRelId)
388 throws SystemException {
389 PasswordPolicyRel passwordPolicyRel = (PasswordPolicyRel)EntityCacheUtil.getResult(PasswordPolicyRelModelImpl.ENTITY_CACHE_ENABLED,
390 PasswordPolicyRelImpl.class, passwordPolicyRelId, this);
391
392 if (passwordPolicyRel == null) {
393 Session session = null;
394
395 try {
396 session = openSession();
397
398 passwordPolicyRel = (PasswordPolicyRel)session.get(PasswordPolicyRelImpl.class,
399 new Long(passwordPolicyRelId));
400 }
401 catch (Exception e) {
402 throw processException(e);
403 }
404 finally {
405 if (passwordPolicyRel != null) {
406 cacheResult(passwordPolicyRel);
407 }
408
409 closeSession(session);
410 }
411 }
412
413 return passwordPolicyRel;
414 }
415
416 public List<PasswordPolicyRel> findByPasswordPolicyId(long passwordPolicyId)
417 throws SystemException {
418 Object[] finderArgs = new Object[] { new Long(passwordPolicyId) };
419
420 List<PasswordPolicyRel> list = (List<PasswordPolicyRel>)FinderCacheUtil.getResult(FINDER_PATH_FIND_BY_PASSWORDPOLICYID,
421 finderArgs, this);
422
423 if (list == null) {
424 Session session = null;
425
426 try {
427 session = openSession();
428
429 StringBundler query = new StringBundler(2);
430
431 query.append(_SQL_SELECT_PASSWORDPOLICYREL_WHERE);
432
433 query.append(_FINDER_COLUMN_PASSWORDPOLICYID_PASSWORDPOLICYID_2);
434
435 String sql = query.toString();
436
437 Query q = session.createQuery(sql);
438
439 QueryPos qPos = QueryPos.getInstance(q);
440
441 qPos.add(passwordPolicyId);
442
443 list = q.list();
444 }
445 catch (Exception e) {
446 throw processException(e);
447 }
448 finally {
449 if (list == null) {
450 list = new ArrayList<PasswordPolicyRel>();
451 }
452
453 cacheResult(list);
454
455 FinderCacheUtil.putResult(FINDER_PATH_FIND_BY_PASSWORDPOLICYID,
456 finderArgs, list);
457
458 closeSession(session);
459 }
460 }
461
462 return list;
463 }
464
465 public List<PasswordPolicyRel> findByPasswordPolicyId(
466 long passwordPolicyId, int start, int end) throws SystemException {
467 return findByPasswordPolicyId(passwordPolicyId, start, end, null);
468 }
469
470 public List<PasswordPolicyRel> findByPasswordPolicyId(
471 long passwordPolicyId, int start, int end, OrderByComparator obc)
472 throws SystemException {
473 Object[] finderArgs = new Object[] {
474 new Long(passwordPolicyId),
475
476 String.valueOf(start), String.valueOf(end), String.valueOf(obc)
477 };
478
479 List<PasswordPolicyRel> list = (List<PasswordPolicyRel>)FinderCacheUtil.getResult(FINDER_PATH_FIND_BY_OBC_PASSWORDPOLICYID,
480 finderArgs, this);
481
482 if (list == null) {
483 Session session = null;
484
485 try {
486 session = openSession();
487
488 StringBundler query = null;
489
490 if (obc != null) {
491 query = new StringBundler(3 +
492 (obc.getOrderByFields().length * 3));
493 }
494 else {
495 query = new StringBundler(2);
496 }
497
498 query.append(_SQL_SELECT_PASSWORDPOLICYREL_WHERE);
499
500 query.append(_FINDER_COLUMN_PASSWORDPOLICYID_PASSWORDPOLICYID_2);
501
502 if (obc != null) {
503 appendOrderByComparator(query, _ORDER_BY_ENTITY_ALIAS, obc);
504 }
505
506 String sql = query.toString();
507
508 Query q = session.createQuery(sql);
509
510 QueryPos qPos = QueryPos.getInstance(q);
511
512 qPos.add(passwordPolicyId);
513
514 list = (List<PasswordPolicyRel>)QueryUtil.list(q, getDialect(),
515 start, end);
516 }
517 catch (Exception e) {
518 throw processException(e);
519 }
520 finally {
521 if (list == null) {
522 list = new ArrayList<PasswordPolicyRel>();
523 }
524
525 cacheResult(list);
526
527 FinderCacheUtil.putResult(FINDER_PATH_FIND_BY_OBC_PASSWORDPOLICYID,
528 finderArgs, list);
529
530 closeSession(session);
531 }
532 }
533
534 return list;
535 }
536
537 public PasswordPolicyRel findByPasswordPolicyId_First(
538 long passwordPolicyId, OrderByComparator obc)
539 throws NoSuchPasswordPolicyRelException, SystemException {
540 List<PasswordPolicyRel> list = findByPasswordPolicyId(passwordPolicyId,
541 0, 1, obc);
542
543 if (list.isEmpty()) {
544 StringBundler msg = new StringBundler(4);
545
546 msg.append(_NO_SUCH_ENTITY_WITH_KEY);
547
548 msg.append("passwordPolicyId=");
549 msg.append(passwordPolicyId);
550
551 msg.append(StringPool.CLOSE_CURLY_BRACE);
552
553 throw new NoSuchPasswordPolicyRelException(msg.toString());
554 }
555 else {
556 return list.get(0);
557 }
558 }
559
560 public PasswordPolicyRel findByPasswordPolicyId_Last(
561 long passwordPolicyId, OrderByComparator obc)
562 throws NoSuchPasswordPolicyRelException, SystemException {
563 int count = countByPasswordPolicyId(passwordPolicyId);
564
565 List<PasswordPolicyRel> list = findByPasswordPolicyId(passwordPolicyId,
566 count - 1, count, obc);
567
568 if (list.isEmpty()) {
569 StringBundler msg = new StringBundler(4);
570
571 msg.append(_NO_SUCH_ENTITY_WITH_KEY);
572
573 msg.append("passwordPolicyId=");
574 msg.append(passwordPolicyId);
575
576 msg.append(StringPool.CLOSE_CURLY_BRACE);
577
578 throw new NoSuchPasswordPolicyRelException(msg.toString());
579 }
580 else {
581 return list.get(0);
582 }
583 }
584
585 public PasswordPolicyRel[] findByPasswordPolicyId_PrevAndNext(
586 long passwordPolicyRelId, long passwordPolicyId, OrderByComparator obc)
587 throws NoSuchPasswordPolicyRelException, SystemException {
588 PasswordPolicyRel passwordPolicyRel = findByPrimaryKey(passwordPolicyRelId);
589
590 int count = countByPasswordPolicyId(passwordPolicyId);
591
592 Session session = null;
593
594 try {
595 session = openSession();
596
597 StringBundler query = null;
598
599 if (obc != null) {
600 query = new StringBundler(3 +
601 (obc.getOrderByFields().length * 3));
602 }
603 else {
604 query = new StringBundler(2);
605 }
606
607 query.append(_SQL_SELECT_PASSWORDPOLICYREL_WHERE);
608
609 query.append(_FINDER_COLUMN_PASSWORDPOLICYID_PASSWORDPOLICYID_2);
610
611 if (obc != null) {
612 appendOrderByComparator(query, _ORDER_BY_ENTITY_ALIAS, obc);
613 }
614
615 String sql = query.toString();
616
617 Query q = session.createQuery(sql);
618
619 QueryPos qPos = QueryPos.getInstance(q);
620
621 qPos.add(passwordPolicyId);
622
623 Object[] objArray = QueryUtil.getPrevAndNext(q, count, obc,
624 passwordPolicyRel);
625
626 PasswordPolicyRel[] array = new PasswordPolicyRelImpl[3];
627
628 array[0] = (PasswordPolicyRel)objArray[0];
629 array[1] = (PasswordPolicyRel)objArray[1];
630 array[2] = (PasswordPolicyRel)objArray[2];
631
632 return array;
633 }
634 catch (Exception e) {
635 throw processException(e);
636 }
637 finally {
638 closeSession(session);
639 }
640 }
641
642 public PasswordPolicyRel findByC_C(long classNameId, long classPK)
643 throws NoSuchPasswordPolicyRelException, SystemException {
644 PasswordPolicyRel passwordPolicyRel = fetchByC_C(classNameId, classPK);
645
646 if (passwordPolicyRel == null) {
647 StringBundler msg = new StringBundler(6);
648
649 msg.append(_NO_SUCH_ENTITY_WITH_KEY);
650
651 msg.append("classNameId=");
652 msg.append(classNameId);
653
654 msg.append(", classPK=");
655 msg.append(classPK);
656
657 msg.append(StringPool.CLOSE_CURLY_BRACE);
658
659 if (_log.isWarnEnabled()) {
660 _log.warn(msg.toString());
661 }
662
663 throw new NoSuchPasswordPolicyRelException(msg.toString());
664 }
665
666 return passwordPolicyRel;
667 }
668
669 public PasswordPolicyRel fetchByC_C(long classNameId, long classPK)
670 throws SystemException {
671 return fetchByC_C(classNameId, classPK, true);
672 }
673
674 public PasswordPolicyRel fetchByC_C(long classNameId, long classPK,
675 boolean retrieveFromCache) throws SystemException {
676 Object[] finderArgs = new Object[] {
677 new Long(classNameId), new Long(classPK)
678 };
679
680 Object result = null;
681
682 if (retrieveFromCache) {
683 result = FinderCacheUtil.getResult(FINDER_PATH_FETCH_BY_C_C,
684 finderArgs, this);
685 }
686
687 if (result == null) {
688 Session session = null;
689
690 try {
691 session = openSession();
692
693 StringBundler query = new StringBundler(3);
694
695 query.append(_SQL_SELECT_PASSWORDPOLICYREL_WHERE);
696
697 query.append(_FINDER_COLUMN_C_C_CLASSNAMEID_2);
698
699 query.append(_FINDER_COLUMN_C_C_CLASSPK_2);
700
701 String sql = query.toString();
702
703 Query q = session.createQuery(sql);
704
705 QueryPos qPos = QueryPos.getInstance(q);
706
707 qPos.add(classNameId);
708
709 qPos.add(classPK);
710
711 List<PasswordPolicyRel> list = q.list();
712
713 result = list;
714
715 PasswordPolicyRel passwordPolicyRel = null;
716
717 if (list.isEmpty()) {
718 FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_C_C,
719 finderArgs, list);
720 }
721 else {
722 passwordPolicyRel = list.get(0);
723
724 cacheResult(passwordPolicyRel);
725
726 if ((passwordPolicyRel.getClassNameId() != classNameId) ||
727 (passwordPolicyRel.getClassPK() != classPK)) {
728 FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_C_C,
729 finderArgs, passwordPolicyRel);
730 }
731 }
732
733 return passwordPolicyRel;
734 }
735 catch (Exception e) {
736 throw processException(e);
737 }
738 finally {
739 if (result == null) {
740 FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_C_C,
741 finderArgs, new ArrayList<PasswordPolicyRel>());
742 }
743
744 closeSession(session);
745 }
746 }
747 else {
748 if (result instanceof List<?>) {
749 return null;
750 }
751 else {
752 return (PasswordPolicyRel)result;
753 }
754 }
755 }
756
757 public PasswordPolicyRel findByP_C_C(long passwordPolicyId,
758 long classNameId, long classPK)
759 throws NoSuchPasswordPolicyRelException, SystemException {
760 PasswordPolicyRel passwordPolicyRel = fetchByP_C_C(passwordPolicyId,
761 classNameId, classPK);
762
763 if (passwordPolicyRel == null) {
764 StringBundler msg = new StringBundler(8);
765
766 msg.append(_NO_SUCH_ENTITY_WITH_KEY);
767
768 msg.append("passwordPolicyId=");
769 msg.append(passwordPolicyId);
770
771 msg.append(", classNameId=");
772 msg.append(classNameId);
773
774 msg.append(", classPK=");
775 msg.append(classPK);
776
777 msg.append(StringPool.CLOSE_CURLY_BRACE);
778
779 if (_log.isWarnEnabled()) {
780 _log.warn(msg.toString());
781 }
782
783 throw new NoSuchPasswordPolicyRelException(msg.toString());
784 }
785
786 return passwordPolicyRel;
787 }
788
789 public PasswordPolicyRel fetchByP_C_C(long passwordPolicyId,
790 long classNameId, long classPK) throws SystemException {
791 return fetchByP_C_C(passwordPolicyId, classNameId, classPK, true);
792 }
793
794 public PasswordPolicyRel fetchByP_C_C(long passwordPolicyId,
795 long classNameId, long classPK, boolean retrieveFromCache)
796 throws SystemException {
797 Object[] finderArgs = new Object[] {
798 new Long(passwordPolicyId), new Long(classNameId),
799 new Long(classPK)
800 };
801
802 Object result = null;
803
804 if (retrieveFromCache) {
805 result = FinderCacheUtil.getResult(FINDER_PATH_FETCH_BY_P_C_C,
806 finderArgs, this);
807 }
808
809 if (result == null) {
810 Session session = null;
811
812 try {
813 session = openSession();
814
815 StringBundler query = new StringBundler(4);
816
817 query.append(_SQL_SELECT_PASSWORDPOLICYREL_WHERE);
818
819 query.append(_FINDER_COLUMN_P_C_C_PASSWORDPOLICYID_2);
820
821 query.append(_FINDER_COLUMN_P_C_C_CLASSNAMEID_2);
822
823 query.append(_FINDER_COLUMN_P_C_C_CLASSPK_2);
824
825 String sql = query.toString();
826
827 Query q = session.createQuery(sql);
828
829 QueryPos qPos = QueryPos.getInstance(q);
830
831 qPos.add(passwordPolicyId);
832
833 qPos.add(classNameId);
834
835 qPos.add(classPK);
836
837 List<PasswordPolicyRel> list = q.list();
838
839 result = list;
840
841 PasswordPolicyRel passwordPolicyRel = null;
842
843 if (list.isEmpty()) {
844 FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_P_C_C,
845 finderArgs, list);
846 }
847 else {
848 passwordPolicyRel = list.get(0);
849
850 cacheResult(passwordPolicyRel);
851
852 if ((passwordPolicyRel.getPasswordPolicyId() != passwordPolicyId) ||
853 (passwordPolicyRel.getClassNameId() != classNameId) ||
854 (passwordPolicyRel.getClassPK() != classPK)) {
855 FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_P_C_C,
856 finderArgs, passwordPolicyRel);
857 }
858 }
859
860 return passwordPolicyRel;
861 }
862 catch (Exception e) {
863 throw processException(e);
864 }
865 finally {
866 if (result == null) {
867 FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_P_C_C,
868 finderArgs, new ArrayList<PasswordPolicyRel>());
869 }
870
871 closeSession(session);
872 }
873 }
874 else {
875 if (result instanceof List<?>) {
876 return null;
877 }
878 else {
879 return (PasswordPolicyRel)result;
880 }
881 }
882 }
883
884 public List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery)
885 throws SystemException {
886 Session session = null;
887
888 try {
889 session = openSession();
890
891 dynamicQuery.compile(session);
892
893 return dynamicQuery.list();
894 }
895 catch (Exception e) {
896 throw processException(e);
897 }
898 finally {
899 closeSession(session);
900 }
901 }
902
903 public List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery,
904 int start, int end) throws SystemException {
905 Session session = null;
906
907 try {
908 session = openSession();
909
910 dynamicQuery.setLimit(start, end);
911
912 dynamicQuery.compile(session);
913
914 return dynamicQuery.list();
915 }
916 catch (Exception e) {
917 throw processException(e);
918 }
919 finally {
920 closeSession(session);
921 }
922 }
923
924 public List<PasswordPolicyRel> findAll() throws SystemException {
925 return findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
926 }
927
928 public List<PasswordPolicyRel> findAll(int start, int end)
929 throws SystemException {
930 return findAll(start, end, null);
931 }
932
933 public List<PasswordPolicyRel> findAll(int start, int end,
934 OrderByComparator obc) throws SystemException {
935 Object[] finderArgs = new Object[] {
936 String.valueOf(start), String.valueOf(end), String.valueOf(obc)
937 };
938
939 List<PasswordPolicyRel> list = (List<PasswordPolicyRel>)FinderCacheUtil.getResult(FINDER_PATH_FIND_ALL,
940 finderArgs, this);
941
942 if (list == null) {
943 Session session = null;
944
945 try {
946 session = openSession();
947
948 StringBundler query = null;
949 String sql = null;
950
951 if (obc != null) {
952 query = new StringBundler(2 +
953 (obc.getOrderByFields().length * 3));
954
955 query.append(_SQL_SELECT_PASSWORDPOLICYREL);
956
957 appendOrderByComparator(query, _ORDER_BY_ENTITY_ALIAS, obc);
958
959 sql = query.toString();
960 }
961
962 sql = _SQL_SELECT_PASSWORDPOLICYREL;
963
964 Query q = session.createQuery(sql);
965
966 if (obc == null) {
967 list = (List<PasswordPolicyRel>)QueryUtil.list(q,
968 getDialect(), start, end, false);
969
970 Collections.sort(list);
971 }
972 else {
973 list = (List<PasswordPolicyRel>)QueryUtil.list(q,
974 getDialect(), start, end);
975 }
976 }
977 catch (Exception e) {
978 throw processException(e);
979 }
980 finally {
981 if (list == null) {
982 list = new ArrayList<PasswordPolicyRel>();
983 }
984
985 cacheResult(list);
986
987 FinderCacheUtil.putResult(FINDER_PATH_FIND_ALL, finderArgs, list);
988
989 closeSession(session);
990 }
991 }
992
993 return list;
994 }
995
996 public void removeByPasswordPolicyId(long passwordPolicyId)
997 throws SystemException {
998 for (PasswordPolicyRel passwordPolicyRel : findByPasswordPolicyId(
999 passwordPolicyId)) {
1000 remove(passwordPolicyRel);
1001 }
1002 }
1003
1004 public void removeByC_C(long classNameId, long classPK)
1005 throws NoSuchPasswordPolicyRelException, SystemException {
1006 PasswordPolicyRel passwordPolicyRel = findByC_C(classNameId, classPK);
1007
1008 remove(passwordPolicyRel);
1009 }
1010
1011 public void removeByP_C_C(long passwordPolicyId, long classNameId,
1012 long classPK) throws NoSuchPasswordPolicyRelException, SystemException {
1013 PasswordPolicyRel passwordPolicyRel = findByP_C_C(passwordPolicyId,
1014 classNameId, classPK);
1015
1016 remove(passwordPolicyRel);
1017 }
1018
1019 public void removeAll() throws SystemException {
1020 for (PasswordPolicyRel passwordPolicyRel : findAll()) {
1021 remove(passwordPolicyRel);
1022 }
1023 }
1024
1025 public int countByPasswordPolicyId(long passwordPolicyId)
1026 throws SystemException {
1027 Object[] finderArgs = new Object[] { new Long(passwordPolicyId) };
1028
1029 Long count = (Long)FinderCacheUtil.getResult(FINDER_PATH_COUNT_BY_PASSWORDPOLICYID,
1030 finderArgs, this);
1031
1032 if (count == null) {
1033 Session session = null;
1034
1035 try {
1036 session = openSession();
1037
1038 StringBundler query = new StringBundler(2);
1039
1040 query.append(_SQL_COUNT_PASSWORDPOLICYREL_WHERE);
1041
1042 query.append(_FINDER_COLUMN_PASSWORDPOLICYID_PASSWORDPOLICYID_2);
1043
1044 String sql = query.toString();
1045
1046 Query q = session.createQuery(sql);
1047
1048 QueryPos qPos = QueryPos.getInstance(q);
1049
1050 qPos.add(passwordPolicyId);
1051
1052 count = (Long)q.uniqueResult();
1053 }
1054 catch (Exception e) {
1055 throw processException(e);
1056 }
1057 finally {
1058 if (count == null) {
1059 count = Long.valueOf(0);
1060 }
1061
1062 FinderCacheUtil.putResult(FINDER_PATH_COUNT_BY_PASSWORDPOLICYID,
1063 finderArgs, count);
1064
1065 closeSession(session);
1066 }
1067 }
1068
1069 return count.intValue();
1070 }
1071
1072 public int countByC_C(long classNameId, long classPK)
1073 throws SystemException {
1074 Object[] finderArgs = new Object[] {
1075 new Long(classNameId), new Long(classPK)
1076 };
1077
1078 Long count = (Long)FinderCacheUtil.getResult(FINDER_PATH_COUNT_BY_C_C,
1079 finderArgs, this);
1080
1081 if (count == null) {
1082 Session session = null;
1083
1084 try {
1085 session = openSession();
1086
1087 StringBundler query = new StringBundler(3);
1088
1089 query.append(_SQL_COUNT_PASSWORDPOLICYREL_WHERE);
1090
1091 query.append(_FINDER_COLUMN_C_C_CLASSNAMEID_2);
1092
1093 query.append(_FINDER_COLUMN_C_C_CLASSPK_2);
1094
1095 String sql = query.toString();
1096
1097 Query q = session.createQuery(sql);
1098
1099 QueryPos qPos = QueryPos.getInstance(q);
1100
1101 qPos.add(classNameId);
1102
1103 qPos.add(classPK);
1104
1105 count = (Long)q.uniqueResult();
1106 }
1107 catch (Exception e) {
1108 throw processException(e);
1109 }
1110 finally {
1111 if (count == null) {
1112 count = Long.valueOf(0);
1113 }
1114
1115 FinderCacheUtil.putResult(FINDER_PATH_COUNT_BY_C_C, finderArgs,
1116 count);
1117
1118 closeSession(session);
1119 }
1120 }
1121
1122 return count.intValue();
1123 }
1124
1125 public int countByP_C_C(long passwordPolicyId, long classNameId,
1126 long classPK) throws SystemException {
1127 Object[] finderArgs = new Object[] {
1128 new Long(passwordPolicyId), new Long(classNameId),
1129 new Long(classPK)
1130 };
1131
1132 Long count = (Long)FinderCacheUtil.getResult(FINDER_PATH_COUNT_BY_P_C_C,
1133 finderArgs, this);
1134
1135 if (count == null) {
1136 Session session = null;
1137
1138 try {
1139 session = openSession();
1140
1141 StringBundler query = new StringBundler(4);
1142
1143 query.append(_SQL_COUNT_PASSWORDPOLICYREL_WHERE);
1144
1145 query.append(_FINDER_COLUMN_P_C_C_PASSWORDPOLICYID_2);
1146
1147 query.append(_FINDER_COLUMN_P_C_C_CLASSNAMEID_2);
1148
1149 query.append(_FINDER_COLUMN_P_C_C_CLASSPK_2);
1150
1151 String sql = query.toString();
1152
1153 Query q = session.createQuery(sql);
1154
1155 QueryPos qPos = QueryPos.getInstance(q);
1156
1157 qPos.add(passwordPolicyId);
1158
1159 qPos.add(classNameId);
1160
1161 qPos.add(classPK);
1162
1163 count = (Long)q.uniqueResult();
1164 }
1165 catch (Exception e) {
1166 throw processException(e);
1167 }
1168 finally {
1169 if (count == null) {
1170 count = Long.valueOf(0);
1171 }
1172
1173 FinderCacheUtil.putResult(FINDER_PATH_COUNT_BY_P_C_C,
1174 finderArgs, count);
1175
1176 closeSession(session);
1177 }
1178 }
1179
1180 return count.intValue();
1181 }
1182
1183 public int countAll() throws SystemException {
1184 Object[] finderArgs = new Object[0];
1185
1186 Long count = (Long)FinderCacheUtil.getResult(FINDER_PATH_COUNT_ALL,
1187 finderArgs, this);
1188
1189 if (count == null) {
1190 Session session = null;
1191
1192 try {
1193 session = openSession();
1194
1195 Query q = session.createQuery(_SQL_COUNT_PASSWORDPOLICYREL);
1196
1197 count = (Long)q.uniqueResult();
1198 }
1199 catch (Exception e) {
1200 throw processException(e);
1201 }
1202 finally {
1203 if (count == null) {
1204 count = Long.valueOf(0);
1205 }
1206
1207 FinderCacheUtil.putResult(FINDER_PATH_COUNT_ALL, finderArgs,
1208 count);
1209
1210 closeSession(session);
1211 }
1212 }
1213
1214 return count.intValue();
1215 }
1216
1217 public void afterPropertiesSet() {
1218 String[] listenerClassNames = StringUtil.split(GetterUtil.getString(
1219 com.liferay.portal.util.PropsUtil.get(
1220 "value.object.listener.com.liferay.portal.model.PasswordPolicyRel")));
1221
1222 if (listenerClassNames.length > 0) {
1223 try {
1224 List<ModelListener<PasswordPolicyRel>> listenersList = new ArrayList<ModelListener<PasswordPolicyRel>>();
1225
1226 for (String listenerClassName : listenerClassNames) {
1227 listenersList.add((ModelListener<PasswordPolicyRel>)Class.forName(
1228 listenerClassName).newInstance());
1229 }
1230
1231 listeners = listenersList.toArray(new ModelListener[listenersList.size()]);
1232 }
1233 catch (Exception e) {
1234 _log.error(e);
1235 }
1236 }
1237 }
1238
1239 @BeanReference(name = "com.liferay.portal.service.persistence.AccountPersistence")
1240 protected com.liferay.portal.service.persistence.AccountPersistence accountPersistence;
1241 @BeanReference(name = "com.liferay.portal.service.persistence.AddressPersistence")
1242 protected com.liferay.portal.service.persistence.AddressPersistence addressPersistence;
1243 @BeanReference(name = "com.liferay.portal.service.persistence.BrowserTrackerPersistence")
1244 protected com.liferay.portal.service.persistence.BrowserTrackerPersistence browserTrackerPersistence;
1245 @BeanReference(name = "com.liferay.portal.service.persistence.ClassNamePersistence")
1246 protected com.liferay.portal.service.persistence.ClassNamePersistence classNamePersistence;
1247 @BeanReference(name = "com.liferay.portal.service.persistence.CompanyPersistence")
1248 protected com.liferay.portal.service.persistence.CompanyPersistence companyPersistence;
1249 @BeanReference(name = "com.liferay.portal.service.persistence.ContactPersistence")
1250 protected com.liferay.portal.service.persistence.ContactPersistence contactPersistence;
1251 @BeanReference(name = "com.liferay.portal.service.persistence.CountryPersistence")
1252 protected com.liferay.portal.service.persistence.CountryPersistence countryPersistence;
1253 @BeanReference(name = "com.liferay.portal.service.persistence.EmailAddressPersistence")
1254 protected com.liferay.portal.service.persistence.EmailAddressPersistence emailAddressPersistence;
1255 @BeanReference(name = "com.liferay.portal.service.persistence.GroupPersistence")
1256 protected com.liferay.portal.service.persistence.GroupPersistence groupPersistence;
1257 @BeanReference(name = "com.liferay.portal.service.persistence.ImagePersistence")
1258 protected com.liferay.portal.service.persistence.ImagePersistence imagePersistence;
1259 @BeanReference(name = "com.liferay.portal.service.persistence.LayoutPersistence")
1260 protected com.liferay.portal.service.persistence.LayoutPersistence layoutPersistence;
1261 @BeanReference(name = "com.liferay.portal.service.persistence.LayoutPrototypePersistence")
1262 protected com.liferay.portal.service.persistence.LayoutPrototypePersistence layoutPrototypePersistence;
1263 @BeanReference(name = "com.liferay.portal.service.persistence.LayoutSetPersistence")
1264 protected com.liferay.portal.service.persistence.LayoutSetPersistence layoutSetPersistence;
1265 @BeanReference(name = "com.liferay.portal.service.persistence.LayoutSetPrototypePersistence")
1266 protected com.liferay.portal.service.persistence.LayoutSetPrototypePersistence layoutSetPrototypePersistence;
1267 @BeanReference(name = "com.liferay.portal.service.persistence.ListTypePersistence")
1268 protected com.liferay.portal.service.persistence.ListTypePersistence listTypePersistence;
1269 @BeanReference(name = "com.liferay.portal.service.persistence.LockPersistence")
1270 protected com.liferay.portal.service.persistence.LockPersistence lockPersistence;
1271 @BeanReference(name = "com.liferay.portal.service.persistence.MembershipRequestPersistence")
1272 protected com.liferay.portal.service.persistence.MembershipRequestPersistence membershipRequestPersistence;
1273 @BeanReference(name = "com.liferay.portal.service.persistence.OrganizationPersistence")
1274 protected com.liferay.portal.service.persistence.OrganizationPersistence organizationPersistence;
1275 @BeanReference(name = "com.liferay.portal.service.persistence.OrgGroupPermissionPersistence")
1276 protected com.liferay.portal.service.persistence.OrgGroupPermissionPersistence orgGroupPermissionPersistence;
1277 @BeanReference(name = "com.liferay.portal.service.persistence.OrgGroupRolePersistence")
1278 protected com.liferay.portal.service.persistence.OrgGroupRolePersistence orgGroupRolePersistence;
1279 @BeanReference(name = "com.liferay.portal.service.persistence.OrgLaborPersistence")
1280 protected com.liferay.portal.service.persistence.OrgLaborPersistence orgLaborPersistence;
1281 @BeanReference(name = "com.liferay.portal.service.persistence.PasswordPolicyPersistence")
1282 protected com.liferay.portal.service.persistence.PasswordPolicyPersistence passwordPolicyPersistence;
1283 @BeanReference(name = "com.liferay.portal.service.persistence.PasswordPolicyRelPersistence")
1284 protected com.liferay.portal.service.persistence.PasswordPolicyRelPersistence passwordPolicyRelPersistence;
1285 @BeanReference(name = "com.liferay.portal.service.persistence.PasswordTrackerPersistence")
1286 protected com.liferay.portal.service.persistence.PasswordTrackerPersistence passwordTrackerPersistence;
1287 @BeanReference(name = "com.liferay.portal.service.persistence.PermissionPersistence")
1288 protected com.liferay.portal.service.persistence.PermissionPersistence permissionPersistence;
1289 @BeanReference(name = "com.liferay.portal.service.persistence.PhonePersistence")
1290 protected com.liferay.portal.service.persistence.PhonePersistence phonePersistence;
1291 @BeanReference(name = "com.liferay.portal.service.persistence.PluginSettingPersistence")
1292 protected com.liferay.portal.service.persistence.PluginSettingPersistence pluginSettingPersistence;
1293 @BeanReference(name = "com.liferay.portal.service.persistence.PortletPersistence")
1294 protected com.liferay.portal.service.persistence.PortletPersistence portletPersistence;
1295 @BeanReference(name = "com.liferay.portal.service.persistence.PortletItemPersistence")
1296 protected com.liferay.portal.service.persistence.PortletItemPersistence portletItemPersistence;
1297 @BeanReference(name = "com.liferay.portal.service.persistence.PortletPreferencesPersistence")
1298 protected com.liferay.portal.service.persistence.PortletPreferencesPersistence portletPreferencesPersistence;
1299 @BeanReference(name = "com.liferay.portal.service.persistence.RegionPersistence")
1300 protected com.liferay.portal.service.persistence.RegionPersistence regionPersistence;
1301 @BeanReference(name = "com.liferay.portal.service.persistence.ReleasePersistence")
1302 protected com.liferay.portal.service.persistence.ReleasePersistence releasePersistence;
1303 @BeanReference(name = "com.liferay.portal.service.persistence.ResourcePersistence")
1304 protected com.liferay.portal.service.persistence.ResourcePersistence resourcePersistence;
1305 @BeanReference(name = "com.liferay.portal.service.persistence.ResourceActionPersistence")
1306 protected com.liferay.portal.service.persistence.ResourceActionPersistence resourceActionPersistence;
1307 @BeanReference(name = "com.liferay.portal.service.persistence.ResourceCodePersistence")
1308 protected com.liferay.portal.service.persistence.ResourceCodePersistence resourceCodePersistence;
1309 @BeanReference(name = "com.liferay.portal.service.persistence.ResourcePermissionPersistence")
1310 protected com.liferay.portal.service.persistence.ResourcePermissionPersistence resourcePermissionPersistence;
1311 @BeanReference(name = "com.liferay.portal.service.persistence.RolePersistence")
1312 protected com.liferay.portal.service.persistence.RolePersistence rolePersistence;
1313 @BeanReference(name = "com.liferay.portal.service.persistence.ServiceComponentPersistence")
1314 protected com.liferay.portal.service.persistence.ServiceComponentPersistence serviceComponentPersistence;
1315 @BeanReference(name = "com.liferay.portal.service.persistence.ShardPersistence")
1316 protected com.liferay.portal.service.persistence.ShardPersistence shardPersistence;
1317 @BeanReference(name = "com.liferay.portal.service.persistence.SubscriptionPersistence")
1318 protected com.liferay.portal.service.persistence.SubscriptionPersistence subscriptionPersistence;
1319 @BeanReference(name = "com.liferay.portal.service.persistence.UserPersistence")
1320 protected com.liferay.portal.service.persistence.UserPersistence userPersistence;
1321 @BeanReference(name = "com.liferay.portal.service.persistence.UserGroupPersistence")
1322 protected com.liferay.portal.service.persistence.UserGroupPersistence userGroupPersistence;
1323 @BeanReference(name = "com.liferay.portal.service.persistence.UserGroupGroupRolePersistence")
1324 protected com.liferay.portal.service.persistence.UserGroupGroupRolePersistence userGroupGroupRolePersistence;
1325 @BeanReference(name = "com.liferay.portal.service.persistence.UserGroupRolePersistence")
1326 protected com.liferay.portal.service.persistence.UserGroupRolePersistence userGroupRolePersistence;
1327 @BeanReference(name = "com.liferay.portal.service.persistence.UserIdMapperPersistence")
1328 protected com.liferay.portal.service.persistence.UserIdMapperPersistence userIdMapperPersistence;
1329 @BeanReference(name = "com.liferay.portal.service.persistence.UserTrackerPersistence")
1330 protected com.liferay.portal.service.persistence.UserTrackerPersistence userTrackerPersistence;
1331 @BeanReference(name = "com.liferay.portal.service.persistence.UserTrackerPathPersistence")
1332 protected com.liferay.portal.service.persistence.UserTrackerPathPersistence userTrackerPathPersistence;
1333 @BeanReference(name = "com.liferay.portal.service.persistence.WebDAVPropsPersistence")
1334 protected com.liferay.portal.service.persistence.WebDAVPropsPersistence webDAVPropsPersistence;
1335 @BeanReference(name = "com.liferay.portal.service.persistence.WebsitePersistence")
1336 protected com.liferay.portal.service.persistence.WebsitePersistence websitePersistence;
1337 @BeanReference(name = "com.liferay.portal.service.persistence.WorkflowDefinitionLinkPersistence")
1338 protected com.liferay.portal.service.persistence.WorkflowDefinitionLinkPersistence workflowDefinitionLinkPersistence;
1339 @BeanReference(name = "com.liferay.portal.service.persistence.WorkflowInstanceLinkPersistence")
1340 protected com.liferay.portal.service.persistence.WorkflowInstanceLinkPersistence workflowInstanceLinkPersistence;
1341 private static final String _SQL_SELECT_PASSWORDPOLICYREL = "SELECT passwordPolicyRel FROM PasswordPolicyRel passwordPolicyRel";
1342 private static final String _SQL_SELECT_PASSWORDPOLICYREL_WHERE = "SELECT passwordPolicyRel FROM PasswordPolicyRel passwordPolicyRel WHERE ";
1343 private static final String _SQL_COUNT_PASSWORDPOLICYREL = "SELECT COUNT(passwordPolicyRel) FROM PasswordPolicyRel passwordPolicyRel";
1344 private static final String _SQL_COUNT_PASSWORDPOLICYREL_WHERE = "SELECT COUNT(passwordPolicyRel) FROM PasswordPolicyRel passwordPolicyRel WHERE ";
1345 private static final String _FINDER_COLUMN_PASSWORDPOLICYID_PASSWORDPOLICYID_2 =
1346 "passwordPolicyRel.passwordPolicyId = ?";
1347 private static final String _FINDER_COLUMN_C_C_CLASSNAMEID_2 = "passwordPolicyRel.classNameId = ? AND ";
1348 private static final String _FINDER_COLUMN_C_C_CLASSPK_2 = "passwordPolicyRel.classPK = ?";
1349 private static final String _FINDER_COLUMN_P_C_C_PASSWORDPOLICYID_2 = "passwordPolicyRel.passwordPolicyId = ? AND ";
1350 private static final String _FINDER_COLUMN_P_C_C_CLASSNAMEID_2 = "passwordPolicyRel.classNameId = ? AND ";
1351 private static final String _FINDER_COLUMN_P_C_C_CLASSPK_2 = "passwordPolicyRel.classPK = ?";
1352 private static final String _ORDER_BY_ENTITY_ALIAS = "passwordPolicyRel.";
1353 private static final String _NO_SUCH_ENTITY_WITH_PRIMARY_KEY = "No PasswordPolicyRel exists with the primary key ";
1354 private static final String _NO_SUCH_ENTITY_WITH_KEY = "No PasswordPolicyRel exists with the key {";
1355 private static Log _log = LogFactoryUtil.getLog(PasswordPolicyRelPersistenceImpl.class);
1356}