001
014
015 package com.liferay.portlet.messageboards.service.base;
016
017 import com.liferay.portal.kernel.bean.BeanReference;
018 import com.liferay.portal.kernel.bean.IdentifiableBean;
019 import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
020 import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
021 import com.liferay.portal.kernel.dao.orm.DynamicQuery;
022 import com.liferay.portal.kernel.dao.orm.DynamicQueryFactoryUtil;
023 import com.liferay.portal.kernel.dao.orm.Projection;
024 import com.liferay.portal.kernel.exception.PortalException;
025 import com.liferay.portal.kernel.exception.SystemException;
026 import com.liferay.portal.kernel.search.Indexable;
027 import com.liferay.portal.kernel.search.IndexableType;
028 import com.liferay.portal.kernel.util.OrderByComparator;
029 import com.liferay.portal.model.PersistedModel;
030 import com.liferay.portal.service.BaseLocalServiceImpl;
031 import com.liferay.portal.service.PersistedModelLocalServiceRegistry;
032 import com.liferay.portal.service.persistence.GroupFinder;
033 import com.liferay.portal.service.persistence.GroupPersistence;
034 import com.liferay.portal.service.persistence.SubscriptionPersistence;
035 import com.liferay.portal.service.persistence.SystemEventPersistence;
036 import com.liferay.portal.service.persistence.UserFinder;
037 import com.liferay.portal.service.persistence.UserPersistence;
038
039 import com.liferay.portlet.asset.service.persistence.AssetEntryFinder;
040 import com.liferay.portlet.asset.service.persistence.AssetEntryPersistence;
041 import com.liferay.portlet.asset.service.persistence.AssetTagFinder;
042 import com.liferay.portlet.asset.service.persistence.AssetTagPersistence;
043 import com.liferay.portlet.expando.service.persistence.ExpandoRowPersistence;
044 import com.liferay.portlet.messageboards.model.MBCategory;
045 import com.liferay.portlet.messageboards.service.MBCategoryLocalService;
046 import com.liferay.portlet.messageboards.service.persistence.MBBanPersistence;
047 import com.liferay.portlet.messageboards.service.persistence.MBCategoryFinder;
048 import com.liferay.portlet.messageboards.service.persistence.MBCategoryPersistence;
049 import com.liferay.portlet.messageboards.service.persistence.MBDiscussionPersistence;
050 import com.liferay.portlet.messageboards.service.persistence.MBMailingListPersistence;
051 import com.liferay.portlet.messageboards.service.persistence.MBMessageFinder;
052 import com.liferay.portlet.messageboards.service.persistence.MBMessagePersistence;
053 import com.liferay.portlet.messageboards.service.persistence.MBStatsUserPersistence;
054 import com.liferay.portlet.messageboards.service.persistence.MBThreadFinder;
055 import com.liferay.portlet.messageboards.service.persistence.MBThreadFlagPersistence;
056 import com.liferay.portlet.messageboards.service.persistence.MBThreadPersistence;
057 import com.liferay.portlet.trash.service.persistence.TrashEntryPersistence;
058 import com.liferay.portlet.trash.service.persistence.TrashVersionPersistence;
059
060 import java.io.Serializable;
061
062 import java.util.List;
063
064 import javax.sql.DataSource;
065
066
078 public abstract class MBCategoryLocalServiceBaseImpl
079 extends BaseLocalServiceImpl implements MBCategoryLocalService,
080 IdentifiableBean {
081
086
087
094 @Indexable(type = IndexableType.REINDEX)
095 @Override
096 public MBCategory addMBCategory(MBCategory mbCategory)
097 throws SystemException {
098 mbCategory.setNew(true);
099
100 return mbCategoryPersistence.update(mbCategory);
101 }
102
103
109 @Override
110 public MBCategory createMBCategory(long categoryId) {
111 return mbCategoryPersistence.create(categoryId);
112 }
113
114
122 @Indexable(type = IndexableType.DELETE)
123 @Override
124 public MBCategory deleteMBCategory(long categoryId)
125 throws PortalException, SystemException {
126 return mbCategoryPersistence.remove(categoryId);
127 }
128
129
136 @Indexable(type = IndexableType.DELETE)
137 @Override
138 public MBCategory deleteMBCategory(MBCategory mbCategory)
139 throws SystemException {
140 return mbCategoryPersistence.remove(mbCategory);
141 }
142
143 @Override
144 public DynamicQuery dynamicQuery() {
145 Class<?> clazz = getClass();
146
147 return DynamicQueryFactoryUtil.forClass(MBCategory.class,
148 clazz.getClassLoader());
149 }
150
151
158 @Override
159 @SuppressWarnings("rawtypes")
160 public List dynamicQuery(DynamicQuery dynamicQuery)
161 throws SystemException {
162 return mbCategoryPersistence.findWithDynamicQuery(dynamicQuery);
163 }
164
165
178 @Override
179 @SuppressWarnings("rawtypes")
180 public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
181 throws SystemException {
182 return mbCategoryPersistence.findWithDynamicQuery(dynamicQuery, start,
183 end);
184 }
185
186
200 @Override
201 @SuppressWarnings("rawtypes")
202 public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end,
203 OrderByComparator orderByComparator) throws SystemException {
204 return mbCategoryPersistence.findWithDynamicQuery(dynamicQuery, start,
205 end, orderByComparator);
206 }
207
208
215 @Override
216 public long dynamicQueryCount(DynamicQuery dynamicQuery)
217 throws SystemException {
218 return mbCategoryPersistence.countWithDynamicQuery(dynamicQuery);
219 }
220
221
229 @Override
230 public long dynamicQueryCount(DynamicQuery dynamicQuery,
231 Projection projection) throws SystemException {
232 return mbCategoryPersistence.countWithDynamicQuery(dynamicQuery,
233 projection);
234 }
235
236 @Override
237 public MBCategory fetchMBCategory(long categoryId)
238 throws SystemException {
239 return mbCategoryPersistence.fetchByPrimaryKey(categoryId);
240 }
241
242
250 @Override
251 public MBCategory fetchMBCategoryByUuidAndCompanyId(String uuid,
252 long companyId) throws SystemException {
253 return mbCategoryPersistence.fetchByUuid_C_First(uuid, companyId, null);
254 }
255
256
264 @Override
265 public MBCategory fetchMBCategoryByUuidAndGroupId(String uuid, long groupId)
266 throws SystemException {
267 return mbCategoryPersistence.fetchByUUID_G(uuid, groupId);
268 }
269
270
278 @Override
279 public MBCategory getMBCategory(long categoryId)
280 throws PortalException, SystemException {
281 return mbCategoryPersistence.findByPrimaryKey(categoryId);
282 }
283
284 @Override
285 public PersistedModel getPersistedModel(Serializable primaryKeyObj)
286 throws PortalException, SystemException {
287 return mbCategoryPersistence.findByPrimaryKey(primaryKeyObj);
288 }
289
290
299 @Override
300 public MBCategory getMBCategoryByUuidAndCompanyId(String uuid,
301 long companyId) throws PortalException, SystemException {
302 return mbCategoryPersistence.findByUuid_C_First(uuid, companyId, null);
303 }
304
305
314 @Override
315 public MBCategory getMBCategoryByUuidAndGroupId(String uuid, long groupId)
316 throws PortalException, SystemException {
317 return mbCategoryPersistence.findByUUID_G(uuid, groupId);
318 }
319
320
332 @Override
333 public List<MBCategory> getMBCategories(int start, int end)
334 throws SystemException {
335 return mbCategoryPersistence.findAll(start, end);
336 }
337
338
344 @Override
345 public int getMBCategoriesCount() throws SystemException {
346 return mbCategoryPersistence.countAll();
347 }
348
349
356 @Indexable(type = IndexableType.REINDEX)
357 @Override
358 public MBCategory updateMBCategory(MBCategory mbCategory)
359 throws SystemException {
360 return mbCategoryPersistence.update(mbCategory);
361 }
362
363
368 public com.liferay.portlet.messageboards.service.MBBanLocalService getMBBanLocalService() {
369 return mbBanLocalService;
370 }
371
372
377 public void setMBBanLocalService(
378 com.liferay.portlet.messageboards.service.MBBanLocalService mbBanLocalService) {
379 this.mbBanLocalService = mbBanLocalService;
380 }
381
382
387 public com.liferay.portlet.messageboards.service.MBBanService getMBBanService() {
388 return mbBanService;
389 }
390
391
396 public void setMBBanService(
397 com.liferay.portlet.messageboards.service.MBBanService mbBanService) {
398 this.mbBanService = mbBanService;
399 }
400
401
406 public MBBanPersistence getMBBanPersistence() {
407 return mbBanPersistence;
408 }
409
410
415 public void setMBBanPersistence(MBBanPersistence mbBanPersistence) {
416 this.mbBanPersistence = mbBanPersistence;
417 }
418
419
424 public com.liferay.portlet.messageboards.service.MBCategoryLocalService getMBCategoryLocalService() {
425 return mbCategoryLocalService;
426 }
427
428
433 public void setMBCategoryLocalService(
434 com.liferay.portlet.messageboards.service.MBCategoryLocalService mbCategoryLocalService) {
435 this.mbCategoryLocalService = mbCategoryLocalService;
436 }
437
438
443 public com.liferay.portlet.messageboards.service.MBCategoryService getMBCategoryService() {
444 return mbCategoryService;
445 }
446
447
452 public void setMBCategoryService(
453 com.liferay.portlet.messageboards.service.MBCategoryService mbCategoryService) {
454 this.mbCategoryService = mbCategoryService;
455 }
456
457
462 public MBCategoryPersistence getMBCategoryPersistence() {
463 return mbCategoryPersistence;
464 }
465
466
471 public void setMBCategoryPersistence(
472 MBCategoryPersistence mbCategoryPersistence) {
473 this.mbCategoryPersistence = mbCategoryPersistence;
474 }
475
476
481 public MBCategoryFinder getMBCategoryFinder() {
482 return mbCategoryFinder;
483 }
484
485
490 public void setMBCategoryFinder(MBCategoryFinder mbCategoryFinder) {
491 this.mbCategoryFinder = mbCategoryFinder;
492 }
493
494
499 public com.liferay.portlet.messageboards.service.MBDiscussionLocalService getMBDiscussionLocalService() {
500 return mbDiscussionLocalService;
501 }
502
503
508 public void setMBDiscussionLocalService(
509 com.liferay.portlet.messageboards.service.MBDiscussionLocalService mbDiscussionLocalService) {
510 this.mbDiscussionLocalService = mbDiscussionLocalService;
511 }
512
513
518 public MBDiscussionPersistence getMBDiscussionPersistence() {
519 return mbDiscussionPersistence;
520 }
521
522
527 public void setMBDiscussionPersistence(
528 MBDiscussionPersistence mbDiscussionPersistence) {
529 this.mbDiscussionPersistence = mbDiscussionPersistence;
530 }
531
532
537 public com.liferay.portlet.messageboards.service.MBMailingListLocalService getMBMailingListLocalService() {
538 return mbMailingListLocalService;
539 }
540
541
546 public void setMBMailingListLocalService(
547 com.liferay.portlet.messageboards.service.MBMailingListLocalService mbMailingListLocalService) {
548 this.mbMailingListLocalService = mbMailingListLocalService;
549 }
550
551
556 public MBMailingListPersistence getMBMailingListPersistence() {
557 return mbMailingListPersistence;
558 }
559
560
565 public void setMBMailingListPersistence(
566 MBMailingListPersistence mbMailingListPersistence) {
567 this.mbMailingListPersistence = mbMailingListPersistence;
568 }
569
570
575 public com.liferay.portlet.messageboards.service.MBMessageLocalService getMBMessageLocalService() {
576 return mbMessageLocalService;
577 }
578
579
584 public void setMBMessageLocalService(
585 com.liferay.portlet.messageboards.service.MBMessageLocalService mbMessageLocalService) {
586 this.mbMessageLocalService = mbMessageLocalService;
587 }
588
589
594 public com.liferay.portlet.messageboards.service.MBMessageService getMBMessageService() {
595 return mbMessageService;
596 }
597
598
603 public void setMBMessageService(
604 com.liferay.portlet.messageboards.service.MBMessageService mbMessageService) {
605 this.mbMessageService = mbMessageService;
606 }
607
608
613 public MBMessagePersistence getMBMessagePersistence() {
614 return mbMessagePersistence;
615 }
616
617
622 public void setMBMessagePersistence(
623 MBMessagePersistence mbMessagePersistence) {
624 this.mbMessagePersistence = mbMessagePersistence;
625 }
626
627
632 public MBMessageFinder getMBMessageFinder() {
633 return mbMessageFinder;
634 }
635
636
641 public void setMBMessageFinder(MBMessageFinder mbMessageFinder) {
642 this.mbMessageFinder = mbMessageFinder;
643 }
644
645
650 public com.liferay.portlet.messageboards.service.MBStatsUserLocalService getMBStatsUserLocalService() {
651 return mbStatsUserLocalService;
652 }
653
654
659 public void setMBStatsUserLocalService(
660 com.liferay.portlet.messageboards.service.MBStatsUserLocalService mbStatsUserLocalService) {
661 this.mbStatsUserLocalService = mbStatsUserLocalService;
662 }
663
664
669 public MBStatsUserPersistence getMBStatsUserPersistence() {
670 return mbStatsUserPersistence;
671 }
672
673
678 public void setMBStatsUserPersistence(
679 MBStatsUserPersistence mbStatsUserPersistence) {
680 this.mbStatsUserPersistence = mbStatsUserPersistence;
681 }
682
683
688 public com.liferay.portlet.messageboards.service.MBThreadLocalService getMBThreadLocalService() {
689 return mbThreadLocalService;
690 }
691
692
697 public void setMBThreadLocalService(
698 com.liferay.portlet.messageboards.service.MBThreadLocalService mbThreadLocalService) {
699 this.mbThreadLocalService = mbThreadLocalService;
700 }
701
702
707 public com.liferay.portlet.messageboards.service.MBThreadService getMBThreadService() {
708 return mbThreadService;
709 }
710
711
716 public void setMBThreadService(
717 com.liferay.portlet.messageboards.service.MBThreadService mbThreadService) {
718 this.mbThreadService = mbThreadService;
719 }
720
721
726 public MBThreadPersistence getMBThreadPersistence() {
727 return mbThreadPersistence;
728 }
729
730
735 public void setMBThreadPersistence(MBThreadPersistence mbThreadPersistence) {
736 this.mbThreadPersistence = mbThreadPersistence;
737 }
738
739
744 public MBThreadFinder getMBThreadFinder() {
745 return mbThreadFinder;
746 }
747
748
753 public void setMBThreadFinder(MBThreadFinder mbThreadFinder) {
754 this.mbThreadFinder = mbThreadFinder;
755 }
756
757
762 public com.liferay.portlet.messageboards.service.MBThreadFlagLocalService getMBThreadFlagLocalService() {
763 return mbThreadFlagLocalService;
764 }
765
766
771 public void setMBThreadFlagLocalService(
772 com.liferay.portlet.messageboards.service.MBThreadFlagLocalService mbThreadFlagLocalService) {
773 this.mbThreadFlagLocalService = mbThreadFlagLocalService;
774 }
775
776
781 public MBThreadFlagPersistence getMBThreadFlagPersistence() {
782 return mbThreadFlagPersistence;
783 }
784
785
790 public void setMBThreadFlagPersistence(
791 MBThreadFlagPersistence mbThreadFlagPersistence) {
792 this.mbThreadFlagPersistence = mbThreadFlagPersistence;
793 }
794
795
800 public com.liferay.counter.service.CounterLocalService getCounterLocalService() {
801 return counterLocalService;
802 }
803
804
809 public void setCounterLocalService(
810 com.liferay.counter.service.CounterLocalService counterLocalService) {
811 this.counterLocalService = counterLocalService;
812 }
813
814
819 public com.liferay.portal.service.GroupLocalService getGroupLocalService() {
820 return groupLocalService;
821 }
822
823
828 public void setGroupLocalService(
829 com.liferay.portal.service.GroupLocalService groupLocalService) {
830 this.groupLocalService = groupLocalService;
831 }
832
833
838 public com.liferay.portal.service.GroupService getGroupService() {
839 return groupService;
840 }
841
842
847 public void setGroupService(
848 com.liferay.portal.service.GroupService groupService) {
849 this.groupService = groupService;
850 }
851
852
857 public GroupPersistence getGroupPersistence() {
858 return groupPersistence;
859 }
860
861
866 public void setGroupPersistence(GroupPersistence groupPersistence) {
867 this.groupPersistence = groupPersistence;
868 }
869
870
875 public GroupFinder getGroupFinder() {
876 return groupFinder;
877 }
878
879
884 public void setGroupFinder(GroupFinder groupFinder) {
885 this.groupFinder = groupFinder;
886 }
887
888
893 public com.liferay.portal.service.ResourceLocalService getResourceLocalService() {
894 return resourceLocalService;
895 }
896
897
902 public void setResourceLocalService(
903 com.liferay.portal.service.ResourceLocalService resourceLocalService) {
904 this.resourceLocalService = resourceLocalService;
905 }
906
907
912 public com.liferay.portal.service.SubscriptionLocalService getSubscriptionLocalService() {
913 return subscriptionLocalService;
914 }
915
916
921 public void setSubscriptionLocalService(
922 com.liferay.portal.service.SubscriptionLocalService subscriptionLocalService) {
923 this.subscriptionLocalService = subscriptionLocalService;
924 }
925
926
931 public SubscriptionPersistence getSubscriptionPersistence() {
932 return subscriptionPersistence;
933 }
934
935
940 public void setSubscriptionPersistence(
941 SubscriptionPersistence subscriptionPersistence) {
942 this.subscriptionPersistence = subscriptionPersistence;
943 }
944
945
950 public com.liferay.portal.service.SystemEventLocalService getSystemEventLocalService() {
951 return systemEventLocalService;
952 }
953
954
959 public void setSystemEventLocalService(
960 com.liferay.portal.service.SystemEventLocalService systemEventLocalService) {
961 this.systemEventLocalService = systemEventLocalService;
962 }
963
964
969 public SystemEventPersistence getSystemEventPersistence() {
970 return systemEventPersistence;
971 }
972
973
978 public void setSystemEventPersistence(
979 SystemEventPersistence systemEventPersistence) {
980 this.systemEventPersistence = systemEventPersistence;
981 }
982
983
988 public com.liferay.portal.service.UserLocalService getUserLocalService() {
989 return userLocalService;
990 }
991
992
997 public void setUserLocalService(
998 com.liferay.portal.service.UserLocalService userLocalService) {
999 this.userLocalService = userLocalService;
1000 }
1001
1002
1007 public com.liferay.portal.service.UserService getUserService() {
1008 return userService;
1009 }
1010
1011
1016 public void setUserService(
1017 com.liferay.portal.service.UserService userService) {
1018 this.userService = userService;
1019 }
1020
1021
1026 public UserPersistence getUserPersistence() {
1027 return userPersistence;
1028 }
1029
1030
1035 public void setUserPersistence(UserPersistence userPersistence) {
1036 this.userPersistence = userPersistence;
1037 }
1038
1039
1044 public UserFinder getUserFinder() {
1045 return userFinder;
1046 }
1047
1048
1053 public void setUserFinder(UserFinder userFinder) {
1054 this.userFinder = userFinder;
1055 }
1056
1057
1062 public com.liferay.portlet.asset.service.AssetEntryLocalService getAssetEntryLocalService() {
1063 return assetEntryLocalService;
1064 }
1065
1066
1071 public void setAssetEntryLocalService(
1072 com.liferay.portlet.asset.service.AssetEntryLocalService assetEntryLocalService) {
1073 this.assetEntryLocalService = assetEntryLocalService;
1074 }
1075
1076
1081 public com.liferay.portlet.asset.service.AssetEntryService getAssetEntryService() {
1082 return assetEntryService;
1083 }
1084
1085
1090 public void setAssetEntryService(
1091 com.liferay.portlet.asset.service.AssetEntryService assetEntryService) {
1092 this.assetEntryService = assetEntryService;
1093 }
1094
1095
1100 public AssetEntryPersistence getAssetEntryPersistence() {
1101 return assetEntryPersistence;
1102 }
1103
1104
1109 public void setAssetEntryPersistence(
1110 AssetEntryPersistence assetEntryPersistence) {
1111 this.assetEntryPersistence = assetEntryPersistence;
1112 }
1113
1114
1119 public AssetEntryFinder getAssetEntryFinder() {
1120 return assetEntryFinder;
1121 }
1122
1123
1128 public void setAssetEntryFinder(AssetEntryFinder assetEntryFinder) {
1129 this.assetEntryFinder = assetEntryFinder;
1130 }
1131
1132
1137 public com.liferay.portlet.asset.service.AssetTagLocalService getAssetTagLocalService() {
1138 return assetTagLocalService;
1139 }
1140
1141
1146 public void setAssetTagLocalService(
1147 com.liferay.portlet.asset.service.AssetTagLocalService assetTagLocalService) {
1148 this.assetTagLocalService = assetTagLocalService;
1149 }
1150
1151
1156 public com.liferay.portlet.asset.service.AssetTagService getAssetTagService() {
1157 return assetTagService;
1158 }
1159
1160
1165 public void setAssetTagService(
1166 com.liferay.portlet.asset.service.AssetTagService assetTagService) {
1167 this.assetTagService = assetTagService;
1168 }
1169
1170
1175 public AssetTagPersistence getAssetTagPersistence() {
1176 return assetTagPersistence;
1177 }
1178
1179
1184 public void setAssetTagPersistence(AssetTagPersistence assetTagPersistence) {
1185 this.assetTagPersistence = assetTagPersistence;
1186 }
1187
1188
1193 public AssetTagFinder getAssetTagFinder() {
1194 return assetTagFinder;
1195 }
1196
1197
1202 public void setAssetTagFinder(AssetTagFinder assetTagFinder) {
1203 this.assetTagFinder = assetTagFinder;
1204 }
1205
1206
1211 public com.liferay.portlet.expando.service.ExpandoRowLocalService getExpandoRowLocalService() {
1212 return expandoRowLocalService;
1213 }
1214
1215
1220 public void setExpandoRowLocalService(
1221 com.liferay.portlet.expando.service.ExpandoRowLocalService expandoRowLocalService) {
1222 this.expandoRowLocalService = expandoRowLocalService;
1223 }
1224
1225
1230 public ExpandoRowPersistence getExpandoRowPersistence() {
1231 return expandoRowPersistence;
1232 }
1233
1234
1239 public void setExpandoRowPersistence(
1240 ExpandoRowPersistence expandoRowPersistence) {
1241 this.expandoRowPersistence = expandoRowPersistence;
1242 }
1243
1244
1249 public com.liferay.portlet.trash.service.TrashEntryLocalService getTrashEntryLocalService() {
1250 return trashEntryLocalService;
1251 }
1252
1253
1258 public void setTrashEntryLocalService(
1259 com.liferay.portlet.trash.service.TrashEntryLocalService trashEntryLocalService) {
1260 this.trashEntryLocalService = trashEntryLocalService;
1261 }
1262
1263
1268 public com.liferay.portlet.trash.service.TrashEntryService getTrashEntryService() {
1269 return trashEntryService;
1270 }
1271
1272
1277 public void setTrashEntryService(
1278 com.liferay.portlet.trash.service.TrashEntryService trashEntryService) {
1279 this.trashEntryService = trashEntryService;
1280 }
1281
1282
1287 public TrashEntryPersistence getTrashEntryPersistence() {
1288 return trashEntryPersistence;
1289 }
1290
1291
1296 public void setTrashEntryPersistence(
1297 TrashEntryPersistence trashEntryPersistence) {
1298 this.trashEntryPersistence = trashEntryPersistence;
1299 }
1300
1301
1306 public com.liferay.portlet.trash.service.TrashVersionLocalService getTrashVersionLocalService() {
1307 return trashVersionLocalService;
1308 }
1309
1310
1315 public void setTrashVersionLocalService(
1316 com.liferay.portlet.trash.service.TrashVersionLocalService trashVersionLocalService) {
1317 this.trashVersionLocalService = trashVersionLocalService;
1318 }
1319
1320
1325 public TrashVersionPersistence getTrashVersionPersistence() {
1326 return trashVersionPersistence;
1327 }
1328
1329
1334 public void setTrashVersionPersistence(
1335 TrashVersionPersistence trashVersionPersistence) {
1336 this.trashVersionPersistence = trashVersionPersistence;
1337 }
1338
1339 public void afterPropertiesSet() {
1340 persistedModelLocalServiceRegistry.register("com.liferay.portlet.messageboards.model.MBCategory",
1341 mbCategoryLocalService);
1342 }
1343
1344 public void destroy() {
1345 persistedModelLocalServiceRegistry.unregister(
1346 "com.liferay.portlet.messageboards.model.MBCategory");
1347 }
1348
1349
1354 @Override
1355 public String getBeanIdentifier() {
1356 return _beanIdentifier;
1357 }
1358
1359
1364 @Override
1365 public void setBeanIdentifier(String beanIdentifier) {
1366 _beanIdentifier = beanIdentifier;
1367 }
1368
1369 protected Class<?> getModelClass() {
1370 return MBCategory.class;
1371 }
1372
1373 protected String getModelClassName() {
1374 return MBCategory.class.getName();
1375 }
1376
1377
1382 protected void runSQL(String sql) throws SystemException {
1383 try {
1384 DataSource dataSource = mbCategoryPersistence.getDataSource();
1385
1386 SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
1387 sql, new int[0]);
1388
1389 sqlUpdate.update();
1390 }
1391 catch (Exception e) {
1392 throw new SystemException(e);
1393 }
1394 }
1395
1396 @BeanReference(type = com.liferay.portlet.messageboards.service.MBBanLocalService.class)
1397 protected com.liferay.portlet.messageboards.service.MBBanLocalService mbBanLocalService;
1398 @BeanReference(type = com.liferay.portlet.messageboards.service.MBBanService.class)
1399 protected com.liferay.portlet.messageboards.service.MBBanService mbBanService;
1400 @BeanReference(type = MBBanPersistence.class)
1401 protected MBBanPersistence mbBanPersistence;
1402 @BeanReference(type = com.liferay.portlet.messageboards.service.MBCategoryLocalService.class)
1403 protected com.liferay.portlet.messageboards.service.MBCategoryLocalService mbCategoryLocalService;
1404 @BeanReference(type = com.liferay.portlet.messageboards.service.MBCategoryService.class)
1405 protected com.liferay.portlet.messageboards.service.MBCategoryService mbCategoryService;
1406 @BeanReference(type = MBCategoryPersistence.class)
1407 protected MBCategoryPersistence mbCategoryPersistence;
1408 @BeanReference(type = MBCategoryFinder.class)
1409 protected MBCategoryFinder mbCategoryFinder;
1410 @BeanReference(type = com.liferay.portlet.messageboards.service.MBDiscussionLocalService.class)
1411 protected com.liferay.portlet.messageboards.service.MBDiscussionLocalService mbDiscussionLocalService;
1412 @BeanReference(type = MBDiscussionPersistence.class)
1413 protected MBDiscussionPersistence mbDiscussionPersistence;
1414 @BeanReference(type = com.liferay.portlet.messageboards.service.MBMailingListLocalService.class)
1415 protected com.liferay.portlet.messageboards.service.MBMailingListLocalService mbMailingListLocalService;
1416 @BeanReference(type = MBMailingListPersistence.class)
1417 protected MBMailingListPersistence mbMailingListPersistence;
1418 @BeanReference(type = com.liferay.portlet.messageboards.service.MBMessageLocalService.class)
1419 protected com.liferay.portlet.messageboards.service.MBMessageLocalService mbMessageLocalService;
1420 @BeanReference(type = com.liferay.portlet.messageboards.service.MBMessageService.class)
1421 protected com.liferay.portlet.messageboards.service.MBMessageService mbMessageService;
1422 @BeanReference(type = MBMessagePersistence.class)
1423 protected MBMessagePersistence mbMessagePersistence;
1424 @BeanReference(type = MBMessageFinder.class)
1425 protected MBMessageFinder mbMessageFinder;
1426 @BeanReference(type = com.liferay.portlet.messageboards.service.MBStatsUserLocalService.class)
1427 protected com.liferay.portlet.messageboards.service.MBStatsUserLocalService mbStatsUserLocalService;
1428 @BeanReference(type = MBStatsUserPersistence.class)
1429 protected MBStatsUserPersistence mbStatsUserPersistence;
1430 @BeanReference(type = com.liferay.portlet.messageboards.service.MBThreadLocalService.class)
1431 protected com.liferay.portlet.messageboards.service.MBThreadLocalService mbThreadLocalService;
1432 @BeanReference(type = com.liferay.portlet.messageboards.service.MBThreadService.class)
1433 protected com.liferay.portlet.messageboards.service.MBThreadService mbThreadService;
1434 @BeanReference(type = MBThreadPersistence.class)
1435 protected MBThreadPersistence mbThreadPersistence;
1436 @BeanReference(type = MBThreadFinder.class)
1437 protected MBThreadFinder mbThreadFinder;
1438 @BeanReference(type = com.liferay.portlet.messageboards.service.MBThreadFlagLocalService.class)
1439 protected com.liferay.portlet.messageboards.service.MBThreadFlagLocalService mbThreadFlagLocalService;
1440 @BeanReference(type = MBThreadFlagPersistence.class)
1441 protected MBThreadFlagPersistence mbThreadFlagPersistence;
1442 @BeanReference(type = com.liferay.counter.service.CounterLocalService.class)
1443 protected com.liferay.counter.service.CounterLocalService counterLocalService;
1444 @BeanReference(type = com.liferay.portal.service.GroupLocalService.class)
1445 protected com.liferay.portal.service.GroupLocalService groupLocalService;
1446 @BeanReference(type = com.liferay.portal.service.GroupService.class)
1447 protected com.liferay.portal.service.GroupService groupService;
1448 @BeanReference(type = GroupPersistence.class)
1449 protected GroupPersistence groupPersistence;
1450 @BeanReference(type = GroupFinder.class)
1451 protected GroupFinder groupFinder;
1452 @BeanReference(type = com.liferay.portal.service.ResourceLocalService.class)
1453 protected com.liferay.portal.service.ResourceLocalService resourceLocalService;
1454 @BeanReference(type = com.liferay.portal.service.SubscriptionLocalService.class)
1455 protected com.liferay.portal.service.SubscriptionLocalService subscriptionLocalService;
1456 @BeanReference(type = SubscriptionPersistence.class)
1457 protected SubscriptionPersistence subscriptionPersistence;
1458 @BeanReference(type = com.liferay.portal.service.SystemEventLocalService.class)
1459 protected com.liferay.portal.service.SystemEventLocalService systemEventLocalService;
1460 @BeanReference(type = SystemEventPersistence.class)
1461 protected SystemEventPersistence systemEventPersistence;
1462 @BeanReference(type = com.liferay.portal.service.UserLocalService.class)
1463 protected com.liferay.portal.service.UserLocalService userLocalService;
1464 @BeanReference(type = com.liferay.portal.service.UserService.class)
1465 protected com.liferay.portal.service.UserService userService;
1466 @BeanReference(type = UserPersistence.class)
1467 protected UserPersistence userPersistence;
1468 @BeanReference(type = UserFinder.class)
1469 protected UserFinder userFinder;
1470 @BeanReference(type = com.liferay.portlet.asset.service.AssetEntryLocalService.class)
1471 protected com.liferay.portlet.asset.service.AssetEntryLocalService assetEntryLocalService;
1472 @BeanReference(type = com.liferay.portlet.asset.service.AssetEntryService.class)
1473 protected com.liferay.portlet.asset.service.AssetEntryService assetEntryService;
1474 @BeanReference(type = AssetEntryPersistence.class)
1475 protected AssetEntryPersistence assetEntryPersistence;
1476 @BeanReference(type = AssetEntryFinder.class)
1477 protected AssetEntryFinder assetEntryFinder;
1478 @BeanReference(type = com.liferay.portlet.asset.service.AssetTagLocalService.class)
1479 protected com.liferay.portlet.asset.service.AssetTagLocalService assetTagLocalService;
1480 @BeanReference(type = com.liferay.portlet.asset.service.AssetTagService.class)
1481 protected com.liferay.portlet.asset.service.AssetTagService assetTagService;
1482 @BeanReference(type = AssetTagPersistence.class)
1483 protected AssetTagPersistence assetTagPersistence;
1484 @BeanReference(type = AssetTagFinder.class)
1485 protected AssetTagFinder assetTagFinder;
1486 @BeanReference(type = com.liferay.portlet.expando.service.ExpandoRowLocalService.class)
1487 protected com.liferay.portlet.expando.service.ExpandoRowLocalService expandoRowLocalService;
1488 @BeanReference(type = ExpandoRowPersistence.class)
1489 protected ExpandoRowPersistence expandoRowPersistence;
1490 @BeanReference(type = com.liferay.portlet.trash.service.TrashEntryLocalService.class)
1491 protected com.liferay.portlet.trash.service.TrashEntryLocalService trashEntryLocalService;
1492 @BeanReference(type = com.liferay.portlet.trash.service.TrashEntryService.class)
1493 protected com.liferay.portlet.trash.service.TrashEntryService trashEntryService;
1494 @BeanReference(type = TrashEntryPersistence.class)
1495 protected TrashEntryPersistence trashEntryPersistence;
1496 @BeanReference(type = com.liferay.portlet.trash.service.TrashVersionLocalService.class)
1497 protected com.liferay.portlet.trash.service.TrashVersionLocalService trashVersionLocalService;
1498 @BeanReference(type = TrashVersionPersistence.class)
1499 protected TrashVersionPersistence trashVersionPersistence;
1500 @BeanReference(type = PersistedModelLocalServiceRegistry.class)
1501 protected PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry;
1502 private String _beanIdentifier;
1503 }