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