001
014
015 package com.liferay.portlet.asset.service.base;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.portal.kernel.bean.BeanReference;
020 import com.liferay.portal.kernel.dao.db.DB;
021 import com.liferay.portal.kernel.dao.db.DBFactoryUtil;
022 import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
023 import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
024 import com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery;
025 import com.liferay.portal.kernel.dao.orm.DefaultActionableDynamicQuery;
026 import com.liferay.portal.kernel.dao.orm.DynamicQuery;
027 import com.liferay.portal.kernel.dao.orm.DynamicQueryFactoryUtil;
028 import com.liferay.portal.kernel.dao.orm.Projection;
029 import com.liferay.portal.kernel.exception.PortalException;
030 import com.liferay.portal.kernel.exception.SystemException;
031 import com.liferay.portal.kernel.module.framework.service.IdentifiableOSGiService;
032 import com.liferay.portal.kernel.search.Indexable;
033 import com.liferay.portal.kernel.search.IndexableType;
034 import com.liferay.portal.kernel.util.OrderByComparator;
035 import com.liferay.portal.model.PersistedModel;
036 import com.liferay.portal.service.BaseLocalServiceImpl;
037 import com.liferay.portal.service.PersistedModelLocalServiceRegistry;
038 import com.liferay.portal.service.persistence.ClassNamePersistence;
039 import com.liferay.portal.service.persistence.CompanyPersistence;
040 import com.liferay.portal.service.persistence.GroupFinder;
041 import com.liferay.portal.service.persistence.GroupPersistence;
042 import com.liferay.portal.service.persistence.SystemEventPersistence;
043 import com.liferay.portal.service.persistence.UserFinder;
044 import com.liferay.portal.service.persistence.UserPersistence;
045 import com.liferay.portal.util.PortalUtil;
046
047 import com.liferay.portlet.asset.model.AssetEntry;
048 import com.liferay.portlet.asset.service.AssetEntryLocalService;
049 import com.liferay.portlet.asset.service.persistence.AssetCategoryFinder;
050 import com.liferay.portlet.asset.service.persistence.AssetCategoryPersistence;
051 import com.liferay.portlet.asset.service.persistence.AssetEntryFinder;
052 import com.liferay.portlet.asset.service.persistence.AssetEntryPersistence;
053 import com.liferay.portlet.asset.service.persistence.AssetLinkPersistence;
054 import com.liferay.portlet.asset.service.persistence.AssetTagFinder;
055 import com.liferay.portlet.asset.service.persistence.AssetTagPersistence;
056 import com.liferay.portlet.social.service.persistence.SocialActivityCounterFinder;
057 import com.liferay.portlet.social.service.persistence.SocialActivityCounterPersistence;
058 import com.liferay.portlet.social.service.persistence.SocialActivityFinder;
059 import com.liferay.portlet.social.service.persistence.SocialActivityPersistence;
060
061 import java.io.Serializable;
062
063 import java.util.List;
064
065 import javax.sql.DataSource;
066
067
079 @ProviderType
080 public abstract class AssetEntryLocalServiceBaseImpl
081 extends BaseLocalServiceImpl implements AssetEntryLocalService,
082 IdentifiableOSGiService {
083
088
089
095 @Indexable(type = IndexableType.REINDEX)
096 @Override
097 public AssetEntry addAssetEntry(AssetEntry assetEntry) {
098 assetEntry.setNew(true);
099
100 return assetEntryPersistence.update(assetEntry);
101 }
102
103
109 @Override
110 public AssetEntry createAssetEntry(long entryId) {
111 return assetEntryPersistence.create(entryId);
112 }
113
114
121 @Indexable(type = IndexableType.DELETE)
122 @Override
123 public AssetEntry deleteAssetEntry(long entryId) throws PortalException {
124 return assetEntryPersistence.remove(entryId);
125 }
126
127
133 @Indexable(type = IndexableType.DELETE)
134 @Override
135 public AssetEntry deleteAssetEntry(AssetEntry assetEntry) {
136 return assetEntryPersistence.remove(assetEntry);
137 }
138
139 @Override
140 public DynamicQuery dynamicQuery() {
141 Class<?> clazz = getClass();
142
143 return DynamicQueryFactoryUtil.forClass(AssetEntry.class,
144 clazz.getClassLoader());
145 }
146
147
153 @Override
154 public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery) {
155 return assetEntryPersistence.findWithDynamicQuery(dynamicQuery);
156 }
157
158
170 @Override
171 public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery, int start,
172 int end) {
173 return assetEntryPersistence.findWithDynamicQuery(dynamicQuery, start,
174 end);
175 }
176
177
190 @Override
191 public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery, int start,
192 int end, OrderByComparator<T> orderByComparator) {
193 return assetEntryPersistence.findWithDynamicQuery(dynamicQuery, start,
194 end, orderByComparator);
195 }
196
197
203 @Override
204 public long dynamicQueryCount(DynamicQuery dynamicQuery) {
205 return assetEntryPersistence.countWithDynamicQuery(dynamicQuery);
206 }
207
208
215 @Override
216 public long dynamicQueryCount(DynamicQuery dynamicQuery,
217 Projection projection) {
218 return assetEntryPersistence.countWithDynamicQuery(dynamicQuery,
219 projection);
220 }
221
222 @Override
223 public AssetEntry fetchAssetEntry(long entryId) {
224 return assetEntryPersistence.fetchByPrimaryKey(entryId);
225 }
226
227
234 @Override
235 public AssetEntry getAssetEntry(long entryId) throws PortalException {
236 return assetEntryPersistence.findByPrimaryKey(entryId);
237 }
238
239 @Override
240 public ActionableDynamicQuery getActionableDynamicQuery() {
241 ActionableDynamicQuery actionableDynamicQuery = new DefaultActionableDynamicQuery();
242
243 actionableDynamicQuery.setBaseLocalService(com.liferay.portlet.asset.service.AssetEntryLocalServiceUtil.getService());
244 actionableDynamicQuery.setClass(AssetEntry.class);
245 actionableDynamicQuery.setClassLoader(getClassLoader());
246
247 actionableDynamicQuery.setPrimaryKeyPropertyName("entryId");
248
249 return actionableDynamicQuery;
250 }
251
252 protected void initActionableDynamicQuery(
253 ActionableDynamicQuery actionableDynamicQuery) {
254 actionableDynamicQuery.setBaseLocalService(com.liferay.portlet.asset.service.AssetEntryLocalServiceUtil.getService());
255 actionableDynamicQuery.setClass(AssetEntry.class);
256 actionableDynamicQuery.setClassLoader(getClassLoader());
257
258 actionableDynamicQuery.setPrimaryKeyPropertyName("entryId");
259 }
260
261
264 @Override
265 public PersistedModel deletePersistedModel(PersistedModel persistedModel)
266 throws PortalException {
267 return assetEntryLocalService.deleteAssetEntry((AssetEntry)persistedModel);
268 }
269
270 @Override
271 public PersistedModel getPersistedModel(Serializable primaryKeyObj)
272 throws PortalException {
273 return assetEntryPersistence.findByPrimaryKey(primaryKeyObj);
274 }
275
276
287 @Override
288 public List<AssetEntry> getAssetEntries(int start, int end) {
289 return assetEntryPersistence.findAll(start, end);
290 }
291
292
297 @Override
298 public int getAssetEntriesCount() {
299 return assetEntryPersistence.countAll();
300 }
301
302
308 @Indexable(type = IndexableType.REINDEX)
309 @Override
310 public AssetEntry updateAssetEntry(AssetEntry assetEntry) {
311 return assetEntryPersistence.update(assetEntry);
312 }
313
314
316 @Override
317 public void addAssetCategoryAssetEntry(long categoryId, long entryId) {
318 assetCategoryPersistence.addAssetEntry(categoryId, entryId);
319 }
320
321
323 @Override
324 public void addAssetCategoryAssetEntry(long categoryId,
325 AssetEntry assetEntry) {
326 assetCategoryPersistence.addAssetEntry(categoryId, assetEntry);
327 }
328
329
331 @Override
332 public void addAssetCategoryAssetEntries(long categoryId, long[] entryIds) {
333 assetCategoryPersistence.addAssetEntries(categoryId, entryIds);
334 }
335
336
338 @Override
339 public void addAssetCategoryAssetEntries(long categoryId,
340 List<AssetEntry> AssetEntries) {
341 assetCategoryPersistence.addAssetEntries(categoryId, AssetEntries);
342 }
343
344
346 @Override
347 public void clearAssetCategoryAssetEntries(long categoryId) {
348 assetCategoryPersistence.clearAssetEntries(categoryId);
349 }
350
351
353 @Override
354 public void deleteAssetCategoryAssetEntry(long categoryId, long entryId) {
355 assetCategoryPersistence.removeAssetEntry(categoryId, entryId);
356 }
357
358
360 @Override
361 public void deleteAssetCategoryAssetEntry(long categoryId,
362 AssetEntry assetEntry) {
363 assetCategoryPersistence.removeAssetEntry(categoryId, assetEntry);
364 }
365
366
368 @Override
369 public void deleteAssetCategoryAssetEntries(long categoryId, long[] entryIds) {
370 assetCategoryPersistence.removeAssetEntries(categoryId, entryIds);
371 }
372
373
375 @Override
376 public void deleteAssetCategoryAssetEntries(long categoryId,
377 List<AssetEntry> AssetEntries) {
378 assetCategoryPersistence.removeAssetEntries(categoryId, AssetEntries);
379 }
380
381
387 @Override
388 public long[] getAssetCategoryPrimaryKeys(long entryId) {
389 return assetEntryPersistence.getAssetCategoryPrimaryKeys(entryId);
390 }
391
392
394 @Override
395 public List<AssetEntry> getAssetCategoryAssetEntries(long categoryId) {
396 return assetCategoryPersistence.getAssetEntries(categoryId);
397 }
398
399
401 @Override
402 public List<AssetEntry> getAssetCategoryAssetEntries(long categoryId,
403 int start, int end) {
404 return assetCategoryPersistence.getAssetEntries(categoryId, start, end);
405 }
406
407
409 @Override
410 public List<AssetEntry> getAssetCategoryAssetEntries(long categoryId,
411 int start, int end, OrderByComparator<AssetEntry> orderByComparator) {
412 return assetCategoryPersistence.getAssetEntries(categoryId, start, end,
413 orderByComparator);
414 }
415
416
418 @Override
419 public int getAssetCategoryAssetEntriesCount(long categoryId) {
420 return assetCategoryPersistence.getAssetEntriesSize(categoryId);
421 }
422
423
425 @Override
426 public boolean hasAssetCategoryAssetEntry(long categoryId, long entryId) {
427 return assetCategoryPersistence.containsAssetEntry(categoryId, entryId);
428 }
429
430
432 @Override
433 public boolean hasAssetCategoryAssetEntries(long categoryId) {
434 return assetCategoryPersistence.containsAssetEntries(categoryId);
435 }
436
437
439 @Override
440 public void setAssetCategoryAssetEntries(long categoryId, long[] entryIds) {
441 assetCategoryPersistence.setAssetEntries(categoryId, entryIds);
442 }
443
444
446 @Override
447 public void addAssetTagAssetEntry(long tagId, long entryId) {
448 assetTagPersistence.addAssetEntry(tagId, entryId);
449 }
450
451
453 @Override
454 public void addAssetTagAssetEntry(long tagId, AssetEntry assetEntry) {
455 assetTagPersistence.addAssetEntry(tagId, assetEntry);
456 }
457
458
460 @Override
461 public void addAssetTagAssetEntries(long tagId, long[] entryIds) {
462 assetTagPersistence.addAssetEntries(tagId, entryIds);
463 }
464
465
467 @Override
468 public void addAssetTagAssetEntries(long tagId,
469 List<AssetEntry> AssetEntries) {
470 assetTagPersistence.addAssetEntries(tagId, AssetEntries);
471 }
472
473
475 @Override
476 public void clearAssetTagAssetEntries(long tagId) {
477 assetTagPersistence.clearAssetEntries(tagId);
478 }
479
480
482 @Override
483 public void deleteAssetTagAssetEntry(long tagId, long entryId) {
484 assetTagPersistence.removeAssetEntry(tagId, entryId);
485 }
486
487
489 @Override
490 public void deleteAssetTagAssetEntry(long tagId, AssetEntry assetEntry) {
491 assetTagPersistence.removeAssetEntry(tagId, assetEntry);
492 }
493
494
496 @Override
497 public void deleteAssetTagAssetEntries(long tagId, long[] entryIds) {
498 assetTagPersistence.removeAssetEntries(tagId, entryIds);
499 }
500
501
503 @Override
504 public void deleteAssetTagAssetEntries(long tagId,
505 List<AssetEntry> AssetEntries) {
506 assetTagPersistence.removeAssetEntries(tagId, AssetEntries);
507 }
508
509
515 @Override
516 public long[] getAssetTagPrimaryKeys(long entryId) {
517 return assetEntryPersistence.getAssetTagPrimaryKeys(entryId);
518 }
519
520
522 @Override
523 public List<AssetEntry> getAssetTagAssetEntries(long tagId) {
524 return assetTagPersistence.getAssetEntries(tagId);
525 }
526
527
529 @Override
530 public List<AssetEntry> getAssetTagAssetEntries(long tagId, int start,
531 int end) {
532 return assetTagPersistence.getAssetEntries(tagId, start, end);
533 }
534
535
537 @Override
538 public List<AssetEntry> getAssetTagAssetEntries(long tagId, int start,
539 int end, OrderByComparator<AssetEntry> orderByComparator) {
540 return assetTagPersistence.getAssetEntries(tagId, start, end,
541 orderByComparator);
542 }
543
544
546 @Override
547 public int getAssetTagAssetEntriesCount(long tagId) {
548 return assetTagPersistence.getAssetEntriesSize(tagId);
549 }
550
551
553 @Override
554 public boolean hasAssetTagAssetEntry(long tagId, long entryId) {
555 return assetTagPersistence.containsAssetEntry(tagId, entryId);
556 }
557
558
560 @Override
561 public boolean hasAssetTagAssetEntries(long tagId) {
562 return assetTagPersistence.containsAssetEntries(tagId);
563 }
564
565
567 @Override
568 public void setAssetTagAssetEntries(long tagId, long[] entryIds) {
569 assetTagPersistence.setAssetEntries(tagId, entryIds);
570 }
571
572
577 public AssetEntryLocalService getAssetEntryLocalService() {
578 return assetEntryLocalService;
579 }
580
581
586 public void setAssetEntryLocalService(
587 AssetEntryLocalService assetEntryLocalService) {
588 this.assetEntryLocalService = assetEntryLocalService;
589 }
590
591
596 public com.liferay.portlet.asset.service.AssetEntryService getAssetEntryService() {
597 return assetEntryService;
598 }
599
600
605 public void setAssetEntryService(
606 com.liferay.portlet.asset.service.AssetEntryService assetEntryService) {
607 this.assetEntryService = assetEntryService;
608 }
609
610
615 public AssetEntryPersistence getAssetEntryPersistence() {
616 return assetEntryPersistence;
617 }
618
619
624 public void setAssetEntryPersistence(
625 AssetEntryPersistence assetEntryPersistence) {
626 this.assetEntryPersistence = assetEntryPersistence;
627 }
628
629
634 public AssetEntryFinder getAssetEntryFinder() {
635 return assetEntryFinder;
636 }
637
638
643 public void setAssetEntryFinder(AssetEntryFinder assetEntryFinder) {
644 this.assetEntryFinder = assetEntryFinder;
645 }
646
647
652 public com.liferay.counter.service.CounterLocalService getCounterLocalService() {
653 return counterLocalService;
654 }
655
656
661 public void setCounterLocalService(
662 com.liferay.counter.service.CounterLocalService counterLocalService) {
663 this.counterLocalService = counterLocalService;
664 }
665
666
671 public com.liferay.portal.service.ClassNameLocalService getClassNameLocalService() {
672 return classNameLocalService;
673 }
674
675
680 public void setClassNameLocalService(
681 com.liferay.portal.service.ClassNameLocalService classNameLocalService) {
682 this.classNameLocalService = classNameLocalService;
683 }
684
685
690 public com.liferay.portal.service.ClassNameService getClassNameService() {
691 return classNameService;
692 }
693
694
699 public void setClassNameService(
700 com.liferay.portal.service.ClassNameService classNameService) {
701 this.classNameService = classNameService;
702 }
703
704
709 public ClassNamePersistence getClassNamePersistence() {
710 return classNamePersistence;
711 }
712
713
718 public void setClassNamePersistence(
719 ClassNamePersistence classNamePersistence) {
720 this.classNamePersistence = classNamePersistence;
721 }
722
723
728 public com.liferay.portal.service.CompanyLocalService getCompanyLocalService() {
729 return companyLocalService;
730 }
731
732
737 public void setCompanyLocalService(
738 com.liferay.portal.service.CompanyLocalService companyLocalService) {
739 this.companyLocalService = companyLocalService;
740 }
741
742
747 public com.liferay.portal.service.CompanyService getCompanyService() {
748 return companyService;
749 }
750
751
756 public void setCompanyService(
757 com.liferay.portal.service.CompanyService companyService) {
758 this.companyService = companyService;
759 }
760
761
766 public CompanyPersistence getCompanyPersistence() {
767 return companyPersistence;
768 }
769
770
775 public void setCompanyPersistence(CompanyPersistence companyPersistence) {
776 this.companyPersistence = companyPersistence;
777 }
778
779
784 public com.liferay.portal.service.GroupLocalService getGroupLocalService() {
785 return groupLocalService;
786 }
787
788
793 public void setGroupLocalService(
794 com.liferay.portal.service.GroupLocalService groupLocalService) {
795 this.groupLocalService = groupLocalService;
796 }
797
798
803 public com.liferay.portal.service.GroupService getGroupService() {
804 return groupService;
805 }
806
807
812 public void setGroupService(
813 com.liferay.portal.service.GroupService groupService) {
814 this.groupService = groupService;
815 }
816
817
822 public GroupPersistence getGroupPersistence() {
823 return groupPersistence;
824 }
825
826
831 public void setGroupPersistence(GroupPersistence groupPersistence) {
832 this.groupPersistence = groupPersistence;
833 }
834
835
840 public GroupFinder getGroupFinder() {
841 return groupFinder;
842 }
843
844
849 public void setGroupFinder(GroupFinder groupFinder) {
850 this.groupFinder = groupFinder;
851 }
852
853
858 public com.liferay.portal.service.SystemEventLocalService getSystemEventLocalService() {
859 return systemEventLocalService;
860 }
861
862
867 public void setSystemEventLocalService(
868 com.liferay.portal.service.SystemEventLocalService systemEventLocalService) {
869 this.systemEventLocalService = systemEventLocalService;
870 }
871
872
877 public SystemEventPersistence getSystemEventPersistence() {
878 return systemEventPersistence;
879 }
880
881
886 public void setSystemEventPersistence(
887 SystemEventPersistence systemEventPersistence) {
888 this.systemEventPersistence = systemEventPersistence;
889 }
890
891
896 public com.liferay.portal.service.UserLocalService getUserLocalService() {
897 return userLocalService;
898 }
899
900
905 public void setUserLocalService(
906 com.liferay.portal.service.UserLocalService userLocalService) {
907 this.userLocalService = userLocalService;
908 }
909
910
915 public com.liferay.portal.service.UserService getUserService() {
916 return userService;
917 }
918
919
924 public void setUserService(
925 com.liferay.portal.service.UserService userService) {
926 this.userService = userService;
927 }
928
929
934 public UserPersistence getUserPersistence() {
935 return userPersistence;
936 }
937
938
943 public void setUserPersistence(UserPersistence userPersistence) {
944 this.userPersistence = userPersistence;
945 }
946
947
952 public UserFinder getUserFinder() {
953 return userFinder;
954 }
955
956
961 public void setUserFinder(UserFinder userFinder) {
962 this.userFinder = userFinder;
963 }
964
965
970 public com.liferay.portlet.asset.service.AssetCategoryLocalService getAssetCategoryLocalService() {
971 return assetCategoryLocalService;
972 }
973
974
979 public void setAssetCategoryLocalService(
980 com.liferay.portlet.asset.service.AssetCategoryLocalService assetCategoryLocalService) {
981 this.assetCategoryLocalService = assetCategoryLocalService;
982 }
983
984
989 public com.liferay.portlet.asset.service.AssetCategoryService getAssetCategoryService() {
990 return assetCategoryService;
991 }
992
993
998 public void setAssetCategoryService(
999 com.liferay.portlet.asset.service.AssetCategoryService assetCategoryService) {
1000 this.assetCategoryService = assetCategoryService;
1001 }
1002
1003
1008 public AssetCategoryPersistence getAssetCategoryPersistence() {
1009 return assetCategoryPersistence;
1010 }
1011
1012
1017 public void setAssetCategoryPersistence(
1018 AssetCategoryPersistence assetCategoryPersistence) {
1019 this.assetCategoryPersistence = assetCategoryPersistence;
1020 }
1021
1022
1027 public AssetCategoryFinder getAssetCategoryFinder() {
1028 return assetCategoryFinder;
1029 }
1030
1031
1036 public void setAssetCategoryFinder(AssetCategoryFinder assetCategoryFinder) {
1037 this.assetCategoryFinder = assetCategoryFinder;
1038 }
1039
1040
1045 public com.liferay.portlet.social.service.SocialActivityLocalService getSocialActivityLocalService() {
1046 return socialActivityLocalService;
1047 }
1048
1049
1054 public void setSocialActivityLocalService(
1055 com.liferay.portlet.social.service.SocialActivityLocalService socialActivityLocalService) {
1056 this.socialActivityLocalService = socialActivityLocalService;
1057 }
1058
1059
1064 public com.liferay.portlet.social.service.SocialActivityService getSocialActivityService() {
1065 return socialActivityService;
1066 }
1067
1068
1073 public void setSocialActivityService(
1074 com.liferay.portlet.social.service.SocialActivityService socialActivityService) {
1075 this.socialActivityService = socialActivityService;
1076 }
1077
1078
1083 public SocialActivityPersistence getSocialActivityPersistence() {
1084 return socialActivityPersistence;
1085 }
1086
1087
1092 public void setSocialActivityPersistence(
1093 SocialActivityPersistence socialActivityPersistence) {
1094 this.socialActivityPersistence = socialActivityPersistence;
1095 }
1096
1097
1102 public SocialActivityFinder getSocialActivityFinder() {
1103 return socialActivityFinder;
1104 }
1105
1106
1111 public void setSocialActivityFinder(
1112 SocialActivityFinder socialActivityFinder) {
1113 this.socialActivityFinder = socialActivityFinder;
1114 }
1115
1116
1121 public com.liferay.portlet.social.service.SocialActivityCounterLocalService getSocialActivityCounterLocalService() {
1122 return socialActivityCounterLocalService;
1123 }
1124
1125
1130 public void setSocialActivityCounterLocalService(
1131 com.liferay.portlet.social.service.SocialActivityCounterLocalService socialActivityCounterLocalService) {
1132 this.socialActivityCounterLocalService = socialActivityCounterLocalService;
1133 }
1134
1135
1140 public SocialActivityCounterPersistence getSocialActivityCounterPersistence() {
1141 return socialActivityCounterPersistence;
1142 }
1143
1144
1149 public void setSocialActivityCounterPersistence(
1150 SocialActivityCounterPersistence socialActivityCounterPersistence) {
1151 this.socialActivityCounterPersistence = socialActivityCounterPersistence;
1152 }
1153
1154
1159 public SocialActivityCounterFinder getSocialActivityCounterFinder() {
1160 return socialActivityCounterFinder;
1161 }
1162
1163
1168 public void setSocialActivityCounterFinder(
1169 SocialActivityCounterFinder socialActivityCounterFinder) {
1170 this.socialActivityCounterFinder = socialActivityCounterFinder;
1171 }
1172
1173
1178 public com.liferay.portlet.asset.service.AssetLinkLocalService getAssetLinkLocalService() {
1179 return assetLinkLocalService;
1180 }
1181
1182
1187 public void setAssetLinkLocalService(
1188 com.liferay.portlet.asset.service.AssetLinkLocalService assetLinkLocalService) {
1189 this.assetLinkLocalService = assetLinkLocalService;
1190 }
1191
1192
1197 public AssetLinkPersistence getAssetLinkPersistence() {
1198 return assetLinkPersistence;
1199 }
1200
1201
1206 public void setAssetLinkPersistence(
1207 AssetLinkPersistence assetLinkPersistence) {
1208 this.assetLinkPersistence = assetLinkPersistence;
1209 }
1210
1211
1216 public com.liferay.portlet.asset.service.AssetTagLocalService getAssetTagLocalService() {
1217 return assetTagLocalService;
1218 }
1219
1220
1225 public void setAssetTagLocalService(
1226 com.liferay.portlet.asset.service.AssetTagLocalService assetTagLocalService) {
1227 this.assetTagLocalService = assetTagLocalService;
1228 }
1229
1230
1235 public com.liferay.portlet.asset.service.AssetTagService getAssetTagService() {
1236 return assetTagService;
1237 }
1238
1239
1244 public void setAssetTagService(
1245 com.liferay.portlet.asset.service.AssetTagService assetTagService) {
1246 this.assetTagService = assetTagService;
1247 }
1248
1249
1254 public AssetTagPersistence getAssetTagPersistence() {
1255 return assetTagPersistence;
1256 }
1257
1258
1263 public void setAssetTagPersistence(AssetTagPersistence assetTagPersistence) {
1264 this.assetTagPersistence = assetTagPersistence;
1265 }
1266
1267
1272 public AssetTagFinder getAssetTagFinder() {
1273 return assetTagFinder;
1274 }
1275
1276
1281 public void setAssetTagFinder(AssetTagFinder assetTagFinder) {
1282 this.assetTagFinder = assetTagFinder;
1283 }
1284
1285 public void afterPropertiesSet() {
1286 persistedModelLocalServiceRegistry.register("com.liferay.portlet.asset.model.AssetEntry",
1287 assetEntryLocalService);
1288 }
1289
1290 public void destroy() {
1291 persistedModelLocalServiceRegistry.unregister(
1292 "com.liferay.portlet.asset.model.AssetEntry");
1293 }
1294
1295
1300 @Override
1301 public String getOSGiServiceIdentifier() {
1302 return AssetEntryLocalService.class.getName();
1303 }
1304
1305 protected Class<?> getModelClass() {
1306 return AssetEntry.class;
1307 }
1308
1309 protected String getModelClassName() {
1310 return AssetEntry.class.getName();
1311 }
1312
1313
1318 protected void runSQL(String sql) {
1319 try {
1320 DataSource dataSource = assetEntryPersistence.getDataSource();
1321
1322 DB db = DBFactoryUtil.getDB();
1323
1324 sql = db.buildSQL(sql);
1325 sql = PortalUtil.transformSQL(sql);
1326
1327 SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
1328 sql, new int[0]);
1329
1330 sqlUpdate.update();
1331 }
1332 catch (Exception e) {
1333 throw new SystemException(e);
1334 }
1335 }
1336
1337 @BeanReference(type = com.liferay.portlet.asset.service.AssetEntryLocalService.class)
1338 protected AssetEntryLocalService assetEntryLocalService;
1339 @BeanReference(type = com.liferay.portlet.asset.service.AssetEntryService.class)
1340 protected com.liferay.portlet.asset.service.AssetEntryService assetEntryService;
1341 @BeanReference(type = AssetEntryPersistence.class)
1342 protected AssetEntryPersistence assetEntryPersistence;
1343 @BeanReference(type = AssetEntryFinder.class)
1344 protected AssetEntryFinder assetEntryFinder;
1345 @BeanReference(type = com.liferay.counter.service.CounterLocalService.class)
1346 protected com.liferay.counter.service.CounterLocalService counterLocalService;
1347 @BeanReference(type = com.liferay.portal.service.ClassNameLocalService.class)
1348 protected com.liferay.portal.service.ClassNameLocalService classNameLocalService;
1349 @BeanReference(type = com.liferay.portal.service.ClassNameService.class)
1350 protected com.liferay.portal.service.ClassNameService classNameService;
1351 @BeanReference(type = ClassNamePersistence.class)
1352 protected ClassNamePersistence classNamePersistence;
1353 @BeanReference(type = com.liferay.portal.service.CompanyLocalService.class)
1354 protected com.liferay.portal.service.CompanyLocalService companyLocalService;
1355 @BeanReference(type = com.liferay.portal.service.CompanyService.class)
1356 protected com.liferay.portal.service.CompanyService companyService;
1357 @BeanReference(type = CompanyPersistence.class)
1358 protected CompanyPersistence companyPersistence;
1359 @BeanReference(type = com.liferay.portal.service.GroupLocalService.class)
1360 protected com.liferay.portal.service.GroupLocalService groupLocalService;
1361 @BeanReference(type = com.liferay.portal.service.GroupService.class)
1362 protected com.liferay.portal.service.GroupService groupService;
1363 @BeanReference(type = GroupPersistence.class)
1364 protected GroupPersistence groupPersistence;
1365 @BeanReference(type = GroupFinder.class)
1366 protected GroupFinder groupFinder;
1367 @BeanReference(type = com.liferay.portal.service.SystemEventLocalService.class)
1368 protected com.liferay.portal.service.SystemEventLocalService systemEventLocalService;
1369 @BeanReference(type = SystemEventPersistence.class)
1370 protected SystemEventPersistence systemEventPersistence;
1371 @BeanReference(type = com.liferay.portal.service.UserLocalService.class)
1372 protected com.liferay.portal.service.UserLocalService userLocalService;
1373 @BeanReference(type = com.liferay.portal.service.UserService.class)
1374 protected com.liferay.portal.service.UserService userService;
1375 @BeanReference(type = UserPersistence.class)
1376 protected UserPersistence userPersistence;
1377 @BeanReference(type = UserFinder.class)
1378 protected UserFinder userFinder;
1379 @BeanReference(type = com.liferay.portlet.asset.service.AssetCategoryLocalService.class)
1380 protected com.liferay.portlet.asset.service.AssetCategoryLocalService assetCategoryLocalService;
1381 @BeanReference(type = com.liferay.portlet.asset.service.AssetCategoryService.class)
1382 protected com.liferay.portlet.asset.service.AssetCategoryService assetCategoryService;
1383 @BeanReference(type = AssetCategoryPersistence.class)
1384 protected AssetCategoryPersistence assetCategoryPersistence;
1385 @BeanReference(type = AssetCategoryFinder.class)
1386 protected AssetCategoryFinder assetCategoryFinder;
1387 @BeanReference(type = com.liferay.portlet.social.service.SocialActivityLocalService.class)
1388 protected com.liferay.portlet.social.service.SocialActivityLocalService socialActivityLocalService;
1389 @BeanReference(type = com.liferay.portlet.social.service.SocialActivityService.class)
1390 protected com.liferay.portlet.social.service.SocialActivityService socialActivityService;
1391 @BeanReference(type = SocialActivityPersistence.class)
1392 protected SocialActivityPersistence socialActivityPersistence;
1393 @BeanReference(type = SocialActivityFinder.class)
1394 protected SocialActivityFinder socialActivityFinder;
1395 @BeanReference(type = com.liferay.portlet.social.service.SocialActivityCounterLocalService.class)
1396 protected com.liferay.portlet.social.service.SocialActivityCounterLocalService socialActivityCounterLocalService;
1397 @BeanReference(type = SocialActivityCounterPersistence.class)
1398 protected SocialActivityCounterPersistence socialActivityCounterPersistence;
1399 @BeanReference(type = SocialActivityCounterFinder.class)
1400 protected SocialActivityCounterFinder socialActivityCounterFinder;
1401 @BeanReference(type = com.liferay.portlet.asset.service.AssetLinkLocalService.class)
1402 protected com.liferay.portlet.asset.service.AssetLinkLocalService assetLinkLocalService;
1403 @BeanReference(type = AssetLinkPersistence.class)
1404 protected AssetLinkPersistence assetLinkPersistence;
1405 @BeanReference(type = com.liferay.portlet.asset.service.AssetTagLocalService.class)
1406 protected com.liferay.portlet.asset.service.AssetTagLocalService assetTagLocalService;
1407 @BeanReference(type = com.liferay.portlet.asset.service.AssetTagService.class)
1408 protected com.liferay.portlet.asset.service.AssetTagService assetTagService;
1409 @BeanReference(type = AssetTagPersistence.class)
1410 protected AssetTagPersistence assetTagPersistence;
1411 @BeanReference(type = AssetTagFinder.class)
1412 protected AssetTagFinder assetTagFinder;
1413 @BeanReference(type = PersistedModelLocalServiceRegistry.class)
1414 protected PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry;
1415 }