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