001
014
015 package com.liferay.portlet.blogs.service.base;
016
017 import com.liferay.counter.service.CounterLocalService;
018
019 import com.liferay.portal.kernel.bean.BeanReference;
020 import com.liferay.portal.kernel.bean.IdentifiableBean;
021 import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
022 import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
023 import com.liferay.portal.kernel.dao.orm.DynamicQuery;
024 import com.liferay.portal.kernel.dao.orm.DynamicQueryFactoryUtil;
025 import com.liferay.portal.kernel.exception.PortalException;
026 import com.liferay.portal.kernel.exception.SystemException;
027 import com.liferay.portal.kernel.search.Indexable;
028 import com.liferay.portal.kernel.search.IndexableType;
029 import com.liferay.portal.kernel.util.OrderByComparator;
030 import com.liferay.portal.model.PersistedModel;
031 import com.liferay.portal.service.BaseLocalServiceImpl;
032 import com.liferay.portal.service.CompanyLocalService;
033 import com.liferay.portal.service.CompanyService;
034 import com.liferay.portal.service.GroupLocalService;
035 import com.liferay.portal.service.GroupService;
036 import com.liferay.portal.service.ImageLocalService;
037 import com.liferay.portal.service.ImageService;
038 import com.liferay.portal.service.OrganizationLocalService;
039 import com.liferay.portal.service.OrganizationService;
040 import com.liferay.portal.service.PersistedModelLocalServiceRegistry;
041 import com.liferay.portal.service.PortletPreferencesLocalService;
042 import com.liferay.portal.service.PortletPreferencesService;
043 import com.liferay.portal.service.ResourceLocalService;
044 import com.liferay.portal.service.ResourceService;
045 import com.liferay.portal.service.SubscriptionLocalService;
046 import com.liferay.portal.service.UserLocalService;
047 import com.liferay.portal.service.UserService;
048 import com.liferay.portal.service.WorkflowInstanceLinkLocalService;
049 import com.liferay.portal.service.persistence.CompanyPersistence;
050 import com.liferay.portal.service.persistence.GroupFinder;
051 import com.liferay.portal.service.persistence.GroupPersistence;
052 import com.liferay.portal.service.persistence.ImagePersistence;
053 import com.liferay.portal.service.persistence.OrganizationFinder;
054 import com.liferay.portal.service.persistence.OrganizationPersistence;
055 import com.liferay.portal.service.persistence.PortletPreferencesFinder;
056 import com.liferay.portal.service.persistence.PortletPreferencesPersistence;
057 import com.liferay.portal.service.persistence.ResourceFinder;
058 import com.liferay.portal.service.persistence.ResourcePersistence;
059 import com.liferay.portal.service.persistence.SubscriptionPersistence;
060 import com.liferay.portal.service.persistence.UserFinder;
061 import com.liferay.portal.service.persistence.UserPersistence;
062 import com.liferay.portal.service.persistence.WorkflowInstanceLinkPersistence;
063
064 import com.liferay.portlet.asset.service.AssetEntryLocalService;
065 import com.liferay.portlet.asset.service.AssetEntryService;
066 import com.liferay.portlet.asset.service.AssetLinkLocalService;
067 import com.liferay.portlet.asset.service.AssetTagLocalService;
068 import com.liferay.portlet.asset.service.AssetTagService;
069 import com.liferay.portlet.asset.service.persistence.AssetEntryFinder;
070 import com.liferay.portlet.asset.service.persistence.AssetEntryPersistence;
071 import com.liferay.portlet.asset.service.persistence.AssetLinkPersistence;
072 import com.liferay.portlet.asset.service.persistence.AssetTagFinder;
073 import com.liferay.portlet.asset.service.persistence.AssetTagPersistence;
074 import com.liferay.portlet.blogs.model.BlogsEntry;
075 import com.liferay.portlet.blogs.service.BlogsEntryLocalService;
076 import com.liferay.portlet.blogs.service.BlogsEntryService;
077 import com.liferay.portlet.blogs.service.BlogsStatsUserLocalService;
078 import com.liferay.portlet.blogs.service.persistence.BlogsEntryFinder;
079 import com.liferay.portlet.blogs.service.persistence.BlogsEntryPersistence;
080 import com.liferay.portlet.blogs.service.persistence.BlogsStatsUserFinder;
081 import com.liferay.portlet.blogs.service.persistence.BlogsStatsUserPersistence;
082 import com.liferay.portlet.expando.service.ExpandoValueLocalService;
083 import com.liferay.portlet.expando.service.ExpandoValueService;
084 import com.liferay.portlet.expando.service.persistence.ExpandoValuePersistence;
085 import com.liferay.portlet.messageboards.service.MBMessageLocalService;
086 import com.liferay.portlet.messageboards.service.MBMessageService;
087 import com.liferay.portlet.messageboards.service.persistence.MBMessageFinder;
088 import com.liferay.portlet.messageboards.service.persistence.MBMessagePersistence;
089 import com.liferay.portlet.ratings.service.RatingsStatsLocalService;
090 import com.liferay.portlet.ratings.service.persistence.RatingsStatsFinder;
091 import com.liferay.portlet.ratings.service.persistence.RatingsStatsPersistence;
092 import com.liferay.portlet.social.service.SocialActivityLocalService;
093 import com.liferay.portlet.social.service.persistence.SocialActivityFinder;
094 import com.liferay.portlet.social.service.persistence.SocialActivityPersistence;
095
096 import java.io.Serializable;
097
098 import java.util.List;
099
100 import javax.sql.DataSource;
101
102
114 public abstract class BlogsEntryLocalServiceBaseImpl
115 extends BaseLocalServiceImpl implements BlogsEntryLocalService,
116 IdentifiableBean {
117
122
123
130 @Indexable(type = IndexableType.REINDEX)
131 public BlogsEntry addBlogsEntry(BlogsEntry blogsEntry)
132 throws SystemException {
133 blogsEntry.setNew(true);
134
135 return blogsEntryPersistence.update(blogsEntry, false);
136 }
137
138
144 public BlogsEntry createBlogsEntry(long entryId) {
145 return blogsEntryPersistence.create(entryId);
146 }
147
148
156 @Indexable(type = IndexableType.DELETE)
157 public BlogsEntry deleteBlogsEntry(long entryId)
158 throws PortalException, SystemException {
159 return blogsEntryPersistence.remove(entryId);
160 }
161
162
169 @Indexable(type = IndexableType.DELETE)
170 public BlogsEntry deleteBlogsEntry(BlogsEntry blogsEntry)
171 throws SystemException {
172 return blogsEntryPersistence.remove(blogsEntry);
173 }
174
175 public DynamicQuery dynamicQuery() {
176 Class<?> clazz = getClass();
177
178 return DynamicQueryFactoryUtil.forClass(BlogsEntry.class,
179 clazz.getClassLoader());
180 }
181
182
189 @SuppressWarnings("rawtypes")
190 public List dynamicQuery(DynamicQuery dynamicQuery)
191 throws SystemException {
192 return blogsEntryPersistence.findWithDynamicQuery(dynamicQuery);
193 }
194
195
208 @SuppressWarnings("rawtypes")
209 public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
210 throws SystemException {
211 return blogsEntryPersistence.findWithDynamicQuery(dynamicQuery, start,
212 end);
213 }
214
215
229 @SuppressWarnings("rawtypes")
230 public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end,
231 OrderByComparator orderByComparator) throws SystemException {
232 return blogsEntryPersistence.findWithDynamicQuery(dynamicQuery, start,
233 end, orderByComparator);
234 }
235
236
243 public long dynamicQueryCount(DynamicQuery dynamicQuery)
244 throws SystemException {
245 return blogsEntryPersistence.countWithDynamicQuery(dynamicQuery);
246 }
247
248 public BlogsEntry fetchBlogsEntry(long entryId) throws SystemException {
249 return blogsEntryPersistence.fetchByPrimaryKey(entryId);
250 }
251
252
260 public BlogsEntry getBlogsEntry(long entryId)
261 throws PortalException, SystemException {
262 return blogsEntryPersistence.findByPrimaryKey(entryId);
263 }
264
265 public PersistedModel getPersistedModel(Serializable primaryKeyObj)
266 throws PortalException, SystemException {
267 return blogsEntryPersistence.findByPrimaryKey(primaryKeyObj);
268 }
269
270
279 public BlogsEntry getBlogsEntryByUuidAndGroupId(String uuid, long groupId)
280 throws PortalException, SystemException {
281 return blogsEntryPersistence.findByUUID_G(uuid, groupId);
282 }
283
284
296 public List<BlogsEntry> getBlogsEntries(int start, int end)
297 throws SystemException {
298 return blogsEntryPersistence.findAll(start, end);
299 }
300
301
307 public int getBlogsEntriesCount() throws SystemException {
308 return blogsEntryPersistence.countAll();
309 }
310
311
318 @Indexable(type = IndexableType.REINDEX)
319 public BlogsEntry updateBlogsEntry(BlogsEntry blogsEntry)
320 throws SystemException {
321 return updateBlogsEntry(blogsEntry, true);
322 }
323
324
332 @Indexable(type = IndexableType.REINDEX)
333 public BlogsEntry updateBlogsEntry(BlogsEntry blogsEntry, boolean merge)
334 throws SystemException {
335 blogsEntry.setNew(false);
336
337 return blogsEntryPersistence.update(blogsEntry, merge);
338 }
339
340
345 public BlogsEntryLocalService getBlogsEntryLocalService() {
346 return blogsEntryLocalService;
347 }
348
349
354 public void setBlogsEntryLocalService(
355 BlogsEntryLocalService blogsEntryLocalService) {
356 this.blogsEntryLocalService = blogsEntryLocalService;
357 }
358
359
364 public BlogsEntryService getBlogsEntryService() {
365 return blogsEntryService;
366 }
367
368
373 public void setBlogsEntryService(BlogsEntryService blogsEntryService) {
374 this.blogsEntryService = blogsEntryService;
375 }
376
377
382 public BlogsEntryPersistence getBlogsEntryPersistence() {
383 return blogsEntryPersistence;
384 }
385
386
391 public void setBlogsEntryPersistence(
392 BlogsEntryPersistence blogsEntryPersistence) {
393 this.blogsEntryPersistence = blogsEntryPersistence;
394 }
395
396
401 public BlogsEntryFinder getBlogsEntryFinder() {
402 return blogsEntryFinder;
403 }
404
405
410 public void setBlogsEntryFinder(BlogsEntryFinder blogsEntryFinder) {
411 this.blogsEntryFinder = blogsEntryFinder;
412 }
413
414
419 public BlogsStatsUserLocalService getBlogsStatsUserLocalService() {
420 return blogsStatsUserLocalService;
421 }
422
423
428 public void setBlogsStatsUserLocalService(
429 BlogsStatsUserLocalService blogsStatsUserLocalService) {
430 this.blogsStatsUserLocalService = blogsStatsUserLocalService;
431 }
432
433
438 public BlogsStatsUserPersistence getBlogsStatsUserPersistence() {
439 return blogsStatsUserPersistence;
440 }
441
442
447 public void setBlogsStatsUserPersistence(
448 BlogsStatsUserPersistence blogsStatsUserPersistence) {
449 this.blogsStatsUserPersistence = blogsStatsUserPersistence;
450 }
451
452
457 public BlogsStatsUserFinder getBlogsStatsUserFinder() {
458 return blogsStatsUserFinder;
459 }
460
461
466 public void setBlogsStatsUserFinder(
467 BlogsStatsUserFinder blogsStatsUserFinder) {
468 this.blogsStatsUserFinder = blogsStatsUserFinder;
469 }
470
471
476 public CounterLocalService getCounterLocalService() {
477 return counterLocalService;
478 }
479
480
485 public void setCounterLocalService(CounterLocalService counterLocalService) {
486 this.counterLocalService = counterLocalService;
487 }
488
489
494 public CompanyLocalService getCompanyLocalService() {
495 return companyLocalService;
496 }
497
498
503 public void setCompanyLocalService(CompanyLocalService companyLocalService) {
504 this.companyLocalService = companyLocalService;
505 }
506
507
512 public CompanyService getCompanyService() {
513 return companyService;
514 }
515
516
521 public void setCompanyService(CompanyService companyService) {
522 this.companyService = companyService;
523 }
524
525
530 public CompanyPersistence getCompanyPersistence() {
531 return companyPersistence;
532 }
533
534
539 public void setCompanyPersistence(CompanyPersistence companyPersistence) {
540 this.companyPersistence = companyPersistence;
541 }
542
543
548 public GroupLocalService getGroupLocalService() {
549 return groupLocalService;
550 }
551
552
557 public void setGroupLocalService(GroupLocalService groupLocalService) {
558 this.groupLocalService = groupLocalService;
559 }
560
561
566 public GroupService getGroupService() {
567 return groupService;
568 }
569
570
575 public void setGroupService(GroupService groupService) {
576 this.groupService = groupService;
577 }
578
579
584 public GroupPersistence getGroupPersistence() {
585 return groupPersistence;
586 }
587
588
593 public void setGroupPersistence(GroupPersistence groupPersistence) {
594 this.groupPersistence = groupPersistence;
595 }
596
597
602 public GroupFinder getGroupFinder() {
603 return groupFinder;
604 }
605
606
611 public void setGroupFinder(GroupFinder groupFinder) {
612 this.groupFinder = groupFinder;
613 }
614
615
620 public ImageLocalService getImageLocalService() {
621 return imageLocalService;
622 }
623
624
629 public void setImageLocalService(ImageLocalService imageLocalService) {
630 this.imageLocalService = imageLocalService;
631 }
632
633
638 public ImageService getImageService() {
639 return imageService;
640 }
641
642
647 public void setImageService(ImageService imageService) {
648 this.imageService = imageService;
649 }
650
651
656 public ImagePersistence getImagePersistence() {
657 return imagePersistence;
658 }
659
660
665 public void setImagePersistence(ImagePersistence imagePersistence) {
666 this.imagePersistence = imagePersistence;
667 }
668
669
674 public OrganizationLocalService getOrganizationLocalService() {
675 return organizationLocalService;
676 }
677
678
683 public void setOrganizationLocalService(
684 OrganizationLocalService organizationLocalService) {
685 this.organizationLocalService = organizationLocalService;
686 }
687
688
693 public OrganizationService getOrganizationService() {
694 return organizationService;
695 }
696
697
702 public void setOrganizationService(OrganizationService organizationService) {
703 this.organizationService = organizationService;
704 }
705
706
711 public OrganizationPersistence getOrganizationPersistence() {
712 return organizationPersistence;
713 }
714
715
720 public void setOrganizationPersistence(
721 OrganizationPersistence organizationPersistence) {
722 this.organizationPersistence = organizationPersistence;
723 }
724
725
730 public OrganizationFinder getOrganizationFinder() {
731 return organizationFinder;
732 }
733
734
739 public void setOrganizationFinder(OrganizationFinder organizationFinder) {
740 this.organizationFinder = organizationFinder;
741 }
742
743
748 public PortletPreferencesLocalService getPortletPreferencesLocalService() {
749 return portletPreferencesLocalService;
750 }
751
752
757 public void setPortletPreferencesLocalService(
758 PortletPreferencesLocalService portletPreferencesLocalService) {
759 this.portletPreferencesLocalService = portletPreferencesLocalService;
760 }
761
762
767 public PortletPreferencesService getPortletPreferencesService() {
768 return portletPreferencesService;
769 }
770
771
776 public void setPortletPreferencesService(
777 PortletPreferencesService portletPreferencesService) {
778 this.portletPreferencesService = portletPreferencesService;
779 }
780
781
786 public PortletPreferencesPersistence getPortletPreferencesPersistence() {
787 return portletPreferencesPersistence;
788 }
789
790
795 public void setPortletPreferencesPersistence(
796 PortletPreferencesPersistence portletPreferencesPersistence) {
797 this.portletPreferencesPersistence = portletPreferencesPersistence;
798 }
799
800
805 public PortletPreferencesFinder getPortletPreferencesFinder() {
806 return portletPreferencesFinder;
807 }
808
809
814 public void setPortletPreferencesFinder(
815 PortletPreferencesFinder portletPreferencesFinder) {
816 this.portletPreferencesFinder = portletPreferencesFinder;
817 }
818
819
824 public ResourceLocalService getResourceLocalService() {
825 return resourceLocalService;
826 }
827
828
833 public void setResourceLocalService(
834 ResourceLocalService resourceLocalService) {
835 this.resourceLocalService = resourceLocalService;
836 }
837
838
843 public ResourceService getResourceService() {
844 return resourceService;
845 }
846
847
852 public void setResourceService(ResourceService resourceService) {
853 this.resourceService = resourceService;
854 }
855
856
861 public ResourcePersistence getResourcePersistence() {
862 return resourcePersistence;
863 }
864
865
870 public void setResourcePersistence(ResourcePersistence resourcePersistence) {
871 this.resourcePersistence = resourcePersistence;
872 }
873
874
879 public ResourceFinder getResourceFinder() {
880 return resourceFinder;
881 }
882
883
888 public void setResourceFinder(ResourceFinder resourceFinder) {
889 this.resourceFinder = resourceFinder;
890 }
891
892
897 public SubscriptionLocalService getSubscriptionLocalService() {
898 return subscriptionLocalService;
899 }
900
901
906 public void setSubscriptionLocalService(
907 SubscriptionLocalService subscriptionLocalService) {
908 this.subscriptionLocalService = subscriptionLocalService;
909 }
910
911
916 public SubscriptionPersistence getSubscriptionPersistence() {
917 return subscriptionPersistence;
918 }
919
920
925 public void setSubscriptionPersistence(
926 SubscriptionPersistence subscriptionPersistence) {
927 this.subscriptionPersistence = subscriptionPersistence;
928 }
929
930
935 public UserLocalService getUserLocalService() {
936 return userLocalService;
937 }
938
939
944 public void setUserLocalService(UserLocalService userLocalService) {
945 this.userLocalService = userLocalService;
946 }
947
948
953 public UserService getUserService() {
954 return userService;
955 }
956
957
962 public void setUserService(UserService userService) {
963 this.userService = userService;
964 }
965
966
971 public UserPersistence getUserPersistence() {
972 return userPersistence;
973 }
974
975
980 public void setUserPersistence(UserPersistence userPersistence) {
981 this.userPersistence = userPersistence;
982 }
983
984
989 public UserFinder getUserFinder() {
990 return userFinder;
991 }
992
993
998 public void setUserFinder(UserFinder userFinder) {
999 this.userFinder = userFinder;
1000 }
1001
1002
1007 public WorkflowInstanceLinkLocalService getWorkflowInstanceLinkLocalService() {
1008 return workflowInstanceLinkLocalService;
1009 }
1010
1011
1016 public void setWorkflowInstanceLinkLocalService(
1017 WorkflowInstanceLinkLocalService workflowInstanceLinkLocalService) {
1018 this.workflowInstanceLinkLocalService = workflowInstanceLinkLocalService;
1019 }
1020
1021
1026 public WorkflowInstanceLinkPersistence getWorkflowInstanceLinkPersistence() {
1027 return workflowInstanceLinkPersistence;
1028 }
1029
1030
1035 public void setWorkflowInstanceLinkPersistence(
1036 WorkflowInstanceLinkPersistence workflowInstanceLinkPersistence) {
1037 this.workflowInstanceLinkPersistence = workflowInstanceLinkPersistence;
1038 }
1039
1040
1045 public AssetEntryLocalService getAssetEntryLocalService() {
1046 return assetEntryLocalService;
1047 }
1048
1049
1054 public void setAssetEntryLocalService(
1055 AssetEntryLocalService assetEntryLocalService) {
1056 this.assetEntryLocalService = assetEntryLocalService;
1057 }
1058
1059
1064 public AssetEntryService getAssetEntryService() {
1065 return assetEntryService;
1066 }
1067
1068
1073 public void setAssetEntryService(AssetEntryService assetEntryService) {
1074 this.assetEntryService = assetEntryService;
1075 }
1076
1077
1082 public AssetEntryPersistence getAssetEntryPersistence() {
1083 return assetEntryPersistence;
1084 }
1085
1086
1091 public void setAssetEntryPersistence(
1092 AssetEntryPersistence assetEntryPersistence) {
1093 this.assetEntryPersistence = assetEntryPersistence;
1094 }
1095
1096
1101 public AssetEntryFinder getAssetEntryFinder() {
1102 return assetEntryFinder;
1103 }
1104
1105
1110 public void setAssetEntryFinder(AssetEntryFinder assetEntryFinder) {
1111 this.assetEntryFinder = assetEntryFinder;
1112 }
1113
1114
1119 public AssetLinkLocalService getAssetLinkLocalService() {
1120 return assetLinkLocalService;
1121 }
1122
1123
1128 public void setAssetLinkLocalService(
1129 AssetLinkLocalService assetLinkLocalService) {
1130 this.assetLinkLocalService = assetLinkLocalService;
1131 }
1132
1133
1138 public AssetLinkPersistence getAssetLinkPersistence() {
1139 return assetLinkPersistence;
1140 }
1141
1142
1147 public void setAssetLinkPersistence(
1148 AssetLinkPersistence assetLinkPersistence) {
1149 this.assetLinkPersistence = assetLinkPersistence;
1150 }
1151
1152
1157 public AssetTagLocalService getAssetTagLocalService() {
1158 return assetTagLocalService;
1159 }
1160
1161
1166 public void setAssetTagLocalService(
1167 AssetTagLocalService assetTagLocalService) {
1168 this.assetTagLocalService = assetTagLocalService;
1169 }
1170
1171
1176 public AssetTagService getAssetTagService() {
1177 return assetTagService;
1178 }
1179
1180
1185 public void setAssetTagService(AssetTagService assetTagService) {
1186 this.assetTagService = assetTagService;
1187 }
1188
1189
1194 public AssetTagPersistence getAssetTagPersistence() {
1195 return assetTagPersistence;
1196 }
1197
1198
1203 public void setAssetTagPersistence(AssetTagPersistence assetTagPersistence) {
1204 this.assetTagPersistence = assetTagPersistence;
1205 }
1206
1207
1212 public AssetTagFinder getAssetTagFinder() {
1213 return assetTagFinder;
1214 }
1215
1216
1221 public void setAssetTagFinder(AssetTagFinder assetTagFinder) {
1222 this.assetTagFinder = assetTagFinder;
1223 }
1224
1225
1230 public ExpandoValueLocalService getExpandoValueLocalService() {
1231 return expandoValueLocalService;
1232 }
1233
1234
1239 public void setExpandoValueLocalService(
1240 ExpandoValueLocalService expandoValueLocalService) {
1241 this.expandoValueLocalService = expandoValueLocalService;
1242 }
1243
1244
1249 public ExpandoValueService getExpandoValueService() {
1250 return expandoValueService;
1251 }
1252
1253
1258 public void setExpandoValueService(ExpandoValueService expandoValueService) {
1259 this.expandoValueService = expandoValueService;
1260 }
1261
1262
1267 public ExpandoValuePersistence getExpandoValuePersistence() {
1268 return expandoValuePersistence;
1269 }
1270
1271
1276 public void setExpandoValuePersistence(
1277 ExpandoValuePersistence expandoValuePersistence) {
1278 this.expandoValuePersistence = expandoValuePersistence;
1279 }
1280
1281
1286 public MBMessageLocalService getMBMessageLocalService() {
1287 return mbMessageLocalService;
1288 }
1289
1290
1295 public void setMBMessageLocalService(
1296 MBMessageLocalService mbMessageLocalService) {
1297 this.mbMessageLocalService = mbMessageLocalService;
1298 }
1299
1300
1305 public MBMessageService getMBMessageService() {
1306 return mbMessageService;
1307 }
1308
1309
1314 public void setMBMessageService(MBMessageService mbMessageService) {
1315 this.mbMessageService = mbMessageService;
1316 }
1317
1318
1323 public MBMessagePersistence getMBMessagePersistence() {
1324 return mbMessagePersistence;
1325 }
1326
1327
1332 public void setMBMessagePersistence(
1333 MBMessagePersistence mbMessagePersistence) {
1334 this.mbMessagePersistence = mbMessagePersistence;
1335 }
1336
1337
1342 public MBMessageFinder getMBMessageFinder() {
1343 return mbMessageFinder;
1344 }
1345
1346
1351 public void setMBMessageFinder(MBMessageFinder mbMessageFinder) {
1352 this.mbMessageFinder = mbMessageFinder;
1353 }
1354
1355
1360 public RatingsStatsLocalService getRatingsStatsLocalService() {
1361 return ratingsStatsLocalService;
1362 }
1363
1364
1369 public void setRatingsStatsLocalService(
1370 RatingsStatsLocalService ratingsStatsLocalService) {
1371 this.ratingsStatsLocalService = ratingsStatsLocalService;
1372 }
1373
1374
1379 public RatingsStatsPersistence getRatingsStatsPersistence() {
1380 return ratingsStatsPersistence;
1381 }
1382
1383
1388 public void setRatingsStatsPersistence(
1389 RatingsStatsPersistence ratingsStatsPersistence) {
1390 this.ratingsStatsPersistence = ratingsStatsPersistence;
1391 }
1392
1393
1398 public RatingsStatsFinder getRatingsStatsFinder() {
1399 return ratingsStatsFinder;
1400 }
1401
1402
1407 public void setRatingsStatsFinder(RatingsStatsFinder ratingsStatsFinder) {
1408 this.ratingsStatsFinder = ratingsStatsFinder;
1409 }
1410
1411
1416 public SocialActivityLocalService getSocialActivityLocalService() {
1417 return socialActivityLocalService;
1418 }
1419
1420
1425 public void setSocialActivityLocalService(
1426 SocialActivityLocalService socialActivityLocalService) {
1427 this.socialActivityLocalService = socialActivityLocalService;
1428 }
1429
1430
1435 public SocialActivityPersistence getSocialActivityPersistence() {
1436 return socialActivityPersistence;
1437 }
1438
1439
1444 public void setSocialActivityPersistence(
1445 SocialActivityPersistence socialActivityPersistence) {
1446 this.socialActivityPersistence = socialActivityPersistence;
1447 }
1448
1449
1454 public SocialActivityFinder getSocialActivityFinder() {
1455 return socialActivityFinder;
1456 }
1457
1458
1463 public void setSocialActivityFinder(
1464 SocialActivityFinder socialActivityFinder) {
1465 this.socialActivityFinder = socialActivityFinder;
1466 }
1467
1468 public void afterPropertiesSet() {
1469 persistedModelLocalServiceRegistry.register("com.liferay.portlet.blogs.model.BlogsEntry",
1470 blogsEntryLocalService);
1471 }
1472
1473 public void destroy() {
1474 persistedModelLocalServiceRegistry.unregister(
1475 "com.liferay.portlet.blogs.model.BlogsEntry");
1476 }
1477
1478
1483 public String getBeanIdentifier() {
1484 return _beanIdentifier;
1485 }
1486
1487
1492 public void setBeanIdentifier(String beanIdentifier) {
1493 _beanIdentifier = beanIdentifier;
1494 }
1495
1496 protected Class<?> getModelClass() {
1497 return BlogsEntry.class;
1498 }
1499
1500 protected String getModelClassName() {
1501 return BlogsEntry.class.getName();
1502 }
1503
1504
1509 protected void runSQL(String sql) throws SystemException {
1510 try {
1511 DataSource dataSource = blogsEntryPersistence.getDataSource();
1512
1513 SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
1514 sql, new int[0]);
1515
1516 sqlUpdate.update();
1517 }
1518 catch (Exception e) {
1519 throw new SystemException(e);
1520 }
1521 }
1522
1523 @BeanReference(type = BlogsEntryLocalService.class)
1524 protected BlogsEntryLocalService blogsEntryLocalService;
1525 @BeanReference(type = BlogsEntryService.class)
1526 protected BlogsEntryService blogsEntryService;
1527 @BeanReference(type = BlogsEntryPersistence.class)
1528 protected BlogsEntryPersistence blogsEntryPersistence;
1529 @BeanReference(type = BlogsEntryFinder.class)
1530 protected BlogsEntryFinder blogsEntryFinder;
1531 @BeanReference(type = BlogsStatsUserLocalService.class)
1532 protected BlogsStatsUserLocalService blogsStatsUserLocalService;
1533 @BeanReference(type = BlogsStatsUserPersistence.class)
1534 protected BlogsStatsUserPersistence blogsStatsUserPersistence;
1535 @BeanReference(type = BlogsStatsUserFinder.class)
1536 protected BlogsStatsUserFinder blogsStatsUserFinder;
1537 @BeanReference(type = CounterLocalService.class)
1538 protected CounterLocalService counterLocalService;
1539 @BeanReference(type = CompanyLocalService.class)
1540 protected CompanyLocalService companyLocalService;
1541 @BeanReference(type = CompanyService.class)
1542 protected CompanyService companyService;
1543 @BeanReference(type = CompanyPersistence.class)
1544 protected CompanyPersistence companyPersistence;
1545 @BeanReference(type = GroupLocalService.class)
1546 protected GroupLocalService groupLocalService;
1547 @BeanReference(type = GroupService.class)
1548 protected GroupService groupService;
1549 @BeanReference(type = GroupPersistence.class)
1550 protected GroupPersistence groupPersistence;
1551 @BeanReference(type = GroupFinder.class)
1552 protected GroupFinder groupFinder;
1553 @BeanReference(type = ImageLocalService.class)
1554 protected ImageLocalService imageLocalService;
1555 @BeanReference(type = ImageService.class)
1556 protected ImageService imageService;
1557 @BeanReference(type = ImagePersistence.class)
1558 protected ImagePersistence imagePersistence;
1559 @BeanReference(type = OrganizationLocalService.class)
1560 protected OrganizationLocalService organizationLocalService;
1561 @BeanReference(type = OrganizationService.class)
1562 protected OrganizationService organizationService;
1563 @BeanReference(type = OrganizationPersistence.class)
1564 protected OrganizationPersistence organizationPersistence;
1565 @BeanReference(type = OrganizationFinder.class)
1566 protected OrganizationFinder organizationFinder;
1567 @BeanReference(type = PortletPreferencesLocalService.class)
1568 protected PortletPreferencesLocalService portletPreferencesLocalService;
1569 @BeanReference(type = PortletPreferencesService.class)
1570 protected PortletPreferencesService portletPreferencesService;
1571 @BeanReference(type = PortletPreferencesPersistence.class)
1572 protected PortletPreferencesPersistence portletPreferencesPersistence;
1573 @BeanReference(type = PortletPreferencesFinder.class)
1574 protected PortletPreferencesFinder portletPreferencesFinder;
1575 @BeanReference(type = ResourceLocalService.class)
1576 protected ResourceLocalService resourceLocalService;
1577 @BeanReference(type = ResourceService.class)
1578 protected ResourceService resourceService;
1579 @BeanReference(type = ResourcePersistence.class)
1580 protected ResourcePersistence resourcePersistence;
1581 @BeanReference(type = ResourceFinder.class)
1582 protected ResourceFinder resourceFinder;
1583 @BeanReference(type = SubscriptionLocalService.class)
1584 protected SubscriptionLocalService subscriptionLocalService;
1585 @BeanReference(type = SubscriptionPersistence.class)
1586 protected SubscriptionPersistence subscriptionPersistence;
1587 @BeanReference(type = UserLocalService.class)
1588 protected UserLocalService userLocalService;
1589 @BeanReference(type = UserService.class)
1590 protected UserService userService;
1591 @BeanReference(type = UserPersistence.class)
1592 protected UserPersistence userPersistence;
1593 @BeanReference(type = UserFinder.class)
1594 protected UserFinder userFinder;
1595 @BeanReference(type = WorkflowInstanceLinkLocalService.class)
1596 protected WorkflowInstanceLinkLocalService workflowInstanceLinkLocalService;
1597 @BeanReference(type = WorkflowInstanceLinkPersistence.class)
1598 protected WorkflowInstanceLinkPersistence workflowInstanceLinkPersistence;
1599 @BeanReference(type = AssetEntryLocalService.class)
1600 protected AssetEntryLocalService assetEntryLocalService;
1601 @BeanReference(type = AssetEntryService.class)
1602 protected AssetEntryService assetEntryService;
1603 @BeanReference(type = AssetEntryPersistence.class)
1604 protected AssetEntryPersistence assetEntryPersistence;
1605 @BeanReference(type = AssetEntryFinder.class)
1606 protected AssetEntryFinder assetEntryFinder;
1607 @BeanReference(type = AssetLinkLocalService.class)
1608 protected AssetLinkLocalService assetLinkLocalService;
1609 @BeanReference(type = AssetLinkPersistence.class)
1610 protected AssetLinkPersistence assetLinkPersistence;
1611 @BeanReference(type = AssetTagLocalService.class)
1612 protected AssetTagLocalService assetTagLocalService;
1613 @BeanReference(type = AssetTagService.class)
1614 protected AssetTagService assetTagService;
1615 @BeanReference(type = AssetTagPersistence.class)
1616 protected AssetTagPersistence assetTagPersistence;
1617 @BeanReference(type = AssetTagFinder.class)
1618 protected AssetTagFinder assetTagFinder;
1619 @BeanReference(type = ExpandoValueLocalService.class)
1620 protected ExpandoValueLocalService expandoValueLocalService;
1621 @BeanReference(type = ExpandoValueService.class)
1622 protected ExpandoValueService expandoValueService;
1623 @BeanReference(type = ExpandoValuePersistence.class)
1624 protected ExpandoValuePersistence expandoValuePersistence;
1625 @BeanReference(type = MBMessageLocalService.class)
1626 protected MBMessageLocalService mbMessageLocalService;
1627 @BeanReference(type = MBMessageService.class)
1628 protected MBMessageService mbMessageService;
1629 @BeanReference(type = MBMessagePersistence.class)
1630 protected MBMessagePersistence mbMessagePersistence;
1631 @BeanReference(type = MBMessageFinder.class)
1632 protected MBMessageFinder mbMessageFinder;
1633 @BeanReference(type = RatingsStatsLocalService.class)
1634 protected RatingsStatsLocalService ratingsStatsLocalService;
1635 @BeanReference(type = RatingsStatsPersistence.class)
1636 protected RatingsStatsPersistence ratingsStatsPersistence;
1637 @BeanReference(type = RatingsStatsFinder.class)
1638 protected RatingsStatsFinder ratingsStatsFinder;
1639 @BeanReference(type = SocialActivityLocalService.class)
1640 protected SocialActivityLocalService socialActivityLocalService;
1641 @BeanReference(type = SocialActivityPersistence.class)
1642 protected SocialActivityPersistence socialActivityPersistence;
1643 @BeanReference(type = SocialActivityFinder.class)
1644 protected SocialActivityFinder socialActivityFinder;
1645 @BeanReference(type = PersistedModelLocalServiceRegistry.class)
1646 protected PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry;
1647 private String _beanIdentifier;
1648 }