1
22
23 package com.liferay.portal.service.persistence;
24
25 import com.liferay.portal.NoSuchClassNameException;
26 import com.liferay.portal.NoSuchModelException;
27 import com.liferay.portal.SystemException;
28 import com.liferay.portal.kernel.annotation.BeanReference;
29 import com.liferay.portal.kernel.cache.CacheRegistry;
30 import com.liferay.portal.kernel.dao.orm.DynamicQuery;
31 import com.liferay.portal.kernel.dao.orm.EntityCacheUtil;
32 import com.liferay.portal.kernel.dao.orm.FinderCacheUtil;
33 import com.liferay.portal.kernel.dao.orm.FinderPath;
34 import com.liferay.portal.kernel.dao.orm.Query;
35 import com.liferay.portal.kernel.dao.orm.QueryPos;
36 import com.liferay.portal.kernel.dao.orm.QueryUtil;
37 import com.liferay.portal.kernel.dao.orm.Session;
38 import com.liferay.portal.kernel.log.Log;
39 import com.liferay.portal.kernel.log.LogFactoryUtil;
40 import com.liferay.portal.kernel.util.GetterUtil;
41 import com.liferay.portal.kernel.util.OrderByComparator;
42 import com.liferay.portal.kernel.util.StringBundler;
43 import com.liferay.portal.kernel.util.StringPool;
44 import com.liferay.portal.kernel.util.StringUtil;
45 import com.liferay.portal.kernel.util.Validator;
46 import com.liferay.portal.model.ClassName;
47 import com.liferay.portal.model.ModelListener;
48 import com.liferay.portal.model.impl.ClassNameImpl;
49 import com.liferay.portal.model.impl.ClassNameModelImpl;
50 import com.liferay.portal.service.persistence.impl.BasePersistenceImpl;
51
52 import java.io.Serializable;
53
54 import java.util.ArrayList;
55 import java.util.Collections;
56 import java.util.List;
57
58
71 public class ClassNamePersistenceImpl extends BasePersistenceImpl<ClassName>
72 implements ClassNamePersistence {
73 public static final String FINDER_CLASS_NAME_ENTITY = ClassNameImpl.class.getName();
74 public static final String FINDER_CLASS_NAME_LIST = FINDER_CLASS_NAME_ENTITY +
75 ".List";
76 public static final FinderPath FINDER_PATH_FETCH_BY_VALUE = new FinderPath(ClassNameModelImpl.ENTITY_CACHE_ENABLED,
77 ClassNameModelImpl.FINDER_CACHE_ENABLED, FINDER_CLASS_NAME_ENTITY,
78 "fetchByValue", new String[] { String.class.getName() });
79 public static final FinderPath FINDER_PATH_COUNT_BY_VALUE = new FinderPath(ClassNameModelImpl.ENTITY_CACHE_ENABLED,
80 ClassNameModelImpl.FINDER_CACHE_ENABLED, FINDER_CLASS_NAME_LIST,
81 "countByValue", new String[] { String.class.getName() });
82 public static final FinderPath FINDER_PATH_FIND_ALL = new FinderPath(ClassNameModelImpl.ENTITY_CACHE_ENABLED,
83 ClassNameModelImpl.FINDER_CACHE_ENABLED, FINDER_CLASS_NAME_LIST,
84 "findAll", new String[0]);
85 public static final FinderPath FINDER_PATH_COUNT_ALL = new FinderPath(ClassNameModelImpl.ENTITY_CACHE_ENABLED,
86 ClassNameModelImpl.FINDER_CACHE_ENABLED, FINDER_CLASS_NAME_LIST,
87 "countAll", new String[0]);
88
89 public void cacheResult(ClassName className) {
90 EntityCacheUtil.putResult(ClassNameModelImpl.ENTITY_CACHE_ENABLED,
91 ClassNameImpl.class, className.getPrimaryKey(), className);
92
93 FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_VALUE,
94 new Object[] { className.getValue() }, className);
95 }
96
97 public void cacheResult(List<ClassName> classNames) {
98 for (ClassName className : classNames) {
99 if (EntityCacheUtil.getResult(
100 ClassNameModelImpl.ENTITY_CACHE_ENABLED,
101 ClassNameImpl.class, className.getPrimaryKey(), this) == null) {
102 cacheResult(className);
103 }
104 }
105 }
106
107 public void clearCache() {
108 CacheRegistry.clear(ClassNameImpl.class.getName());
109 EntityCacheUtil.clearCache(ClassNameImpl.class.getName());
110 FinderCacheUtil.clearCache(FINDER_CLASS_NAME_ENTITY);
111 FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST);
112 }
113
114 public ClassName create(long classNameId) {
115 ClassName className = new ClassNameImpl();
116
117 className.setNew(true);
118 className.setPrimaryKey(classNameId);
119
120 return className;
121 }
122
123 public ClassName remove(Serializable primaryKey)
124 throws NoSuchModelException, SystemException {
125 return remove(((Long)primaryKey).longValue());
126 }
127
128 public ClassName remove(long classNameId)
129 throws NoSuchClassNameException, SystemException {
130 Session session = null;
131
132 try {
133 session = openSession();
134
135 ClassName className = (ClassName)session.get(ClassNameImpl.class,
136 new Long(classNameId));
137
138 if (className == null) {
139 if (_log.isWarnEnabled()) {
140 _log.warn(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY + classNameId);
141 }
142
143 throw new NoSuchClassNameException(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY +
144 classNameId);
145 }
146
147 return remove(className);
148 }
149 catch (NoSuchClassNameException nsee) {
150 throw nsee;
151 }
152 catch (Exception e) {
153 throw processException(e);
154 }
155 finally {
156 closeSession(session);
157 }
158 }
159
160 public ClassName remove(ClassName className) throws SystemException {
161 for (ModelListener<ClassName> listener : listeners) {
162 listener.onBeforeRemove(className);
163 }
164
165 className = removeImpl(className);
166
167 for (ModelListener<ClassName> listener : listeners) {
168 listener.onAfterRemove(className);
169 }
170
171 return className;
172 }
173
174 protected ClassName removeImpl(ClassName className)
175 throws SystemException {
176 className = toUnwrappedModel(className);
177
178 Session session = null;
179
180 try {
181 session = openSession();
182
183 if (className.isCachedModel() || BatchSessionUtil.isEnabled()) {
184 Object staleObject = session.get(ClassNameImpl.class,
185 className.getPrimaryKeyObj());
186
187 if (staleObject != null) {
188 session.evict(staleObject);
189 }
190 }
191
192 session.delete(className);
193
194 session.flush();
195 }
196 catch (Exception e) {
197 throw processException(e);
198 }
199 finally {
200 closeSession(session);
201 }
202
203 FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST);
204
205 ClassNameModelImpl classNameModelImpl = (ClassNameModelImpl)className;
206
207 FinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_VALUE,
208 new Object[] { classNameModelImpl.getOriginalValue() });
209
210 EntityCacheUtil.removeResult(ClassNameModelImpl.ENTITY_CACHE_ENABLED,
211 ClassNameImpl.class, className.getPrimaryKey());
212
213 return className;
214 }
215
216
219 public ClassName update(ClassName className) throws SystemException {
220 if (_log.isWarnEnabled()) {
221 _log.warn(
222 "Using the deprecated update(ClassName className) method. Use update(ClassName className, boolean merge) instead.");
223 }
224
225 return update(className, false);
226 }
227
228 public ClassName updateImpl(com.liferay.portal.model.ClassName className,
229 boolean merge) throws SystemException {
230 className = toUnwrappedModel(className);
231
232 boolean isNew = className.isNew();
233
234 ClassNameModelImpl classNameModelImpl = (ClassNameModelImpl)className;
235
236 Session session = null;
237
238 try {
239 session = openSession();
240
241 BatchSessionUtil.update(session, className, merge);
242
243 className.setNew(false);
244 }
245 catch (Exception e) {
246 throw processException(e);
247 }
248 finally {
249 closeSession(session);
250 }
251
252 FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST);
253
254 EntityCacheUtil.putResult(ClassNameModelImpl.ENTITY_CACHE_ENABLED,
255 ClassNameImpl.class, className.getPrimaryKey(), className);
256
257 if (!isNew &&
258 (!Validator.equals(className.getValue(),
259 classNameModelImpl.getOriginalValue()))) {
260 FinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_VALUE,
261 new Object[] { classNameModelImpl.getOriginalValue() });
262 }
263
264 if (isNew ||
265 (!Validator.equals(className.getValue(),
266 classNameModelImpl.getOriginalValue()))) {
267 FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_VALUE,
268 new Object[] { className.getValue() }, className);
269 }
270
271 return className;
272 }
273
274 protected ClassName toUnwrappedModel(ClassName className) {
275 if (className instanceof ClassNameImpl) {
276 return className;
277 }
278
279 ClassNameImpl classNameImpl = new ClassNameImpl();
280
281 classNameImpl.setNew(className.isNew());
282 classNameImpl.setPrimaryKey(className.getPrimaryKey());
283
284 classNameImpl.setClassNameId(className.getClassNameId());
285 classNameImpl.setValue(className.getValue());
286
287 return classNameImpl;
288 }
289
290 public ClassName findByPrimaryKey(Serializable primaryKey)
291 throws NoSuchModelException, SystemException {
292 return findByPrimaryKey(((Long)primaryKey).longValue());
293 }
294
295 public ClassName findByPrimaryKey(long classNameId)
296 throws NoSuchClassNameException, SystemException {
297 ClassName className = fetchByPrimaryKey(classNameId);
298
299 if (className == null) {
300 if (_log.isWarnEnabled()) {
301 _log.warn(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY + classNameId);
302 }
303
304 throw new NoSuchClassNameException(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY +
305 classNameId);
306 }
307
308 return className;
309 }
310
311 public ClassName fetchByPrimaryKey(Serializable primaryKey)
312 throws SystemException {
313 return fetchByPrimaryKey(((Long)primaryKey).longValue());
314 }
315
316 public ClassName fetchByPrimaryKey(long classNameId)
317 throws SystemException {
318 ClassName className = (ClassName)EntityCacheUtil.getResult(ClassNameModelImpl.ENTITY_CACHE_ENABLED,
319 ClassNameImpl.class, classNameId, this);
320
321 if (className == null) {
322 Session session = null;
323
324 try {
325 session = openSession();
326
327 className = (ClassName)session.get(ClassNameImpl.class,
328 new Long(classNameId));
329 }
330 catch (Exception e) {
331 throw processException(e);
332 }
333 finally {
334 if (className != null) {
335 cacheResult(className);
336 }
337
338 closeSession(session);
339 }
340 }
341
342 return className;
343 }
344
345 public ClassName findByValue(String value)
346 throws NoSuchClassNameException, SystemException {
347 ClassName className = fetchByValue(value);
348
349 if (className == null) {
350 StringBundler msg = new StringBundler(4);
351
352 msg.append(_NO_SUCH_ENTITY_WITH_KEY);
353
354 msg.append("value=");
355 msg.append(value);
356
357 msg.append(StringPool.CLOSE_CURLY_BRACE);
358
359 if (_log.isWarnEnabled()) {
360 _log.warn(msg.toString());
361 }
362
363 throw new NoSuchClassNameException(msg.toString());
364 }
365
366 return className;
367 }
368
369 public ClassName fetchByValue(String value) throws SystemException {
370 return fetchByValue(value, true);
371 }
372
373 public ClassName fetchByValue(String value, boolean retrieveFromCache)
374 throws SystemException {
375 Object[] finderArgs = new Object[] { value };
376
377 Object result = null;
378
379 if (retrieveFromCache) {
380 result = FinderCacheUtil.getResult(FINDER_PATH_FETCH_BY_VALUE,
381 finderArgs, this);
382 }
383
384 if (result == null) {
385 Session session = null;
386
387 try {
388 session = openSession();
389
390 StringBundler query = new StringBundler(2);
391
392 query.append(_SQL_SELECT_CLASSNAME_WHERE);
393
394 if (value == null) {
395 query.append(_FINDER_COLUMN_VALUE_VALUE_1);
396 }
397 else {
398 if (value.equals(StringPool.BLANK)) {
399 query.append(_FINDER_COLUMN_VALUE_VALUE_3);
400 }
401 else {
402 query.append(_FINDER_COLUMN_VALUE_VALUE_2);
403 }
404 }
405
406 String sql = query.toString();
407
408 Query q = session.createQuery(sql);
409
410 QueryPos qPos = QueryPos.getInstance(q);
411
412 if (value != null) {
413 qPos.add(value);
414 }
415
416 List<ClassName> list = q.list();
417
418 result = list;
419
420 ClassName className = null;
421
422 if (list.isEmpty()) {
423 FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_VALUE,
424 finderArgs, list);
425 }
426 else {
427 className = list.get(0);
428
429 cacheResult(className);
430
431 if ((className.getValue() == null) ||
432 !className.getValue().equals(value)) {
433 FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_VALUE,
434 finderArgs, className);
435 }
436 }
437
438 return className;
439 }
440 catch (Exception e) {
441 throw processException(e);
442 }
443 finally {
444 if (result == null) {
445 FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_VALUE,
446 finderArgs, new ArrayList<ClassName>());
447 }
448
449 closeSession(session);
450 }
451 }
452 else {
453 if (result instanceof List<?>) {
454 return null;
455 }
456 else {
457 return (ClassName)result;
458 }
459 }
460 }
461
462 public List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery)
463 throws SystemException {
464 Session session = null;
465
466 try {
467 session = openSession();
468
469 dynamicQuery.compile(session);
470
471 return dynamicQuery.list();
472 }
473 catch (Exception e) {
474 throw processException(e);
475 }
476 finally {
477 closeSession(session);
478 }
479 }
480
481 public List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery,
482 int start, int end) throws SystemException {
483 Session session = null;
484
485 try {
486 session = openSession();
487
488 dynamicQuery.setLimit(start, end);
489
490 dynamicQuery.compile(session);
491
492 return dynamicQuery.list();
493 }
494 catch (Exception e) {
495 throw processException(e);
496 }
497 finally {
498 closeSession(session);
499 }
500 }
501
502 public List<ClassName> findAll() throws SystemException {
503 return findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
504 }
505
506 public List<ClassName> findAll(int start, int end)
507 throws SystemException {
508 return findAll(start, end, null);
509 }
510
511 public List<ClassName> findAll(int start, int end, OrderByComparator obc)
512 throws SystemException {
513 Object[] finderArgs = new Object[] {
514 String.valueOf(start), String.valueOf(end), String.valueOf(obc)
515 };
516
517 List<ClassName> list = (List<ClassName>)FinderCacheUtil.getResult(FINDER_PATH_FIND_ALL,
518 finderArgs, this);
519
520 if (list == null) {
521 Session session = null;
522
523 try {
524 session = openSession();
525
526 StringBundler query = null;
527 String sql = null;
528
529 if (obc != null) {
530 query = new StringBundler(2 +
531 (obc.getOrderByFields().length * 3));
532
533 query.append(_SQL_SELECT_CLASSNAME);
534
535 appendOrderByComparator(query, _ORDER_BY_ENTITY_ALIAS, obc);
536
537 sql = query.toString();
538 }
539
540 sql = _SQL_SELECT_CLASSNAME;
541
542 Query q = session.createQuery(sql);
543
544 if (obc == null) {
545 list = (List<ClassName>)QueryUtil.list(q, getDialect(),
546 start, end, false);
547
548 Collections.sort(list);
549 }
550 else {
551 list = (List<ClassName>)QueryUtil.list(q, getDialect(),
552 start, end);
553 }
554 }
555 catch (Exception e) {
556 throw processException(e);
557 }
558 finally {
559 if (list == null) {
560 list = new ArrayList<ClassName>();
561 }
562
563 cacheResult(list);
564
565 FinderCacheUtil.putResult(FINDER_PATH_FIND_ALL, finderArgs, list);
566
567 closeSession(session);
568 }
569 }
570
571 return list;
572 }
573
574 public void removeByValue(String value)
575 throws NoSuchClassNameException, SystemException {
576 ClassName className = findByValue(value);
577
578 remove(className);
579 }
580
581 public void removeAll() throws SystemException {
582 for (ClassName className : findAll()) {
583 remove(className);
584 }
585 }
586
587 public int countByValue(String value) throws SystemException {
588 Object[] finderArgs = new Object[] { value };
589
590 Long count = (Long)FinderCacheUtil.getResult(FINDER_PATH_COUNT_BY_VALUE,
591 finderArgs, this);
592
593 if (count == null) {
594 Session session = null;
595
596 try {
597 session = openSession();
598
599 StringBundler query = new StringBundler(2);
600
601 query.append(_SQL_COUNT_CLASSNAME_WHERE);
602
603 if (value == null) {
604 query.append(_FINDER_COLUMN_VALUE_VALUE_1);
605 }
606 else {
607 if (value.equals(StringPool.BLANK)) {
608 query.append(_FINDER_COLUMN_VALUE_VALUE_3);
609 }
610 else {
611 query.append(_FINDER_COLUMN_VALUE_VALUE_2);
612 }
613 }
614
615 String sql = query.toString();
616
617 Query q = session.createQuery(sql);
618
619 QueryPos qPos = QueryPos.getInstance(q);
620
621 if (value != null) {
622 qPos.add(value);
623 }
624
625 count = (Long)q.uniqueResult();
626 }
627 catch (Exception e) {
628 throw processException(e);
629 }
630 finally {
631 if (count == null) {
632 count = Long.valueOf(0);
633 }
634
635 FinderCacheUtil.putResult(FINDER_PATH_COUNT_BY_VALUE,
636 finderArgs, count);
637
638 closeSession(session);
639 }
640 }
641
642 return count.intValue();
643 }
644
645 public int countAll() throws SystemException {
646 Object[] finderArgs = new Object[0];
647
648 Long count = (Long)FinderCacheUtil.getResult(FINDER_PATH_COUNT_ALL,
649 finderArgs, this);
650
651 if (count == null) {
652 Session session = null;
653
654 try {
655 session = openSession();
656
657 Query q = session.createQuery(_SQL_COUNT_CLASSNAME);
658
659 count = (Long)q.uniqueResult();
660 }
661 catch (Exception e) {
662 throw processException(e);
663 }
664 finally {
665 if (count == null) {
666 count = Long.valueOf(0);
667 }
668
669 FinderCacheUtil.putResult(FINDER_PATH_COUNT_ALL, finderArgs,
670 count);
671
672 closeSession(session);
673 }
674 }
675
676 return count.intValue();
677 }
678
679 public void afterPropertiesSet() {
680 String[] listenerClassNames = StringUtil.split(GetterUtil.getString(
681 com.liferay.portal.util.PropsUtil.get(
682 "value.object.listener.com.liferay.portal.model.ClassName")));
683
684 if (listenerClassNames.length > 0) {
685 try {
686 List<ModelListener<ClassName>> listenersList = new ArrayList<ModelListener<ClassName>>();
687
688 for (String listenerClassName : listenerClassNames) {
689 listenersList.add((ModelListener<ClassName>)Class.forName(
690 listenerClassName).newInstance());
691 }
692
693 listeners = listenersList.toArray(new ModelListener[listenersList.size()]);
694 }
695 catch (Exception e) {
696 _log.error(e);
697 }
698 }
699 }
700
701 @BeanReference(name = "com.liferay.portal.service.persistence.AccountPersistence")
702 protected com.liferay.portal.service.persistence.AccountPersistence accountPersistence;
703 @BeanReference(name = "com.liferay.portal.service.persistence.AddressPersistence")
704 protected com.liferay.portal.service.persistence.AddressPersistence addressPersistence;
705 @BeanReference(name = "com.liferay.portal.service.persistence.BrowserTrackerPersistence")
706 protected com.liferay.portal.service.persistence.BrowserTrackerPersistence browserTrackerPersistence;
707 @BeanReference(name = "com.liferay.portal.service.persistence.ClassNamePersistence")
708 protected com.liferay.portal.service.persistence.ClassNamePersistence classNamePersistence;
709 @BeanReference(name = "com.liferay.portal.service.persistence.CompanyPersistence")
710 protected com.liferay.portal.service.persistence.CompanyPersistence companyPersistence;
711 @BeanReference(name = "com.liferay.portal.service.persistence.ContactPersistence")
712 protected com.liferay.portal.service.persistence.ContactPersistence contactPersistence;
713 @BeanReference(name = "com.liferay.portal.service.persistence.CountryPersistence")
714 protected com.liferay.portal.service.persistence.CountryPersistence countryPersistence;
715 @BeanReference(name = "com.liferay.portal.service.persistence.EmailAddressPersistence")
716 protected com.liferay.portal.service.persistence.EmailAddressPersistence emailAddressPersistence;
717 @BeanReference(name = "com.liferay.portal.service.persistence.GroupPersistence")
718 protected com.liferay.portal.service.persistence.GroupPersistence groupPersistence;
719 @BeanReference(name = "com.liferay.portal.service.persistence.ImagePersistence")
720 protected com.liferay.portal.service.persistence.ImagePersistence imagePersistence;
721 @BeanReference(name = "com.liferay.portal.service.persistence.LayoutPersistence")
722 protected com.liferay.portal.service.persistence.LayoutPersistence layoutPersistence;
723 @BeanReference(name = "com.liferay.portal.service.persistence.LayoutSetPersistence")
724 protected com.liferay.portal.service.persistence.LayoutSetPersistence layoutSetPersistence;
725 @BeanReference(name = "com.liferay.portal.service.persistence.ListTypePersistence")
726 protected com.liferay.portal.service.persistence.ListTypePersistence listTypePersistence;
727 @BeanReference(name = "com.liferay.portal.service.persistence.LockPersistence")
728 protected com.liferay.portal.service.persistence.LockPersistence lockPersistence;
729 @BeanReference(name = "com.liferay.portal.service.persistence.MembershipRequestPersistence")
730 protected com.liferay.portal.service.persistence.MembershipRequestPersistence membershipRequestPersistence;
731 @BeanReference(name = "com.liferay.portal.service.persistence.OrganizationPersistence")
732 protected com.liferay.portal.service.persistence.OrganizationPersistence organizationPersistence;
733 @BeanReference(name = "com.liferay.portal.service.persistence.OrgGroupPermissionPersistence")
734 protected com.liferay.portal.service.persistence.OrgGroupPermissionPersistence orgGroupPermissionPersistence;
735 @BeanReference(name = "com.liferay.portal.service.persistence.OrgGroupRolePersistence")
736 protected com.liferay.portal.service.persistence.OrgGroupRolePersistence orgGroupRolePersistence;
737 @BeanReference(name = "com.liferay.portal.service.persistence.OrgLaborPersistence")
738 protected com.liferay.portal.service.persistence.OrgLaborPersistence orgLaborPersistence;
739 @BeanReference(name = "com.liferay.portal.service.persistence.PasswordPolicyPersistence")
740 protected com.liferay.portal.service.persistence.PasswordPolicyPersistence passwordPolicyPersistence;
741 @BeanReference(name = "com.liferay.portal.service.persistence.PasswordPolicyRelPersistence")
742 protected com.liferay.portal.service.persistence.PasswordPolicyRelPersistence passwordPolicyRelPersistence;
743 @BeanReference(name = "com.liferay.portal.service.persistence.PasswordTrackerPersistence")
744 protected com.liferay.portal.service.persistence.PasswordTrackerPersistence passwordTrackerPersistence;
745 @BeanReference(name = "com.liferay.portal.service.persistence.PermissionPersistence")
746 protected com.liferay.portal.service.persistence.PermissionPersistence permissionPersistence;
747 @BeanReference(name = "com.liferay.portal.service.persistence.PhonePersistence")
748 protected com.liferay.portal.service.persistence.PhonePersistence phonePersistence;
749 @BeanReference(name = "com.liferay.portal.service.persistence.PluginSettingPersistence")
750 protected com.liferay.portal.service.persistence.PluginSettingPersistence pluginSettingPersistence;
751 @BeanReference(name = "com.liferay.portal.service.persistence.PortletPersistence")
752 protected com.liferay.portal.service.persistence.PortletPersistence portletPersistence;
753 @BeanReference(name = "com.liferay.portal.service.persistence.PortletItemPersistence")
754 protected com.liferay.portal.service.persistence.PortletItemPersistence portletItemPersistence;
755 @BeanReference(name = "com.liferay.portal.service.persistence.PortletPreferencesPersistence")
756 protected com.liferay.portal.service.persistence.PortletPreferencesPersistence portletPreferencesPersistence;
757 @BeanReference(name = "com.liferay.portal.service.persistence.RegionPersistence")
758 protected com.liferay.portal.service.persistence.RegionPersistence regionPersistence;
759 @BeanReference(name = "com.liferay.portal.service.persistence.ReleasePersistence")
760 protected com.liferay.portal.service.persistence.ReleasePersistence releasePersistence;
761 @BeanReference(name = "com.liferay.portal.service.persistence.ResourcePersistence")
762 protected com.liferay.portal.service.persistence.ResourcePersistence resourcePersistence;
763 @BeanReference(name = "com.liferay.portal.service.persistence.ResourceActionPersistence")
764 protected com.liferay.portal.service.persistence.ResourceActionPersistence resourceActionPersistence;
765 @BeanReference(name = "com.liferay.portal.service.persistence.ResourceCodePersistence")
766 protected com.liferay.portal.service.persistence.ResourceCodePersistence resourceCodePersistence;
767 @BeanReference(name = "com.liferay.portal.service.persistence.ResourcePermissionPersistence")
768 protected com.liferay.portal.service.persistence.ResourcePermissionPersistence resourcePermissionPersistence;
769 @BeanReference(name = "com.liferay.portal.service.persistence.RolePersistence")
770 protected com.liferay.portal.service.persistence.RolePersistence rolePersistence;
771 @BeanReference(name = "com.liferay.portal.service.persistence.ServiceComponentPersistence")
772 protected com.liferay.portal.service.persistence.ServiceComponentPersistence serviceComponentPersistence;
773 @BeanReference(name = "com.liferay.portal.service.persistence.ShardPersistence")
774 protected com.liferay.portal.service.persistence.ShardPersistence shardPersistence;
775 @BeanReference(name = "com.liferay.portal.service.persistence.SubscriptionPersistence")
776 protected com.liferay.portal.service.persistence.SubscriptionPersistence subscriptionPersistence;
777 @BeanReference(name = "com.liferay.portal.service.persistence.UserPersistence")
778 protected com.liferay.portal.service.persistence.UserPersistence userPersistence;
779 @BeanReference(name = "com.liferay.portal.service.persistence.UserGroupPersistence")
780 protected com.liferay.portal.service.persistence.UserGroupPersistence userGroupPersistence;
781 @BeanReference(name = "com.liferay.portal.service.persistence.UserGroupGroupRolePersistence")
782 protected com.liferay.portal.service.persistence.UserGroupGroupRolePersistence userGroupGroupRolePersistence;
783 @BeanReference(name = "com.liferay.portal.service.persistence.UserGroupRolePersistence")
784 protected com.liferay.portal.service.persistence.UserGroupRolePersistence userGroupRolePersistence;
785 @BeanReference(name = "com.liferay.portal.service.persistence.UserIdMapperPersistence")
786 protected com.liferay.portal.service.persistence.UserIdMapperPersistence userIdMapperPersistence;
787 @BeanReference(name = "com.liferay.portal.service.persistence.UserTrackerPersistence")
788 protected com.liferay.portal.service.persistence.UserTrackerPersistence userTrackerPersistence;
789 @BeanReference(name = "com.liferay.portal.service.persistence.UserTrackerPathPersistence")
790 protected com.liferay.portal.service.persistence.UserTrackerPathPersistence userTrackerPathPersistence;
791 @BeanReference(name = "com.liferay.portal.service.persistence.WebDAVPropsPersistence")
792 protected com.liferay.portal.service.persistence.WebDAVPropsPersistence webDAVPropsPersistence;
793 @BeanReference(name = "com.liferay.portal.service.persistence.WebsitePersistence")
794 protected com.liferay.portal.service.persistence.WebsitePersistence websitePersistence;
795 private static final String _SQL_SELECT_CLASSNAME = "SELECT className FROM ClassName className";
796 private static final String _SQL_SELECT_CLASSNAME_WHERE = "SELECT className FROM ClassName className WHERE ";
797 private static final String _SQL_COUNT_CLASSNAME = "SELECT COUNT(className) FROM ClassName className";
798 private static final String _SQL_COUNT_CLASSNAME_WHERE = "SELECT COUNT(className) FROM ClassName className WHERE ";
799 private static final String _FINDER_COLUMN_VALUE_VALUE_1 = "className.value IS NULL";
800 private static final String _FINDER_COLUMN_VALUE_VALUE_2 = "className.value = ?";
801 private static final String _FINDER_COLUMN_VALUE_VALUE_3 = "(className.value IS NULL OR className.value = ?)";
802 private static final String _ORDER_BY_ENTITY_ALIAS = "className.";
803 private static final String _NO_SUCH_ENTITY_WITH_PRIMARY_KEY = "No ClassName exists with the primary key ";
804 private static final String _NO_SUCH_ENTITY_WITH_KEY = "No ClassName exists with the key {";
805 private static Log _log = LogFactoryUtil.getLog(ClassNamePersistenceImpl.class);
806 }