1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    *
5    *
6    *
7    * The contents of this file are subject to the terms of the Liferay Enterprise
8    * Subscription License ("License"). You may not use this file except in
9    * compliance with the License. You can obtain a copy of the License by
10   * contacting Liferay, Inc. See the License for the specific language governing
11   * permissions and limitations under the License, including but not limited to
12   * distribution rights 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   * <p>
58   * ServiceBuilder generated this class. Modifications in this class will be
59   * overwritten the next time is generated.
60   * </p>
61   *
62   * @author    Brian Wing Shun Chan
63   * @see       ClassNamePersistence
64   * @see       ClassNameUtil
65   * @generated
66   */
67  public class ClassNamePersistenceImpl extends BasePersistenceImpl
68      implements ClassNamePersistence {
69      public static final String FINDER_CLASS_NAME_ENTITY = ClassNameImpl.class.getName();
70      public static final String FINDER_CLASS_NAME_LIST = FINDER_CLASS_NAME_ENTITY +
71          ".List";
72      public static final FinderPath FINDER_PATH_FETCH_BY_VALUE = new FinderPath(ClassNameModelImpl.ENTITY_CACHE_ENABLED,
73              ClassNameModelImpl.FINDER_CACHE_ENABLED, FINDER_CLASS_NAME_ENTITY,
74              "fetchByValue", new String[] { String.class.getName() });
75      public static final FinderPath FINDER_PATH_COUNT_BY_VALUE = new FinderPath(ClassNameModelImpl.ENTITY_CACHE_ENABLED,
76              ClassNameModelImpl.FINDER_CACHE_ENABLED, FINDER_CLASS_NAME_LIST,
77              "countByValue", new String[] { String.class.getName() });
78      public static final FinderPath FINDER_PATH_FIND_ALL = new FinderPath(ClassNameModelImpl.ENTITY_CACHE_ENABLED,
79              ClassNameModelImpl.FINDER_CACHE_ENABLED, FINDER_CLASS_NAME_LIST,
80              "findAll", new String[0]);
81      public static final FinderPath FINDER_PATH_COUNT_ALL = new FinderPath(ClassNameModelImpl.ENTITY_CACHE_ENABLED,
82              ClassNameModelImpl.FINDER_CACHE_ENABLED, FINDER_CLASS_NAME_LIST,
83              "countAll", new String[0]);
84  
85      public void cacheResult(ClassName className) {
86          EntityCacheUtil.putResult(ClassNameModelImpl.ENTITY_CACHE_ENABLED,
87              ClassNameImpl.class, className.getPrimaryKey(), className);
88  
89          FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_VALUE,
90              new Object[] { className.getValue() }, className);
91      }
92  
93      public void cacheResult(List<ClassName> classNames) {
94          for (ClassName className : classNames) {
95              if (EntityCacheUtil.getResult(
96                          ClassNameModelImpl.ENTITY_CACHE_ENABLED,
97                          ClassNameImpl.class, className.getPrimaryKey(), this) == null) {
98                  cacheResult(className);
99              }
100         }
101     }
102 
103     public void clearCache() {
104         CacheRegistry.clear(ClassNameImpl.class.getName());
105         EntityCacheUtil.clearCache(ClassNameImpl.class.getName());
106         FinderCacheUtil.clearCache(FINDER_CLASS_NAME_ENTITY);
107         FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST);
108     }
109 
110     public ClassName create(long classNameId) {
111         ClassName className = new ClassNameImpl();
112 
113         className.setNew(true);
114         className.setPrimaryKey(classNameId);
115 
116         return className;
117     }
118 
119     public ClassName remove(long classNameId)
120         throws NoSuchClassNameException, SystemException {
121         Session session = null;
122 
123         try {
124             session = openSession();
125 
126             ClassName className = (ClassName)session.get(ClassNameImpl.class,
127                     new Long(classNameId));
128 
129             if (className == null) {
130                 if (_log.isWarnEnabled()) {
131                     _log.warn("No ClassName exists with the primary key " +
132                         classNameId);
133                 }
134 
135                 throw new NoSuchClassNameException(
136                     "No ClassName exists with the primary key " + 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     /**
209      * @deprecated Use {@link #update(ClassName, boolean merge)}.
210      */
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     /**
221      * Add, update, or merge, the entity. This method also calls the model
222      * listeners to trigger the proper events associated with adding, deleting,
223      * or updating an entity.
224      *
225      * @param  className the entity to add, update, or merge
226      * @param  merge boolean value for whether to merge the entity. The default
227      *         value is false. Setting merge to true is more expensive and
228      *         should only be true when className is transient. See
229      *         LEP-5473 for a detailed discussion of this method.
230      * @return the entity that was added, updated, or merged
231      */
232     public ClassName update(ClassName className, boolean merge)
233         throws SystemException {
234         boolean isNew = className.isNew();
235 
236         for (ModelListener<ClassName> listener : listeners) {
237             if (isNew) {
238                 listener.onBeforeCreate(className);
239             }
240             else {
241                 listener.onBeforeUpdate(className);
242             }
243         }
244 
245         className = updateImpl(className, merge);
246 
247         for (ModelListener<ClassName> listener : listeners) {
248             if (isNew) {
249                 listener.onAfterCreate(className);
250             }
251             else {
252                 listener.onAfterUpdate(className);
253             }
254         }
255 
256         return className;
257     }
258 
259     public ClassName updateImpl(com.liferay.portal.model.ClassName className,
260         boolean merge) throws SystemException {
261         className = toUnwrappedModel(className);
262 
263         boolean isNew = className.isNew();
264 
265         ClassNameModelImpl classNameModelImpl = (ClassNameModelImpl)className;
266 
267         Session session = null;
268 
269         try {
270             session = openSession();
271 
272             BatchSessionUtil.update(session, className, merge);
273 
274             className.setNew(false);
275         }
276         catch (Exception e) {
277             throw processException(e);
278         }
279         finally {
280             closeSession(session);
281         }
282 
283         FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST);
284 
285         EntityCacheUtil.putResult(ClassNameModelImpl.ENTITY_CACHE_ENABLED,
286             ClassNameImpl.class, className.getPrimaryKey(), className);
287 
288         if (!isNew &&
289                 (!Validator.equals(className.getValue(),
290                     classNameModelImpl.getOriginalValue()))) {
291             FinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_VALUE,
292                 new Object[] { classNameModelImpl.getOriginalValue() });
293         }
294 
295         if (isNew ||
296                 (!Validator.equals(className.getValue(),
297                     classNameModelImpl.getOriginalValue()))) {
298             FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_VALUE,
299                 new Object[] { className.getValue() }, className);
300         }
301 
302         return className;
303     }
304 
305     protected ClassName toUnwrappedModel(ClassName className) {
306         if (className instanceof ClassNameImpl) {
307             return className;
308         }
309 
310         ClassNameImpl classNameImpl = new ClassNameImpl();
311 
312         classNameImpl.setNew(className.isNew());
313         classNameImpl.setPrimaryKey(className.getPrimaryKey());
314 
315         classNameImpl.setClassNameId(className.getClassNameId());
316         classNameImpl.setValue(className.getValue());
317 
318         return classNameImpl;
319     }
320 
321     public ClassName findByPrimaryKey(long classNameId)
322         throws NoSuchClassNameException, SystemException {
323         ClassName className = fetchByPrimaryKey(classNameId);
324 
325         if (className == null) {
326             if (_log.isWarnEnabled()) {
327                 _log.warn("No ClassName exists with the primary key " +
328                     classNameId);
329             }
330 
331             throw new NoSuchClassNameException(
332                 "No ClassName exists with the primary key " + classNameId);
333         }
334 
335         return className;
336     }
337 
338     public ClassName fetchByPrimaryKey(long classNameId)
339         throws SystemException {
340         ClassName className = (ClassName)EntityCacheUtil.getResult(ClassNameModelImpl.ENTITY_CACHE_ENABLED,
341                 ClassNameImpl.class, classNameId, this);
342 
343         if (className == null) {
344             Session session = null;
345 
346             try {
347                 session = openSession();
348 
349                 className = (ClassName)session.get(ClassNameImpl.class,
350                         new Long(classNameId));
351             }
352             catch (Exception e) {
353                 throw processException(e);
354             }
355             finally {
356                 if (className != null) {
357                     cacheResult(className);
358                 }
359 
360                 closeSession(session);
361             }
362         }
363 
364         return className;
365     }
366 
367     public ClassName findByValue(String value)
368         throws NoSuchClassNameException, SystemException {
369         ClassName className = fetchByValue(value);
370 
371         if (className == null) {
372             StringBuilder msg = new StringBuilder();
373 
374             msg.append("No ClassName exists with the key {");
375 
376             msg.append("value=" + value);
377 
378             msg.append(StringPool.CLOSE_CURLY_BRACE);
379 
380             if (_log.isWarnEnabled()) {
381                 _log.warn(msg.toString());
382             }
383 
384             throw new NoSuchClassNameException(msg.toString());
385         }
386 
387         return className;
388     }
389 
390     public ClassName fetchByValue(String value) throws SystemException {
391         return fetchByValue(value, true);
392     }
393 
394     public ClassName fetchByValue(String value, boolean retrieveFromCache)
395         throws SystemException {
396         Object[] finderArgs = new Object[] { value };
397 
398         Object result = null;
399 
400         if (retrieveFromCache) {
401             result = FinderCacheUtil.getResult(FINDER_PATH_FETCH_BY_VALUE,
402                     finderArgs, this);
403         }
404 
405         if (result == null) {
406             Session session = null;
407 
408             try {
409                 session = openSession();
410 
411                 StringBuilder query = new StringBuilder();
412 
413                 query.append("SELECT className FROM ClassName className WHERE ");
414 
415                 if (value == null) {
416                     query.append("className.value IS NULL");
417                 }
418                 else {
419                     query.append("className.value = ?");
420                 }
421 
422                 query.append(" ");
423 
424                 Query q = session.createQuery(query.toString());
425 
426                 QueryPos qPos = QueryPos.getInstance(q);
427 
428                 if (value != null) {
429                     qPos.add(value);
430                 }
431 
432                 List<ClassName> list = q.list();
433 
434                 result = list;
435 
436                 ClassName className = null;
437 
438                 if (list.isEmpty()) {
439                     FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_VALUE,
440                         finderArgs, list);
441                 }
442                 else {
443                     className = list.get(0);
444 
445                     cacheResult(className);
446 
447                     if ((className.getValue() == null) ||
448                             !className.getValue().equals(value)) {
449                         FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_VALUE,
450                             finderArgs, className);
451                     }
452                 }
453 
454                 return className;
455             }
456             catch (Exception e) {
457                 throw processException(e);
458             }
459             finally {
460                 if (result == null) {
461                     FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_VALUE,
462                         finderArgs, new ArrayList<ClassName>());
463                 }
464 
465                 closeSession(session);
466             }
467         }
468         else {
469             if (result instanceof List<?>) {
470                 return null;
471             }
472             else {
473                 return (ClassName)result;
474             }
475         }
476     }
477 
478     public List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery)
479         throws SystemException {
480         Session session = null;
481 
482         try {
483             session = openSession();
484 
485             dynamicQuery.compile(session);
486 
487             return dynamicQuery.list();
488         }
489         catch (Exception e) {
490             throw processException(e);
491         }
492         finally {
493             closeSession(session);
494         }
495     }
496 
497     public List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery,
498         int start, int end) throws SystemException {
499         Session session = null;
500 
501         try {
502             session = openSession();
503 
504             dynamicQuery.setLimit(start, end);
505 
506             dynamicQuery.compile(session);
507 
508             return dynamicQuery.list();
509         }
510         catch (Exception e) {
511             throw processException(e);
512         }
513         finally {
514             closeSession(session);
515         }
516     }
517 
518     public List<ClassName> findAll() throws SystemException {
519         return findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
520     }
521 
522     public List<ClassName> findAll(int start, int end)
523         throws SystemException {
524         return findAll(start, end, null);
525     }
526 
527     public List<ClassName> findAll(int start, int end, OrderByComparator obc)
528         throws SystemException {
529         Object[] finderArgs = new Object[] {
530                 String.valueOf(start), String.valueOf(end), String.valueOf(obc)
531             };
532 
533         List<ClassName> list = (List<ClassName>)FinderCacheUtil.getResult(FINDER_PATH_FIND_ALL,
534                 finderArgs, this);
535 
536         if (list == null) {
537             Session session = null;
538 
539             try {
540                 session = openSession();
541 
542                 StringBuilder query = new StringBuilder();
543 
544                 query.append("SELECT className FROM ClassName className ");
545 
546                 if (obc != null) {
547                     query.append("ORDER BY ");
548 
549                     String[] orderByFields = obc.getOrderByFields();
550 
551                     for (int i = 0; i < orderByFields.length; i++) {
552                         query.append("className.");
553                         query.append(orderByFields[i]);
554 
555                         if (obc.isAscending()) {
556                             query.append(" ASC");
557                         }
558                         else {
559                             query.append(" DESC");
560                         }
561 
562                         if ((i + 1) < orderByFields.length) {
563                             query.append(", ");
564                         }
565                     }
566                 }
567 
568                 Query q = session.createQuery(query.toString());
569 
570                 if (obc == null) {
571                     list = (List<ClassName>)QueryUtil.list(q, getDialect(),
572                             start, end, false);
573 
574                     Collections.sort(list);
575                 }
576                 else {
577                     list = (List<ClassName>)QueryUtil.list(q, getDialect(),
578                             start, end);
579                 }
580             }
581             catch (Exception e) {
582                 throw processException(e);
583             }
584             finally {
585                 if (list == null) {
586                     list = new ArrayList<ClassName>();
587                 }
588 
589                 cacheResult(list);
590 
591                 FinderCacheUtil.putResult(FINDER_PATH_FIND_ALL, finderArgs, list);
592 
593                 closeSession(session);
594             }
595         }
596 
597         return list;
598     }
599 
600     public void removeByValue(String value)
601         throws NoSuchClassNameException, SystemException {
602         ClassName className = findByValue(value);
603 
604         remove(className);
605     }
606 
607     public void removeAll() throws SystemException {
608         for (ClassName className : findAll()) {
609             remove(className);
610         }
611     }
612 
613     public int countByValue(String value) throws SystemException {
614         Object[] finderArgs = new Object[] { value };
615 
616         Long count = (Long)FinderCacheUtil.getResult(FINDER_PATH_COUNT_BY_VALUE,
617                 finderArgs, this);
618 
619         if (count == null) {
620             Session session = null;
621 
622             try {
623                 session = openSession();
624 
625                 StringBuilder query = new StringBuilder();
626 
627                 query.append("SELECT COUNT(className) ");
628                 query.append("FROM ClassName className WHERE ");
629 
630                 if (value == null) {
631                     query.append("className.value IS NULL");
632                 }
633                 else {
634                     query.append("className.value = ?");
635                 }
636 
637                 query.append(" ");
638 
639                 Query q = session.createQuery(query.toString());
640 
641                 QueryPos qPos = QueryPos.getInstance(q);
642 
643                 if (value != null) {
644                     qPos.add(value);
645                 }
646 
647                 count = (Long)q.uniqueResult();
648             }
649             catch (Exception e) {
650                 throw processException(e);
651             }
652             finally {
653                 if (count == null) {
654                     count = Long.valueOf(0);
655                 }
656 
657                 FinderCacheUtil.putResult(FINDER_PATH_COUNT_BY_VALUE,
658                     finderArgs, count);
659 
660                 closeSession(session);
661             }
662         }
663 
664         return count.intValue();
665     }
666 
667     public int countAll() throws SystemException {
668         Object[] finderArgs = new Object[0];
669 
670         Long count = (Long)FinderCacheUtil.getResult(FINDER_PATH_COUNT_ALL,
671                 finderArgs, this);
672 
673         if (count == null) {
674             Session session = null;
675 
676             try {
677                 session = openSession();
678 
679                 Query q = session.createQuery(
680                         "SELECT COUNT(className) FROM ClassName className");
681 
682                 count = (Long)q.uniqueResult();
683             }
684             catch (Exception e) {
685                 throw processException(e);
686             }
687             finally {
688                 if (count == null) {
689                     count = Long.valueOf(0);
690                 }
691 
692                 FinderCacheUtil.putResult(FINDER_PATH_COUNT_ALL, finderArgs,
693                     count);
694 
695                 closeSession(session);
696             }
697         }
698 
699         return count.intValue();
700     }
701 
702     public void afterPropertiesSet() {
703         String[] listenerClassNames = StringUtil.split(GetterUtil.getString(
704                     com.liferay.portal.util.PropsUtil.get(
705                         "value.object.listener.com.liferay.portal.model.ClassName")));
706 
707         if (listenerClassNames.length > 0) {
708             try {
709                 List<ModelListener<ClassName>> listenersList = new ArrayList<ModelListener<ClassName>>();
710 
711                 for (String listenerClassName : listenerClassNames) {
712                     listenersList.add((ModelListener<ClassName>)Class.forName(
713                             listenerClassName).newInstance());
714                 }
715 
716                 listeners = listenersList.toArray(new ModelListener[listenersList.size()]);
717             }
718             catch (Exception e) {
719                 _log.error(e);
720             }
721         }
722     }
723 
724     @BeanReference(name = "com.liferay.portal.service.persistence.AccountPersistence.impl")
725     protected com.liferay.portal.service.persistence.AccountPersistence accountPersistence;
726     @BeanReference(name = "com.liferay.portal.service.persistence.AddressPersistence.impl")
727     protected com.liferay.portal.service.persistence.AddressPersistence addressPersistence;
728     @BeanReference(name = "com.liferay.portal.service.persistence.BrowserTrackerPersistence.impl")
729     protected com.liferay.portal.service.persistence.BrowserTrackerPersistence browserTrackerPersistence;
730     @BeanReference(name = "com.liferay.portal.service.persistence.ClassNamePersistence.impl")
731     protected com.liferay.portal.service.persistence.ClassNamePersistence classNamePersistence;
732     @BeanReference(name = "com.liferay.portal.service.persistence.CompanyPersistence.impl")
733     protected com.liferay.portal.service.persistence.CompanyPersistence companyPersistence;
734     @BeanReference(name = "com.liferay.portal.service.persistence.ContactPersistence.impl")
735     protected com.liferay.portal.service.persistence.ContactPersistence contactPersistence;
736     @BeanReference(name = "com.liferay.portal.service.persistence.CountryPersistence.impl")
737     protected com.liferay.portal.service.persistence.CountryPersistence countryPersistence;
738     @BeanReference(name = "com.liferay.portal.service.persistence.EmailAddressPersistence.impl")
739     protected com.liferay.portal.service.persistence.EmailAddressPersistence emailAddressPersistence;
740     @BeanReference(name = "com.liferay.portal.service.persistence.GroupPersistence.impl")
741     protected com.liferay.portal.service.persistence.GroupPersistence groupPersistence;
742     @BeanReference(name = "com.liferay.portal.service.persistence.ImagePersistence.impl")
743     protected com.liferay.portal.service.persistence.ImagePersistence imagePersistence;
744     @BeanReference(name = "com.liferay.portal.service.persistence.LayoutPersistence.impl")
745     protected com.liferay.portal.service.persistence.LayoutPersistence layoutPersistence;
746     @BeanReference(name = "com.liferay.portal.service.persistence.LayoutSetPersistence.impl")
747     protected com.liferay.portal.service.persistence.LayoutSetPersistence layoutSetPersistence;
748     @BeanReference(name = "com.liferay.portal.service.persistence.ListTypePersistence.impl")
749     protected com.liferay.portal.service.persistence.ListTypePersistence listTypePersistence;
750     @BeanReference(name = "com.liferay.portal.service.persistence.LockPersistence.impl")
751     protected com.liferay.portal.service.persistence.LockPersistence lockPersistence;
752     @BeanReference(name = "com.liferay.portal.service.persistence.MembershipRequestPersistence.impl")
753     protected com.liferay.portal.service.persistence.MembershipRequestPersistence membershipRequestPersistence;
754     @BeanReference(name = "com.liferay.portal.service.persistence.OrganizationPersistence.impl")
755     protected com.liferay.portal.service.persistence.OrganizationPersistence organizationPersistence;
756     @BeanReference(name = "com.liferay.portal.service.persistence.OrgGroupPermissionPersistence.impl")
757     protected com.liferay.portal.service.persistence.OrgGroupPermissionPersistence orgGroupPermissionPersistence;
758     @BeanReference(name = "com.liferay.portal.service.persistence.OrgGroupRolePersistence.impl")
759     protected com.liferay.portal.service.persistence.OrgGroupRolePersistence orgGroupRolePersistence;
760     @BeanReference(name = "com.liferay.portal.service.persistence.OrgLaborPersistence.impl")
761     protected com.liferay.portal.service.persistence.OrgLaborPersistence orgLaborPersistence;
762     @BeanReference(name = "com.liferay.portal.service.persistence.PasswordPolicyPersistence.impl")
763     protected com.liferay.portal.service.persistence.PasswordPolicyPersistence passwordPolicyPersistence;
764     @BeanReference(name = "com.liferay.portal.service.persistence.PasswordPolicyRelPersistence.impl")
765     protected com.liferay.portal.service.persistence.PasswordPolicyRelPersistence passwordPolicyRelPersistence;
766     @BeanReference(name = "com.liferay.portal.service.persistence.PasswordTrackerPersistence.impl")
767     protected com.liferay.portal.service.persistence.PasswordTrackerPersistence passwordTrackerPersistence;
768     @BeanReference(name = "com.liferay.portal.service.persistence.PermissionPersistence.impl")
769     protected com.liferay.portal.service.persistence.PermissionPersistence permissionPersistence;
770     @BeanReference(name = "com.liferay.portal.service.persistence.PhonePersistence.impl")
771     protected com.liferay.portal.service.persistence.PhonePersistence phonePersistence;
772     @BeanReference(name = "com.liferay.portal.service.persistence.PluginSettingPersistence.impl")
773     protected com.liferay.portal.service.persistence.PluginSettingPersistence pluginSettingPersistence;
774     @BeanReference(name = "com.liferay.portal.service.persistence.PortletPersistence.impl")
775     protected com.liferay.portal.service.persistence.PortletPersistence portletPersistence;
776     @BeanReference(name = "com.liferay.portal.service.persistence.PortletItemPersistence.impl")
777     protected com.liferay.portal.service.persistence.PortletItemPersistence portletItemPersistence;
778     @BeanReference(name = "com.liferay.portal.service.persistence.PortletPreferencesPersistence.impl")
779     protected com.liferay.portal.service.persistence.PortletPreferencesPersistence portletPreferencesPersistence;
780     @BeanReference(name = "com.liferay.portal.service.persistence.RegionPersistence.impl")
781     protected com.liferay.portal.service.persistence.RegionPersistence regionPersistence;
782     @BeanReference(name = "com.liferay.portal.service.persistence.ReleasePersistence.impl")
783     protected com.liferay.portal.service.persistence.ReleasePersistence releasePersistence;
784     @BeanReference(name = "com.liferay.portal.service.persistence.ResourcePersistence.impl")
785     protected com.liferay.portal.service.persistence.ResourcePersistence resourcePersistence;
786     @BeanReference(name = "com.liferay.portal.service.persistence.ResourceActionPersistence.impl")
787     protected com.liferay.portal.service.persistence.ResourceActionPersistence resourceActionPersistence;
788     @BeanReference(name = "com.liferay.portal.service.persistence.ResourceCodePersistence.impl")
789     protected com.liferay.portal.service.persistence.ResourceCodePersistence resourceCodePersistence;
790     @BeanReference(name = "com.liferay.portal.service.persistence.ResourcePermissionPersistence.impl")
791     protected com.liferay.portal.service.persistence.ResourcePermissionPersistence resourcePermissionPersistence;
792     @BeanReference(name = "com.liferay.portal.service.persistence.RolePersistence.impl")
793     protected com.liferay.portal.service.persistence.RolePersistence rolePersistence;
794     @BeanReference(name = "com.liferay.portal.service.persistence.ServiceComponentPersistence.impl")
795     protected com.liferay.portal.service.persistence.ServiceComponentPersistence serviceComponentPersistence;
796     @BeanReference(name = "com.liferay.portal.service.persistence.ShardPersistence.impl")
797     protected com.liferay.portal.service.persistence.ShardPersistence shardPersistence;
798     @BeanReference(name = "com.liferay.portal.service.persistence.SubscriptionPersistence.impl")
799     protected com.liferay.portal.service.persistence.SubscriptionPersistence subscriptionPersistence;
800     @BeanReference(name = "com.liferay.portal.service.persistence.UserPersistence.impl")
801     protected com.liferay.portal.service.persistence.UserPersistence userPersistence;
802     @BeanReference(name = "com.liferay.portal.service.persistence.UserGroupPersistence.impl")
803     protected com.liferay.portal.service.persistence.UserGroupPersistence userGroupPersistence;
804     @BeanReference(name = "com.liferay.portal.service.persistence.UserGroupGroupRolePersistence.impl")
805     protected com.liferay.portal.service.persistence.UserGroupGroupRolePersistence userGroupGroupRolePersistence;
806     @BeanReference(name = "com.liferay.portal.service.persistence.UserGroupRolePersistence.impl")
807     protected com.liferay.portal.service.persistence.UserGroupRolePersistence userGroupRolePersistence;
808     @BeanReference(name = "com.liferay.portal.service.persistence.UserIdMapperPersistence.impl")
809     protected com.liferay.portal.service.persistence.UserIdMapperPersistence userIdMapperPersistence;
810     @BeanReference(name = "com.liferay.portal.service.persistence.UserTrackerPersistence.impl")
811     protected com.liferay.portal.service.persistence.UserTrackerPersistence userTrackerPersistence;
812     @BeanReference(name = "com.liferay.portal.service.persistence.UserTrackerPathPersistence.impl")
813     protected com.liferay.portal.service.persistence.UserTrackerPathPersistence userTrackerPathPersistence;
814     @BeanReference(name = "com.liferay.portal.service.persistence.WebDAVPropsPersistence.impl")
815     protected com.liferay.portal.service.persistence.WebDAVPropsPersistence webDAVPropsPersistence;
816     @BeanReference(name = "com.liferay.portal.service.persistence.WebsitePersistence.impl")
817     protected com.liferay.portal.service.persistence.WebsitePersistence websitePersistence;
818     private static Log _log = LogFactoryUtil.getLog(ClassNamePersistenceImpl.class);
819 }