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