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.bean.IdentifiableBean;
021 import com.liferay.portal.kernel.dao.db.DB;
022 import com.liferay.portal.kernel.dao.db.DBFactoryUtil;
023 import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
024 import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
025 import com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery;
026 import com.liferay.portal.kernel.dao.orm.DefaultActionableDynamicQuery;
027 import com.liferay.portal.kernel.dao.orm.DynamicQuery;
028 import com.liferay.portal.kernel.dao.orm.DynamicQueryFactoryUtil;
029 import com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery;
030 import com.liferay.portal.kernel.dao.orm.Projection;
031 import com.liferay.portal.kernel.exception.PortalException;
032 import com.liferay.portal.kernel.exception.SystemException;
033 import com.liferay.portal.kernel.lar.ExportImportHelperUtil;
034 import com.liferay.portal.kernel.lar.ManifestSummary;
035 import com.liferay.portal.kernel.lar.PortletDataContext;
036 import com.liferay.portal.kernel.lar.StagedModelDataHandlerUtil;
037 import com.liferay.portal.kernel.lar.StagedModelType;
038 import com.liferay.portal.kernel.search.Indexable;
039 import com.liferay.portal.kernel.search.IndexableType;
040 import com.liferay.portal.kernel.util.OrderByComparator;
041 import com.liferay.portal.model.PersistedModel;
042 import com.liferay.portal.service.BaseLocalServiceImpl;
043 import com.liferay.portal.service.PersistedModelLocalServiceRegistry;
044 import com.liferay.portal.service.persistence.ClassNamePersistence;
045 import com.liferay.portal.service.persistence.UserFinder;
046 import com.liferay.portal.service.persistence.UserPersistence;
047 import com.liferay.portal.util.PortalUtil;
048
049 import com.liferay.portlet.asset.model.AssetCategory;
050 import com.liferay.portlet.asset.service.AssetCategoryLocalService;
051 import com.liferay.portlet.asset.service.persistence.AssetCategoryFinder;
052 import com.liferay.portlet.asset.service.persistence.AssetCategoryPersistence;
053 import com.liferay.portlet.asset.service.persistence.AssetCategoryPropertyFinder;
054 import com.liferay.portlet.asset.service.persistence.AssetCategoryPropertyPersistence;
055 import com.liferay.portlet.asset.service.persistence.AssetEntryFinder;
056 import com.liferay.portlet.asset.service.persistence.AssetEntryPersistence;
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.AssetVocabularyFinder;
060 import com.liferay.portlet.asset.service.persistence.AssetVocabularyPersistence;
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 AssetCategoryLocalServiceBaseImpl
082 extends BaseLocalServiceImpl implements AssetCategoryLocalService,
083 IdentifiableBean {
084
089
090
096 @Indexable(type = IndexableType.REINDEX)
097 @Override
098 public AssetCategory addAssetCategory(AssetCategory assetCategory) {
099 assetCategory.setNew(true);
100
101 return assetCategoryPersistence.update(assetCategory);
102 }
103
104
110 @Override
111 public AssetCategory createAssetCategory(long categoryId) {
112 return assetCategoryPersistence.create(categoryId);
113 }
114
115
122 @Indexable(type = IndexableType.DELETE)
123 @Override
124 public AssetCategory deleteAssetCategory(long categoryId)
125 throws PortalException {
126 return assetCategoryPersistence.remove(categoryId);
127 }
128
129
135 @Indexable(type = IndexableType.DELETE)
136 @Override
137 public AssetCategory deleteAssetCategory(AssetCategory assetCategory) {
138 return assetCategoryPersistence.remove(assetCategory);
139 }
140
141 @Override
142 public DynamicQuery dynamicQuery() {
143 Class<?> clazz = getClass();
144
145 return DynamicQueryFactoryUtil.forClass(AssetCategory.class,
146 clazz.getClassLoader());
147 }
148
149
155 @Override
156 public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery) {
157 return assetCategoryPersistence.findWithDynamicQuery(dynamicQuery);
158 }
159
160
172 @Override
173 public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery, int start,
174 int end) {
175 return assetCategoryPersistence.findWithDynamicQuery(dynamicQuery,
176 start, end);
177 }
178
179
192 @Override
193 public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery, int start,
194 int end, OrderByComparator<T> orderByComparator) {
195 return assetCategoryPersistence.findWithDynamicQuery(dynamicQuery,
196 start, end, orderByComparator);
197 }
198
199
205 @Override
206 public long dynamicQueryCount(DynamicQuery dynamicQuery) {
207 return assetCategoryPersistence.countWithDynamicQuery(dynamicQuery);
208 }
209
210
217 @Override
218 public long dynamicQueryCount(DynamicQuery dynamicQuery,
219 Projection projection) {
220 return assetCategoryPersistence.countWithDynamicQuery(dynamicQuery,
221 projection);
222 }
223
224 @Override
225 public AssetCategory fetchAssetCategory(long categoryId) {
226 return assetCategoryPersistence.fetchByPrimaryKey(categoryId);
227 }
228
229
236 @Override
237 public AssetCategory fetchAssetCategoryByUuidAndGroupId(String uuid,
238 long groupId) {
239 return assetCategoryPersistence.fetchByUUID_G(uuid, groupId);
240 }
241
242
249 @Override
250 public AssetCategory getAssetCategory(long categoryId)
251 throws PortalException {
252 return assetCategoryPersistence.findByPrimaryKey(categoryId);
253 }
254
255 @Override
256 public ActionableDynamicQuery getActionableDynamicQuery() {
257 ActionableDynamicQuery actionableDynamicQuery = new DefaultActionableDynamicQuery();
258
259 actionableDynamicQuery.setBaseLocalService(com.liferay.portlet.asset.service.AssetCategoryLocalServiceUtil.getService());
260 actionableDynamicQuery.setClass(AssetCategory.class);
261 actionableDynamicQuery.setClassLoader(getClassLoader());
262
263 actionableDynamicQuery.setPrimaryKeyPropertyName("categoryId");
264
265 return actionableDynamicQuery;
266 }
267
268 protected void initActionableDynamicQuery(
269 ActionableDynamicQuery actionableDynamicQuery) {
270 actionableDynamicQuery.setBaseLocalService(com.liferay.portlet.asset.service.AssetCategoryLocalServiceUtil.getService());
271 actionableDynamicQuery.setClass(AssetCategory.class);
272 actionableDynamicQuery.setClassLoader(getClassLoader());
273
274 actionableDynamicQuery.setPrimaryKeyPropertyName("categoryId");
275 }
276
277 @Override
278 public ExportActionableDynamicQuery getExportActionableDynamicQuery(
279 final PortletDataContext portletDataContext) {
280 final ExportActionableDynamicQuery exportActionableDynamicQuery = new ExportActionableDynamicQuery() {
281 @Override
282 public long performCount() throws PortalException {
283 ManifestSummary manifestSummary = portletDataContext.getManifestSummary();
284
285 StagedModelType stagedModelType = getStagedModelType();
286
287 long modelAdditionCount = super.performCount();
288
289 manifestSummary.addModelAdditionCount(stagedModelType.toString(),
290 modelAdditionCount);
291
292 long modelDeletionCount = ExportImportHelperUtil.getModelDeletionCount(portletDataContext,
293 stagedModelType);
294
295 manifestSummary.addModelDeletionCount(stagedModelType.toString(),
296 modelDeletionCount);
297
298 return modelAdditionCount;
299 }
300 };
301
302 initActionableDynamicQuery(exportActionableDynamicQuery);
303
304 exportActionableDynamicQuery.setAddCriteriaMethod(new ActionableDynamicQuery.AddCriteriaMethod() {
305 @Override
306 public void addCriteria(DynamicQuery dynamicQuery) {
307 portletDataContext.addDateRangeCriteria(dynamicQuery,
308 "modifiedDate");
309 }
310 });
311
312 exportActionableDynamicQuery.setCompanyId(portletDataContext.getCompanyId());
313
314 exportActionableDynamicQuery.setGroupId(portletDataContext.getScopeGroupId());
315
316 exportActionableDynamicQuery.setPerformActionMethod(new ActionableDynamicQuery.PerformActionMethod() {
317 @Override
318 public void performAction(Object object)
319 throws PortalException {
320 AssetCategory stagedModel = (AssetCategory)object;
321
322 StagedModelDataHandlerUtil.exportStagedModel(portletDataContext,
323 stagedModel);
324 }
325 });
326 exportActionableDynamicQuery.setStagedModelType(new StagedModelType(
327 PortalUtil.getClassNameId(AssetCategory.class.getName())));
328
329 return exportActionableDynamicQuery;
330 }
331
332
335 @Override
336 public PersistedModel deletePersistedModel(PersistedModel persistedModel)
337 throws PortalException {
338 return assetCategoryLocalService.deleteAssetCategory((AssetCategory)persistedModel);
339 }
340
341 @Override
342 public PersistedModel getPersistedModel(Serializable primaryKeyObj)
343 throws PortalException {
344 return assetCategoryPersistence.findByPrimaryKey(primaryKeyObj);
345 }
346
347
354 @Override
355 public List<AssetCategory> getAssetCategoriesByUuidAndCompanyId(
356 String uuid, long companyId) {
357 return assetCategoryPersistence.findByUuid_C(uuid, companyId);
358 }
359
360
370 @Override
371 public List<AssetCategory> getAssetCategoriesByUuidAndCompanyId(
372 String uuid, long companyId, int start, int end,
373 OrderByComparator<AssetCategory> orderByComparator) {
374 return assetCategoryPersistence.findByUuid_C(uuid, companyId, start,
375 end, orderByComparator);
376 }
377
378
386 @Override
387 public AssetCategory getAssetCategoryByUuidAndGroupId(String uuid,
388 long groupId) throws PortalException {
389 return assetCategoryPersistence.findByUUID_G(uuid, groupId);
390 }
391
392
403 @Override
404 public List<AssetCategory> getAssetCategories(int start, int end) {
405 return assetCategoryPersistence.findAll(start, end);
406 }
407
408
413 @Override
414 public int getAssetCategoriesCount() {
415 return assetCategoryPersistence.countAll();
416 }
417
418
424 @Indexable(type = IndexableType.REINDEX)
425 @Override
426 public AssetCategory updateAssetCategory(AssetCategory assetCategory) {
427 return assetCategoryPersistence.update(assetCategory);
428 }
429
430
432 @Override
433 public void addAssetEntryAssetCategory(long entryId, long categoryId) {
434 assetEntryPersistence.addAssetCategory(entryId, categoryId);
435 }
436
437
439 @Override
440 public void addAssetEntryAssetCategory(long entryId,
441 AssetCategory assetCategory) {
442 assetEntryPersistence.addAssetCategory(entryId, assetCategory);
443 }
444
445
447 @Override
448 public void addAssetEntryAssetCategories(long entryId, long[] categoryIds) {
449 assetEntryPersistence.addAssetCategories(entryId, categoryIds);
450 }
451
452
454 @Override
455 public void addAssetEntryAssetCategories(long entryId,
456 List<AssetCategory> AssetCategories) {
457 assetEntryPersistence.addAssetCategories(entryId, AssetCategories);
458 }
459
460
462 @Override
463 public void clearAssetEntryAssetCategories(long entryId) {
464 assetEntryPersistence.clearAssetCategories(entryId);
465 }
466
467
469 @Override
470 public void deleteAssetEntryAssetCategory(long entryId, long categoryId) {
471 assetEntryPersistence.removeAssetCategory(entryId, categoryId);
472 }
473
474
476 @Override
477 public void deleteAssetEntryAssetCategory(long entryId,
478 AssetCategory assetCategory) {
479 assetEntryPersistence.removeAssetCategory(entryId, assetCategory);
480 }
481
482
484 @Override
485 public void deleteAssetEntryAssetCategories(long entryId, long[] categoryIds) {
486 assetEntryPersistence.removeAssetCategories(entryId, categoryIds);
487 }
488
489
491 @Override
492 public void deleteAssetEntryAssetCategories(long entryId,
493 List<AssetCategory> AssetCategories) {
494 assetEntryPersistence.removeAssetCategories(entryId, AssetCategories);
495 }
496
497
503 @Override
504 public long[] getAssetEntryPrimaryKeys(long categoryId) {
505 return assetCategoryPersistence.getAssetEntryPrimaryKeys(categoryId);
506 }
507
508
510 @Override
511 public List<AssetCategory> getAssetEntryAssetCategories(long entryId) {
512 return assetEntryPersistence.getAssetCategories(entryId);
513 }
514
515
517 @Override
518 public List<AssetCategory> getAssetEntryAssetCategories(long entryId,
519 int start, int end) {
520 return assetEntryPersistence.getAssetCategories(entryId, start, end);
521 }
522
523
525 @Override
526 public List<AssetCategory> getAssetEntryAssetCategories(long entryId,
527 int start, int end, OrderByComparator<AssetCategory> orderByComparator) {
528 return assetEntryPersistence.getAssetCategories(entryId, start, end,
529 orderByComparator);
530 }
531
532
534 @Override
535 public int getAssetEntryAssetCategoriesCount(long entryId) {
536 return assetEntryPersistence.getAssetCategoriesSize(entryId);
537 }
538
539
541 @Override
542 public boolean hasAssetEntryAssetCategory(long entryId, long categoryId) {
543 return assetEntryPersistence.containsAssetCategory(entryId, categoryId);
544 }
545
546
548 @Override
549 public boolean hasAssetEntryAssetCategories(long entryId) {
550 return assetEntryPersistence.containsAssetCategories(entryId);
551 }
552
553
555 @Override
556 public void setAssetEntryAssetCategories(long entryId, long[] categoryIds) {
557 assetEntryPersistence.setAssetCategories(entryId, categoryIds);
558 }
559
560
565 public com.liferay.portlet.asset.service.AssetCategoryLocalService getAssetCategoryLocalService() {
566 return assetCategoryLocalService;
567 }
568
569
574 public void setAssetCategoryLocalService(
575 com.liferay.portlet.asset.service.AssetCategoryLocalService assetCategoryLocalService) {
576 this.assetCategoryLocalService = assetCategoryLocalService;
577 }
578
579
584 public com.liferay.portlet.asset.service.AssetCategoryService getAssetCategoryService() {
585 return assetCategoryService;
586 }
587
588
593 public void setAssetCategoryService(
594 com.liferay.portlet.asset.service.AssetCategoryService assetCategoryService) {
595 this.assetCategoryService = assetCategoryService;
596 }
597
598
603 public AssetCategoryPersistence getAssetCategoryPersistence() {
604 return assetCategoryPersistence;
605 }
606
607
612 public void setAssetCategoryPersistence(
613 AssetCategoryPersistence assetCategoryPersistence) {
614 this.assetCategoryPersistence = assetCategoryPersistence;
615 }
616
617
622 public AssetCategoryFinder getAssetCategoryFinder() {
623 return assetCategoryFinder;
624 }
625
626
631 public void setAssetCategoryFinder(AssetCategoryFinder assetCategoryFinder) {
632 this.assetCategoryFinder = assetCategoryFinder;
633 }
634
635
640 public com.liferay.counter.service.CounterLocalService getCounterLocalService() {
641 return counterLocalService;
642 }
643
644
649 public void setCounterLocalService(
650 com.liferay.counter.service.CounterLocalService counterLocalService) {
651 this.counterLocalService = counterLocalService;
652 }
653
654
659 public com.liferay.portal.service.ClassNameLocalService getClassNameLocalService() {
660 return classNameLocalService;
661 }
662
663
668 public void setClassNameLocalService(
669 com.liferay.portal.service.ClassNameLocalService classNameLocalService) {
670 this.classNameLocalService = classNameLocalService;
671 }
672
673
678 public com.liferay.portal.service.ClassNameService getClassNameService() {
679 return classNameService;
680 }
681
682
687 public void setClassNameService(
688 com.liferay.portal.service.ClassNameService classNameService) {
689 this.classNameService = classNameService;
690 }
691
692
697 public ClassNamePersistence getClassNamePersistence() {
698 return classNamePersistence;
699 }
700
701
706 public void setClassNamePersistence(
707 ClassNamePersistence classNamePersistence) {
708 this.classNamePersistence = classNamePersistence;
709 }
710
711
716 public com.liferay.portal.service.ResourceLocalService getResourceLocalService() {
717 return resourceLocalService;
718 }
719
720
725 public void setResourceLocalService(
726 com.liferay.portal.service.ResourceLocalService resourceLocalService) {
727 this.resourceLocalService = resourceLocalService;
728 }
729
730
735 public com.liferay.portal.service.UserLocalService getUserLocalService() {
736 return userLocalService;
737 }
738
739
744 public void setUserLocalService(
745 com.liferay.portal.service.UserLocalService userLocalService) {
746 this.userLocalService = userLocalService;
747 }
748
749
754 public com.liferay.portal.service.UserService getUserService() {
755 return userService;
756 }
757
758
763 public void setUserService(
764 com.liferay.portal.service.UserService userService) {
765 this.userService = userService;
766 }
767
768
773 public UserPersistence getUserPersistence() {
774 return userPersistence;
775 }
776
777
782 public void setUserPersistence(UserPersistence userPersistence) {
783 this.userPersistence = userPersistence;
784 }
785
786
791 public UserFinder getUserFinder() {
792 return userFinder;
793 }
794
795
800 public void setUserFinder(UserFinder userFinder) {
801 this.userFinder = userFinder;
802 }
803
804
809 public com.liferay.portlet.asset.service.AssetCategoryPropertyLocalService getAssetCategoryPropertyLocalService() {
810 return assetCategoryPropertyLocalService;
811 }
812
813
818 public void setAssetCategoryPropertyLocalService(
819 com.liferay.portlet.asset.service.AssetCategoryPropertyLocalService assetCategoryPropertyLocalService) {
820 this.assetCategoryPropertyLocalService = assetCategoryPropertyLocalService;
821 }
822
823
828 public com.liferay.portlet.asset.service.AssetCategoryPropertyService getAssetCategoryPropertyService() {
829 return assetCategoryPropertyService;
830 }
831
832
837 public void setAssetCategoryPropertyService(
838 com.liferay.portlet.asset.service.AssetCategoryPropertyService assetCategoryPropertyService) {
839 this.assetCategoryPropertyService = assetCategoryPropertyService;
840 }
841
842
847 public AssetCategoryPropertyPersistence getAssetCategoryPropertyPersistence() {
848 return assetCategoryPropertyPersistence;
849 }
850
851
856 public void setAssetCategoryPropertyPersistence(
857 AssetCategoryPropertyPersistence assetCategoryPropertyPersistence) {
858 this.assetCategoryPropertyPersistence = assetCategoryPropertyPersistence;
859 }
860
861
866 public AssetCategoryPropertyFinder getAssetCategoryPropertyFinder() {
867 return assetCategoryPropertyFinder;
868 }
869
870
875 public void setAssetCategoryPropertyFinder(
876 AssetCategoryPropertyFinder assetCategoryPropertyFinder) {
877 this.assetCategoryPropertyFinder = assetCategoryPropertyFinder;
878 }
879
880
885 public com.liferay.portlet.asset.service.AssetEntryLocalService getAssetEntryLocalService() {
886 return assetEntryLocalService;
887 }
888
889
894 public void setAssetEntryLocalService(
895 com.liferay.portlet.asset.service.AssetEntryLocalService assetEntryLocalService) {
896 this.assetEntryLocalService = assetEntryLocalService;
897 }
898
899
904 public com.liferay.portlet.asset.service.AssetEntryService getAssetEntryService() {
905 return assetEntryService;
906 }
907
908
913 public void setAssetEntryService(
914 com.liferay.portlet.asset.service.AssetEntryService assetEntryService) {
915 this.assetEntryService = assetEntryService;
916 }
917
918
923 public AssetEntryPersistence getAssetEntryPersistence() {
924 return assetEntryPersistence;
925 }
926
927
932 public void setAssetEntryPersistence(
933 AssetEntryPersistence assetEntryPersistence) {
934 this.assetEntryPersistence = assetEntryPersistence;
935 }
936
937
942 public AssetEntryFinder getAssetEntryFinder() {
943 return assetEntryFinder;
944 }
945
946
951 public void setAssetEntryFinder(AssetEntryFinder assetEntryFinder) {
952 this.assetEntryFinder = assetEntryFinder;
953 }
954
955
960 public com.liferay.portlet.asset.service.AssetTagLocalService getAssetTagLocalService() {
961 return assetTagLocalService;
962 }
963
964
969 public void setAssetTagLocalService(
970 com.liferay.portlet.asset.service.AssetTagLocalService assetTagLocalService) {
971 this.assetTagLocalService = assetTagLocalService;
972 }
973
974
979 public com.liferay.portlet.asset.service.AssetTagService getAssetTagService() {
980 return assetTagService;
981 }
982
983
988 public void setAssetTagService(
989 com.liferay.portlet.asset.service.AssetTagService assetTagService) {
990 this.assetTagService = assetTagService;
991 }
992
993
998 public AssetTagPersistence getAssetTagPersistence() {
999 return assetTagPersistence;
1000 }
1001
1002
1007 public void setAssetTagPersistence(AssetTagPersistence assetTagPersistence) {
1008 this.assetTagPersistence = assetTagPersistence;
1009 }
1010
1011
1016 public AssetTagFinder getAssetTagFinder() {
1017 return assetTagFinder;
1018 }
1019
1020
1025 public void setAssetTagFinder(AssetTagFinder assetTagFinder) {
1026 this.assetTagFinder = assetTagFinder;
1027 }
1028
1029
1034 public com.liferay.portlet.asset.service.AssetVocabularyLocalService getAssetVocabularyLocalService() {
1035 return assetVocabularyLocalService;
1036 }
1037
1038
1043 public void setAssetVocabularyLocalService(
1044 com.liferay.portlet.asset.service.AssetVocabularyLocalService assetVocabularyLocalService) {
1045 this.assetVocabularyLocalService = assetVocabularyLocalService;
1046 }
1047
1048
1053 public com.liferay.portlet.asset.service.AssetVocabularyService getAssetVocabularyService() {
1054 return assetVocabularyService;
1055 }
1056
1057
1062 public void setAssetVocabularyService(
1063 com.liferay.portlet.asset.service.AssetVocabularyService assetVocabularyService) {
1064 this.assetVocabularyService = assetVocabularyService;
1065 }
1066
1067
1072 public AssetVocabularyPersistence getAssetVocabularyPersistence() {
1073 return assetVocabularyPersistence;
1074 }
1075
1076
1081 public void setAssetVocabularyPersistence(
1082 AssetVocabularyPersistence assetVocabularyPersistence) {
1083 this.assetVocabularyPersistence = assetVocabularyPersistence;
1084 }
1085
1086
1091 public AssetVocabularyFinder getAssetVocabularyFinder() {
1092 return assetVocabularyFinder;
1093 }
1094
1095
1100 public void setAssetVocabularyFinder(
1101 AssetVocabularyFinder assetVocabularyFinder) {
1102 this.assetVocabularyFinder = assetVocabularyFinder;
1103 }
1104
1105 public void afterPropertiesSet() {
1106 persistedModelLocalServiceRegistry.register("com.liferay.portlet.asset.model.AssetCategory",
1107 assetCategoryLocalService);
1108 }
1109
1110 public void destroy() {
1111 persistedModelLocalServiceRegistry.unregister(
1112 "com.liferay.portlet.asset.model.AssetCategory");
1113 }
1114
1115
1120 @Override
1121 public String getBeanIdentifier() {
1122 return _beanIdentifier;
1123 }
1124
1125
1130 @Override
1131 public void setBeanIdentifier(String beanIdentifier) {
1132 _beanIdentifier = beanIdentifier;
1133 }
1134
1135 protected Class<?> getModelClass() {
1136 return AssetCategory.class;
1137 }
1138
1139 protected String getModelClassName() {
1140 return AssetCategory.class.getName();
1141 }
1142
1143
1148 protected void runSQL(String sql) {
1149 try {
1150 DataSource dataSource = assetCategoryPersistence.getDataSource();
1151
1152 DB db = DBFactoryUtil.getDB();
1153
1154 sql = db.buildSQL(sql);
1155 sql = PortalUtil.transformSQL(sql);
1156
1157 SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
1158 sql, new int[0]);
1159
1160 sqlUpdate.update();
1161 }
1162 catch (Exception e) {
1163 throw new SystemException(e);
1164 }
1165 }
1166
1167 @BeanReference(type = com.liferay.portlet.asset.service.AssetCategoryLocalService.class)
1168 protected com.liferay.portlet.asset.service.AssetCategoryLocalService assetCategoryLocalService;
1169 @BeanReference(type = com.liferay.portlet.asset.service.AssetCategoryService.class)
1170 protected com.liferay.portlet.asset.service.AssetCategoryService assetCategoryService;
1171 @BeanReference(type = AssetCategoryPersistence.class)
1172 protected AssetCategoryPersistence assetCategoryPersistence;
1173 @BeanReference(type = AssetCategoryFinder.class)
1174 protected AssetCategoryFinder assetCategoryFinder;
1175 @BeanReference(type = com.liferay.counter.service.CounterLocalService.class)
1176 protected com.liferay.counter.service.CounterLocalService counterLocalService;
1177 @BeanReference(type = com.liferay.portal.service.ClassNameLocalService.class)
1178 protected com.liferay.portal.service.ClassNameLocalService classNameLocalService;
1179 @BeanReference(type = com.liferay.portal.service.ClassNameService.class)
1180 protected com.liferay.portal.service.ClassNameService classNameService;
1181 @BeanReference(type = ClassNamePersistence.class)
1182 protected ClassNamePersistence classNamePersistence;
1183 @BeanReference(type = com.liferay.portal.service.ResourceLocalService.class)
1184 protected com.liferay.portal.service.ResourceLocalService resourceLocalService;
1185 @BeanReference(type = com.liferay.portal.service.UserLocalService.class)
1186 protected com.liferay.portal.service.UserLocalService userLocalService;
1187 @BeanReference(type = com.liferay.portal.service.UserService.class)
1188 protected com.liferay.portal.service.UserService userService;
1189 @BeanReference(type = UserPersistence.class)
1190 protected UserPersistence userPersistence;
1191 @BeanReference(type = UserFinder.class)
1192 protected UserFinder userFinder;
1193 @BeanReference(type = com.liferay.portlet.asset.service.AssetCategoryPropertyLocalService.class)
1194 protected com.liferay.portlet.asset.service.AssetCategoryPropertyLocalService assetCategoryPropertyLocalService;
1195 @BeanReference(type = com.liferay.portlet.asset.service.AssetCategoryPropertyService.class)
1196 protected com.liferay.portlet.asset.service.AssetCategoryPropertyService assetCategoryPropertyService;
1197 @BeanReference(type = AssetCategoryPropertyPersistence.class)
1198 protected AssetCategoryPropertyPersistence assetCategoryPropertyPersistence;
1199 @BeanReference(type = AssetCategoryPropertyFinder.class)
1200 protected AssetCategoryPropertyFinder assetCategoryPropertyFinder;
1201 @BeanReference(type = com.liferay.portlet.asset.service.AssetEntryLocalService.class)
1202 protected com.liferay.portlet.asset.service.AssetEntryLocalService assetEntryLocalService;
1203 @BeanReference(type = com.liferay.portlet.asset.service.AssetEntryService.class)
1204 protected com.liferay.portlet.asset.service.AssetEntryService assetEntryService;
1205 @BeanReference(type = AssetEntryPersistence.class)
1206 protected AssetEntryPersistence assetEntryPersistence;
1207 @BeanReference(type = AssetEntryFinder.class)
1208 protected AssetEntryFinder assetEntryFinder;
1209 @BeanReference(type = com.liferay.portlet.asset.service.AssetTagLocalService.class)
1210 protected com.liferay.portlet.asset.service.AssetTagLocalService assetTagLocalService;
1211 @BeanReference(type = com.liferay.portlet.asset.service.AssetTagService.class)
1212 protected com.liferay.portlet.asset.service.AssetTagService assetTagService;
1213 @BeanReference(type = AssetTagPersistence.class)
1214 protected AssetTagPersistence assetTagPersistence;
1215 @BeanReference(type = AssetTagFinder.class)
1216 protected AssetTagFinder assetTagFinder;
1217 @BeanReference(type = com.liferay.portlet.asset.service.AssetVocabularyLocalService.class)
1218 protected com.liferay.portlet.asset.service.AssetVocabularyLocalService assetVocabularyLocalService;
1219 @BeanReference(type = com.liferay.portlet.asset.service.AssetVocabularyService.class)
1220 protected com.liferay.portlet.asset.service.AssetVocabularyService assetVocabularyService;
1221 @BeanReference(type = AssetVocabularyPersistence.class)
1222 protected AssetVocabularyPersistence assetVocabularyPersistence;
1223 @BeanReference(type = AssetVocabularyFinder.class)
1224 protected AssetVocabularyFinder assetVocabularyFinder;
1225 @BeanReference(type = PersistedModelLocalServiceRegistry.class)
1226 protected PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry;
1227 private String _beanIdentifier;
1228 }