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