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