1
22
23 package com.liferay.portal.service.persistence;
24
25 import com.liferay.portal.NoSuchImageException;
26 import com.liferay.portal.SystemException;
27 import com.liferay.portal.kernel.annotation.BeanReference;
28 import com.liferay.portal.kernel.cache.CacheRegistry;
29 import com.liferay.portal.kernel.dao.orm.DynamicQuery;
30 import com.liferay.portal.kernel.dao.orm.EntityCacheUtil;
31 import com.liferay.portal.kernel.dao.orm.FinderCacheUtil;
32 import com.liferay.portal.kernel.dao.orm.FinderPath;
33 import com.liferay.portal.kernel.dao.orm.Query;
34 import com.liferay.portal.kernel.dao.orm.QueryPos;
35 import com.liferay.portal.kernel.dao.orm.QueryUtil;
36 import com.liferay.portal.kernel.dao.orm.Session;
37 import com.liferay.portal.kernel.log.Log;
38 import com.liferay.portal.kernel.log.LogFactoryUtil;
39 import com.liferay.portal.kernel.util.GetterUtil;
40 import com.liferay.portal.kernel.util.OrderByComparator;
41 import com.liferay.portal.kernel.util.StringPool;
42 import com.liferay.portal.kernel.util.StringUtil;
43 import com.liferay.portal.model.Image;
44 import com.liferay.portal.model.ModelListener;
45 import com.liferay.portal.model.impl.ImageImpl;
46 import com.liferay.portal.model.impl.ImageModelImpl;
47 import com.liferay.portal.service.persistence.impl.BasePersistenceImpl;
48
49 import java.util.ArrayList;
50 import java.util.Collections;
51 import java.util.List;
52
53
59 public class ImagePersistenceImpl extends BasePersistenceImpl
60 implements ImagePersistence {
61 public static final String FINDER_CLASS_NAME_ENTITY = ImageImpl.class.getName();
62 public static final String FINDER_CLASS_NAME_LIST = FINDER_CLASS_NAME_ENTITY +
63 ".List";
64 public static final FinderPath FINDER_PATH_FIND_BY_SIZE = new FinderPath(ImageModelImpl.ENTITY_CACHE_ENABLED,
65 ImageModelImpl.FINDER_CACHE_ENABLED, FINDER_CLASS_NAME_LIST,
66 "findBySize", new String[] { Integer.class.getName() });
67 public static final FinderPath FINDER_PATH_FIND_BY_OBC_SIZE = new FinderPath(ImageModelImpl.ENTITY_CACHE_ENABLED,
68 ImageModelImpl.FINDER_CACHE_ENABLED, FINDER_CLASS_NAME_LIST,
69 "findBySize",
70 new String[] {
71 Integer.class.getName(),
72
73 "java.lang.Integer", "java.lang.Integer",
74 "com.liferay.portal.kernel.util.OrderByComparator"
75 });
76 public static final FinderPath FINDER_PATH_COUNT_BY_SIZE = new FinderPath(ImageModelImpl.ENTITY_CACHE_ENABLED,
77 ImageModelImpl.FINDER_CACHE_ENABLED, FINDER_CLASS_NAME_LIST,
78 "countBySize", new String[] { Integer.class.getName() });
79 public static final FinderPath FINDER_PATH_FIND_ALL = new FinderPath(ImageModelImpl.ENTITY_CACHE_ENABLED,
80 ImageModelImpl.FINDER_CACHE_ENABLED, FINDER_CLASS_NAME_LIST,
81 "findAll", new String[0]);
82 public static final FinderPath FINDER_PATH_COUNT_ALL = new FinderPath(ImageModelImpl.ENTITY_CACHE_ENABLED,
83 ImageModelImpl.FINDER_CACHE_ENABLED, FINDER_CLASS_NAME_LIST,
84 "countAll", new String[0]);
85
86 public void cacheResult(Image image) {
87 EntityCacheUtil.putResult(ImageModelImpl.ENTITY_CACHE_ENABLED,
88 ImageImpl.class, image.getPrimaryKey(), image);
89 }
90
91 public void cacheResult(List<Image> images) {
92 for (Image image : images) {
93 if (EntityCacheUtil.getResult(ImageModelImpl.ENTITY_CACHE_ENABLED,
94 ImageImpl.class, image.getPrimaryKey(), this) == null) {
95 cacheResult(image);
96 }
97 }
98 }
99
100 public void clearCache() {
101 CacheRegistry.clear(ImageImpl.class.getName());
102 EntityCacheUtil.clearCache(ImageImpl.class.getName());
103 FinderCacheUtil.clearCache(FINDER_CLASS_NAME_ENTITY);
104 FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST);
105 }
106
107 public Image create(long imageId) {
108 Image image = new ImageImpl();
109
110 image.setNew(true);
111 image.setPrimaryKey(imageId);
112
113 return image;
114 }
115
116 public Image remove(long imageId)
117 throws NoSuchImageException, SystemException {
118 Session session = null;
119
120 try {
121 session = openSession();
122
123 Image image = (Image)session.get(ImageImpl.class, new Long(imageId));
124
125 if (image == null) {
126 if (_log.isWarnEnabled()) {
127 _log.warn("No Image exists with the primary key " +
128 imageId);
129 }
130
131 throw new NoSuchImageException(
132 "No Image exists with the primary key " + imageId);
133 }
134
135 return remove(image);
136 }
137 catch (NoSuchImageException nsee) {
138 throw nsee;
139 }
140 catch (Exception e) {
141 throw processException(e);
142 }
143 finally {
144 closeSession(session);
145 }
146 }
147
148 public Image remove(Image image) throws SystemException {
149 for (ModelListener<Image> listener : listeners) {
150 listener.onBeforeRemove(image);
151 }
152
153 image = removeImpl(image);
154
155 for (ModelListener<Image> listener : listeners) {
156 listener.onAfterRemove(image);
157 }
158
159 return image;
160 }
161
162 protected Image removeImpl(Image image) throws SystemException {
163 Session session = null;
164
165 try {
166 session = openSession();
167
168 if (image.isCachedModel() || BatchSessionUtil.isEnabled()) {
169 Object staleObject = session.get(ImageImpl.class,
170 image.getPrimaryKeyObj());
171
172 if (staleObject != null) {
173 session.evict(staleObject);
174 }
175 }
176
177 session.delete(image);
178
179 session.flush();
180 }
181 catch (Exception e) {
182 throw processException(e);
183 }
184 finally {
185 closeSession(session);
186 }
187
188 FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST);
189
190 EntityCacheUtil.removeResult(ImageModelImpl.ENTITY_CACHE_ENABLED,
191 ImageImpl.class, image.getPrimaryKey());
192
193 return image;
194 }
195
196
199 public Image update(Image image) throws SystemException {
200 if (_log.isWarnEnabled()) {
201 _log.warn(
202 "Using the deprecated update(Image image) method. Use update(Image image, boolean merge) instead.");
203 }
204
205 return update(image, false);
206 }
207
208
221 public Image update(Image image, boolean merge) throws SystemException {
222 boolean isNew = image.isNew();
223
224 for (ModelListener<Image> listener : listeners) {
225 if (isNew) {
226 listener.onBeforeCreate(image);
227 }
228 else {
229 listener.onBeforeUpdate(image);
230 }
231 }
232
233 image = updateImpl(image, merge);
234
235 for (ModelListener<Image> listener : listeners) {
236 if (isNew) {
237 listener.onAfterCreate(image);
238 }
239 else {
240 listener.onAfterUpdate(image);
241 }
242 }
243
244 return image;
245 }
246
247 public Image updateImpl(com.liferay.portal.model.Image image, boolean merge)
248 throws SystemException {
249 Session session = null;
250
251 try {
252 session = openSession();
253
254 BatchSessionUtil.update(session, image, merge);
255
256 image.setNew(false);
257 }
258 catch (Exception e) {
259 throw processException(e);
260 }
261 finally {
262 closeSession(session);
263 }
264
265 FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST);
266
267 EntityCacheUtil.putResult(ImageModelImpl.ENTITY_CACHE_ENABLED,
268 ImageImpl.class, image.getPrimaryKey(), image);
269
270 return image;
271 }
272
273 public Image findByPrimaryKey(long imageId)
274 throws NoSuchImageException, SystemException {
275 Image image = fetchByPrimaryKey(imageId);
276
277 if (image == null) {
278 if (_log.isWarnEnabled()) {
279 _log.warn("No Image exists with the primary key " + imageId);
280 }
281
282 throw new NoSuchImageException(
283 "No Image exists with the primary key " + imageId);
284 }
285
286 return image;
287 }
288
289 public Image fetchByPrimaryKey(long imageId) throws SystemException {
290 Image image = (Image)EntityCacheUtil.getResult(ImageModelImpl.ENTITY_CACHE_ENABLED,
291 ImageImpl.class, imageId, this);
292
293 if (image == null) {
294 Session session = null;
295
296 try {
297 session = openSession();
298
299 image = (Image)session.get(ImageImpl.class, new Long(imageId));
300 }
301 catch (Exception e) {
302 throw processException(e);
303 }
304 finally {
305 if (image != null) {
306 cacheResult(image);
307 }
308
309 closeSession(session);
310 }
311 }
312
313 return image;
314 }
315
316 public List<Image> findBySize(int size) throws SystemException {
317 Object[] finderArgs = new Object[] { new Integer(size) };
318
319 List<Image> list = (List<Image>)FinderCacheUtil.getResult(FINDER_PATH_FIND_BY_SIZE,
320 finderArgs, this);
321
322 if (list == null) {
323 Session session = null;
324
325 try {
326 session = openSession();
327
328 StringBuilder query = new StringBuilder();
329
330 query.append("SELECT image FROM Image image WHERE ");
331
332 query.append("image.size < ?");
333
334 query.append(" ");
335
336 query.append("ORDER BY ");
337
338 query.append("image.imageId ASC");
339
340 Query q = session.createQuery(query.toString());
341
342 QueryPos qPos = QueryPos.getInstance(q);
343
344 qPos.add(size);
345
346 list = q.list();
347 }
348 catch (Exception e) {
349 throw processException(e);
350 }
351 finally {
352 if (list == null) {
353 list = new ArrayList<Image>();
354 }
355
356 cacheResult(list);
357
358 FinderCacheUtil.putResult(FINDER_PATH_FIND_BY_SIZE, finderArgs,
359 list);
360
361 closeSession(session);
362 }
363 }
364
365 return list;
366 }
367
368 public List<Image> findBySize(int size, int start, int end)
369 throws SystemException {
370 return findBySize(size, start, end, null);
371 }
372
373 public List<Image> findBySize(int size, int start, int end,
374 OrderByComparator obc) throws SystemException {
375 Object[] finderArgs = new Object[] {
376 new Integer(size),
377
378 String.valueOf(start), String.valueOf(end), String.valueOf(obc)
379 };
380
381 List<Image> list = (List<Image>)FinderCacheUtil.getResult(FINDER_PATH_FIND_BY_OBC_SIZE,
382 finderArgs, this);
383
384 if (list == null) {
385 Session session = null;
386
387 try {
388 session = openSession();
389
390 StringBuilder query = new StringBuilder();
391
392 query.append("SELECT image FROM Image image WHERE ");
393
394 query.append("image.size < ?");
395
396 query.append(" ");
397
398 if (obc != null) {
399 query.append("ORDER BY ");
400
401 String[] orderByFields = obc.getOrderByFields();
402
403 for (int i = 0; i < orderByFields.length; i++) {
404 query.append("image.");
405 query.append(orderByFields[i]);
406
407 if (obc.isAscending()) {
408 query.append(" ASC");
409 }
410 else {
411 query.append(" DESC");
412 }
413
414 if ((i + 1) < orderByFields.length) {
415 query.append(", ");
416 }
417 }
418 }
419
420 else {
421 query.append("ORDER BY ");
422
423 query.append("image.imageId ASC");
424 }
425
426 Query q = session.createQuery(query.toString());
427
428 QueryPos qPos = QueryPos.getInstance(q);
429
430 qPos.add(size);
431
432 list = (List<Image>)QueryUtil.list(q, getDialect(), start, end);
433 }
434 catch (Exception e) {
435 throw processException(e);
436 }
437 finally {
438 if (list == null) {
439 list = new ArrayList<Image>();
440 }
441
442 cacheResult(list);
443
444 FinderCacheUtil.putResult(FINDER_PATH_FIND_BY_OBC_SIZE,
445 finderArgs, list);
446
447 closeSession(session);
448 }
449 }
450
451 return list;
452 }
453
454 public Image findBySize_First(int size, OrderByComparator obc)
455 throws NoSuchImageException, SystemException {
456 List<Image> list = findBySize(size, 0, 1, obc);
457
458 if (list.isEmpty()) {
459 StringBuilder msg = new StringBuilder();
460
461 msg.append("No Image exists with the key {");
462
463 msg.append("size=" + size);
464
465 msg.append(StringPool.CLOSE_CURLY_BRACE);
466
467 throw new NoSuchImageException(msg.toString());
468 }
469 else {
470 return list.get(0);
471 }
472 }
473
474 public Image findBySize_Last(int size, OrderByComparator obc)
475 throws NoSuchImageException, SystemException {
476 int count = countBySize(size);
477
478 List<Image> list = findBySize(size, count - 1, count, obc);
479
480 if (list.isEmpty()) {
481 StringBuilder msg = new StringBuilder();
482
483 msg.append("No Image exists with the key {");
484
485 msg.append("size=" + size);
486
487 msg.append(StringPool.CLOSE_CURLY_BRACE);
488
489 throw new NoSuchImageException(msg.toString());
490 }
491 else {
492 return list.get(0);
493 }
494 }
495
496 public Image[] findBySize_PrevAndNext(long imageId, int size,
497 OrderByComparator obc) throws NoSuchImageException, SystemException {
498 Image image = findByPrimaryKey(imageId);
499
500 int count = countBySize(size);
501
502 Session session = null;
503
504 try {
505 session = openSession();
506
507 StringBuilder query = new StringBuilder();
508
509 query.append("SELECT image FROM Image image WHERE ");
510
511 query.append("image.size < ?");
512
513 query.append(" ");
514
515 if (obc != null) {
516 query.append("ORDER BY ");
517
518 String[] orderByFields = obc.getOrderByFields();
519
520 for (int i = 0; i < orderByFields.length; i++) {
521 query.append("image.");
522 query.append(orderByFields[i]);
523
524 if (obc.isAscending()) {
525 query.append(" ASC");
526 }
527 else {
528 query.append(" DESC");
529 }
530
531 if ((i + 1) < orderByFields.length) {
532 query.append(", ");
533 }
534 }
535 }
536
537 else {
538 query.append("ORDER BY ");
539
540 query.append("image.imageId ASC");
541 }
542
543 Query q = session.createQuery(query.toString());
544
545 QueryPos qPos = QueryPos.getInstance(q);
546
547 qPos.add(size);
548
549 Object[] objArray = QueryUtil.getPrevAndNext(q, count, obc, image);
550
551 Image[] array = new ImageImpl[3];
552
553 array[0] = (Image)objArray[0];
554 array[1] = (Image)objArray[1];
555 array[2] = (Image)objArray[2];
556
557 return array;
558 }
559 catch (Exception e) {
560 throw processException(e);
561 }
562 finally {
563 closeSession(session);
564 }
565 }
566
567 public List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery)
568 throws SystemException {
569 Session session = null;
570
571 try {
572 session = openSession();
573
574 dynamicQuery.compile(session);
575
576 return dynamicQuery.list();
577 }
578 catch (Exception e) {
579 throw processException(e);
580 }
581 finally {
582 closeSession(session);
583 }
584 }
585
586 public List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery,
587 int start, int end) throws SystemException {
588 Session session = null;
589
590 try {
591 session = openSession();
592
593 dynamicQuery.setLimit(start, end);
594
595 dynamicQuery.compile(session);
596
597 return dynamicQuery.list();
598 }
599 catch (Exception e) {
600 throw processException(e);
601 }
602 finally {
603 closeSession(session);
604 }
605 }
606
607 public List<Image> findAll() throws SystemException {
608 return findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
609 }
610
611 public List<Image> findAll(int start, int end) throws SystemException {
612 return findAll(start, end, null);
613 }
614
615 public List<Image> findAll(int start, int end, OrderByComparator obc)
616 throws SystemException {
617 Object[] finderArgs = new Object[] {
618 String.valueOf(start), String.valueOf(end), String.valueOf(obc)
619 };
620
621 List<Image> list = (List<Image>)FinderCacheUtil.getResult(FINDER_PATH_FIND_ALL,
622 finderArgs, this);
623
624 if (list == null) {
625 Session session = null;
626
627 try {
628 session = openSession();
629
630 StringBuilder query = new StringBuilder();
631
632 query.append("SELECT image FROM Image image ");
633
634 if (obc != null) {
635 query.append("ORDER BY ");
636
637 String[] orderByFields = obc.getOrderByFields();
638
639 for (int i = 0; i < orderByFields.length; i++) {
640 query.append("image.");
641 query.append(orderByFields[i]);
642
643 if (obc.isAscending()) {
644 query.append(" ASC");
645 }
646 else {
647 query.append(" DESC");
648 }
649
650 if ((i + 1) < orderByFields.length) {
651 query.append(", ");
652 }
653 }
654 }
655
656 else {
657 query.append("ORDER BY ");
658
659 query.append("image.imageId ASC");
660 }
661
662 Query q = session.createQuery(query.toString());
663
664 if (obc == null) {
665 list = (List<Image>)QueryUtil.list(q, getDialect(), start,
666 end, false);
667
668 Collections.sort(list);
669 }
670 else {
671 list = (List<Image>)QueryUtil.list(q, getDialect(), start,
672 end);
673 }
674 }
675 catch (Exception e) {
676 throw processException(e);
677 }
678 finally {
679 if (list == null) {
680 list = new ArrayList<Image>();
681 }
682
683 cacheResult(list);
684
685 FinderCacheUtil.putResult(FINDER_PATH_FIND_ALL, finderArgs, list);
686
687 closeSession(session);
688 }
689 }
690
691 return list;
692 }
693
694 public void removeBySize(int size) throws SystemException {
695 for (Image image : findBySize(size)) {
696 remove(image);
697 }
698 }
699
700 public void removeAll() throws SystemException {
701 for (Image image : findAll()) {
702 remove(image);
703 }
704 }
705
706 public int countBySize(int size) throws SystemException {
707 Object[] finderArgs = new Object[] { new Integer(size) };
708
709 Long count = (Long)FinderCacheUtil.getResult(FINDER_PATH_COUNT_BY_SIZE,
710 finderArgs, this);
711
712 if (count == null) {
713 Session session = null;
714
715 try {
716 session = openSession();
717
718 StringBuilder query = new StringBuilder();
719
720 query.append("SELECT COUNT(image) ");
721 query.append("FROM Image image WHERE ");
722
723 query.append("image.size < ?");
724
725 query.append(" ");
726
727 Query q = session.createQuery(query.toString());
728
729 QueryPos qPos = QueryPos.getInstance(q);
730
731 qPos.add(size);
732
733 count = (Long)q.uniqueResult();
734 }
735 catch (Exception e) {
736 throw processException(e);
737 }
738 finally {
739 if (count == null) {
740 count = Long.valueOf(0);
741 }
742
743 FinderCacheUtil.putResult(FINDER_PATH_COUNT_BY_SIZE,
744 finderArgs, count);
745
746 closeSession(session);
747 }
748 }
749
750 return count.intValue();
751 }
752
753 public int countAll() throws SystemException {
754 Object[] finderArgs = new Object[0];
755
756 Long count = (Long)FinderCacheUtil.getResult(FINDER_PATH_COUNT_ALL,
757 finderArgs, this);
758
759 if (count == null) {
760 Session session = null;
761
762 try {
763 session = openSession();
764
765 Query q = session.createQuery(
766 "SELECT COUNT(image) FROM Image image");
767
768 count = (Long)q.uniqueResult();
769 }
770 catch (Exception e) {
771 throw processException(e);
772 }
773 finally {
774 if (count == null) {
775 count = Long.valueOf(0);
776 }
777
778 FinderCacheUtil.putResult(FINDER_PATH_COUNT_ALL, finderArgs,
779 count);
780
781 closeSession(session);
782 }
783 }
784
785 return count.intValue();
786 }
787
788 public void afterPropertiesSet() {
789 String[] listenerClassNames = StringUtil.split(GetterUtil.getString(
790 com.liferay.portal.util.PropsUtil.get(
791 "value.object.listener.com.liferay.portal.model.Image")));
792
793 if (listenerClassNames.length > 0) {
794 try {
795 List<ModelListener<Image>> listenersList = new ArrayList<ModelListener<Image>>();
796
797 for (String listenerClassName : listenerClassNames) {
798 listenersList.add((ModelListener<Image>)Class.forName(
799 listenerClassName).newInstance());
800 }
801
802 listeners = listenersList.toArray(new ModelListener[listenersList.size()]);
803 }
804 catch (Exception e) {
805 _log.error(e);
806 }
807 }
808 }
809
810 @BeanReference(name = "com.liferay.portal.service.persistence.AccountPersistence.impl")
811 protected com.liferay.portal.service.persistence.AccountPersistence accountPersistence;
812 @BeanReference(name = "com.liferay.portal.service.persistence.AddressPersistence.impl")
813 protected com.liferay.portal.service.persistence.AddressPersistence addressPersistence;
814 @BeanReference(name = "com.liferay.portal.service.persistence.BrowserTrackerPersistence.impl")
815 protected com.liferay.portal.service.persistence.BrowserTrackerPersistence browserTrackerPersistence;
816 @BeanReference(name = "com.liferay.portal.service.persistence.ClassNamePersistence.impl")
817 protected com.liferay.portal.service.persistence.ClassNamePersistence classNamePersistence;
818 @BeanReference(name = "com.liferay.portal.service.persistence.CompanyPersistence.impl")
819 protected com.liferay.portal.service.persistence.CompanyPersistence companyPersistence;
820 @BeanReference(name = "com.liferay.portal.service.persistence.ContactPersistence.impl")
821 protected com.liferay.portal.service.persistence.ContactPersistence contactPersistence;
822 @BeanReference(name = "com.liferay.portal.service.persistence.CountryPersistence.impl")
823 protected com.liferay.portal.service.persistence.CountryPersistence countryPersistence;
824 @BeanReference(name = "com.liferay.portal.service.persistence.EmailAddressPersistence.impl")
825 protected com.liferay.portal.service.persistence.EmailAddressPersistence emailAddressPersistence;
826 @BeanReference(name = "com.liferay.portal.service.persistence.GroupPersistence.impl")
827 protected com.liferay.portal.service.persistence.GroupPersistence groupPersistence;
828 @BeanReference(name = "com.liferay.portal.service.persistence.ImagePersistence.impl")
829 protected com.liferay.portal.service.persistence.ImagePersistence imagePersistence;
830 @BeanReference(name = "com.liferay.portal.service.persistence.LayoutPersistence.impl")
831 protected com.liferay.portal.service.persistence.LayoutPersistence layoutPersistence;
832 @BeanReference(name = "com.liferay.portal.service.persistence.LayoutSetPersistence.impl")
833 protected com.liferay.portal.service.persistence.LayoutSetPersistence layoutSetPersistence;
834 @BeanReference(name = "com.liferay.portal.service.persistence.ListTypePersistence.impl")
835 protected com.liferay.portal.service.persistence.ListTypePersistence listTypePersistence;
836 @BeanReference(name = "com.liferay.portal.service.persistence.MembershipRequestPersistence.impl")
837 protected com.liferay.portal.service.persistence.MembershipRequestPersistence membershipRequestPersistence;
838 @BeanReference(name = "com.liferay.portal.service.persistence.OrganizationPersistence.impl")
839 protected com.liferay.portal.service.persistence.OrganizationPersistence organizationPersistence;
840 @BeanReference(name = "com.liferay.portal.service.persistence.OrgGroupPermissionPersistence.impl")
841 protected com.liferay.portal.service.persistence.OrgGroupPermissionPersistence orgGroupPermissionPersistence;
842 @BeanReference(name = "com.liferay.portal.service.persistence.OrgGroupRolePersistence.impl")
843 protected com.liferay.portal.service.persistence.OrgGroupRolePersistence orgGroupRolePersistence;
844 @BeanReference(name = "com.liferay.portal.service.persistence.OrgLaborPersistence.impl")
845 protected com.liferay.portal.service.persistence.OrgLaborPersistence orgLaborPersistence;
846 @BeanReference(name = "com.liferay.portal.service.persistence.PasswordPolicyPersistence.impl")
847 protected com.liferay.portal.service.persistence.PasswordPolicyPersistence passwordPolicyPersistence;
848 @BeanReference(name = "com.liferay.portal.service.persistence.PasswordPolicyRelPersistence.impl")
849 protected com.liferay.portal.service.persistence.PasswordPolicyRelPersistence passwordPolicyRelPersistence;
850 @BeanReference(name = "com.liferay.portal.service.persistence.PasswordTrackerPersistence.impl")
851 protected com.liferay.portal.service.persistence.PasswordTrackerPersistence passwordTrackerPersistence;
852 @BeanReference(name = "com.liferay.portal.service.persistence.PermissionPersistence.impl")
853 protected com.liferay.portal.service.persistence.PermissionPersistence permissionPersistence;
854 @BeanReference(name = "com.liferay.portal.service.persistence.PhonePersistence.impl")
855 protected com.liferay.portal.service.persistence.PhonePersistence phonePersistence;
856 @BeanReference(name = "com.liferay.portal.service.persistence.PluginSettingPersistence.impl")
857 protected com.liferay.portal.service.persistence.PluginSettingPersistence pluginSettingPersistence;
858 @BeanReference(name = "com.liferay.portal.service.persistence.PortletPersistence.impl")
859 protected com.liferay.portal.service.persistence.PortletPersistence portletPersistence;
860 @BeanReference(name = "com.liferay.portal.service.persistence.PortletItemPersistence.impl")
861 protected com.liferay.portal.service.persistence.PortletItemPersistence portletItemPersistence;
862 @BeanReference(name = "com.liferay.portal.service.persistence.PortletPreferencesPersistence.impl")
863 protected com.liferay.portal.service.persistence.PortletPreferencesPersistence portletPreferencesPersistence;
864 @BeanReference(name = "com.liferay.portal.service.persistence.RegionPersistence.impl")
865 protected com.liferay.portal.service.persistence.RegionPersistence regionPersistence;
866 @BeanReference(name = "com.liferay.portal.service.persistence.ReleasePersistence.impl")
867 protected com.liferay.portal.service.persistence.ReleasePersistence releasePersistence;
868 @BeanReference(name = "com.liferay.portal.service.persistence.ResourcePersistence.impl")
869 protected com.liferay.portal.service.persistence.ResourcePersistence resourcePersistence;
870 @BeanReference(name = "com.liferay.portal.service.persistence.ResourceActionPersistence.impl")
871 protected com.liferay.portal.service.persistence.ResourceActionPersistence resourceActionPersistence;
872 @BeanReference(name = "com.liferay.portal.service.persistence.ResourceCodePersistence.impl")
873 protected com.liferay.portal.service.persistence.ResourceCodePersistence resourceCodePersistence;
874 @BeanReference(name = "com.liferay.portal.service.persistence.ResourcePermissionPersistence.impl")
875 protected com.liferay.portal.service.persistence.ResourcePermissionPersistence resourcePermissionPersistence;
876 @BeanReference(name = "com.liferay.portal.service.persistence.RolePersistence.impl")
877 protected com.liferay.portal.service.persistence.RolePersistence rolePersistence;
878 @BeanReference(name = "com.liferay.portal.service.persistence.ServiceComponentPersistence.impl")
879 protected com.liferay.portal.service.persistence.ServiceComponentPersistence serviceComponentPersistence;
880 @BeanReference(name = "com.liferay.portal.service.persistence.ShardPersistence.impl")
881 protected com.liferay.portal.service.persistence.ShardPersistence shardPersistence;
882 @BeanReference(name = "com.liferay.portal.service.persistence.SubscriptionPersistence.impl")
883 protected com.liferay.portal.service.persistence.SubscriptionPersistence subscriptionPersistence;
884 @BeanReference(name = "com.liferay.portal.service.persistence.UserPersistence.impl")
885 protected com.liferay.portal.service.persistence.UserPersistence userPersistence;
886 @BeanReference(name = "com.liferay.portal.service.persistence.UserGroupPersistence.impl")
887 protected com.liferay.portal.service.persistence.UserGroupPersistence userGroupPersistence;
888 @BeanReference(name = "com.liferay.portal.service.persistence.UserGroupRolePersistence.impl")
889 protected com.liferay.portal.service.persistence.UserGroupRolePersistence userGroupRolePersistence;
890 @BeanReference(name = "com.liferay.portal.service.persistence.UserIdMapperPersistence.impl")
891 protected com.liferay.portal.service.persistence.UserIdMapperPersistence userIdMapperPersistence;
892 @BeanReference(name = "com.liferay.portal.service.persistence.UserTrackerPersistence.impl")
893 protected com.liferay.portal.service.persistence.UserTrackerPersistence userTrackerPersistence;
894 @BeanReference(name = "com.liferay.portal.service.persistence.UserTrackerPathPersistence.impl")
895 protected com.liferay.portal.service.persistence.UserTrackerPathPersistence userTrackerPathPersistence;
896 @BeanReference(name = "com.liferay.portal.service.persistence.WebDAVPropsPersistence.impl")
897 protected com.liferay.portal.service.persistence.WebDAVPropsPersistence webDAVPropsPersistence;
898 @BeanReference(name = "com.liferay.portal.service.persistence.WebsitePersistence.impl")
899 protected com.liferay.portal.service.persistence.WebsitePersistence websitePersistence;
900 private static Log _log = LogFactoryUtil.getLog(ImagePersistenceImpl.class);
901 }