001
014
015 package com.liferay.portlet.asset.service.base;
016
017 import com.liferay.counter.service.CounterLocalService;
018
019 import com.liferay.portal.kernel.annotation.BeanReference;
020 import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
021 import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
022 import com.liferay.portal.kernel.dao.orm.DynamicQuery;
023 import com.liferay.portal.kernel.exception.PortalException;
024 import com.liferay.portal.kernel.exception.SystemException;
025 import com.liferay.portal.kernel.util.OrderByComparator;
026 import com.liferay.portal.service.ResourceLocalService;
027 import com.liferay.portal.service.ResourceService;
028 import com.liferay.portal.service.UserLocalService;
029 import com.liferay.portal.service.UserService;
030 import com.liferay.portal.service.persistence.ResourceFinder;
031 import com.liferay.portal.service.persistence.ResourcePersistence;
032 import com.liferay.portal.service.persistence.UserFinder;
033 import com.liferay.portal.service.persistence.UserPersistence;
034
035 import com.liferay.portlet.asset.model.AssetCategoryProperty;
036 import com.liferay.portlet.asset.service.AssetCategoryLocalService;
037 import com.liferay.portlet.asset.service.AssetCategoryPropertyLocalService;
038 import com.liferay.portlet.asset.service.AssetCategoryPropertyService;
039 import com.liferay.portlet.asset.service.AssetCategoryService;
040 import com.liferay.portlet.asset.service.AssetEntryLocalService;
041 import com.liferay.portlet.asset.service.AssetEntryService;
042 import com.liferay.portlet.asset.service.AssetLinkLocalService;
043 import com.liferay.portlet.asset.service.AssetTagLocalService;
044 import com.liferay.portlet.asset.service.AssetTagPropertyLocalService;
045 import com.liferay.portlet.asset.service.AssetTagPropertyService;
046 import com.liferay.portlet.asset.service.AssetTagService;
047 import com.liferay.portlet.asset.service.AssetTagStatsLocalService;
048 import com.liferay.portlet.asset.service.AssetVocabularyLocalService;
049 import com.liferay.portlet.asset.service.AssetVocabularyService;
050 import com.liferay.portlet.asset.service.persistence.AssetCategoryFinder;
051 import com.liferay.portlet.asset.service.persistence.AssetCategoryPersistence;
052 import com.liferay.portlet.asset.service.persistence.AssetCategoryPropertyFinder;
053 import com.liferay.portlet.asset.service.persistence.AssetCategoryPropertyPersistence;
054 import com.liferay.portlet.asset.service.persistence.AssetEntryFinder;
055 import com.liferay.portlet.asset.service.persistence.AssetEntryPersistence;
056 import com.liferay.portlet.asset.service.persistence.AssetLinkPersistence;
057 import com.liferay.portlet.asset.service.persistence.AssetTagFinder;
058 import com.liferay.portlet.asset.service.persistence.AssetTagPersistence;
059 import com.liferay.portlet.asset.service.persistence.AssetTagPropertyFinder;
060 import com.liferay.portlet.asset.service.persistence.AssetTagPropertyKeyFinder;
061 import com.liferay.portlet.asset.service.persistence.AssetTagPropertyPersistence;
062 import com.liferay.portlet.asset.service.persistence.AssetTagStatsPersistence;
063 import com.liferay.portlet.asset.service.persistence.AssetVocabularyPersistence;
064
065 import java.util.List;
066
067 import javax.sql.DataSource;
068
069
085 public abstract class AssetCategoryPropertyLocalServiceBaseImpl
086 implements AssetCategoryPropertyLocalService {
087
094 public AssetCategoryProperty addAssetCategoryProperty(
095 AssetCategoryProperty assetCategoryProperty) throws SystemException {
096 assetCategoryProperty.setNew(true);
097
098 return assetCategoryPropertyPersistence.update(assetCategoryProperty,
099 false);
100 }
101
102
108 public AssetCategoryProperty createAssetCategoryProperty(
109 long categoryPropertyId) {
110 return assetCategoryPropertyPersistence.create(categoryPropertyId);
111 }
112
113
120 public void deleteAssetCategoryProperty(long categoryPropertyId)
121 throws PortalException, SystemException {
122 assetCategoryPropertyPersistence.remove(categoryPropertyId);
123 }
124
125
131 public void deleteAssetCategoryProperty(
132 AssetCategoryProperty assetCategoryProperty) throws SystemException {
133 assetCategoryPropertyPersistence.remove(assetCategoryProperty);
134 }
135
136
143 @SuppressWarnings("rawtypes")
144 public List dynamicQuery(DynamicQuery dynamicQuery)
145 throws SystemException {
146 return assetCategoryPropertyPersistence.findWithDynamicQuery(dynamicQuery);
147 }
148
149
162 @SuppressWarnings("rawtypes")
163 public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
164 throws SystemException {
165 return assetCategoryPropertyPersistence.findWithDynamicQuery(dynamicQuery,
166 start, end);
167 }
168
169
183 @SuppressWarnings("rawtypes")
184 public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end,
185 OrderByComparator orderByComparator) throws SystemException {
186 return assetCategoryPropertyPersistence.findWithDynamicQuery(dynamicQuery,
187 start, end, orderByComparator);
188 }
189
190
197 public long dynamicQueryCount(DynamicQuery dynamicQuery)
198 throws SystemException {
199 return assetCategoryPropertyPersistence.countWithDynamicQuery(dynamicQuery);
200 }
201
202
210 public AssetCategoryProperty getAssetCategoryProperty(
211 long categoryPropertyId) throws PortalException, SystemException {
212 return assetCategoryPropertyPersistence.findByPrimaryKey(categoryPropertyId);
213 }
214
215
227 public List<AssetCategoryProperty> getAssetCategoryProperties(int start,
228 int end) throws SystemException {
229 return assetCategoryPropertyPersistence.findAll(start, end);
230 }
231
232
238 public int getAssetCategoryPropertiesCount() throws SystemException {
239 return assetCategoryPropertyPersistence.countAll();
240 }
241
242
249 public AssetCategoryProperty updateAssetCategoryProperty(
250 AssetCategoryProperty assetCategoryProperty) throws SystemException {
251 assetCategoryProperty.setNew(false);
252
253 return assetCategoryPropertyPersistence.update(assetCategoryProperty,
254 true);
255 }
256
257
265 public AssetCategoryProperty updateAssetCategoryProperty(
266 AssetCategoryProperty assetCategoryProperty, boolean merge)
267 throws SystemException {
268 assetCategoryProperty.setNew(false);
269
270 return assetCategoryPropertyPersistence.update(assetCategoryProperty,
271 merge);
272 }
273
274
279 public AssetCategoryLocalService getAssetCategoryLocalService() {
280 return assetCategoryLocalService;
281 }
282
283
288 public void setAssetCategoryLocalService(
289 AssetCategoryLocalService assetCategoryLocalService) {
290 this.assetCategoryLocalService = assetCategoryLocalService;
291 }
292
293
298 public AssetCategoryService getAssetCategoryService() {
299 return assetCategoryService;
300 }
301
302
307 public void setAssetCategoryService(
308 AssetCategoryService assetCategoryService) {
309 this.assetCategoryService = assetCategoryService;
310 }
311
312
317 public AssetCategoryPersistence getAssetCategoryPersistence() {
318 return assetCategoryPersistence;
319 }
320
321
326 public void setAssetCategoryPersistence(
327 AssetCategoryPersistence assetCategoryPersistence) {
328 this.assetCategoryPersistence = assetCategoryPersistence;
329 }
330
331
336 public AssetCategoryFinder getAssetCategoryFinder() {
337 return assetCategoryFinder;
338 }
339
340
345 public void setAssetCategoryFinder(AssetCategoryFinder assetCategoryFinder) {
346 this.assetCategoryFinder = assetCategoryFinder;
347 }
348
349
354 public AssetCategoryPropertyLocalService getAssetCategoryPropertyLocalService() {
355 return assetCategoryPropertyLocalService;
356 }
357
358
363 public void setAssetCategoryPropertyLocalService(
364 AssetCategoryPropertyLocalService assetCategoryPropertyLocalService) {
365 this.assetCategoryPropertyLocalService = assetCategoryPropertyLocalService;
366 }
367
368
373 public AssetCategoryPropertyService getAssetCategoryPropertyService() {
374 return assetCategoryPropertyService;
375 }
376
377
382 public void setAssetCategoryPropertyService(
383 AssetCategoryPropertyService assetCategoryPropertyService) {
384 this.assetCategoryPropertyService = assetCategoryPropertyService;
385 }
386
387
392 public AssetCategoryPropertyPersistence getAssetCategoryPropertyPersistence() {
393 return assetCategoryPropertyPersistence;
394 }
395
396
401 public void setAssetCategoryPropertyPersistence(
402 AssetCategoryPropertyPersistence assetCategoryPropertyPersistence) {
403 this.assetCategoryPropertyPersistence = assetCategoryPropertyPersistence;
404 }
405
406
411 public AssetCategoryPropertyFinder getAssetCategoryPropertyFinder() {
412 return assetCategoryPropertyFinder;
413 }
414
415
420 public void setAssetCategoryPropertyFinder(
421 AssetCategoryPropertyFinder assetCategoryPropertyFinder) {
422 this.assetCategoryPropertyFinder = assetCategoryPropertyFinder;
423 }
424
425
430 public AssetEntryLocalService getAssetEntryLocalService() {
431 return assetEntryLocalService;
432 }
433
434
439 public void setAssetEntryLocalService(
440 AssetEntryLocalService assetEntryLocalService) {
441 this.assetEntryLocalService = assetEntryLocalService;
442 }
443
444
449 public AssetEntryService getAssetEntryService() {
450 return assetEntryService;
451 }
452
453
458 public void setAssetEntryService(AssetEntryService assetEntryService) {
459 this.assetEntryService = assetEntryService;
460 }
461
462
467 public AssetEntryPersistence getAssetEntryPersistence() {
468 return assetEntryPersistence;
469 }
470
471
476 public void setAssetEntryPersistence(
477 AssetEntryPersistence assetEntryPersistence) {
478 this.assetEntryPersistence = assetEntryPersistence;
479 }
480
481
486 public AssetEntryFinder getAssetEntryFinder() {
487 return assetEntryFinder;
488 }
489
490
495 public void setAssetEntryFinder(AssetEntryFinder assetEntryFinder) {
496 this.assetEntryFinder = assetEntryFinder;
497 }
498
499
504 public AssetLinkLocalService getAssetLinkLocalService() {
505 return assetLinkLocalService;
506 }
507
508
513 public void setAssetLinkLocalService(
514 AssetLinkLocalService assetLinkLocalService) {
515 this.assetLinkLocalService = assetLinkLocalService;
516 }
517
518
523 public AssetLinkPersistence getAssetLinkPersistence() {
524 return assetLinkPersistence;
525 }
526
527
532 public void setAssetLinkPersistence(
533 AssetLinkPersistence assetLinkPersistence) {
534 this.assetLinkPersistence = assetLinkPersistence;
535 }
536
537
542 public AssetTagLocalService getAssetTagLocalService() {
543 return assetTagLocalService;
544 }
545
546
551 public void setAssetTagLocalService(
552 AssetTagLocalService assetTagLocalService) {
553 this.assetTagLocalService = assetTagLocalService;
554 }
555
556
561 public AssetTagService getAssetTagService() {
562 return assetTagService;
563 }
564
565
570 public void setAssetTagService(AssetTagService assetTagService) {
571 this.assetTagService = assetTagService;
572 }
573
574
579 public AssetTagPersistence getAssetTagPersistence() {
580 return assetTagPersistence;
581 }
582
583
588 public void setAssetTagPersistence(AssetTagPersistence assetTagPersistence) {
589 this.assetTagPersistence = assetTagPersistence;
590 }
591
592
597 public AssetTagFinder getAssetTagFinder() {
598 return assetTagFinder;
599 }
600
601
606 public void setAssetTagFinder(AssetTagFinder assetTagFinder) {
607 this.assetTagFinder = assetTagFinder;
608 }
609
610
615 public AssetTagPropertyLocalService getAssetTagPropertyLocalService() {
616 return assetTagPropertyLocalService;
617 }
618
619
624 public void setAssetTagPropertyLocalService(
625 AssetTagPropertyLocalService assetTagPropertyLocalService) {
626 this.assetTagPropertyLocalService = assetTagPropertyLocalService;
627 }
628
629
634 public AssetTagPropertyService getAssetTagPropertyService() {
635 return assetTagPropertyService;
636 }
637
638
643 public void setAssetTagPropertyService(
644 AssetTagPropertyService assetTagPropertyService) {
645 this.assetTagPropertyService = assetTagPropertyService;
646 }
647
648
653 public AssetTagPropertyPersistence getAssetTagPropertyPersistence() {
654 return assetTagPropertyPersistence;
655 }
656
657
662 public void setAssetTagPropertyPersistence(
663 AssetTagPropertyPersistence assetTagPropertyPersistence) {
664 this.assetTagPropertyPersistence = assetTagPropertyPersistence;
665 }
666
667
672 public AssetTagPropertyFinder getAssetTagPropertyFinder() {
673 return assetTagPropertyFinder;
674 }
675
676
681 public void setAssetTagPropertyFinder(
682 AssetTagPropertyFinder assetTagPropertyFinder) {
683 this.assetTagPropertyFinder = assetTagPropertyFinder;
684 }
685
686
691 public AssetTagPropertyKeyFinder getAssetTagPropertyKeyFinder() {
692 return assetTagPropertyKeyFinder;
693 }
694
695
700 public void setAssetTagPropertyKeyFinder(
701 AssetTagPropertyKeyFinder assetTagPropertyKeyFinder) {
702 this.assetTagPropertyKeyFinder = assetTagPropertyKeyFinder;
703 }
704
705
710 public AssetTagStatsLocalService getAssetTagStatsLocalService() {
711 return assetTagStatsLocalService;
712 }
713
714
719 public void setAssetTagStatsLocalService(
720 AssetTagStatsLocalService assetTagStatsLocalService) {
721 this.assetTagStatsLocalService = assetTagStatsLocalService;
722 }
723
724
729 public AssetTagStatsPersistence getAssetTagStatsPersistence() {
730 return assetTagStatsPersistence;
731 }
732
733
738 public void setAssetTagStatsPersistence(
739 AssetTagStatsPersistence assetTagStatsPersistence) {
740 this.assetTagStatsPersistence = assetTagStatsPersistence;
741 }
742
743
748 public AssetVocabularyLocalService getAssetVocabularyLocalService() {
749 return assetVocabularyLocalService;
750 }
751
752
757 public void setAssetVocabularyLocalService(
758 AssetVocabularyLocalService assetVocabularyLocalService) {
759 this.assetVocabularyLocalService = assetVocabularyLocalService;
760 }
761
762
767 public AssetVocabularyService getAssetVocabularyService() {
768 return assetVocabularyService;
769 }
770
771
776 public void setAssetVocabularyService(
777 AssetVocabularyService assetVocabularyService) {
778 this.assetVocabularyService = assetVocabularyService;
779 }
780
781
786 public AssetVocabularyPersistence getAssetVocabularyPersistence() {
787 return assetVocabularyPersistence;
788 }
789
790
795 public void setAssetVocabularyPersistence(
796 AssetVocabularyPersistence assetVocabularyPersistence) {
797 this.assetVocabularyPersistence = assetVocabularyPersistence;
798 }
799
800
805 public CounterLocalService getCounterLocalService() {
806 return counterLocalService;
807 }
808
809
814 public void setCounterLocalService(CounterLocalService counterLocalService) {
815 this.counterLocalService = counterLocalService;
816 }
817
818
823 public ResourceLocalService getResourceLocalService() {
824 return resourceLocalService;
825 }
826
827
832 public void setResourceLocalService(
833 ResourceLocalService resourceLocalService) {
834 this.resourceLocalService = resourceLocalService;
835 }
836
837
842 public ResourceService getResourceService() {
843 return resourceService;
844 }
845
846
851 public void setResourceService(ResourceService resourceService) {
852 this.resourceService = resourceService;
853 }
854
855
860 public ResourcePersistence getResourcePersistence() {
861 return resourcePersistence;
862 }
863
864
869 public void setResourcePersistence(ResourcePersistence resourcePersistence) {
870 this.resourcePersistence = resourcePersistence;
871 }
872
873
878 public ResourceFinder getResourceFinder() {
879 return resourceFinder;
880 }
881
882
887 public void setResourceFinder(ResourceFinder resourceFinder) {
888 this.resourceFinder = resourceFinder;
889 }
890
891
896 public UserLocalService getUserLocalService() {
897 return userLocalService;
898 }
899
900
905 public void setUserLocalService(UserLocalService userLocalService) {
906 this.userLocalService = userLocalService;
907 }
908
909
914 public UserService getUserService() {
915 return userService;
916 }
917
918
923 public void setUserService(UserService userService) {
924 this.userService = userService;
925 }
926
927
932 public UserPersistence getUserPersistence() {
933 return userPersistence;
934 }
935
936
941 public void setUserPersistence(UserPersistence userPersistence) {
942 this.userPersistence = userPersistence;
943 }
944
945
950 public UserFinder getUserFinder() {
951 return userFinder;
952 }
953
954
959 public void setUserFinder(UserFinder userFinder) {
960 this.userFinder = userFinder;
961 }
962
963
968 protected void runSQL(String sql) throws SystemException {
969 try {
970 DataSource dataSource = assetCategoryPropertyPersistence.getDataSource();
971
972 SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
973 sql, new int[0]);
974
975 sqlUpdate.update();
976 }
977 catch (Exception e) {
978 throw new SystemException(e);
979 }
980 }
981
982 @BeanReference(type = AssetCategoryLocalService.class)
983 protected AssetCategoryLocalService assetCategoryLocalService;
984 @BeanReference(type = AssetCategoryService.class)
985 protected AssetCategoryService assetCategoryService;
986 @BeanReference(type = AssetCategoryPersistence.class)
987 protected AssetCategoryPersistence assetCategoryPersistence;
988 @BeanReference(type = AssetCategoryFinder.class)
989 protected AssetCategoryFinder assetCategoryFinder;
990 @BeanReference(type = AssetCategoryPropertyLocalService.class)
991 protected AssetCategoryPropertyLocalService assetCategoryPropertyLocalService;
992 @BeanReference(type = AssetCategoryPropertyService.class)
993 protected AssetCategoryPropertyService assetCategoryPropertyService;
994 @BeanReference(type = AssetCategoryPropertyPersistence.class)
995 protected AssetCategoryPropertyPersistence assetCategoryPropertyPersistence;
996 @BeanReference(type = AssetCategoryPropertyFinder.class)
997 protected AssetCategoryPropertyFinder assetCategoryPropertyFinder;
998 @BeanReference(type = AssetEntryLocalService.class)
999 protected AssetEntryLocalService assetEntryLocalService;
1000 @BeanReference(type = AssetEntryService.class)
1001 protected AssetEntryService assetEntryService;
1002 @BeanReference(type = AssetEntryPersistence.class)
1003 protected AssetEntryPersistence assetEntryPersistence;
1004 @BeanReference(type = AssetEntryFinder.class)
1005 protected AssetEntryFinder assetEntryFinder;
1006 @BeanReference(type = AssetLinkLocalService.class)
1007 protected AssetLinkLocalService assetLinkLocalService;
1008 @BeanReference(type = AssetLinkPersistence.class)
1009 protected AssetLinkPersistence assetLinkPersistence;
1010 @BeanReference(type = AssetTagLocalService.class)
1011 protected AssetTagLocalService assetTagLocalService;
1012 @BeanReference(type = AssetTagService.class)
1013 protected AssetTagService assetTagService;
1014 @BeanReference(type = AssetTagPersistence.class)
1015 protected AssetTagPersistence assetTagPersistence;
1016 @BeanReference(type = AssetTagFinder.class)
1017 protected AssetTagFinder assetTagFinder;
1018 @BeanReference(type = AssetTagPropertyLocalService.class)
1019 protected AssetTagPropertyLocalService assetTagPropertyLocalService;
1020 @BeanReference(type = AssetTagPropertyService.class)
1021 protected AssetTagPropertyService assetTagPropertyService;
1022 @BeanReference(type = AssetTagPropertyPersistence.class)
1023 protected AssetTagPropertyPersistence assetTagPropertyPersistence;
1024 @BeanReference(type = AssetTagPropertyFinder.class)
1025 protected AssetTagPropertyFinder assetTagPropertyFinder;
1026 @BeanReference(type = AssetTagPropertyKeyFinder.class)
1027 protected AssetTagPropertyKeyFinder assetTagPropertyKeyFinder;
1028 @BeanReference(type = AssetTagStatsLocalService.class)
1029 protected AssetTagStatsLocalService assetTagStatsLocalService;
1030 @BeanReference(type = AssetTagStatsPersistence.class)
1031 protected AssetTagStatsPersistence assetTagStatsPersistence;
1032 @BeanReference(type = AssetVocabularyLocalService.class)
1033 protected AssetVocabularyLocalService assetVocabularyLocalService;
1034 @BeanReference(type = AssetVocabularyService.class)
1035 protected AssetVocabularyService assetVocabularyService;
1036 @BeanReference(type = AssetVocabularyPersistence.class)
1037 protected AssetVocabularyPersistence assetVocabularyPersistence;
1038 @BeanReference(type = CounterLocalService.class)
1039 protected CounterLocalService counterLocalService;
1040 @BeanReference(type = ResourceLocalService.class)
1041 protected ResourceLocalService resourceLocalService;
1042 @BeanReference(type = ResourceService.class)
1043 protected ResourceService resourceService;
1044 @BeanReference(type = ResourcePersistence.class)
1045 protected ResourcePersistence resourcePersistence;
1046 @BeanReference(type = ResourceFinder.class)
1047 protected ResourceFinder resourceFinder;
1048 @BeanReference(type = UserLocalService.class)
1049 protected UserLocalService userLocalService;
1050 @BeanReference(type = UserService.class)
1051 protected UserService userService;
1052 @BeanReference(type = UserPersistence.class)
1053 protected UserPersistence userPersistence;
1054 @BeanReference(type = UserFinder.class)
1055 protected UserFinder userFinder;
1056 }