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.bean.BeanReference;
020 import com.liferay.portal.kernel.bean.IdentifiableBean;
021 import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
022 import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
023 import com.liferay.portal.kernel.dao.orm.DynamicQuery;
024 import com.liferay.portal.kernel.dao.orm.DynamicQueryFactoryUtil;
025 import com.liferay.portal.kernel.exception.PortalException;
026 import com.liferay.portal.kernel.exception.SystemException;
027 import com.liferay.portal.kernel.search.Indexable;
028 import com.liferay.portal.kernel.search.IndexableType;
029 import com.liferay.portal.kernel.util.OrderByComparator;
030 import com.liferay.portal.model.PersistedModel;
031 import com.liferay.portal.service.BaseLocalServiceImpl;
032 import com.liferay.portal.service.PersistedModelLocalServiceRegistry;
033 import com.liferay.portal.service.ResourceLocalService;
034 import com.liferay.portal.service.UserLocalService;
035 import com.liferay.portal.service.UserService;
036 import com.liferay.portal.service.persistence.UserFinder;
037 import com.liferay.portal.service.persistence.UserPersistence;
038
039 import com.liferay.portlet.asset.model.AssetCategoryProperty;
040 import com.liferay.portlet.asset.service.AssetCategoryLocalService;
041 import com.liferay.portlet.asset.service.AssetCategoryPropertyLocalService;
042 import com.liferay.portlet.asset.service.AssetCategoryPropertyService;
043 import com.liferay.portlet.asset.service.AssetCategoryService;
044 import com.liferay.portlet.asset.service.AssetEntryLocalService;
045 import com.liferay.portlet.asset.service.AssetEntryService;
046 import com.liferay.portlet.asset.service.AssetLinkLocalService;
047 import com.liferay.portlet.asset.service.AssetTagLocalService;
048 import com.liferay.portlet.asset.service.AssetTagPropertyLocalService;
049 import com.liferay.portlet.asset.service.AssetTagPropertyService;
050 import com.liferay.portlet.asset.service.AssetTagService;
051 import com.liferay.portlet.asset.service.AssetTagStatsLocalService;
052 import com.liferay.portlet.asset.service.AssetVocabularyLocalService;
053 import com.liferay.portlet.asset.service.AssetVocabularyService;
054 import com.liferay.portlet.asset.service.persistence.AssetCategoryFinder;
055 import com.liferay.portlet.asset.service.persistence.AssetCategoryPersistence;
056 import com.liferay.portlet.asset.service.persistence.AssetCategoryPropertyFinder;
057 import com.liferay.portlet.asset.service.persistence.AssetCategoryPropertyPersistence;
058 import com.liferay.portlet.asset.service.persistence.AssetEntryFinder;
059 import com.liferay.portlet.asset.service.persistence.AssetEntryPersistence;
060 import com.liferay.portlet.asset.service.persistence.AssetLinkFinder;
061 import com.liferay.portlet.asset.service.persistence.AssetLinkPersistence;
062 import com.liferay.portlet.asset.service.persistence.AssetTagFinder;
063 import com.liferay.portlet.asset.service.persistence.AssetTagPersistence;
064 import com.liferay.portlet.asset.service.persistence.AssetTagPropertyFinder;
065 import com.liferay.portlet.asset.service.persistence.AssetTagPropertyKeyFinder;
066 import com.liferay.portlet.asset.service.persistence.AssetTagPropertyPersistence;
067 import com.liferay.portlet.asset.service.persistence.AssetTagStatsPersistence;
068 import com.liferay.portlet.asset.service.persistence.AssetVocabularyFinder;
069 import com.liferay.portlet.asset.service.persistence.AssetVocabularyPersistence;
070
071 import java.io.Serializable;
072
073 import java.util.List;
074
075 import javax.sql.DataSource;
076
077
089 public abstract class AssetCategoryPropertyLocalServiceBaseImpl
090 extends BaseLocalServiceImpl implements AssetCategoryPropertyLocalService,
091 IdentifiableBean {
092
097
098
105 @Indexable(type = IndexableType.REINDEX)
106 public AssetCategoryProperty addAssetCategoryProperty(
107 AssetCategoryProperty assetCategoryProperty) throws SystemException {
108 assetCategoryProperty.setNew(true);
109
110 return assetCategoryPropertyPersistence.update(assetCategoryProperty);
111 }
112
113
119 public AssetCategoryProperty createAssetCategoryProperty(
120 long categoryPropertyId) {
121 return assetCategoryPropertyPersistence.create(categoryPropertyId);
122 }
123
124
132 @Indexable(type = IndexableType.DELETE)
133 public AssetCategoryProperty deleteAssetCategoryProperty(
134 long categoryPropertyId) throws PortalException, SystemException {
135 return assetCategoryPropertyPersistence.remove(categoryPropertyId);
136 }
137
138
145 @Indexable(type = IndexableType.DELETE)
146 public AssetCategoryProperty deleteAssetCategoryProperty(
147 AssetCategoryProperty assetCategoryProperty) throws SystemException {
148 return assetCategoryPropertyPersistence.remove(assetCategoryProperty);
149 }
150
151 public DynamicQuery dynamicQuery() {
152 Class<?> clazz = getClass();
153
154 return DynamicQueryFactoryUtil.forClass(AssetCategoryProperty.class,
155 clazz.getClassLoader());
156 }
157
158
165 @SuppressWarnings("rawtypes")
166 public List dynamicQuery(DynamicQuery dynamicQuery)
167 throws SystemException {
168 return assetCategoryPropertyPersistence.findWithDynamicQuery(dynamicQuery);
169 }
170
171
184 @SuppressWarnings("rawtypes")
185 public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
186 throws SystemException {
187 return assetCategoryPropertyPersistence.findWithDynamicQuery(dynamicQuery,
188 start, end);
189 }
190
191
205 @SuppressWarnings("rawtypes")
206 public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end,
207 OrderByComparator orderByComparator) throws SystemException {
208 return assetCategoryPropertyPersistence.findWithDynamicQuery(dynamicQuery,
209 start, end, orderByComparator);
210 }
211
212
219 public long dynamicQueryCount(DynamicQuery dynamicQuery)
220 throws SystemException {
221 return assetCategoryPropertyPersistence.countWithDynamicQuery(dynamicQuery);
222 }
223
224 public AssetCategoryProperty fetchAssetCategoryProperty(
225 long categoryPropertyId) throws SystemException {
226 return assetCategoryPropertyPersistence.fetchByPrimaryKey(categoryPropertyId);
227 }
228
229
237 public AssetCategoryProperty getAssetCategoryProperty(
238 long categoryPropertyId) throws PortalException, SystemException {
239 return assetCategoryPropertyPersistence.findByPrimaryKey(categoryPropertyId);
240 }
241
242 public PersistedModel getPersistedModel(Serializable primaryKeyObj)
243 throws PortalException, SystemException {
244 return assetCategoryPropertyPersistence.findByPrimaryKey(primaryKeyObj);
245 }
246
247
259 public List<AssetCategoryProperty> getAssetCategoryProperties(int start,
260 int end) throws SystemException {
261 return assetCategoryPropertyPersistence.findAll(start, end);
262 }
263
264
270 public int getAssetCategoryPropertiesCount() throws SystemException {
271 return assetCategoryPropertyPersistence.countAll();
272 }
273
274
281 @Indexable(type = IndexableType.REINDEX)
282 public AssetCategoryProperty updateAssetCategoryProperty(
283 AssetCategoryProperty assetCategoryProperty) throws SystemException {
284 return assetCategoryPropertyPersistence.update(assetCategoryProperty);
285 }
286
287
292 public AssetCategoryLocalService getAssetCategoryLocalService() {
293 return assetCategoryLocalService;
294 }
295
296
301 public void setAssetCategoryLocalService(
302 AssetCategoryLocalService assetCategoryLocalService) {
303 this.assetCategoryLocalService = assetCategoryLocalService;
304 }
305
306
311 public AssetCategoryService getAssetCategoryService() {
312 return assetCategoryService;
313 }
314
315
320 public void setAssetCategoryService(
321 AssetCategoryService assetCategoryService) {
322 this.assetCategoryService = assetCategoryService;
323 }
324
325
330 public AssetCategoryPersistence getAssetCategoryPersistence() {
331 return assetCategoryPersistence;
332 }
333
334
339 public void setAssetCategoryPersistence(
340 AssetCategoryPersistence assetCategoryPersistence) {
341 this.assetCategoryPersistence = assetCategoryPersistence;
342 }
343
344
349 public AssetCategoryFinder getAssetCategoryFinder() {
350 return assetCategoryFinder;
351 }
352
353
358 public void setAssetCategoryFinder(AssetCategoryFinder assetCategoryFinder) {
359 this.assetCategoryFinder = assetCategoryFinder;
360 }
361
362
367 public AssetCategoryPropertyLocalService getAssetCategoryPropertyLocalService() {
368 return assetCategoryPropertyLocalService;
369 }
370
371
376 public void setAssetCategoryPropertyLocalService(
377 AssetCategoryPropertyLocalService assetCategoryPropertyLocalService) {
378 this.assetCategoryPropertyLocalService = assetCategoryPropertyLocalService;
379 }
380
381
386 public AssetCategoryPropertyService getAssetCategoryPropertyService() {
387 return assetCategoryPropertyService;
388 }
389
390
395 public void setAssetCategoryPropertyService(
396 AssetCategoryPropertyService assetCategoryPropertyService) {
397 this.assetCategoryPropertyService = assetCategoryPropertyService;
398 }
399
400
405 public AssetCategoryPropertyPersistence getAssetCategoryPropertyPersistence() {
406 return assetCategoryPropertyPersistence;
407 }
408
409
414 public void setAssetCategoryPropertyPersistence(
415 AssetCategoryPropertyPersistence assetCategoryPropertyPersistence) {
416 this.assetCategoryPropertyPersistence = assetCategoryPropertyPersistence;
417 }
418
419
424 public AssetCategoryPropertyFinder getAssetCategoryPropertyFinder() {
425 return assetCategoryPropertyFinder;
426 }
427
428
433 public void setAssetCategoryPropertyFinder(
434 AssetCategoryPropertyFinder assetCategoryPropertyFinder) {
435 this.assetCategoryPropertyFinder = assetCategoryPropertyFinder;
436 }
437
438
443 public AssetEntryLocalService getAssetEntryLocalService() {
444 return assetEntryLocalService;
445 }
446
447
452 public void setAssetEntryLocalService(
453 AssetEntryLocalService assetEntryLocalService) {
454 this.assetEntryLocalService = assetEntryLocalService;
455 }
456
457
462 public AssetEntryService getAssetEntryService() {
463 return assetEntryService;
464 }
465
466
471 public void setAssetEntryService(AssetEntryService assetEntryService) {
472 this.assetEntryService = assetEntryService;
473 }
474
475
480 public AssetEntryPersistence getAssetEntryPersistence() {
481 return assetEntryPersistence;
482 }
483
484
489 public void setAssetEntryPersistence(
490 AssetEntryPersistence assetEntryPersistence) {
491 this.assetEntryPersistence = assetEntryPersistence;
492 }
493
494
499 public AssetEntryFinder getAssetEntryFinder() {
500 return assetEntryFinder;
501 }
502
503
508 public void setAssetEntryFinder(AssetEntryFinder assetEntryFinder) {
509 this.assetEntryFinder = assetEntryFinder;
510 }
511
512
517 public AssetLinkLocalService getAssetLinkLocalService() {
518 return assetLinkLocalService;
519 }
520
521
526 public void setAssetLinkLocalService(
527 AssetLinkLocalService assetLinkLocalService) {
528 this.assetLinkLocalService = assetLinkLocalService;
529 }
530
531
536 public AssetLinkPersistence getAssetLinkPersistence() {
537 return assetLinkPersistence;
538 }
539
540
545 public void setAssetLinkPersistence(
546 AssetLinkPersistence assetLinkPersistence) {
547 this.assetLinkPersistence = assetLinkPersistence;
548 }
549
550
555 public AssetLinkFinder getAssetLinkFinder() {
556 return assetLinkFinder;
557 }
558
559
564 public void setAssetLinkFinder(AssetLinkFinder assetLinkFinder) {
565 this.assetLinkFinder = assetLinkFinder;
566 }
567
568
573 public AssetTagLocalService getAssetTagLocalService() {
574 return assetTagLocalService;
575 }
576
577
582 public void setAssetTagLocalService(
583 AssetTagLocalService assetTagLocalService) {
584 this.assetTagLocalService = assetTagLocalService;
585 }
586
587
592 public AssetTagService getAssetTagService() {
593 return assetTagService;
594 }
595
596
601 public void setAssetTagService(AssetTagService assetTagService) {
602 this.assetTagService = assetTagService;
603 }
604
605
610 public AssetTagPersistence getAssetTagPersistence() {
611 return assetTagPersistence;
612 }
613
614
619 public void setAssetTagPersistence(AssetTagPersistence assetTagPersistence) {
620 this.assetTagPersistence = assetTagPersistence;
621 }
622
623
628 public AssetTagFinder getAssetTagFinder() {
629 return assetTagFinder;
630 }
631
632
637 public void setAssetTagFinder(AssetTagFinder assetTagFinder) {
638 this.assetTagFinder = assetTagFinder;
639 }
640
641
646 public AssetTagPropertyLocalService getAssetTagPropertyLocalService() {
647 return assetTagPropertyLocalService;
648 }
649
650
655 public void setAssetTagPropertyLocalService(
656 AssetTagPropertyLocalService assetTagPropertyLocalService) {
657 this.assetTagPropertyLocalService = assetTagPropertyLocalService;
658 }
659
660
665 public AssetTagPropertyService getAssetTagPropertyService() {
666 return assetTagPropertyService;
667 }
668
669
674 public void setAssetTagPropertyService(
675 AssetTagPropertyService assetTagPropertyService) {
676 this.assetTagPropertyService = assetTagPropertyService;
677 }
678
679
684 public AssetTagPropertyPersistence getAssetTagPropertyPersistence() {
685 return assetTagPropertyPersistence;
686 }
687
688
693 public void setAssetTagPropertyPersistence(
694 AssetTagPropertyPersistence assetTagPropertyPersistence) {
695 this.assetTagPropertyPersistence = assetTagPropertyPersistence;
696 }
697
698
703 public AssetTagPropertyFinder getAssetTagPropertyFinder() {
704 return assetTagPropertyFinder;
705 }
706
707
712 public void setAssetTagPropertyFinder(
713 AssetTagPropertyFinder assetTagPropertyFinder) {
714 this.assetTagPropertyFinder = assetTagPropertyFinder;
715 }
716
717
722 public AssetTagPropertyKeyFinder getAssetTagPropertyKeyFinder() {
723 return assetTagPropertyKeyFinder;
724 }
725
726
731 public void setAssetTagPropertyKeyFinder(
732 AssetTagPropertyKeyFinder assetTagPropertyKeyFinder) {
733 this.assetTagPropertyKeyFinder = assetTagPropertyKeyFinder;
734 }
735
736
741 public AssetTagStatsLocalService getAssetTagStatsLocalService() {
742 return assetTagStatsLocalService;
743 }
744
745
750 public void setAssetTagStatsLocalService(
751 AssetTagStatsLocalService assetTagStatsLocalService) {
752 this.assetTagStatsLocalService = assetTagStatsLocalService;
753 }
754
755
760 public AssetTagStatsPersistence getAssetTagStatsPersistence() {
761 return assetTagStatsPersistence;
762 }
763
764
769 public void setAssetTagStatsPersistence(
770 AssetTagStatsPersistence assetTagStatsPersistence) {
771 this.assetTagStatsPersistence = assetTagStatsPersistence;
772 }
773
774
779 public AssetVocabularyLocalService getAssetVocabularyLocalService() {
780 return assetVocabularyLocalService;
781 }
782
783
788 public void setAssetVocabularyLocalService(
789 AssetVocabularyLocalService assetVocabularyLocalService) {
790 this.assetVocabularyLocalService = assetVocabularyLocalService;
791 }
792
793
798 public AssetVocabularyService getAssetVocabularyService() {
799 return assetVocabularyService;
800 }
801
802
807 public void setAssetVocabularyService(
808 AssetVocabularyService assetVocabularyService) {
809 this.assetVocabularyService = assetVocabularyService;
810 }
811
812
817 public AssetVocabularyPersistence getAssetVocabularyPersistence() {
818 return assetVocabularyPersistence;
819 }
820
821
826 public void setAssetVocabularyPersistence(
827 AssetVocabularyPersistence assetVocabularyPersistence) {
828 this.assetVocabularyPersistence = assetVocabularyPersistence;
829 }
830
831
836 public AssetVocabularyFinder getAssetVocabularyFinder() {
837 return assetVocabularyFinder;
838 }
839
840
845 public void setAssetVocabularyFinder(
846 AssetVocabularyFinder assetVocabularyFinder) {
847 this.assetVocabularyFinder = assetVocabularyFinder;
848 }
849
850
855 public CounterLocalService getCounterLocalService() {
856 return counterLocalService;
857 }
858
859
864 public void setCounterLocalService(CounterLocalService counterLocalService) {
865 this.counterLocalService = counterLocalService;
866 }
867
868
873 public ResourceLocalService getResourceLocalService() {
874 return resourceLocalService;
875 }
876
877
882 public void setResourceLocalService(
883 ResourceLocalService resourceLocalService) {
884 this.resourceLocalService = resourceLocalService;
885 }
886
887
892 public UserLocalService getUserLocalService() {
893 return userLocalService;
894 }
895
896
901 public void setUserLocalService(UserLocalService userLocalService) {
902 this.userLocalService = userLocalService;
903 }
904
905
910 public UserService getUserService() {
911 return userService;
912 }
913
914
919 public void setUserService(UserService userService) {
920 this.userService = userService;
921 }
922
923
928 public UserPersistence getUserPersistence() {
929 return userPersistence;
930 }
931
932
937 public void setUserPersistence(UserPersistence userPersistence) {
938 this.userPersistence = userPersistence;
939 }
940
941
946 public UserFinder getUserFinder() {
947 return userFinder;
948 }
949
950
955 public void setUserFinder(UserFinder userFinder) {
956 this.userFinder = userFinder;
957 }
958
959 public void afterPropertiesSet() {
960 persistedModelLocalServiceRegistry.register("com.liferay.portlet.asset.model.AssetCategoryProperty",
961 assetCategoryPropertyLocalService);
962 }
963
964 public void destroy() {
965 persistedModelLocalServiceRegistry.unregister(
966 "com.liferay.portlet.asset.model.AssetCategoryProperty");
967 }
968
969
974 public String getBeanIdentifier() {
975 return _beanIdentifier;
976 }
977
978
983 public void setBeanIdentifier(String beanIdentifier) {
984 _beanIdentifier = beanIdentifier;
985 }
986
987 protected Class<?> getModelClass() {
988 return AssetCategoryProperty.class;
989 }
990
991 protected String getModelClassName() {
992 return AssetCategoryProperty.class.getName();
993 }
994
995
1000 protected void runSQL(String sql) throws SystemException {
1001 try {
1002 DataSource dataSource = assetCategoryPropertyPersistence.getDataSource();
1003
1004 SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
1005 sql, new int[0]);
1006
1007 sqlUpdate.update();
1008 }
1009 catch (Exception e) {
1010 throw new SystemException(e);
1011 }
1012 }
1013
1014 @BeanReference(type = AssetCategoryLocalService.class)
1015 protected AssetCategoryLocalService assetCategoryLocalService;
1016 @BeanReference(type = AssetCategoryService.class)
1017 protected AssetCategoryService assetCategoryService;
1018 @BeanReference(type = AssetCategoryPersistence.class)
1019 protected AssetCategoryPersistence assetCategoryPersistence;
1020 @BeanReference(type = AssetCategoryFinder.class)
1021 protected AssetCategoryFinder assetCategoryFinder;
1022 @BeanReference(type = AssetCategoryPropertyLocalService.class)
1023 protected AssetCategoryPropertyLocalService assetCategoryPropertyLocalService;
1024 @BeanReference(type = AssetCategoryPropertyService.class)
1025 protected AssetCategoryPropertyService assetCategoryPropertyService;
1026 @BeanReference(type = AssetCategoryPropertyPersistence.class)
1027 protected AssetCategoryPropertyPersistence assetCategoryPropertyPersistence;
1028 @BeanReference(type = AssetCategoryPropertyFinder.class)
1029 protected AssetCategoryPropertyFinder assetCategoryPropertyFinder;
1030 @BeanReference(type = AssetEntryLocalService.class)
1031 protected AssetEntryLocalService assetEntryLocalService;
1032 @BeanReference(type = AssetEntryService.class)
1033 protected AssetEntryService assetEntryService;
1034 @BeanReference(type = AssetEntryPersistence.class)
1035 protected AssetEntryPersistence assetEntryPersistence;
1036 @BeanReference(type = AssetEntryFinder.class)
1037 protected AssetEntryFinder assetEntryFinder;
1038 @BeanReference(type = AssetLinkLocalService.class)
1039 protected AssetLinkLocalService assetLinkLocalService;
1040 @BeanReference(type = AssetLinkPersistence.class)
1041 protected AssetLinkPersistence assetLinkPersistence;
1042 @BeanReference(type = AssetLinkFinder.class)
1043 protected AssetLinkFinder assetLinkFinder;
1044 @BeanReference(type = AssetTagLocalService.class)
1045 protected AssetTagLocalService assetTagLocalService;
1046 @BeanReference(type = AssetTagService.class)
1047 protected AssetTagService assetTagService;
1048 @BeanReference(type = AssetTagPersistence.class)
1049 protected AssetTagPersistence assetTagPersistence;
1050 @BeanReference(type = AssetTagFinder.class)
1051 protected AssetTagFinder assetTagFinder;
1052 @BeanReference(type = AssetTagPropertyLocalService.class)
1053 protected AssetTagPropertyLocalService assetTagPropertyLocalService;
1054 @BeanReference(type = AssetTagPropertyService.class)
1055 protected AssetTagPropertyService assetTagPropertyService;
1056 @BeanReference(type = AssetTagPropertyPersistence.class)
1057 protected AssetTagPropertyPersistence assetTagPropertyPersistence;
1058 @BeanReference(type = AssetTagPropertyFinder.class)
1059 protected AssetTagPropertyFinder assetTagPropertyFinder;
1060 @BeanReference(type = AssetTagPropertyKeyFinder.class)
1061 protected AssetTagPropertyKeyFinder assetTagPropertyKeyFinder;
1062 @BeanReference(type = AssetTagStatsLocalService.class)
1063 protected AssetTagStatsLocalService assetTagStatsLocalService;
1064 @BeanReference(type = AssetTagStatsPersistence.class)
1065 protected AssetTagStatsPersistence assetTagStatsPersistence;
1066 @BeanReference(type = AssetVocabularyLocalService.class)
1067 protected AssetVocabularyLocalService assetVocabularyLocalService;
1068 @BeanReference(type = AssetVocabularyService.class)
1069 protected AssetVocabularyService assetVocabularyService;
1070 @BeanReference(type = AssetVocabularyPersistence.class)
1071 protected AssetVocabularyPersistence assetVocabularyPersistence;
1072 @BeanReference(type = AssetVocabularyFinder.class)
1073 protected AssetVocabularyFinder assetVocabularyFinder;
1074 @BeanReference(type = CounterLocalService.class)
1075 protected CounterLocalService counterLocalService;
1076 @BeanReference(type = ResourceLocalService.class)
1077 protected ResourceLocalService resourceLocalService;
1078 @BeanReference(type = UserLocalService.class)
1079 protected UserLocalService userLocalService;
1080 @BeanReference(type = UserService.class)
1081 protected UserService userService;
1082 @BeanReference(type = UserPersistence.class)
1083 protected UserPersistence userPersistence;
1084 @BeanReference(type = UserFinder.class)
1085 protected UserFinder userFinder;
1086 @BeanReference(type = PersistedModelLocalServiceRegistry.class)
1087 protected PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry;
1088 private String _beanIdentifier;
1089 }