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