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