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.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.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     /**
216      * @deprecated Use {@link BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)}.
217      */
218     public WebDAVProps update(WebDAVProps webDAVProps)
219         throws SystemException {
220         if (_log.isWarnEnabled()) {
221             _log.warn(
222                 "Using the deprecated update(WebDAVProps webDAVProps) method. Use update(WebDAVProps webDAVProps, boolean merge) instead.");
223         }
224 
225         return update(webDAVProps, false);
226     }
227 
228     public WebDAVProps updateImpl(
229         com.liferay.portal.model.WebDAVProps webDAVProps, boolean merge)
230         throws SystemException {
231         webDAVProps = toUnwrappedModel(webDAVProps);
232 
233         boolean isNew = webDAVProps.isNew();
234 
235         WebDAVPropsModelImpl webDAVPropsModelImpl = (WebDAVPropsModelImpl)webDAVProps;
236 
237         Session session = null;
238 
239         try {
240             session = openSession();
241 
242             BatchSessionUtil.update(session, webDAVProps, merge);
243 
244             webDAVProps.setNew(false);
245         }
246         catch (Exception e) {
247             throw processException(e);
248         }
249         finally {
250             closeSession(session);
251         }
252 
253         FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST);
254 
255         EntityCacheUtil.putResult(WebDAVPropsModelImpl.ENTITY_CACHE_ENABLED,
256             WebDAVPropsImpl.class, webDAVProps.getPrimaryKey(), webDAVProps);
257 
258         if (!isNew &&
259                 ((webDAVProps.getClassNameId() != webDAVPropsModelImpl.getOriginalClassNameId()) ||
260                 (webDAVProps.getClassPK() != webDAVPropsModelImpl.getOriginalClassPK()))) {
261             FinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_C_C,
262                 new Object[] {
263                     new Long(webDAVPropsModelImpl.getOriginalClassNameId()),
264                     new Long(webDAVPropsModelImpl.getOriginalClassPK())
265                 });
266         }
267 
268         if (isNew ||
269                 ((webDAVProps.getClassNameId() != webDAVPropsModelImpl.getOriginalClassNameId()) ||
270                 (webDAVProps.getClassPK() != webDAVPropsModelImpl.getOriginalClassPK()))) {
271             FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_C_C,
272                 new Object[] {
273                     new Long(webDAVProps.getClassNameId()),
274                     new Long(webDAVProps.getClassPK())
275                 }, webDAVProps);
276         }
277 
278         return webDAVProps;
279     }
280 
281     protected WebDAVProps toUnwrappedModel(WebDAVProps webDAVProps) {
282         if (webDAVProps instanceof WebDAVPropsImpl) {
283             return webDAVProps;
284         }
285 
286         WebDAVPropsImpl webDAVPropsImpl = new WebDAVPropsImpl();
287 
288         webDAVPropsImpl.setNew(webDAVProps.isNew());
289         webDAVPropsImpl.setPrimaryKey(webDAVProps.getPrimaryKey());
290 
291         webDAVPropsImpl.setWebDavPropsId(webDAVProps.getWebDavPropsId());
292         webDAVPropsImpl.setCompanyId(webDAVProps.getCompanyId());
293         webDAVPropsImpl.setCreateDate(webDAVProps.getCreateDate());
294         webDAVPropsImpl.setModifiedDate(webDAVProps.getModifiedDate());
295         webDAVPropsImpl.setClassNameId(webDAVProps.getClassNameId());
296         webDAVPropsImpl.setClassPK(webDAVProps.getClassPK());
297         webDAVPropsImpl.setProps(webDAVProps.getProps());
298 
299         return webDAVPropsImpl;
300     }
301 
302     public WebDAVProps findByPrimaryKey(Serializable primaryKey)
303         throws NoSuchModelException, SystemException {
304         return findByPrimaryKey(((Long)primaryKey).longValue());
305     }
306 
307     public WebDAVProps findByPrimaryKey(long webDavPropsId)
308         throws NoSuchWebDAVPropsException, SystemException {
309         WebDAVProps webDAVProps = fetchByPrimaryKey(webDavPropsId);
310 
311         if (webDAVProps == null) {
312             if (_log.isWarnEnabled()) {
313                 _log.warn(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY + webDavPropsId);
314             }
315 
316             throw new NoSuchWebDAVPropsException(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY +
317                 webDavPropsId);
318         }
319 
320         return webDAVProps;
321     }
322 
323     public WebDAVProps fetchByPrimaryKey(Serializable primaryKey)
324         throws SystemException {
325         return fetchByPrimaryKey(((Long)primaryKey).longValue());
326     }
327 
328     public WebDAVProps fetchByPrimaryKey(long webDavPropsId)
329         throws SystemException {
330         WebDAVProps webDAVProps = (WebDAVProps)EntityCacheUtil.getResult(WebDAVPropsModelImpl.ENTITY_CACHE_ENABLED,
331                 WebDAVPropsImpl.class, webDavPropsId, this);
332 
333         if (webDAVProps == null) {
334             Session session = null;
335 
336             try {
337                 session = openSession();
338 
339                 webDAVProps = (WebDAVProps)session.get(WebDAVPropsImpl.class,
340                         new Long(webDavPropsId));
341             }
342             catch (Exception e) {
343                 throw processException(e);
344             }
345             finally {
346                 if (webDAVProps != null) {
347                     cacheResult(webDAVProps);
348                 }
349 
350                 closeSession(session);
351             }
352         }
353 
354         return webDAVProps;
355     }
356 
357     public WebDAVProps findByC_C(long classNameId, long classPK)
358         throws NoSuchWebDAVPropsException, SystemException {
359         WebDAVProps webDAVProps = fetchByC_C(classNameId, classPK);
360 
361         if (webDAVProps == null) {
362             StringBundler msg = new StringBundler(6);
363 
364             msg.append(_NO_SUCH_ENTITY_WITH_KEY);
365 
366             msg.append("classNameId=");
367             msg.append(classNameId);
368 
369             msg.append(", classPK=");
370             msg.append(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                 StringBundler query = new StringBundler(3);
409 
410                 query.append(_SQL_SELECT_WEBDAVPROPS_WHERE);
411 
412                 query.append(_FINDER_COLUMN_C_C_CLASSNAMEID_2);
413 
414                 query.append(_FINDER_COLUMN_C_C_CLASSPK_2);
415 
416                 String sql = query.toString();
417 
418                 Query q = session.createQuery(sql);
419 
420                 QueryPos qPos = QueryPos.getInstance(q);
421 
422                 qPos.add(classNameId);
423 
424                 qPos.add(classPK);
425 
426                 List<WebDAVProps> list = q.list();
427 
428                 result = list;
429 
430                 WebDAVProps webDAVProps = null;
431 
432                 if (list.isEmpty()) {
433                     FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_C_C,
434                         finderArgs, list);
435                 }
436                 else {
437                     webDAVProps = list.get(0);
438 
439                     cacheResult(webDAVProps);
440 
441                     if ((webDAVProps.getClassNameId() != classNameId) ||
442                             (webDAVProps.getClassPK() != classPK)) {
443                         FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_C_C,
444                             finderArgs, webDAVProps);
445                     }
446                 }
447 
448                 return webDAVProps;
449             }
450             catch (Exception e) {
451                 throw processException(e);
452             }
453             finally {
454                 if (result == null) {
455                     FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_C_C,
456                         finderArgs, new ArrayList<WebDAVProps>());
457                 }
458 
459                 closeSession(session);
460             }
461         }
462         else {
463             if (result instanceof List<?>) {
464                 return null;
465             }
466             else {
467                 return (WebDAVProps)result;
468             }
469         }
470     }
471 
472     public List<WebDAVProps> findAll() throws SystemException {
473         return findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
474     }
475 
476     public List<WebDAVProps> findAll(int start, int end)
477         throws SystemException {
478         return findAll(start, end, null);
479     }
480 
481     public List<WebDAVProps> findAll(int start, int end,
482         OrderByComparator orderByComparator) throws SystemException {
483         Object[] finderArgs = new Object[] {
484                 String.valueOf(start), String.valueOf(end),
485                 String.valueOf(orderByComparator)
486             };
487 
488         List<WebDAVProps> list = (List<WebDAVProps>)FinderCacheUtil.getResult(FINDER_PATH_FIND_ALL,
489                 finderArgs, this);
490 
491         if (list == null) {
492             Session session = null;
493 
494             try {
495                 session = openSession();
496 
497                 StringBundler query = null;
498                 String sql = null;
499 
500                 if (orderByComparator != null) {
501                     query = new StringBundler(2 +
502                             (orderByComparator.getOrderByFields().length * 3));
503 
504                     query.append(_SQL_SELECT_WEBDAVPROPS);
505 
506                     appendOrderByComparator(query, _ORDER_BY_ENTITY_ALIAS,
507                         orderByComparator);
508 
509                     sql = query.toString();
510                 }
511 
512                 sql = _SQL_SELECT_WEBDAVPROPS;
513 
514                 Query q = session.createQuery(sql);
515 
516                 if (orderByComparator == null) {
517                     list = (List<WebDAVProps>)QueryUtil.list(q, getDialect(),
518                             start, end, false);
519 
520                     Collections.sort(list);
521                 }
522                 else {
523                     list = (List<WebDAVProps>)QueryUtil.list(q, getDialect(),
524                             start, end);
525                 }
526             }
527             catch (Exception e) {
528                 throw processException(e);
529             }
530             finally {
531                 if (list == null) {
532                     list = new ArrayList<WebDAVProps>();
533                 }
534 
535                 cacheResult(list);
536 
537                 FinderCacheUtil.putResult(FINDER_PATH_FIND_ALL, finderArgs, list);
538 
539                 closeSession(session);
540             }
541         }
542 
543         return list;
544     }
545 
546     public void removeByC_C(long classNameId, long classPK)
547         throws NoSuchWebDAVPropsException, SystemException {
548         WebDAVProps webDAVProps = findByC_C(classNameId, classPK);
549 
550         remove(webDAVProps);
551     }
552 
553     public void removeAll() throws SystemException {
554         for (WebDAVProps webDAVProps : findAll()) {
555             remove(webDAVProps);
556         }
557     }
558 
559     public int countByC_C(long classNameId, long classPK)
560         throws SystemException {
561         Object[] finderArgs = new Object[] {
562                 new Long(classNameId), new Long(classPK)
563             };
564 
565         Long count = (Long)FinderCacheUtil.getResult(FINDER_PATH_COUNT_BY_C_C,
566                 finderArgs, this);
567 
568         if (count == null) {
569             Session session = null;
570 
571             try {
572                 session = openSession();
573 
574                 StringBundler query = new StringBundler(3);
575 
576                 query.append(_SQL_COUNT_WEBDAVPROPS_WHERE);
577 
578                 query.append(_FINDER_COLUMN_C_C_CLASSNAMEID_2);
579 
580                 query.append(_FINDER_COLUMN_C_C_CLASSPK_2);
581 
582                 String sql = query.toString();
583 
584                 Query q = session.createQuery(sql);
585 
586                 QueryPos qPos = QueryPos.getInstance(q);
587 
588                 qPos.add(classNameId);
589 
590                 qPos.add(classPK);
591 
592                 count = (Long)q.uniqueResult();
593             }
594             catch (Exception e) {
595                 throw processException(e);
596             }
597             finally {
598                 if (count == null) {
599                     count = Long.valueOf(0);
600                 }
601 
602                 FinderCacheUtil.putResult(FINDER_PATH_COUNT_BY_C_C, finderArgs,
603                     count);
604 
605                 closeSession(session);
606             }
607         }
608 
609         return count.intValue();
610     }
611 
612     public int countAll() throws SystemException {
613         Object[] finderArgs = new Object[0];
614 
615         Long count = (Long)FinderCacheUtil.getResult(FINDER_PATH_COUNT_ALL,
616                 finderArgs, this);
617 
618         if (count == null) {
619             Session session = null;
620 
621             try {
622                 session = openSession();
623 
624                 Query q = session.createQuery(_SQL_COUNT_WEBDAVPROPS);
625 
626                 count = (Long)q.uniqueResult();
627             }
628             catch (Exception e) {
629                 throw processException(e);
630             }
631             finally {
632                 if (count == null) {
633                     count = Long.valueOf(0);
634                 }
635 
636                 FinderCacheUtil.putResult(FINDER_PATH_COUNT_ALL, finderArgs,
637                     count);
638 
639                 closeSession(session);
640             }
641         }
642 
643         return count.intValue();
644     }
645 
646     public void afterPropertiesSet() {
647         String[] listenerClassNames = StringUtil.split(GetterUtil.getString(
648                     com.liferay.portal.util.PropsUtil.get(
649                         "value.object.listener.com.liferay.portal.model.WebDAVProps")));
650 
651         if (listenerClassNames.length > 0) {
652             try {
653                 List<ModelListener<WebDAVProps>> listenersList = new ArrayList<ModelListener<WebDAVProps>>();
654 
655                 for (String listenerClassName : listenerClassNames) {
656                     listenersList.add((ModelListener<WebDAVProps>)Class.forName(
657                             listenerClassName).newInstance());
658                 }
659 
660                 listeners = listenersList.toArray(new ModelListener[listenersList.size()]);
661             }
662             catch (Exception e) {
663                 _log.error(e);
664             }
665         }
666     }
667 
668     @BeanReference(type = AccountPersistence.class)
669     protected AccountPersistence accountPersistence;
670     @BeanReference(type = AddressPersistence.class)
671     protected AddressPersistence addressPersistence;
672     @BeanReference(type = BrowserTrackerPersistence.class)
673     protected BrowserTrackerPersistence browserTrackerPersistence;
674     @BeanReference(type = ClassNamePersistence.class)
675     protected ClassNamePersistence classNamePersistence;
676     @BeanReference(type = CompanyPersistence.class)
677     protected CompanyPersistence companyPersistence;
678     @BeanReference(type = ContactPersistence.class)
679     protected ContactPersistence contactPersistence;
680     @BeanReference(type = CountryPersistence.class)
681     protected CountryPersistence countryPersistence;
682     @BeanReference(type = EmailAddressPersistence.class)
683     protected EmailAddressPersistence emailAddressPersistence;
684     @BeanReference(type = GroupPersistence.class)
685     protected GroupPersistence groupPersistence;
686     @BeanReference(type = ImagePersistence.class)
687     protected ImagePersistence imagePersistence;
688     @BeanReference(type = LayoutPersistence.class)
689     protected LayoutPersistence layoutPersistence;
690     @BeanReference(type = LayoutSetPersistence.class)
691     protected LayoutSetPersistence layoutSetPersistence;
692     @BeanReference(type = ListTypePersistence.class)
693     protected ListTypePersistence listTypePersistence;
694     @BeanReference(type = LockPersistence.class)
695     protected LockPersistence lockPersistence;
696     @BeanReference(type = MembershipRequestPersistence.class)
697     protected MembershipRequestPersistence membershipRequestPersistence;
698     @BeanReference(type = OrganizationPersistence.class)
699     protected OrganizationPersistence organizationPersistence;
700     @BeanReference(type = OrgGroupPermissionPersistence.class)
701     protected OrgGroupPermissionPersistence orgGroupPermissionPersistence;
702     @BeanReference(type = OrgGroupRolePersistence.class)
703     protected OrgGroupRolePersistence orgGroupRolePersistence;
704     @BeanReference(type = OrgLaborPersistence.class)
705     protected OrgLaborPersistence orgLaborPersistence;
706     @BeanReference(type = PasswordPolicyPersistence.class)
707     protected PasswordPolicyPersistence passwordPolicyPersistence;
708     @BeanReference(type = PasswordPolicyRelPersistence.class)
709     protected PasswordPolicyRelPersistence passwordPolicyRelPersistence;
710     @BeanReference(type = PasswordTrackerPersistence.class)
711     protected PasswordTrackerPersistence passwordTrackerPersistence;
712     @BeanReference(type = PermissionPersistence.class)
713     protected PermissionPersistence permissionPersistence;
714     @BeanReference(type = PhonePersistence.class)
715     protected PhonePersistence phonePersistence;
716     @BeanReference(type = PluginSettingPersistence.class)
717     protected PluginSettingPersistence pluginSettingPersistence;
718     @BeanReference(type = PortletPersistence.class)
719     protected PortletPersistence portletPersistence;
720     @BeanReference(type = PortletItemPersistence.class)
721     protected PortletItemPersistence portletItemPersistence;
722     @BeanReference(type = PortletPreferencesPersistence.class)
723     protected PortletPreferencesPersistence portletPreferencesPersistence;
724     @BeanReference(type = RegionPersistence.class)
725     protected RegionPersistence regionPersistence;
726     @BeanReference(type = ReleasePersistence.class)
727     protected ReleasePersistence releasePersistence;
728     @BeanReference(type = ResourcePersistence.class)
729     protected ResourcePersistence resourcePersistence;
730     @BeanReference(type = ResourceActionPersistence.class)
731     protected ResourceActionPersistence resourceActionPersistence;
732     @BeanReference(type = ResourceCodePersistence.class)
733     protected ResourceCodePersistence resourceCodePersistence;
734     @BeanReference(type = ResourcePermissionPersistence.class)
735     protected ResourcePermissionPersistence resourcePermissionPersistence;
736     @BeanReference(type = RolePersistence.class)
737     protected RolePersistence rolePersistence;
738     @BeanReference(type = ServiceComponentPersistence.class)
739     protected ServiceComponentPersistence serviceComponentPersistence;
740     @BeanReference(type = ShardPersistence.class)
741     protected ShardPersistence shardPersistence;
742     @BeanReference(type = SubscriptionPersistence.class)
743     protected SubscriptionPersistence subscriptionPersistence;
744     @BeanReference(type = UserPersistence.class)
745     protected UserPersistence userPersistence;
746     @BeanReference(type = UserGroupPersistence.class)
747     protected UserGroupPersistence userGroupPersistence;
748     @BeanReference(type = UserGroupGroupRolePersistence.class)
749     protected UserGroupGroupRolePersistence userGroupGroupRolePersistence;
750     @BeanReference(type = UserGroupRolePersistence.class)
751     protected UserGroupRolePersistence userGroupRolePersistence;
752     @BeanReference(type = UserIdMapperPersistence.class)
753     protected UserIdMapperPersistence userIdMapperPersistence;
754     @BeanReference(type = UserTrackerPersistence.class)
755     protected UserTrackerPersistence userTrackerPersistence;
756     @BeanReference(type = UserTrackerPathPersistence.class)
757     protected UserTrackerPathPersistence userTrackerPathPersistence;
758     @BeanReference(type = WebDAVPropsPersistence.class)
759     protected WebDAVPropsPersistence webDAVPropsPersistence;
760     @BeanReference(type = WebsitePersistence.class)
761     protected WebsitePersistence websitePersistence;
762     private static final String _SQL_SELECT_WEBDAVPROPS = "SELECT webDAVProps FROM WebDAVProps webDAVProps";
763     private static final String _SQL_SELECT_WEBDAVPROPS_WHERE = "SELECT webDAVProps FROM WebDAVProps webDAVProps WHERE ";
764     private static final String _SQL_COUNT_WEBDAVPROPS = "SELECT COUNT(webDAVProps) FROM WebDAVProps webDAVProps";
765     private static final String _SQL_COUNT_WEBDAVPROPS_WHERE = "SELECT COUNT(webDAVProps) FROM WebDAVProps webDAVProps WHERE ";
766     private static final String _FINDER_COLUMN_C_C_CLASSNAMEID_2 = "webDAVProps.classNameId = ? AND ";
767     private static final String _FINDER_COLUMN_C_C_CLASSPK_2 = "webDAVProps.classPK = ?";
768     private static final String _ORDER_BY_ENTITY_ALIAS = "webDAVProps.";
769     private static final String _NO_SUCH_ENTITY_WITH_PRIMARY_KEY = "No WebDAVProps exists with the primary key ";
770     private static final String _NO_SUCH_ENTITY_WITH_KEY = "No WebDAVProps exists with the key {";
771     private static Log _log = LogFactoryUtil.getLog(WebDAVPropsPersistenceImpl.class);
772 }