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