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