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.AssetTagStats;
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 AssetTagStatsLocalServiceBaseImpl
086 implements AssetTagStatsLocalService {
087
094 public AssetTagStats addAssetTagStats(AssetTagStats assetTagStats)
095 throws SystemException {
096 assetTagStats.setNew(true);
097
098 return assetTagStatsPersistence.update(assetTagStats, false);
099 }
100
101
107 public AssetTagStats createAssetTagStats(long tagStatsId) {
108 return assetTagStatsPersistence.create(tagStatsId);
109 }
110
111
118 public void deleteAssetTagStats(long tagStatsId)
119 throws PortalException, SystemException {
120 assetTagStatsPersistence.remove(tagStatsId);
121 }
122
123
129 public void deleteAssetTagStats(AssetTagStats assetTagStats)
130 throws SystemException {
131 assetTagStatsPersistence.remove(assetTagStats);
132 }
133
134
141 @SuppressWarnings("rawtypes")
142 public List dynamicQuery(DynamicQuery dynamicQuery)
143 throws SystemException {
144 return assetTagStatsPersistence.findWithDynamicQuery(dynamicQuery);
145 }
146
147
160 @SuppressWarnings("rawtypes")
161 public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
162 throws SystemException {
163 return assetTagStatsPersistence.findWithDynamicQuery(dynamicQuery,
164 start, end);
165 }
166
167
181 @SuppressWarnings("rawtypes")
182 public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end,
183 OrderByComparator orderByComparator) throws SystemException {
184 return assetTagStatsPersistence.findWithDynamicQuery(dynamicQuery,
185 start, end, orderByComparator);
186 }
187
188
195 public long dynamicQueryCount(DynamicQuery dynamicQuery)
196 throws SystemException {
197 return assetTagStatsPersistence.countWithDynamicQuery(dynamicQuery);
198 }
199
200
208 public AssetTagStats getAssetTagStats(long tagStatsId)
209 throws PortalException, SystemException {
210 return assetTagStatsPersistence.findByPrimaryKey(tagStatsId);
211 }
212
213
225 public List<AssetTagStats> getAssetTagStatses(int start, int end)
226 throws SystemException {
227 return assetTagStatsPersistence.findAll(start, end);
228 }
229
230
236 public int getAssetTagStatsesCount() throws SystemException {
237 return assetTagStatsPersistence.countAll();
238 }
239
240
247 public AssetTagStats updateAssetTagStats(AssetTagStats assetTagStats)
248 throws SystemException {
249 assetTagStats.setNew(false);
250
251 return assetTagStatsPersistence.update(assetTagStats, true);
252 }
253
254
262 public AssetTagStats updateAssetTagStats(AssetTagStats assetTagStats,
263 boolean merge) throws SystemException {
264 assetTagStats.setNew(false);
265
266 return assetTagStatsPersistence.update(assetTagStats, merge);
267 }
268
269
274 public AssetCategoryLocalService getAssetCategoryLocalService() {
275 return assetCategoryLocalService;
276 }
277
278
283 public void setAssetCategoryLocalService(
284 AssetCategoryLocalService assetCategoryLocalService) {
285 this.assetCategoryLocalService = assetCategoryLocalService;
286 }
287
288
293 public AssetCategoryService getAssetCategoryService() {
294 return assetCategoryService;
295 }
296
297
302 public void setAssetCategoryService(
303 AssetCategoryService assetCategoryService) {
304 this.assetCategoryService = assetCategoryService;
305 }
306
307
312 public AssetCategoryPersistence getAssetCategoryPersistence() {
313 return assetCategoryPersistence;
314 }
315
316
321 public void setAssetCategoryPersistence(
322 AssetCategoryPersistence assetCategoryPersistence) {
323 this.assetCategoryPersistence = assetCategoryPersistence;
324 }
325
326
331 public AssetCategoryFinder getAssetCategoryFinder() {
332 return assetCategoryFinder;
333 }
334
335
340 public void setAssetCategoryFinder(AssetCategoryFinder assetCategoryFinder) {
341 this.assetCategoryFinder = assetCategoryFinder;
342 }
343
344
349 public AssetCategoryPropertyLocalService getAssetCategoryPropertyLocalService() {
350 return assetCategoryPropertyLocalService;
351 }
352
353
358 public void setAssetCategoryPropertyLocalService(
359 AssetCategoryPropertyLocalService assetCategoryPropertyLocalService) {
360 this.assetCategoryPropertyLocalService = assetCategoryPropertyLocalService;
361 }
362
363
368 public AssetCategoryPropertyService getAssetCategoryPropertyService() {
369 return assetCategoryPropertyService;
370 }
371
372
377 public void setAssetCategoryPropertyService(
378 AssetCategoryPropertyService assetCategoryPropertyService) {
379 this.assetCategoryPropertyService = assetCategoryPropertyService;
380 }
381
382
387 public AssetCategoryPropertyPersistence getAssetCategoryPropertyPersistence() {
388 return assetCategoryPropertyPersistence;
389 }
390
391
396 public void setAssetCategoryPropertyPersistence(
397 AssetCategoryPropertyPersistence assetCategoryPropertyPersistence) {
398 this.assetCategoryPropertyPersistence = assetCategoryPropertyPersistence;
399 }
400
401
406 public AssetCategoryPropertyFinder getAssetCategoryPropertyFinder() {
407 return assetCategoryPropertyFinder;
408 }
409
410
415 public void setAssetCategoryPropertyFinder(
416 AssetCategoryPropertyFinder assetCategoryPropertyFinder) {
417 this.assetCategoryPropertyFinder = assetCategoryPropertyFinder;
418 }
419
420
425 public AssetEntryLocalService getAssetEntryLocalService() {
426 return assetEntryLocalService;
427 }
428
429
434 public void setAssetEntryLocalService(
435 AssetEntryLocalService assetEntryLocalService) {
436 this.assetEntryLocalService = assetEntryLocalService;
437 }
438
439
444 public AssetEntryService getAssetEntryService() {
445 return assetEntryService;
446 }
447
448
453 public void setAssetEntryService(AssetEntryService assetEntryService) {
454 this.assetEntryService = assetEntryService;
455 }
456
457
462 public AssetEntryPersistence getAssetEntryPersistence() {
463 return assetEntryPersistence;
464 }
465
466
471 public void setAssetEntryPersistence(
472 AssetEntryPersistence assetEntryPersistence) {
473 this.assetEntryPersistence = assetEntryPersistence;
474 }
475
476
481 public AssetEntryFinder getAssetEntryFinder() {
482 return assetEntryFinder;
483 }
484
485
490 public void setAssetEntryFinder(AssetEntryFinder assetEntryFinder) {
491 this.assetEntryFinder = assetEntryFinder;
492 }
493
494
499 public AssetLinkLocalService getAssetLinkLocalService() {
500 return assetLinkLocalService;
501 }
502
503
508 public void setAssetLinkLocalService(
509 AssetLinkLocalService assetLinkLocalService) {
510 this.assetLinkLocalService = assetLinkLocalService;
511 }
512
513
518 public AssetLinkPersistence getAssetLinkPersistence() {
519 return assetLinkPersistence;
520 }
521
522
527 public void setAssetLinkPersistence(
528 AssetLinkPersistence assetLinkPersistence) {
529 this.assetLinkPersistence = assetLinkPersistence;
530 }
531
532
537 public AssetTagLocalService getAssetTagLocalService() {
538 return assetTagLocalService;
539 }
540
541
546 public void setAssetTagLocalService(
547 AssetTagLocalService assetTagLocalService) {
548 this.assetTagLocalService = assetTagLocalService;
549 }
550
551
556 public AssetTagService getAssetTagService() {
557 return assetTagService;
558 }
559
560
565 public void setAssetTagService(AssetTagService assetTagService) {
566 this.assetTagService = assetTagService;
567 }
568
569
574 public AssetTagPersistence getAssetTagPersistence() {
575 return assetTagPersistence;
576 }
577
578
583 public void setAssetTagPersistence(AssetTagPersistence assetTagPersistence) {
584 this.assetTagPersistence = assetTagPersistence;
585 }
586
587
592 public AssetTagFinder getAssetTagFinder() {
593 return assetTagFinder;
594 }
595
596
601 public void setAssetTagFinder(AssetTagFinder assetTagFinder) {
602 this.assetTagFinder = assetTagFinder;
603 }
604
605
610 public AssetTagPropertyLocalService getAssetTagPropertyLocalService() {
611 return assetTagPropertyLocalService;
612 }
613
614
619 public void setAssetTagPropertyLocalService(
620 AssetTagPropertyLocalService assetTagPropertyLocalService) {
621 this.assetTagPropertyLocalService = assetTagPropertyLocalService;
622 }
623
624
629 public AssetTagPropertyService getAssetTagPropertyService() {
630 return assetTagPropertyService;
631 }
632
633
638 public void setAssetTagPropertyService(
639 AssetTagPropertyService assetTagPropertyService) {
640 this.assetTagPropertyService = assetTagPropertyService;
641 }
642
643
648 public AssetTagPropertyPersistence getAssetTagPropertyPersistence() {
649 return assetTagPropertyPersistence;
650 }
651
652
657 public void setAssetTagPropertyPersistence(
658 AssetTagPropertyPersistence assetTagPropertyPersistence) {
659 this.assetTagPropertyPersistence = assetTagPropertyPersistence;
660 }
661
662
667 public AssetTagPropertyFinder getAssetTagPropertyFinder() {
668 return assetTagPropertyFinder;
669 }
670
671
676 public void setAssetTagPropertyFinder(
677 AssetTagPropertyFinder assetTagPropertyFinder) {
678 this.assetTagPropertyFinder = assetTagPropertyFinder;
679 }
680
681
686 public AssetTagPropertyKeyFinder getAssetTagPropertyKeyFinder() {
687 return assetTagPropertyKeyFinder;
688 }
689
690
695 public void setAssetTagPropertyKeyFinder(
696 AssetTagPropertyKeyFinder assetTagPropertyKeyFinder) {
697 this.assetTagPropertyKeyFinder = assetTagPropertyKeyFinder;
698 }
699
700
705 public AssetTagStatsLocalService getAssetTagStatsLocalService() {
706 return assetTagStatsLocalService;
707 }
708
709
714 public void setAssetTagStatsLocalService(
715 AssetTagStatsLocalService assetTagStatsLocalService) {
716 this.assetTagStatsLocalService = assetTagStatsLocalService;
717 }
718
719
724 public AssetTagStatsPersistence getAssetTagStatsPersistence() {
725 return assetTagStatsPersistence;
726 }
727
728
733 public void setAssetTagStatsPersistence(
734 AssetTagStatsPersistence assetTagStatsPersistence) {
735 this.assetTagStatsPersistence = assetTagStatsPersistence;
736 }
737
738
743 public AssetVocabularyLocalService getAssetVocabularyLocalService() {
744 return assetVocabularyLocalService;
745 }
746
747
752 public void setAssetVocabularyLocalService(
753 AssetVocabularyLocalService assetVocabularyLocalService) {
754 this.assetVocabularyLocalService = assetVocabularyLocalService;
755 }
756
757
762 public AssetVocabularyService getAssetVocabularyService() {
763 return assetVocabularyService;
764 }
765
766
771 public void setAssetVocabularyService(
772 AssetVocabularyService assetVocabularyService) {
773 this.assetVocabularyService = assetVocabularyService;
774 }
775
776
781 public AssetVocabularyPersistence getAssetVocabularyPersistence() {
782 return assetVocabularyPersistence;
783 }
784
785
790 public void setAssetVocabularyPersistence(
791 AssetVocabularyPersistence assetVocabularyPersistence) {
792 this.assetVocabularyPersistence = assetVocabularyPersistence;
793 }
794
795
800 public CounterLocalService getCounterLocalService() {
801 return counterLocalService;
802 }
803
804
809 public void setCounterLocalService(CounterLocalService counterLocalService) {
810 this.counterLocalService = counterLocalService;
811 }
812
813
818 public ResourceLocalService getResourceLocalService() {
819 return resourceLocalService;
820 }
821
822
827 public void setResourceLocalService(
828 ResourceLocalService resourceLocalService) {
829 this.resourceLocalService = resourceLocalService;
830 }
831
832
837 public ResourceService getResourceService() {
838 return resourceService;
839 }
840
841
846 public void setResourceService(ResourceService resourceService) {
847 this.resourceService = resourceService;
848 }
849
850
855 public ResourcePersistence getResourcePersistence() {
856 return resourcePersistence;
857 }
858
859
864 public void setResourcePersistence(ResourcePersistence resourcePersistence) {
865 this.resourcePersistence = resourcePersistence;
866 }
867
868
873 public ResourceFinder getResourceFinder() {
874 return resourceFinder;
875 }
876
877
882 public void setResourceFinder(ResourceFinder resourceFinder) {
883 this.resourceFinder = resourceFinder;
884 }
885
886
891 public UserLocalService getUserLocalService() {
892 return userLocalService;
893 }
894
895
900 public void setUserLocalService(UserLocalService userLocalService) {
901 this.userLocalService = userLocalService;
902 }
903
904
909 public UserService getUserService() {
910 return userService;
911 }
912
913
918 public void setUserService(UserService userService) {
919 this.userService = userService;
920 }
921
922
927 public UserPersistence getUserPersistence() {
928 return userPersistence;
929 }
930
931
936 public void setUserPersistence(UserPersistence userPersistence) {
937 this.userPersistence = userPersistence;
938 }
939
940
945 public UserFinder getUserFinder() {
946 return userFinder;
947 }
948
949
954 public void setUserFinder(UserFinder userFinder) {
955 this.userFinder = userFinder;
956 }
957
958
963 protected void runSQL(String sql) throws SystemException {
964 try {
965 DataSource dataSource = assetTagStatsPersistence.getDataSource();
966
967 SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
968 sql, new int[0]);
969
970 sqlUpdate.update();
971 }
972 catch (Exception e) {
973 throw new SystemException(e);
974 }
975 }
976
977 @BeanReference(type = AssetCategoryLocalService.class)
978 protected AssetCategoryLocalService assetCategoryLocalService;
979 @BeanReference(type = AssetCategoryService.class)
980 protected AssetCategoryService assetCategoryService;
981 @BeanReference(type = AssetCategoryPersistence.class)
982 protected AssetCategoryPersistence assetCategoryPersistence;
983 @BeanReference(type = AssetCategoryFinder.class)
984 protected AssetCategoryFinder assetCategoryFinder;
985 @BeanReference(type = AssetCategoryPropertyLocalService.class)
986 protected AssetCategoryPropertyLocalService assetCategoryPropertyLocalService;
987 @BeanReference(type = AssetCategoryPropertyService.class)
988 protected AssetCategoryPropertyService assetCategoryPropertyService;
989 @BeanReference(type = AssetCategoryPropertyPersistence.class)
990 protected AssetCategoryPropertyPersistence assetCategoryPropertyPersistence;
991 @BeanReference(type = AssetCategoryPropertyFinder.class)
992 protected AssetCategoryPropertyFinder assetCategoryPropertyFinder;
993 @BeanReference(type = AssetEntryLocalService.class)
994 protected AssetEntryLocalService assetEntryLocalService;
995 @BeanReference(type = AssetEntryService.class)
996 protected AssetEntryService assetEntryService;
997 @BeanReference(type = AssetEntryPersistence.class)
998 protected AssetEntryPersistence assetEntryPersistence;
999 @BeanReference(type = AssetEntryFinder.class)
1000 protected AssetEntryFinder assetEntryFinder;
1001 @BeanReference(type = AssetLinkLocalService.class)
1002 protected AssetLinkLocalService assetLinkLocalService;
1003 @BeanReference(type = AssetLinkPersistence.class)
1004 protected AssetLinkPersistence assetLinkPersistence;
1005 @BeanReference(type = AssetTagLocalService.class)
1006 protected AssetTagLocalService assetTagLocalService;
1007 @BeanReference(type = AssetTagService.class)
1008 protected AssetTagService assetTagService;
1009 @BeanReference(type = AssetTagPersistence.class)
1010 protected AssetTagPersistence assetTagPersistence;
1011 @BeanReference(type = AssetTagFinder.class)
1012 protected AssetTagFinder assetTagFinder;
1013 @BeanReference(type = AssetTagPropertyLocalService.class)
1014 protected AssetTagPropertyLocalService assetTagPropertyLocalService;
1015 @BeanReference(type = AssetTagPropertyService.class)
1016 protected AssetTagPropertyService assetTagPropertyService;
1017 @BeanReference(type = AssetTagPropertyPersistence.class)
1018 protected AssetTagPropertyPersistence assetTagPropertyPersistence;
1019 @BeanReference(type = AssetTagPropertyFinder.class)
1020 protected AssetTagPropertyFinder assetTagPropertyFinder;
1021 @BeanReference(type = AssetTagPropertyKeyFinder.class)
1022 protected AssetTagPropertyKeyFinder assetTagPropertyKeyFinder;
1023 @BeanReference(type = AssetTagStatsLocalService.class)
1024 protected AssetTagStatsLocalService assetTagStatsLocalService;
1025 @BeanReference(type = AssetTagStatsPersistence.class)
1026 protected AssetTagStatsPersistence assetTagStatsPersistence;
1027 @BeanReference(type = AssetVocabularyLocalService.class)
1028 protected AssetVocabularyLocalService assetVocabularyLocalService;
1029 @BeanReference(type = AssetVocabularyService.class)
1030 protected AssetVocabularyService assetVocabularyService;
1031 @BeanReference(type = AssetVocabularyPersistence.class)
1032 protected AssetVocabularyPersistence assetVocabularyPersistence;
1033 @BeanReference(type = CounterLocalService.class)
1034 protected CounterLocalService counterLocalService;
1035 @BeanReference(type = ResourceLocalService.class)
1036 protected ResourceLocalService resourceLocalService;
1037 @BeanReference(type = ResourceService.class)
1038 protected ResourceService resourceService;
1039 @BeanReference(type = ResourcePersistence.class)
1040 protected ResourcePersistence resourcePersistence;
1041 @BeanReference(type = ResourceFinder.class)
1042 protected ResourceFinder resourceFinder;
1043 @BeanReference(type = UserLocalService.class)
1044 protected UserLocalService userLocalService;
1045 @BeanReference(type = UserService.class)
1046 protected UserService userService;
1047 @BeanReference(type = UserPersistence.class)
1048 protected UserPersistence userPersistence;
1049 @BeanReference(type = UserFinder.class)
1050 protected UserFinder userFinder;
1051 }