1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portal.service.persistence;
16  
17  import com.liferay.portal.NoSuchModelException;
18  import com.liferay.portal.NoSuchWebDAVPropsException;
19  import com.liferay.portal.kernel.annotation.BeanReference;
20  import com.liferay.portal.kernel.cache.CacheRegistry;
21  import com.liferay.portal.kernel.dao.orm.EntityCacheUtil;
22  import com.liferay.portal.kernel.dao.orm.FinderCacheUtil;
23  import com.liferay.portal.kernel.dao.orm.FinderPath;
24  import com.liferay.portal.kernel.dao.orm.Query;
25  import com.liferay.portal.kernel.dao.orm.QueryPos;
26  import com.liferay.portal.kernel.dao.orm.QueryUtil;
27  import com.liferay.portal.kernel.dao.orm.Session;
28  import com.liferay.portal.kernel.exception.SystemException;
29  import com.liferay.portal.kernel.log.Log;
30  import com.liferay.portal.kernel.log.LogFactoryUtil;
31  import com.liferay.portal.kernel.util.GetterUtil;
32  import com.liferay.portal.kernel.util.OrderByComparator;
33  import com.liferay.portal.kernel.util.StringBundler;
34  import com.liferay.portal.kernel.util.StringPool;
35  import com.liferay.portal.kernel.util.StringUtil;
36  import com.liferay.portal.model.ModelListener;
37  import com.liferay.portal.model.WebDAVProps;
38  import com.liferay.portal.model.impl.WebDAVPropsImpl;
39  import com.liferay.portal.model.impl.WebDAVPropsModelImpl;
40  import com.liferay.portal.service.persistence.impl.BasePersistenceImpl;
41  
42  import java.io.Serializable;
43  
44  import java.util.ArrayList;
45  import java.util.Collections;
46  import java.util.List;
47  
48  /**
49   * <a href="WebDAVPropsPersistenceImpl.java.html"><b><i>View Source</i></b></a>
50   *
51   * <p>
52   * ServiceBuilder generated this class. Modifications in this class will be
53   * overwritten the next time is generated.
54   * </p>
55   *
56   * @author    Brian Wing Shun Chan
57   * @see       WebDAVPropsPersistence
58   * @see       WebDAVPropsUtil
59   * @generated
60   */
61  public class WebDAVPropsPersistenceImpl extends BasePersistenceImpl<WebDAVProps>
62      implements WebDAVPropsPersistence {
63      public static final String FINDER_CLASS_NAME_ENTITY = WebDAVPropsImpl.class.getName();
64      public static final String FINDER_CLASS_NAME_LIST = FINDER_CLASS_NAME_ENTITY +
65          ".List";
66      public static final FinderPath FINDER_PATH_FETCH_BY_C_C = new FinderPath(WebDAVPropsModelImpl.ENTITY_CACHE_ENABLED,
67              WebDAVPropsModelImpl.FINDER_CACHE_ENABLED,
68              FINDER_CLASS_NAME_ENTITY, "fetchByC_C",
69              new String[] { Long.class.getName(), Long.class.getName() });
70      public static final FinderPath FINDER_PATH_COUNT_BY_C_C = new FinderPath(WebDAVPropsModelImpl.ENTITY_CACHE_ENABLED,
71              WebDAVPropsModelImpl.FINDER_CACHE_ENABLED, FINDER_CLASS_NAME_LIST,
72              "countByC_C",
73              new String[] { Long.class.getName(), Long.class.getName() });
74      public static final FinderPath FINDER_PATH_FIND_ALL = new FinderPath(WebDAVPropsModelImpl.ENTITY_CACHE_ENABLED,
75              WebDAVPropsModelImpl.FINDER_CACHE_ENABLED, FINDER_CLASS_NAME_LIST,
76              "findAll", new String[0]);
77      public static final FinderPath FINDER_PATH_COUNT_ALL = new FinderPath(WebDAVPropsModelImpl.ENTITY_CACHE_ENABLED,
78              WebDAVPropsModelImpl.FINDER_CACHE_ENABLED, FINDER_CLASS_NAME_LIST,
79              "countAll", new String[0]);
80  
81      public void cacheResult(WebDAVProps webDAVProps) {
82          EntityCacheUtil.putResult(WebDAVPropsModelImpl.ENTITY_CACHE_ENABLED,
83              WebDAVPropsImpl.class, webDAVProps.getPrimaryKey(), webDAVProps);
84  
85          FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_C_C,
86              new Object[] {
87                  new Long(webDAVProps.getClassNameId()),
88                  new Long(webDAVProps.getClassPK())
89              }, webDAVProps);
90      }
91  
92      public void cacheResult(List<WebDAVProps> webDAVPropses) {
93          for (WebDAVProps webDAVProps : webDAVPropses) {
94              if (EntityCacheUtil.getResult(
95                          WebDAVPropsModelImpl.ENTITY_CACHE_ENABLED,
96                          WebDAVPropsImpl.class, webDAVProps.getPrimaryKey(), this) == null) {
97                  cacheResult(webDAVProps);
98              }
99          }
100     }
101 
102     public void clearCache() {
103         CacheRegistry.clear(WebDAVPropsImpl.class.getName());
104         EntityCacheUtil.clearCache(WebDAVPropsImpl.class.getName());
105         FinderCacheUtil.clearCache(FINDER_CLASS_NAME_ENTITY);
106         FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST);
107     }
108 
109     public WebDAVProps create(long webDavPropsId) {
110         WebDAVProps webDAVProps = new WebDAVPropsImpl();
111 
112         webDAVProps.setNew(true);
113         webDAVProps.setPrimaryKey(webDavPropsId);
114 
115         return webDAVProps;
116     }
117 
118     public WebDAVProps remove(Serializable primaryKey)
119         throws NoSuchModelException, SystemException {
120         return remove(((Long)primaryKey).longValue());
121     }
122 
123     public WebDAVProps remove(long webDavPropsId)
124         throws NoSuchWebDAVPropsException, SystemException {
125         Session session = null;
126 
127         try {
128             session = openSession();
129 
130             WebDAVProps webDAVProps = (WebDAVProps)session.get(WebDAVPropsImpl.class,
131                     new Long(webDavPropsId));
132 
133             if (webDAVProps == null) {
134                 if (_log.isWarnEnabled()) {
135                     _log.warn(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY + webDavPropsId);
136                 }
137 
138                 throw new NoSuchWebDAVPropsException(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY +
139                     webDavPropsId);
140             }
141 
142             return remove(webDAVProps);
143         }
144         catch (NoSuchWebDAVPropsException nsee) {
145             throw nsee;
146         }
147         catch (Exception e) {
148             throw processException(e);
149         }
150         finally {
151             closeSession(session);
152         }
153     }
154 
155     public WebDAVProps remove(WebDAVProps webDAVProps)
156         throws SystemException {
157         for (ModelListener<WebDAVProps> listener : listeners) {
158             listener.onBeforeRemove(webDAVProps);
159         }
160 
161         webDAVProps = removeImpl(webDAVProps);
162 
163         for (ModelListener<WebDAVProps> listener : listeners) {
164             listener.onAfterRemove(webDAVProps);
165         }
166 
167         return webDAVProps;
168     }
169 
170     protected WebDAVProps removeImpl(WebDAVProps webDAVProps)
171         throws SystemException {
172         webDAVProps = toUnwrappedModel(webDAVProps);
173 
174         Session session = null;
175 
176         try {
177             session = openSession();
178 
179             if (webDAVProps.isCachedModel() || BatchSessionUtil.isEnabled()) {
180                 Object staleObject = session.get(WebDAVPropsImpl.class,
181                         webDAVProps.getPrimaryKeyObj());
182 
183                 if (staleObject != null) {
184                     session.evict(staleObject);
185                 }
186             }
187 
188             session.delete(webDAVProps);
189 
190             session.flush();
191         }
192         catch (Exception e) {
193             throw processException(e);
194         }
195         finally {
196             closeSession(session);
197         }
198 
199         FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST);
200 
201         WebDAVPropsModelImpl webDAVPropsModelImpl = (WebDAVPropsModelImpl)webDAVProps;
202 
203         FinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_C_C,
204             new Object[] {
205                 new Long(webDAVPropsModelImpl.getOriginalClassNameId()),
206                 new Long(webDAVPropsModelImpl.getOriginalClassPK())
207             });
208 
209         EntityCacheUtil.removeResult(WebDAVPropsModelImpl.ENTITY_CACHE_ENABLED,
210             WebDAVPropsImpl.class, webDAVProps.getPrimaryKey());
211 
212         return webDAVProps;
213     }
214 
215     public WebDAVProps updateImpl(
216         com.liferay.portal.model.WebDAVProps webDAVProps, boolean merge)
217         throws SystemException {
218         webDAVProps = toUnwrappedModel(webDAVProps);
219 
220         boolean isNew = webDAVProps.isNew();
221 
222         WebDAVPropsModelImpl webDAVPropsModelImpl = (WebDAVPropsModelImpl)webDAVProps;
223 
224         Session session = null;
225 
226         try {
227             session = openSession();
228 
229             BatchSessionUtil.update(session, webDAVProps, merge);
230 
231             webDAVProps.setNew(false);
232         }
233         catch (Exception e) {
234             throw processException(e);
235         }
236         finally {
237             closeSession(session);
238         }
239 
240         FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST);
241 
242         EntityCacheUtil.putResult(WebDAVPropsModelImpl.ENTITY_CACHE_ENABLED,
243             WebDAVPropsImpl.class, webDAVProps.getPrimaryKey(), webDAVProps);
244 
245         if (!isNew &&
246                 ((webDAVProps.getClassNameId() != webDAVPropsModelImpl.getOriginalClassNameId()) ||
247                 (webDAVProps.getClassPK() != webDAVPropsModelImpl.getOriginalClassPK()))) {
248             FinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_C_C,
249                 new Object[] {
250                     new Long(webDAVPropsModelImpl.getOriginalClassNameId()),
251                     new Long(webDAVPropsModelImpl.getOriginalClassPK())
252                 });
253         }
254 
255         if (isNew ||
256                 ((webDAVProps.getClassNameId() != webDAVPropsModelImpl.getOriginalClassNameId()) ||
257                 (webDAVProps.getClassPK() != webDAVPropsModelImpl.getOriginalClassPK()))) {
258             FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_C_C,
259                 new Object[] {
260                     new Long(webDAVProps.getClassNameId()),
261                     new Long(webDAVProps.getClassPK())
262                 }, webDAVProps);
263         }
264 
265         return webDAVProps;
266     }
267 
268     protected WebDAVProps toUnwrappedModel(WebDAVProps webDAVProps) {
269         if (webDAVProps instanceof WebDAVPropsImpl) {
270             return webDAVProps;
271         }
272 
273         WebDAVPropsImpl webDAVPropsImpl = new WebDAVPropsImpl();
274 
275         webDAVPropsImpl.setNew(webDAVProps.isNew());
276         webDAVPropsImpl.setPrimaryKey(webDAVProps.getPrimaryKey());
277 
278         webDAVPropsImpl.setWebDavPropsId(webDAVProps.getWebDavPropsId());
279         webDAVPropsImpl.setCompanyId(webDAVProps.getCompanyId());
280         webDAVPropsImpl.setCreateDate(webDAVProps.getCreateDate());
281         webDAVPropsImpl.setModifiedDate(webDAVProps.getModifiedDate());
282         webDAVPropsImpl.setClassNameId(webDAVProps.getClassNameId());
283         webDAVPropsImpl.setClassPK(webDAVProps.getClassPK());
284         webDAVPropsImpl.setProps(webDAVProps.getProps());
285 
286         return webDAVPropsImpl;
287     }
288 
289     public WebDAVProps findByPrimaryKey(Serializable primaryKey)
290         throws NoSuchModelException, SystemException {
291         return findByPrimaryKey(((Long)primaryKey).longValue());
292     }
293 
294     public WebDAVProps findByPrimaryKey(long webDavPropsId)
295         throws NoSuchWebDAVPropsException, SystemException {
296         WebDAVProps webDAVProps = fetchByPrimaryKey(webDavPropsId);
297 
298         if (webDAVProps == null) {
299             if (_log.isWarnEnabled()) {
300                 _log.warn(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY + webDavPropsId);
301             }
302 
303             throw new NoSuchWebDAVPropsException(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY +
304                 webDavPropsId);
305         }
306 
307         return webDAVProps;
308     }
309 
310     public WebDAVProps fetchByPrimaryKey(Serializable primaryKey)
311         throws SystemException {
312         return fetchByPrimaryKey(((Long)primaryKey).longValue());
313     }
314 
315     public WebDAVProps fetchByPrimaryKey(long webDavPropsId)
316         throws SystemException {
317         WebDAVProps webDAVProps = (WebDAVProps)EntityCacheUtil.getResult(WebDAVPropsModelImpl.ENTITY_CACHE_ENABLED,
318                 WebDAVPropsImpl.class, webDavPropsId, this);
319 
320         if (webDAVProps == null) {
321             Session session = null;
322 
323             try {
324                 session = openSession();
325 
326                 webDAVProps = (WebDAVProps)session.get(WebDAVPropsImpl.class,
327                         new Long(webDavPropsId));
328             }
329             catch (Exception e) {
330                 throw processException(e);
331             }
332             finally {
333                 if (webDAVProps != null) {
334                     cacheResult(webDAVProps);
335                 }
336 
337                 closeSession(session);
338             }
339         }
340 
341         return webDAVProps;
342     }
343 
344     public WebDAVProps findByC_C(long classNameId, long classPK)
345         throws NoSuchWebDAVPropsException, SystemException {
346         WebDAVProps webDAVProps = fetchByC_C(classNameId, classPK);
347 
348         if (webDAVProps == null) {
349             StringBundler msg = new StringBundler(6);
350 
351             msg.append(_NO_SUCH_ENTITY_WITH_KEY);
352 
353             msg.append("classNameId=");
354             msg.append(classNameId);
355 
356             msg.append(", classPK=");
357             msg.append(classPK);
358 
359             msg.append(StringPool.CLOSE_CURLY_BRACE);
360 
361             if (_log.isWarnEnabled()) {
362                 _log.warn(msg.toString());
363             }
364 
365             throw new NoSuchWebDAVPropsException(msg.toString());
366         }
367 
368         return webDAVProps;
369     }
370 
371     public WebDAVProps fetchByC_C(long classNameId, long classPK)
372         throws SystemException {
373         return fetchByC_C(classNameId, classPK, true);
374     }
375 
376     public WebDAVProps fetchByC_C(long classNameId, long classPK,
377         boolean retrieveFromCache) throws SystemException {
378         Object[] finderArgs = new Object[] {
379                 new Long(classNameId), new Long(classPK)
380             };
381 
382         Object result = null;
383 
384         if (retrieveFromCache) {
385             result = FinderCacheUtil.getResult(FINDER_PATH_FETCH_BY_C_C,
386                     finderArgs, this);
387         }
388 
389         if (result == null) {
390             Session session = null;
391 
392             try {
393                 session = openSession();
394 
395                 StringBundler query = new StringBundler(3);
396 
397                 query.append(_SQL_SELECT_WEBDAVPROPS_WHERE);
398 
399                 query.append(_FINDER_COLUMN_C_C_CLASSNAMEID_2);
400 
401                 query.append(_FINDER_COLUMN_C_C_CLASSPK_2);
402 
403                 String sql = query.toString();
404 
405                 Query q = session.createQuery(sql);
406 
407                 QueryPos qPos = QueryPos.getInstance(q);
408 
409                 qPos.add(classNameId);
410 
411                 qPos.add(classPK);
412 
413                 List<WebDAVProps> list = q.list();
414 
415                 result = list;
416 
417                 WebDAVProps webDAVProps = null;
418 
419                 if (list.isEmpty()) {
420                     FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_C_C,
421                         finderArgs, list);
422                 }
423                 else {
424                     webDAVProps = list.get(0);
425 
426                     cacheResult(webDAVProps);
427 
428                     if ((webDAVProps.getClassNameId() != classNameId) ||
429                             (webDAVProps.getClassPK() != classPK)) {
430                         FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_C_C,
431                             finderArgs, webDAVProps);
432                     }
433                 }
434 
435                 return webDAVProps;
436             }
437             catch (Exception e) {
438                 throw processException(e);
439             }
440             finally {
441                 if (result == null) {
442                     FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_C_C,
443                         finderArgs, new ArrayList<WebDAVProps>());
444                 }
445 
446                 closeSession(session);
447             }
448         }
449         else {
450             if (result instanceof List<?>) {
451                 return null;
452             }
453             else {
454                 return (WebDAVProps)result;
455             }
456         }
457     }
458 
459     public List<WebDAVProps> findAll() throws SystemException {
460         return findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
461     }
462 
463     public List<WebDAVProps> findAll(int start, int end)
464         throws SystemException {
465         return findAll(start, end, null);
466     }
467 
468     public List<WebDAVProps> findAll(int start, int end,
469         OrderByComparator orderByComparator) throws SystemException {
470         Object[] finderArgs = new Object[] {
471                 String.valueOf(start), String.valueOf(end),
472                 String.valueOf(orderByComparator)
473             };
474 
475         List<WebDAVProps> list = (List<WebDAVProps>)FinderCacheUtil.getResult(FINDER_PATH_FIND_ALL,
476                 finderArgs, this);
477 
478         if (list == null) {
479             Session session = null;
480 
481             try {
482                 session = openSession();
483 
484                 StringBundler query = null;
485                 String sql = null;
486 
487                 if (orderByComparator != null) {
488                     query = new StringBundler(2 +
489                             (orderByComparator.getOrderByFields().length * 3));
490 
491                     query.append(_SQL_SELECT_WEBDAVPROPS);
492 
493                     appendOrderByComparator(query, _ORDER_BY_ENTITY_ALIAS,
494                         orderByComparator);
495 
496                     sql = query.toString();
497                 }
498 
499                 sql = _SQL_SELECT_WEBDAVPROPS;
500 
501                 Query q = session.createQuery(sql);
502 
503                 if (orderByComparator == null) {
504                     list = (List<WebDAVProps>)QueryUtil.list(q, getDialect(),
505                             start, end, false);
506 
507                     Collections.sort(list);
508                 }
509                 else {
510                     list = (List<WebDAVProps>)QueryUtil.list(q, getDialect(),
511                             start, end);
512                 }
513             }
514             catch (Exception e) {
515                 throw processException(e);
516             }
517             finally {
518                 if (list == null) {
519                     list = new ArrayList<WebDAVProps>();
520                 }
521 
522                 cacheResult(list);
523 
524                 FinderCacheUtil.putResult(FINDER_PATH_FIND_ALL, finderArgs, list);
525 
526                 closeSession(session);
527             }
528         }
529 
530         return list;
531     }
532 
533     public void removeByC_C(long classNameId, long classPK)
534         throws NoSuchWebDAVPropsException, SystemException {
535         WebDAVProps webDAVProps = findByC_C(classNameId, classPK);
536 
537         remove(webDAVProps);
538     }
539 
540     public void removeAll() throws SystemException {
541         for (WebDAVProps webDAVProps : findAll()) {
542             remove(webDAVProps);
543         }
544     }
545 
546     public int countByC_C(long classNameId, long classPK)
547         throws SystemException {
548         Object[] finderArgs = new Object[] {
549                 new Long(classNameId), new Long(classPK)
550             };
551 
552         Long count = (Long)FinderCacheUtil.getResult(FINDER_PATH_COUNT_BY_C_C,
553                 finderArgs, this);
554 
555         if (count == null) {
556             Session session = null;
557 
558             try {
559                 session = openSession();
560 
561                 StringBundler query = new StringBundler(3);
562 
563                 query.append(_SQL_COUNT_WEBDAVPROPS_WHERE);
564 
565                 query.append(_FINDER_COLUMN_C_C_CLASSNAMEID_2);
566 
567                 query.append(_FINDER_COLUMN_C_C_CLASSPK_2);
568 
569                 String sql = query.toString();
570 
571                 Query q = session.createQuery(sql);
572 
573                 QueryPos qPos = QueryPos.getInstance(q);
574 
575                 qPos.add(classNameId);
576 
577                 qPos.add(classPK);
578 
579                 count = (Long)q.uniqueResult();
580             }
581             catch (Exception e) {
582                 throw processException(e);
583             }
584             finally {
585                 if (count == null) {
586                     count = Long.valueOf(0);
587                 }
588 
589                 FinderCacheUtil.putResult(FINDER_PATH_COUNT_BY_C_C, finderArgs,
590                     count);
591 
592                 closeSession(session);
593             }
594         }
595 
596         return count.intValue();
597     }
598 
599     public int countAll() throws SystemException {
600         Object[] finderArgs = new Object[0];
601 
602         Long count = (Long)FinderCacheUtil.getResult(FINDER_PATH_COUNT_ALL,
603                 finderArgs, this);
604 
605         if (count == null) {
606             Session session = null;
607 
608             try {
609                 session = openSession();
610 
611                 Query q = session.createQuery(_SQL_COUNT_WEBDAVPROPS);
612 
613                 count = (Long)q.uniqueResult();
614             }
615             catch (Exception e) {
616                 throw processException(e);
617             }
618             finally {
619                 if (count == null) {
620                     count = Long.valueOf(0);
621                 }
622 
623                 FinderCacheUtil.putResult(FINDER_PATH_COUNT_ALL, finderArgs,
624                     count);
625 
626                 closeSession(session);
627             }
628         }
629 
630         return count.intValue();
631     }
632 
633     public void afterPropertiesSet() {
634         String[] listenerClassNames = StringUtil.split(GetterUtil.getString(
635                     com.liferay.portal.util.PropsUtil.get(
636                         "value.object.listener.com.liferay.portal.model.WebDAVProps")));
637 
638         if (listenerClassNames.length > 0) {
639             try {
640                 List<ModelListener<WebDAVProps>> listenersList = new ArrayList<ModelListener<WebDAVProps>>();
641 
642                 for (String listenerClassName : listenerClassNames) {
643                     listenersList.add((ModelListener<WebDAVProps>)Class.forName(
644                             listenerClassName).newInstance());
645                 }
646 
647                 listeners = listenersList.toArray(new ModelListener[listenersList.size()]);
648             }
649             catch (Exception e) {
650                 _log.error(e);
651             }
652         }
653     }
654 
655     @BeanReference(type = AccountPersistence.class)
656     protected AccountPersistence accountPersistence;
657     @BeanReference(type = AddressPersistence.class)
658     protected AddressPersistence addressPersistence;
659     @BeanReference(type = BrowserTrackerPersistence.class)
660     protected BrowserTrackerPersistence browserTrackerPersistence;
661     @BeanReference(type = ClassNamePersistence.class)
662     protected ClassNamePersistence classNamePersistence;
663     @BeanReference(type = CompanyPersistence.class)
664     protected CompanyPersistence companyPersistence;
665     @BeanReference(type = ContactPersistence.class)
666     protected ContactPersistence contactPersistence;
667     @BeanReference(type = CountryPersistence.class)
668     protected CountryPersistence countryPersistence;
669     @BeanReference(type = EmailAddressPersistence.class)
670     protected EmailAddressPersistence emailAddressPersistence;
671     @BeanReference(type = GroupPersistence.class)
672     protected GroupPersistence groupPersistence;
673     @BeanReference(type = ImagePersistence.class)
674     protected ImagePersistence imagePersistence;
675     @BeanReference(type = LayoutPersistence.class)
676     protected LayoutPersistence layoutPersistence;
677     @BeanReference(type = LayoutPrototypePersistence.class)
678     protected LayoutPrototypePersistence layoutPrototypePersistence;
679     @BeanReference(type = LayoutSetPersistence.class)
680     protected LayoutSetPersistence layoutSetPersistence;
681     @BeanReference(type = LayoutSetPrototypePersistence.class)
682     protected LayoutSetPrototypePersistence layoutSetPrototypePersistence;
683     @BeanReference(type = ListTypePersistence.class)
684     protected ListTypePersistence listTypePersistence;
685     @BeanReference(type = LockPersistence.class)
686     protected LockPersistence lockPersistence;
687     @BeanReference(type = MembershipRequestPersistence.class)
688     protected MembershipRequestPersistence membershipRequestPersistence;
689     @BeanReference(type = OrganizationPersistence.class)
690     protected OrganizationPersistence organizationPersistence;
691     @BeanReference(type = OrgGroupPermissionPersistence.class)
692     protected OrgGroupPermissionPersistence orgGroupPermissionPersistence;
693     @BeanReference(type = OrgGroupRolePersistence.class)
694     protected OrgGroupRolePersistence orgGroupRolePersistence;
695     @BeanReference(type = OrgLaborPersistence.class)
696     protected OrgLaborPersistence orgLaborPersistence;
697     @BeanReference(type = PasswordPolicyPersistence.class)
698     protected PasswordPolicyPersistence passwordPolicyPersistence;
699     @BeanReference(type = PasswordPolicyRelPersistence.class)
700     protected PasswordPolicyRelPersistence passwordPolicyRelPersistence;
701     @BeanReference(type = PasswordTrackerPersistence.class)
702     protected PasswordTrackerPersistence passwordTrackerPersistence;
703     @BeanReference(type = PermissionPersistence.class)
704     protected PermissionPersistence permissionPersistence;
705     @BeanReference(type = PhonePersistence.class)
706     protected PhonePersistence phonePersistence;
707     @BeanReference(type = PluginSettingPersistence.class)
708     protected PluginSettingPersistence pluginSettingPersistence;
709     @BeanReference(type = PortletPersistence.class)
710     protected PortletPersistence portletPersistence;
711     @BeanReference(type = PortletItemPersistence.class)
712     protected PortletItemPersistence portletItemPersistence;
713     @BeanReference(type = PortletPreferencesPersistence.class)
714     protected PortletPreferencesPersistence portletPreferencesPersistence;
715     @BeanReference(type = RegionPersistence.class)
716     protected RegionPersistence regionPersistence;
717     @BeanReference(type = ReleasePersistence.class)
718     protected ReleasePersistence releasePersistence;
719     @BeanReference(type = ResourcePersistence.class)
720     protected ResourcePersistence resourcePersistence;
721     @BeanReference(type = ResourceActionPersistence.class)
722     protected ResourceActionPersistence resourceActionPersistence;
723     @BeanReference(type = ResourceCodePersistence.class)
724     protected ResourceCodePersistence resourceCodePersistence;
725     @BeanReference(type = ResourcePermissionPersistence.class)
726     protected ResourcePermissionPersistence resourcePermissionPersistence;
727     @BeanReference(type = RolePersistence.class)
728     protected RolePersistence rolePersistence;
729     @BeanReference(type = ServiceComponentPersistence.class)
730     protected ServiceComponentPersistence serviceComponentPersistence;
731     @BeanReference(type = ShardPersistence.class)
732     protected ShardPersistence shardPersistence;
733     @BeanReference(type = SubscriptionPersistence.class)
734     protected SubscriptionPersistence subscriptionPersistence;
735     @BeanReference(type = TeamPersistence.class)
736     protected TeamPersistence teamPersistence;
737     @BeanReference(type = UserPersistence.class)
738     protected UserPersistence userPersistence;
739     @BeanReference(type = UserGroupPersistence.class)
740     protected UserGroupPersistence userGroupPersistence;
741     @BeanReference(type = UserGroupGroupRolePersistence.class)
742     protected UserGroupGroupRolePersistence userGroupGroupRolePersistence;
743     @BeanReference(type = UserGroupRolePersistence.class)
744     protected UserGroupRolePersistence userGroupRolePersistence;
745     @BeanReference(type = UserIdMapperPersistence.class)
746     protected UserIdMapperPersistence userIdMapperPersistence;
747     @BeanReference(type = UserTrackerPersistence.class)
748     protected UserTrackerPersistence userTrackerPersistence;
749     @BeanReference(type = UserTrackerPathPersistence.class)
750     protected UserTrackerPathPersistence userTrackerPathPersistence;
751     @BeanReference(type = WebDAVPropsPersistence.class)
752     protected WebDAVPropsPersistence webDAVPropsPersistence;
753     @BeanReference(type = WebsitePersistence.class)
754     protected WebsitePersistence websitePersistence;
755     @BeanReference(type = WorkflowDefinitionLinkPersistence.class)
756     protected WorkflowDefinitionLinkPersistence workflowDefinitionLinkPersistence;
757     @BeanReference(type = WorkflowInstanceLinkPersistence.class)
758     protected WorkflowInstanceLinkPersistence workflowInstanceLinkPersistence;
759     private static final String _SQL_SELECT_WEBDAVPROPS = "SELECT webDAVProps FROM WebDAVProps webDAVProps";
760     private static final String _SQL_SELECT_WEBDAVPROPS_WHERE = "SELECT webDAVProps FROM WebDAVProps webDAVProps WHERE ";
761     private static final String _SQL_COUNT_WEBDAVPROPS = "SELECT COUNT(webDAVProps) FROM WebDAVProps webDAVProps";
762     private static final String _SQL_COUNT_WEBDAVPROPS_WHERE = "SELECT COUNT(webDAVProps) FROM WebDAVProps webDAVProps WHERE ";
763     private static final String _FINDER_COLUMN_C_C_CLASSNAMEID_2 = "webDAVProps.classNameId = ? AND ";
764     private static final String _FINDER_COLUMN_C_C_CLASSPK_2 = "webDAVProps.classPK = ?";
765     private static final String _ORDER_BY_ENTITY_ALIAS = "webDAVProps.";
766     private static final String _NO_SUCH_ENTITY_WITH_PRIMARY_KEY = "No WebDAVProps exists with the primary key ";
767     private static final String _NO_SUCH_ENTITY_WITH_KEY = "No WebDAVProps exists with the key {";
768     private static Log _log = LogFactoryUtil.getLog(WebDAVPropsPersistenceImpl.class);
769 }