001
014
015 package com.liferay.portlet.asset.service.base;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.asset.kernel.model.AssetEntry;
020 import com.liferay.asset.kernel.service.AssetEntryLocalService;
021 import com.liferay.asset.kernel.service.persistence.AssetCategoryFinder;
022 import com.liferay.asset.kernel.service.persistence.AssetCategoryPersistence;
023 import com.liferay.asset.kernel.service.persistence.AssetEntryFinder;
024 import com.liferay.asset.kernel.service.persistence.AssetEntryPersistence;
025 import com.liferay.asset.kernel.service.persistence.AssetLinkPersistence;
026 import com.liferay.asset.kernel.service.persistence.AssetTagFinder;
027 import com.liferay.asset.kernel.service.persistence.AssetTagPersistence;
028
029 import com.liferay.portal.kernel.bean.BeanReference;
030 import com.liferay.portal.kernel.dao.db.DB;
031 import com.liferay.portal.kernel.dao.db.DBManagerUtil;
032 import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
033 import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
034 import com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery;
035 import com.liferay.portal.kernel.dao.orm.DefaultActionableDynamicQuery;
036 import com.liferay.portal.kernel.dao.orm.DynamicQuery;
037 import com.liferay.portal.kernel.dao.orm.DynamicQueryFactoryUtil;
038 import com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery;
039 import com.liferay.portal.kernel.dao.orm.Projection;
040 import com.liferay.portal.kernel.exception.PortalException;
041 import com.liferay.portal.kernel.exception.SystemException;
042 import com.liferay.portal.kernel.model.PersistedModel;
043 import com.liferay.portal.kernel.module.framework.service.IdentifiableOSGiService;
044 import com.liferay.portal.kernel.search.Indexable;
045 import com.liferay.portal.kernel.search.IndexableType;
046 import com.liferay.portal.kernel.service.BaseLocalServiceImpl;
047 import com.liferay.portal.kernel.service.PersistedModelLocalServiceRegistry;
048 import com.liferay.portal.kernel.service.persistence.ClassNamePersistence;
049 import com.liferay.portal.kernel.service.persistence.CompanyPersistence;
050 import com.liferay.portal.kernel.service.persistence.GroupFinder;
051 import com.liferay.portal.kernel.service.persistence.GroupPersistence;
052 import com.liferay.portal.kernel.service.persistence.SystemEventPersistence;
053 import com.liferay.portal.kernel.service.persistence.UserFinder;
054 import com.liferay.portal.kernel.service.persistence.UserPersistence;
055 import com.liferay.portal.kernel.util.OrderByComparator;
056 import com.liferay.portal.kernel.util.PortalUtil;
057
058 import com.liferay.social.kernel.service.persistence.SocialActivityCounterFinder;
059 import com.liferay.social.kernel.service.persistence.SocialActivityCounterPersistence;
060 import com.liferay.social.kernel.service.persistence.SocialActivityFinder;
061 import com.liferay.social.kernel.service.persistence.SocialActivityPersistence;
062
063 import java.io.Serializable;
064
065 import java.util.List;
066
067 import javax.sql.DataSource;
068
069
081 @ProviderType
082 public abstract class AssetEntryLocalServiceBaseImpl
083 extends BaseLocalServiceImpl implements AssetEntryLocalService,
084 IdentifiableOSGiService {
085
090
091
097 @Indexable(type = IndexableType.REINDEX)
098 @Override
099 public AssetEntry addAssetEntry(AssetEntry assetEntry) {
100 assetEntry.setNew(true);
101
102 return assetEntryPersistence.update(assetEntry);
103 }
104
105
111 @Override
112 public AssetEntry createAssetEntry(long entryId) {
113 return assetEntryPersistence.create(entryId);
114 }
115
116
123 @Indexable(type = IndexableType.DELETE)
124 @Override
125 public AssetEntry deleteAssetEntry(long entryId) throws PortalException {
126 return assetEntryPersistence.remove(entryId);
127 }
128
129
135 @Indexable(type = IndexableType.DELETE)
136 @Override
137 public AssetEntry deleteAssetEntry(AssetEntry assetEntry) {
138 return assetEntryPersistence.remove(assetEntry);
139 }
140
141 @Override
142 public DynamicQuery dynamicQuery() {
143 Class<?> clazz = getClass();
144
145 return DynamicQueryFactoryUtil.forClass(AssetEntry.class,
146 clazz.getClassLoader());
147 }
148
149
155 @Override
156 public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery) {
157 return assetEntryPersistence.findWithDynamicQuery(dynamicQuery);
158 }
159
160
172 @Override
173 public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery, int start,
174 int end) {
175 return assetEntryPersistence.findWithDynamicQuery(dynamicQuery, start,
176 end);
177 }
178
179
192 @Override
193 public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery, int start,
194 int end, OrderByComparator<T> orderByComparator) {
195 return assetEntryPersistence.findWithDynamicQuery(dynamicQuery, start,
196 end, orderByComparator);
197 }
198
199
205 @Override
206 public long dynamicQueryCount(DynamicQuery dynamicQuery) {
207 return assetEntryPersistence.countWithDynamicQuery(dynamicQuery);
208 }
209
210
217 @Override
218 public long dynamicQueryCount(DynamicQuery dynamicQuery,
219 Projection projection) {
220 return assetEntryPersistence.countWithDynamicQuery(dynamicQuery,
221 projection);
222 }
223
224 @Override
225 public AssetEntry fetchAssetEntry(long entryId) {
226 return assetEntryPersistence.fetchByPrimaryKey(entryId);
227 }
228
229
236 @Override
237 public AssetEntry getAssetEntry(long entryId) throws PortalException {
238 return assetEntryPersistence.findByPrimaryKey(entryId);
239 }
240
241 @Override
242 public ActionableDynamicQuery getActionableDynamicQuery() {
243 ActionableDynamicQuery actionableDynamicQuery = new DefaultActionableDynamicQuery();
244
245 actionableDynamicQuery.setBaseLocalService(com.liferay.asset.kernel.service.AssetEntryLocalServiceUtil.getService());
246 actionableDynamicQuery.setClassLoader(getClassLoader());
247 actionableDynamicQuery.setModelClass(AssetEntry.class);
248
249 actionableDynamicQuery.setPrimaryKeyPropertyName("entryId");
250
251 return actionableDynamicQuery;
252 }
253
254 @Override
255 public IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() {
256 IndexableActionableDynamicQuery indexableActionableDynamicQuery = new IndexableActionableDynamicQuery();
257
258 indexableActionableDynamicQuery.setBaseLocalService(com.liferay.asset.kernel.service.AssetEntryLocalServiceUtil.getService());
259 indexableActionableDynamicQuery.setClassLoader(getClassLoader());
260 indexableActionableDynamicQuery.setModelClass(AssetEntry.class);
261
262 indexableActionableDynamicQuery.setPrimaryKeyPropertyName("entryId");
263
264 return indexableActionableDynamicQuery;
265 }
266
267 protected void initActionableDynamicQuery(
268 ActionableDynamicQuery actionableDynamicQuery) {
269 actionableDynamicQuery.setBaseLocalService(com.liferay.asset.kernel.service.AssetEntryLocalServiceUtil.getService());
270 actionableDynamicQuery.setClassLoader(getClassLoader());
271 actionableDynamicQuery.setModelClass(AssetEntry.class);
272
273 actionableDynamicQuery.setPrimaryKeyPropertyName("entryId");
274 }
275
276
279 @Override
280 public PersistedModel deletePersistedModel(PersistedModel persistedModel)
281 throws PortalException {
282 return assetEntryLocalService.deleteAssetEntry((AssetEntry)persistedModel);
283 }
284
285 @Override
286 public PersistedModel getPersistedModel(Serializable primaryKeyObj)
287 throws PortalException {
288 return assetEntryPersistence.findByPrimaryKey(primaryKeyObj);
289 }
290
291
302 @Override
303 public List<AssetEntry> getAssetEntries(int start, int end) {
304 return assetEntryPersistence.findAll(start, end);
305 }
306
307
312 @Override
313 public int getAssetEntriesCount() {
314 return assetEntryPersistence.countAll();
315 }
316
317
323 @Indexable(type = IndexableType.REINDEX)
324 @Override
325 public AssetEntry updateAssetEntry(AssetEntry assetEntry) {
326 return assetEntryPersistence.update(assetEntry);
327 }
328
329
331 @Override
332 public void addAssetCategoryAssetEntry(long categoryId, long entryId) {
333 assetCategoryPersistence.addAssetEntry(categoryId, entryId);
334 }
335
336
338 @Override
339 public void addAssetCategoryAssetEntry(long categoryId,
340 AssetEntry assetEntry) {
341 assetCategoryPersistence.addAssetEntry(categoryId, assetEntry);
342 }
343
344
346 @Override
347 public void addAssetCategoryAssetEntries(long categoryId, long[] entryIds) {
348 assetCategoryPersistence.addAssetEntries(categoryId, entryIds);
349 }
350
351
353 @Override
354 public void addAssetCategoryAssetEntries(long categoryId,
355 List<AssetEntry> AssetEntries) {
356 assetCategoryPersistence.addAssetEntries(categoryId, AssetEntries);
357 }
358
359
361 @Override
362 public void clearAssetCategoryAssetEntries(long categoryId) {
363 assetCategoryPersistence.clearAssetEntries(categoryId);
364 }
365
366
368 @Override
369 public void deleteAssetCategoryAssetEntry(long categoryId, long entryId) {
370 assetCategoryPersistence.removeAssetEntry(categoryId, entryId);
371 }
372
373
375 @Override
376 public void deleteAssetCategoryAssetEntry(long categoryId,
377 AssetEntry assetEntry) {
378 assetCategoryPersistence.removeAssetEntry(categoryId, assetEntry);
379 }
380
381
383 @Override
384 public void deleteAssetCategoryAssetEntries(long categoryId, long[] entryIds) {
385 assetCategoryPersistence.removeAssetEntries(categoryId, entryIds);
386 }
387
388
390 @Override
391 public void deleteAssetCategoryAssetEntries(long categoryId,
392 List<AssetEntry> AssetEntries) {
393 assetCategoryPersistence.removeAssetEntries(categoryId, AssetEntries);
394 }
395
396
402 @Override
403 public long[] getAssetCategoryPrimaryKeys(long entryId) {
404 return assetEntryPersistence.getAssetCategoryPrimaryKeys(entryId);
405 }
406
407
409 @Override
410 public List<AssetEntry> getAssetCategoryAssetEntries(long categoryId) {
411 return assetCategoryPersistence.getAssetEntries(categoryId);
412 }
413
414
416 @Override
417 public List<AssetEntry> getAssetCategoryAssetEntries(long categoryId,
418 int start, int end) {
419 return assetCategoryPersistence.getAssetEntries(categoryId, start, end);
420 }
421
422
424 @Override
425 public List<AssetEntry> getAssetCategoryAssetEntries(long categoryId,
426 int start, int end, OrderByComparator<AssetEntry> orderByComparator) {
427 return assetCategoryPersistence.getAssetEntries(categoryId, start, end,
428 orderByComparator);
429 }
430
431
433 @Override
434 public int getAssetCategoryAssetEntriesCount(long categoryId) {
435 return assetCategoryPersistence.getAssetEntriesSize(categoryId);
436 }
437
438
440 @Override
441 public boolean hasAssetCategoryAssetEntry(long categoryId, long entryId) {
442 return assetCategoryPersistence.containsAssetEntry(categoryId, entryId);
443 }
444
445
447 @Override
448 public boolean hasAssetCategoryAssetEntries(long categoryId) {
449 return assetCategoryPersistence.containsAssetEntries(categoryId);
450 }
451
452
454 @Override
455 public void setAssetCategoryAssetEntries(long categoryId, long[] entryIds) {
456 assetCategoryPersistence.setAssetEntries(categoryId, entryIds);
457 }
458
459
461 @Override
462 public void addAssetTagAssetEntry(long tagId, long entryId) {
463 assetTagPersistence.addAssetEntry(tagId, entryId);
464 }
465
466
468 @Override
469 public void addAssetTagAssetEntry(long tagId, AssetEntry assetEntry) {
470 assetTagPersistence.addAssetEntry(tagId, assetEntry);
471 }
472
473
475 @Override
476 public void addAssetTagAssetEntries(long tagId, long[] entryIds) {
477 assetTagPersistence.addAssetEntries(tagId, entryIds);
478 }
479
480
482 @Override
483 public void addAssetTagAssetEntries(long tagId,
484 List<AssetEntry> AssetEntries) {
485 assetTagPersistence.addAssetEntries(tagId, AssetEntries);
486 }
487
488
490 @Override
491 public void clearAssetTagAssetEntries(long tagId) {
492 assetTagPersistence.clearAssetEntries(tagId);
493 }
494
495
497 @Override
498 public void deleteAssetTagAssetEntry(long tagId, long entryId) {
499 assetTagPersistence.removeAssetEntry(tagId, entryId);
500 }
501
502
504 @Override
505 public void deleteAssetTagAssetEntry(long tagId, AssetEntry assetEntry) {
506 assetTagPersistence.removeAssetEntry(tagId, assetEntry);
507 }
508
509
511 @Override
512 public void deleteAssetTagAssetEntries(long tagId, long[] entryIds) {
513 assetTagPersistence.removeAssetEntries(tagId, entryIds);
514 }
515
516
518 @Override
519 public void deleteAssetTagAssetEntries(long tagId,
520 List<AssetEntry> AssetEntries) {
521 assetTagPersistence.removeAssetEntries(tagId, AssetEntries);
522 }
523
524
530 @Override
531 public long[] getAssetTagPrimaryKeys(long entryId) {
532 return assetEntryPersistence.getAssetTagPrimaryKeys(entryId);
533 }
534
535
537 @Override
538 public List<AssetEntry> getAssetTagAssetEntries(long tagId) {
539 return assetTagPersistence.getAssetEntries(tagId);
540 }
541
542
544 @Override
545 public List<AssetEntry> getAssetTagAssetEntries(long tagId, int start,
546 int end) {
547 return assetTagPersistence.getAssetEntries(tagId, start, end);
548 }
549
550
552 @Override
553 public List<AssetEntry> getAssetTagAssetEntries(long tagId, int start,
554 int end, OrderByComparator<AssetEntry> orderByComparator) {
555 return assetTagPersistence.getAssetEntries(tagId, start, end,
556 orderByComparator);
557 }
558
559
561 @Override
562 public int getAssetTagAssetEntriesCount(long tagId) {
563 return assetTagPersistence.getAssetEntriesSize(tagId);
564 }
565
566
568 @Override
569 public boolean hasAssetTagAssetEntry(long tagId, long entryId) {
570 return assetTagPersistence.containsAssetEntry(tagId, entryId);
571 }
572
573
575 @Override
576 public boolean hasAssetTagAssetEntries(long tagId) {
577 return assetTagPersistence.containsAssetEntries(tagId);
578 }
579
580
582 @Override
583 public void setAssetTagAssetEntries(long tagId, long[] entryIds) {
584 assetTagPersistence.setAssetEntries(tagId, entryIds);
585 }
586
587
592 public AssetEntryLocalService getAssetEntryLocalService() {
593 return assetEntryLocalService;
594 }
595
596
601 public void setAssetEntryLocalService(
602 AssetEntryLocalService assetEntryLocalService) {
603 this.assetEntryLocalService = assetEntryLocalService;
604 }
605
606
611 public AssetEntryPersistence getAssetEntryPersistence() {
612 return assetEntryPersistence;
613 }
614
615
620 public void setAssetEntryPersistence(
621 AssetEntryPersistence assetEntryPersistence) {
622 this.assetEntryPersistence = assetEntryPersistence;
623 }
624
625
630 public AssetEntryFinder getAssetEntryFinder() {
631 return assetEntryFinder;
632 }
633
634
639 public void setAssetEntryFinder(AssetEntryFinder assetEntryFinder) {
640 this.assetEntryFinder = assetEntryFinder;
641 }
642
643
648 public com.liferay.counter.kernel.service.CounterLocalService getCounterLocalService() {
649 return counterLocalService;
650 }
651
652
657 public void setCounterLocalService(
658 com.liferay.counter.kernel.service.CounterLocalService counterLocalService) {
659 this.counterLocalService = counterLocalService;
660 }
661
662
667 public com.liferay.portal.kernel.service.ClassNameLocalService getClassNameLocalService() {
668 return classNameLocalService;
669 }
670
671
676 public void setClassNameLocalService(
677 com.liferay.portal.kernel.service.ClassNameLocalService classNameLocalService) {
678 this.classNameLocalService = classNameLocalService;
679 }
680
681
686 public ClassNamePersistence getClassNamePersistence() {
687 return classNamePersistence;
688 }
689
690
695 public void setClassNamePersistence(
696 ClassNamePersistence classNamePersistence) {
697 this.classNamePersistence = classNamePersistence;
698 }
699
700
705 public com.liferay.portal.kernel.service.CompanyLocalService getCompanyLocalService() {
706 return companyLocalService;
707 }
708
709
714 public void setCompanyLocalService(
715 com.liferay.portal.kernel.service.CompanyLocalService companyLocalService) {
716 this.companyLocalService = companyLocalService;
717 }
718
719
724 public CompanyPersistence getCompanyPersistence() {
725 return companyPersistence;
726 }
727
728
733 public void setCompanyPersistence(CompanyPersistence companyPersistence) {
734 this.companyPersistence = companyPersistence;
735 }
736
737
742 public com.liferay.portal.kernel.service.GroupLocalService getGroupLocalService() {
743 return groupLocalService;
744 }
745
746
751 public void setGroupLocalService(
752 com.liferay.portal.kernel.service.GroupLocalService groupLocalService) {
753 this.groupLocalService = groupLocalService;
754 }
755
756
761 public GroupPersistence getGroupPersistence() {
762 return groupPersistence;
763 }
764
765
770 public void setGroupPersistence(GroupPersistence groupPersistence) {
771 this.groupPersistence = groupPersistence;
772 }
773
774
779 public GroupFinder getGroupFinder() {
780 return groupFinder;
781 }
782
783
788 public void setGroupFinder(GroupFinder groupFinder) {
789 this.groupFinder = groupFinder;
790 }
791
792
797 public com.liferay.portal.kernel.service.SystemEventLocalService getSystemEventLocalService() {
798 return systemEventLocalService;
799 }
800
801
806 public void setSystemEventLocalService(
807 com.liferay.portal.kernel.service.SystemEventLocalService systemEventLocalService) {
808 this.systemEventLocalService = systemEventLocalService;
809 }
810
811
816 public SystemEventPersistence getSystemEventPersistence() {
817 return systemEventPersistence;
818 }
819
820
825 public void setSystemEventPersistence(
826 SystemEventPersistence systemEventPersistence) {
827 this.systemEventPersistence = systemEventPersistence;
828 }
829
830
835 public com.liferay.portal.kernel.service.UserLocalService getUserLocalService() {
836 return userLocalService;
837 }
838
839
844 public void setUserLocalService(
845 com.liferay.portal.kernel.service.UserLocalService userLocalService) {
846 this.userLocalService = userLocalService;
847 }
848
849
854 public UserPersistence getUserPersistence() {
855 return userPersistence;
856 }
857
858
863 public void setUserPersistence(UserPersistence userPersistence) {
864 this.userPersistence = userPersistence;
865 }
866
867
872 public UserFinder getUserFinder() {
873 return userFinder;
874 }
875
876
881 public void setUserFinder(UserFinder userFinder) {
882 this.userFinder = userFinder;
883 }
884
885
890 public com.liferay.asset.kernel.service.AssetCategoryLocalService getAssetCategoryLocalService() {
891 return assetCategoryLocalService;
892 }
893
894
899 public void setAssetCategoryLocalService(
900 com.liferay.asset.kernel.service.AssetCategoryLocalService assetCategoryLocalService) {
901 this.assetCategoryLocalService = assetCategoryLocalService;
902 }
903
904
909 public AssetCategoryPersistence getAssetCategoryPersistence() {
910 return assetCategoryPersistence;
911 }
912
913
918 public void setAssetCategoryPersistence(
919 AssetCategoryPersistence assetCategoryPersistence) {
920 this.assetCategoryPersistence = assetCategoryPersistence;
921 }
922
923
928 public AssetCategoryFinder getAssetCategoryFinder() {
929 return assetCategoryFinder;
930 }
931
932
937 public void setAssetCategoryFinder(AssetCategoryFinder assetCategoryFinder) {
938 this.assetCategoryFinder = assetCategoryFinder;
939 }
940
941
946 public com.liferay.social.kernel.service.SocialActivityLocalService getSocialActivityLocalService() {
947 return socialActivityLocalService;
948 }
949
950
955 public void setSocialActivityLocalService(
956 com.liferay.social.kernel.service.SocialActivityLocalService socialActivityLocalService) {
957 this.socialActivityLocalService = socialActivityLocalService;
958 }
959
960
965 public SocialActivityPersistence getSocialActivityPersistence() {
966 return socialActivityPersistence;
967 }
968
969
974 public void setSocialActivityPersistence(
975 SocialActivityPersistence socialActivityPersistence) {
976 this.socialActivityPersistence = socialActivityPersistence;
977 }
978
979
984 public SocialActivityFinder getSocialActivityFinder() {
985 return socialActivityFinder;
986 }
987
988
993 public void setSocialActivityFinder(
994 SocialActivityFinder socialActivityFinder) {
995 this.socialActivityFinder = socialActivityFinder;
996 }
997
998
1003 public com.liferay.social.kernel.service.SocialActivityCounterLocalService getSocialActivityCounterLocalService() {
1004 return socialActivityCounterLocalService;
1005 }
1006
1007
1012 public void setSocialActivityCounterLocalService(
1013 com.liferay.social.kernel.service.SocialActivityCounterLocalService socialActivityCounterLocalService) {
1014 this.socialActivityCounterLocalService = socialActivityCounterLocalService;
1015 }
1016
1017
1022 public SocialActivityCounterPersistence getSocialActivityCounterPersistence() {
1023 return socialActivityCounterPersistence;
1024 }
1025
1026
1031 public void setSocialActivityCounterPersistence(
1032 SocialActivityCounterPersistence socialActivityCounterPersistence) {
1033 this.socialActivityCounterPersistence = socialActivityCounterPersistence;
1034 }
1035
1036
1041 public SocialActivityCounterFinder getSocialActivityCounterFinder() {
1042 return socialActivityCounterFinder;
1043 }
1044
1045
1050 public void setSocialActivityCounterFinder(
1051 SocialActivityCounterFinder socialActivityCounterFinder) {
1052 this.socialActivityCounterFinder = socialActivityCounterFinder;
1053 }
1054
1055
1060 public com.liferay.asset.kernel.service.AssetLinkLocalService getAssetLinkLocalService() {
1061 return assetLinkLocalService;
1062 }
1063
1064
1069 public void setAssetLinkLocalService(
1070 com.liferay.asset.kernel.service.AssetLinkLocalService assetLinkLocalService) {
1071 this.assetLinkLocalService = assetLinkLocalService;
1072 }
1073
1074
1079 public AssetLinkPersistence getAssetLinkPersistence() {
1080 return assetLinkPersistence;
1081 }
1082
1083
1088 public void setAssetLinkPersistence(
1089 AssetLinkPersistence assetLinkPersistence) {
1090 this.assetLinkPersistence = assetLinkPersistence;
1091 }
1092
1093
1098 public com.liferay.asset.kernel.service.AssetTagLocalService getAssetTagLocalService() {
1099 return assetTagLocalService;
1100 }
1101
1102
1107 public void setAssetTagLocalService(
1108 com.liferay.asset.kernel.service.AssetTagLocalService assetTagLocalService) {
1109 this.assetTagLocalService = assetTagLocalService;
1110 }
1111
1112
1117 public AssetTagPersistence getAssetTagPersistence() {
1118 return assetTagPersistence;
1119 }
1120
1121
1126 public void setAssetTagPersistence(AssetTagPersistence assetTagPersistence) {
1127 this.assetTagPersistence = assetTagPersistence;
1128 }
1129
1130
1135 public AssetTagFinder getAssetTagFinder() {
1136 return assetTagFinder;
1137 }
1138
1139
1144 public void setAssetTagFinder(AssetTagFinder assetTagFinder) {
1145 this.assetTagFinder = assetTagFinder;
1146 }
1147
1148 public void afterPropertiesSet() {
1149 persistedModelLocalServiceRegistry.register("com.liferay.asset.kernel.model.AssetEntry",
1150 assetEntryLocalService);
1151 }
1152
1153 public void destroy() {
1154 persistedModelLocalServiceRegistry.unregister(
1155 "com.liferay.asset.kernel.model.AssetEntry");
1156 }
1157
1158
1163 @Override
1164 public String getOSGiServiceIdentifier() {
1165 return AssetEntryLocalService.class.getName();
1166 }
1167
1168 protected Class<?> getModelClass() {
1169 return AssetEntry.class;
1170 }
1171
1172 protected String getModelClassName() {
1173 return AssetEntry.class.getName();
1174 }
1175
1176
1181 protected void runSQL(String sql) {
1182 try {
1183 DataSource dataSource = assetEntryPersistence.getDataSource();
1184
1185 DB db = DBManagerUtil.getDB();
1186
1187 sql = db.buildSQL(sql);
1188 sql = PortalUtil.transformSQL(sql);
1189
1190 SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
1191 sql, new int[0]);
1192
1193 sqlUpdate.update();
1194 }
1195 catch (Exception e) {
1196 throw new SystemException(e);
1197 }
1198 }
1199
1200 @BeanReference(type = com.liferay.asset.kernel.service.AssetEntryLocalService.class)
1201 protected AssetEntryLocalService assetEntryLocalService;
1202 @BeanReference(type = AssetEntryPersistence.class)
1203 protected AssetEntryPersistence assetEntryPersistence;
1204 @BeanReference(type = AssetEntryFinder.class)
1205 protected AssetEntryFinder assetEntryFinder;
1206 @BeanReference(type = com.liferay.counter.kernel.service.CounterLocalService.class)
1207 protected com.liferay.counter.kernel.service.CounterLocalService counterLocalService;
1208 @BeanReference(type = com.liferay.portal.kernel.service.ClassNameLocalService.class)
1209 protected com.liferay.portal.kernel.service.ClassNameLocalService classNameLocalService;
1210 @BeanReference(type = ClassNamePersistence.class)
1211 protected ClassNamePersistence classNamePersistence;
1212 @BeanReference(type = com.liferay.portal.kernel.service.CompanyLocalService.class)
1213 protected com.liferay.portal.kernel.service.CompanyLocalService companyLocalService;
1214 @BeanReference(type = CompanyPersistence.class)
1215 protected CompanyPersistence companyPersistence;
1216 @BeanReference(type = com.liferay.portal.kernel.service.GroupLocalService.class)
1217 protected com.liferay.portal.kernel.service.GroupLocalService groupLocalService;
1218 @BeanReference(type = GroupPersistence.class)
1219 protected GroupPersistence groupPersistence;
1220 @BeanReference(type = GroupFinder.class)
1221 protected GroupFinder groupFinder;
1222 @BeanReference(type = com.liferay.portal.kernel.service.SystemEventLocalService.class)
1223 protected com.liferay.portal.kernel.service.SystemEventLocalService systemEventLocalService;
1224 @BeanReference(type = SystemEventPersistence.class)
1225 protected SystemEventPersistence systemEventPersistence;
1226 @BeanReference(type = com.liferay.portal.kernel.service.UserLocalService.class)
1227 protected com.liferay.portal.kernel.service.UserLocalService userLocalService;
1228 @BeanReference(type = UserPersistence.class)
1229 protected UserPersistence userPersistence;
1230 @BeanReference(type = UserFinder.class)
1231 protected UserFinder userFinder;
1232 @BeanReference(type = com.liferay.asset.kernel.service.AssetCategoryLocalService.class)
1233 protected com.liferay.asset.kernel.service.AssetCategoryLocalService assetCategoryLocalService;
1234 @BeanReference(type = AssetCategoryPersistence.class)
1235 protected AssetCategoryPersistence assetCategoryPersistence;
1236 @BeanReference(type = AssetCategoryFinder.class)
1237 protected AssetCategoryFinder assetCategoryFinder;
1238 @BeanReference(type = com.liferay.social.kernel.service.SocialActivityLocalService.class)
1239 protected com.liferay.social.kernel.service.SocialActivityLocalService socialActivityLocalService;
1240 @BeanReference(type = SocialActivityPersistence.class)
1241 protected SocialActivityPersistence socialActivityPersistence;
1242 @BeanReference(type = SocialActivityFinder.class)
1243 protected SocialActivityFinder socialActivityFinder;
1244 @BeanReference(type = com.liferay.social.kernel.service.SocialActivityCounterLocalService.class)
1245 protected com.liferay.social.kernel.service.SocialActivityCounterLocalService socialActivityCounterLocalService;
1246 @BeanReference(type = SocialActivityCounterPersistence.class)
1247 protected SocialActivityCounterPersistence socialActivityCounterPersistence;
1248 @BeanReference(type = SocialActivityCounterFinder.class)
1249 protected SocialActivityCounterFinder socialActivityCounterFinder;
1250 @BeanReference(type = com.liferay.asset.kernel.service.AssetLinkLocalService.class)
1251 protected com.liferay.asset.kernel.service.AssetLinkLocalService assetLinkLocalService;
1252 @BeanReference(type = AssetLinkPersistence.class)
1253 protected AssetLinkPersistence assetLinkPersistence;
1254 @BeanReference(type = com.liferay.asset.kernel.service.AssetTagLocalService.class)
1255 protected com.liferay.asset.kernel.service.AssetTagLocalService assetTagLocalService;
1256 @BeanReference(type = AssetTagPersistence.class)
1257 protected AssetTagPersistence assetTagPersistence;
1258 @BeanReference(type = AssetTagFinder.class)
1259 protected AssetTagFinder assetTagFinder;
1260 @BeanReference(type = PersistedModelLocalServiceRegistry.class)
1261 protected PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry;
1262 }