001
014
015 package com.liferay.portlet.journal.service.base;
016
017 import com.liferay.counter.service.CounterLocalService;
018
019 import com.liferay.portal.kernel.annotation.BeanReference;
020 import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
021 import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
022 import com.liferay.portal.kernel.dao.orm.DynamicQuery;
023 import com.liferay.portal.kernel.exception.PortalException;
024 import com.liferay.portal.kernel.exception.SystemException;
025 import com.liferay.portal.kernel.util.OrderByComparator;
026 import com.liferay.portal.service.GroupLocalService;
027 import com.liferay.portal.service.GroupService;
028 import com.liferay.portal.service.LayoutLocalService;
029 import com.liferay.portal.service.LayoutService;
030 import com.liferay.portal.service.PortletPreferencesLocalService;
031 import com.liferay.portal.service.PortletPreferencesService;
032 import com.liferay.portal.service.ResourceLocalService;
033 import com.liferay.portal.service.ResourceService;
034 import com.liferay.portal.service.UserLocalService;
035 import com.liferay.portal.service.UserService;
036 import com.liferay.portal.service.persistence.GroupFinder;
037 import com.liferay.portal.service.persistence.GroupPersistence;
038 import com.liferay.portal.service.persistence.LayoutFinder;
039 import com.liferay.portal.service.persistence.LayoutPersistence;
040 import com.liferay.portal.service.persistence.PortletPreferencesFinder;
041 import com.liferay.portal.service.persistence.PortletPreferencesPersistence;
042 import com.liferay.portal.service.persistence.ResourceFinder;
043 import com.liferay.portal.service.persistence.ResourcePersistence;
044 import com.liferay.portal.service.persistence.UserFinder;
045 import com.liferay.portal.service.persistence.UserPersistence;
046
047 import com.liferay.portlet.journal.model.JournalContentSearch;
048 import com.liferay.portlet.journal.service.JournalArticleImageLocalService;
049 import com.liferay.portlet.journal.service.JournalArticleLocalService;
050 import com.liferay.portlet.journal.service.JournalArticleResourceLocalService;
051 import com.liferay.portlet.journal.service.JournalArticleService;
052 import com.liferay.portlet.journal.service.JournalContentSearchLocalService;
053 import com.liferay.portlet.journal.service.JournalFeedLocalService;
054 import com.liferay.portlet.journal.service.JournalFeedService;
055 import com.liferay.portlet.journal.service.JournalStructureLocalService;
056 import com.liferay.portlet.journal.service.JournalStructureService;
057 import com.liferay.portlet.journal.service.JournalTemplateLocalService;
058 import com.liferay.portlet.journal.service.JournalTemplateService;
059 import com.liferay.portlet.journal.service.persistence.JournalArticleFinder;
060 import com.liferay.portlet.journal.service.persistence.JournalArticleImagePersistence;
061 import com.liferay.portlet.journal.service.persistence.JournalArticlePersistence;
062 import com.liferay.portlet.journal.service.persistence.JournalArticleResourcePersistence;
063 import com.liferay.portlet.journal.service.persistence.JournalContentSearchPersistence;
064 import com.liferay.portlet.journal.service.persistence.JournalFeedFinder;
065 import com.liferay.portlet.journal.service.persistence.JournalFeedPersistence;
066 import com.liferay.portlet.journal.service.persistence.JournalStructureFinder;
067 import com.liferay.portlet.journal.service.persistence.JournalStructurePersistence;
068 import com.liferay.portlet.journal.service.persistence.JournalTemplateFinder;
069 import com.liferay.portlet.journal.service.persistence.JournalTemplatePersistence;
070
071 import java.util.List;
072
073 import javax.sql.DataSource;
074
075
091 public abstract class JournalContentSearchLocalServiceBaseImpl
092 implements JournalContentSearchLocalService {
093
100 public JournalContentSearch addJournalContentSearch(
101 JournalContentSearch journalContentSearch) throws SystemException {
102 journalContentSearch.setNew(true);
103
104 return journalContentSearchPersistence.update(journalContentSearch,
105 false);
106 }
107
108
114 public JournalContentSearch createJournalContentSearch(long contentSearchId) {
115 return journalContentSearchPersistence.create(contentSearchId);
116 }
117
118
125 public void deleteJournalContentSearch(long contentSearchId)
126 throws PortalException, SystemException {
127 journalContentSearchPersistence.remove(contentSearchId);
128 }
129
130
136 public void deleteJournalContentSearch(
137 JournalContentSearch journalContentSearch) throws SystemException {
138 journalContentSearchPersistence.remove(journalContentSearch);
139 }
140
141
148 @SuppressWarnings("rawtypes")
149 public List dynamicQuery(DynamicQuery dynamicQuery)
150 throws SystemException {
151 return journalContentSearchPersistence.findWithDynamicQuery(dynamicQuery);
152 }
153
154
167 @SuppressWarnings("rawtypes")
168 public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
169 throws SystemException {
170 return journalContentSearchPersistence.findWithDynamicQuery(dynamicQuery,
171 start, end);
172 }
173
174
188 @SuppressWarnings("rawtypes")
189 public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end,
190 OrderByComparator orderByComparator) throws SystemException {
191 return journalContentSearchPersistence.findWithDynamicQuery(dynamicQuery,
192 start, end, orderByComparator);
193 }
194
195
202 public long dynamicQueryCount(DynamicQuery dynamicQuery)
203 throws SystemException {
204 return journalContentSearchPersistence.countWithDynamicQuery(dynamicQuery);
205 }
206
207
215 public JournalContentSearch getJournalContentSearch(long contentSearchId)
216 throws PortalException, SystemException {
217 return journalContentSearchPersistence.findByPrimaryKey(contentSearchId);
218 }
219
220
232 public List<JournalContentSearch> getJournalContentSearchs(int start,
233 int end) throws SystemException {
234 return journalContentSearchPersistence.findAll(start, end);
235 }
236
237
243 public int getJournalContentSearchsCount() throws SystemException {
244 return journalContentSearchPersistence.countAll();
245 }
246
247
254 public JournalContentSearch updateJournalContentSearch(
255 JournalContentSearch journalContentSearch) throws SystemException {
256 journalContentSearch.setNew(false);
257
258 return journalContentSearchPersistence.update(journalContentSearch, true);
259 }
260
261
269 public JournalContentSearch updateJournalContentSearch(
270 JournalContentSearch journalContentSearch, boolean merge)
271 throws SystemException {
272 journalContentSearch.setNew(false);
273
274 return journalContentSearchPersistence.update(journalContentSearch,
275 merge);
276 }
277
278
283 public JournalArticleLocalService getJournalArticleLocalService() {
284 return journalArticleLocalService;
285 }
286
287
292 public void setJournalArticleLocalService(
293 JournalArticleLocalService journalArticleLocalService) {
294 this.journalArticleLocalService = journalArticleLocalService;
295 }
296
297
302 public JournalArticleService getJournalArticleService() {
303 return journalArticleService;
304 }
305
306
311 public void setJournalArticleService(
312 JournalArticleService journalArticleService) {
313 this.journalArticleService = journalArticleService;
314 }
315
316
321 public JournalArticlePersistence getJournalArticlePersistence() {
322 return journalArticlePersistence;
323 }
324
325
330 public void setJournalArticlePersistence(
331 JournalArticlePersistence journalArticlePersistence) {
332 this.journalArticlePersistence = journalArticlePersistence;
333 }
334
335
340 public JournalArticleFinder getJournalArticleFinder() {
341 return journalArticleFinder;
342 }
343
344
349 public void setJournalArticleFinder(
350 JournalArticleFinder journalArticleFinder) {
351 this.journalArticleFinder = journalArticleFinder;
352 }
353
354
359 public JournalArticleImageLocalService getJournalArticleImageLocalService() {
360 return journalArticleImageLocalService;
361 }
362
363
368 public void setJournalArticleImageLocalService(
369 JournalArticleImageLocalService journalArticleImageLocalService) {
370 this.journalArticleImageLocalService = journalArticleImageLocalService;
371 }
372
373
378 public JournalArticleImagePersistence getJournalArticleImagePersistence() {
379 return journalArticleImagePersistence;
380 }
381
382
387 public void setJournalArticleImagePersistence(
388 JournalArticleImagePersistence journalArticleImagePersistence) {
389 this.journalArticleImagePersistence = journalArticleImagePersistence;
390 }
391
392
397 public JournalArticleResourceLocalService getJournalArticleResourceLocalService() {
398 return journalArticleResourceLocalService;
399 }
400
401
406 public void setJournalArticleResourceLocalService(
407 JournalArticleResourceLocalService journalArticleResourceLocalService) {
408 this.journalArticleResourceLocalService = journalArticleResourceLocalService;
409 }
410
411
416 public JournalArticleResourcePersistence getJournalArticleResourcePersistence() {
417 return journalArticleResourcePersistence;
418 }
419
420
425 public void setJournalArticleResourcePersistence(
426 JournalArticleResourcePersistence journalArticleResourcePersistence) {
427 this.journalArticleResourcePersistence = journalArticleResourcePersistence;
428 }
429
430
435 public JournalContentSearchLocalService getJournalContentSearchLocalService() {
436 return journalContentSearchLocalService;
437 }
438
439
444 public void setJournalContentSearchLocalService(
445 JournalContentSearchLocalService journalContentSearchLocalService) {
446 this.journalContentSearchLocalService = journalContentSearchLocalService;
447 }
448
449
454 public JournalContentSearchPersistence getJournalContentSearchPersistence() {
455 return journalContentSearchPersistence;
456 }
457
458
463 public void setJournalContentSearchPersistence(
464 JournalContentSearchPersistence journalContentSearchPersistence) {
465 this.journalContentSearchPersistence = journalContentSearchPersistence;
466 }
467
468
473 public JournalFeedLocalService getJournalFeedLocalService() {
474 return journalFeedLocalService;
475 }
476
477
482 public void setJournalFeedLocalService(
483 JournalFeedLocalService journalFeedLocalService) {
484 this.journalFeedLocalService = journalFeedLocalService;
485 }
486
487
492 public JournalFeedService getJournalFeedService() {
493 return journalFeedService;
494 }
495
496
501 public void setJournalFeedService(JournalFeedService journalFeedService) {
502 this.journalFeedService = journalFeedService;
503 }
504
505
510 public JournalFeedPersistence getJournalFeedPersistence() {
511 return journalFeedPersistence;
512 }
513
514
519 public void setJournalFeedPersistence(
520 JournalFeedPersistence journalFeedPersistence) {
521 this.journalFeedPersistence = journalFeedPersistence;
522 }
523
524
529 public JournalFeedFinder getJournalFeedFinder() {
530 return journalFeedFinder;
531 }
532
533
538 public void setJournalFeedFinder(JournalFeedFinder journalFeedFinder) {
539 this.journalFeedFinder = journalFeedFinder;
540 }
541
542
547 public JournalStructureLocalService getJournalStructureLocalService() {
548 return journalStructureLocalService;
549 }
550
551
556 public void setJournalStructureLocalService(
557 JournalStructureLocalService journalStructureLocalService) {
558 this.journalStructureLocalService = journalStructureLocalService;
559 }
560
561
566 public JournalStructureService getJournalStructureService() {
567 return journalStructureService;
568 }
569
570
575 public void setJournalStructureService(
576 JournalStructureService journalStructureService) {
577 this.journalStructureService = journalStructureService;
578 }
579
580
585 public JournalStructurePersistence getJournalStructurePersistence() {
586 return journalStructurePersistence;
587 }
588
589
594 public void setJournalStructurePersistence(
595 JournalStructurePersistence journalStructurePersistence) {
596 this.journalStructurePersistence = journalStructurePersistence;
597 }
598
599
604 public JournalStructureFinder getJournalStructureFinder() {
605 return journalStructureFinder;
606 }
607
608
613 public void setJournalStructureFinder(
614 JournalStructureFinder journalStructureFinder) {
615 this.journalStructureFinder = journalStructureFinder;
616 }
617
618
623 public JournalTemplateLocalService getJournalTemplateLocalService() {
624 return journalTemplateLocalService;
625 }
626
627
632 public void setJournalTemplateLocalService(
633 JournalTemplateLocalService journalTemplateLocalService) {
634 this.journalTemplateLocalService = journalTemplateLocalService;
635 }
636
637
642 public JournalTemplateService getJournalTemplateService() {
643 return journalTemplateService;
644 }
645
646
651 public void setJournalTemplateService(
652 JournalTemplateService journalTemplateService) {
653 this.journalTemplateService = journalTemplateService;
654 }
655
656
661 public JournalTemplatePersistence getJournalTemplatePersistence() {
662 return journalTemplatePersistence;
663 }
664
665
670 public void setJournalTemplatePersistence(
671 JournalTemplatePersistence journalTemplatePersistence) {
672 this.journalTemplatePersistence = journalTemplatePersistence;
673 }
674
675
680 public JournalTemplateFinder getJournalTemplateFinder() {
681 return journalTemplateFinder;
682 }
683
684
689 public void setJournalTemplateFinder(
690 JournalTemplateFinder journalTemplateFinder) {
691 this.journalTemplateFinder = journalTemplateFinder;
692 }
693
694
699 public CounterLocalService getCounterLocalService() {
700 return counterLocalService;
701 }
702
703
708 public void setCounterLocalService(CounterLocalService counterLocalService) {
709 this.counterLocalService = counterLocalService;
710 }
711
712
717 public GroupLocalService getGroupLocalService() {
718 return groupLocalService;
719 }
720
721
726 public void setGroupLocalService(GroupLocalService groupLocalService) {
727 this.groupLocalService = groupLocalService;
728 }
729
730
735 public GroupService getGroupService() {
736 return groupService;
737 }
738
739
744 public void setGroupService(GroupService groupService) {
745 this.groupService = groupService;
746 }
747
748
753 public GroupPersistence getGroupPersistence() {
754 return groupPersistence;
755 }
756
757
762 public void setGroupPersistence(GroupPersistence groupPersistence) {
763 this.groupPersistence = groupPersistence;
764 }
765
766
771 public GroupFinder getGroupFinder() {
772 return groupFinder;
773 }
774
775
780 public void setGroupFinder(GroupFinder groupFinder) {
781 this.groupFinder = groupFinder;
782 }
783
784
789 public LayoutLocalService getLayoutLocalService() {
790 return layoutLocalService;
791 }
792
793
798 public void setLayoutLocalService(LayoutLocalService layoutLocalService) {
799 this.layoutLocalService = layoutLocalService;
800 }
801
802
807 public LayoutService getLayoutService() {
808 return layoutService;
809 }
810
811
816 public void setLayoutService(LayoutService layoutService) {
817 this.layoutService = layoutService;
818 }
819
820
825 public LayoutPersistence getLayoutPersistence() {
826 return layoutPersistence;
827 }
828
829
834 public void setLayoutPersistence(LayoutPersistence layoutPersistence) {
835 this.layoutPersistence = layoutPersistence;
836 }
837
838
843 public LayoutFinder getLayoutFinder() {
844 return layoutFinder;
845 }
846
847
852 public void setLayoutFinder(LayoutFinder layoutFinder) {
853 this.layoutFinder = layoutFinder;
854 }
855
856
861 public PortletPreferencesLocalService getPortletPreferencesLocalService() {
862 return portletPreferencesLocalService;
863 }
864
865
870 public void setPortletPreferencesLocalService(
871 PortletPreferencesLocalService portletPreferencesLocalService) {
872 this.portletPreferencesLocalService = portletPreferencesLocalService;
873 }
874
875
880 public PortletPreferencesService getPortletPreferencesService() {
881 return portletPreferencesService;
882 }
883
884
889 public void setPortletPreferencesService(
890 PortletPreferencesService portletPreferencesService) {
891 this.portletPreferencesService = portletPreferencesService;
892 }
893
894
899 public PortletPreferencesPersistence getPortletPreferencesPersistence() {
900 return portletPreferencesPersistence;
901 }
902
903
908 public void setPortletPreferencesPersistence(
909 PortletPreferencesPersistence portletPreferencesPersistence) {
910 this.portletPreferencesPersistence = portletPreferencesPersistence;
911 }
912
913
918 public PortletPreferencesFinder getPortletPreferencesFinder() {
919 return portletPreferencesFinder;
920 }
921
922
927 public void setPortletPreferencesFinder(
928 PortletPreferencesFinder portletPreferencesFinder) {
929 this.portletPreferencesFinder = portletPreferencesFinder;
930 }
931
932
937 public ResourceLocalService getResourceLocalService() {
938 return resourceLocalService;
939 }
940
941
946 public void setResourceLocalService(
947 ResourceLocalService resourceLocalService) {
948 this.resourceLocalService = resourceLocalService;
949 }
950
951
956 public ResourceService getResourceService() {
957 return resourceService;
958 }
959
960
965 public void setResourceService(ResourceService resourceService) {
966 this.resourceService = resourceService;
967 }
968
969
974 public ResourcePersistence getResourcePersistence() {
975 return resourcePersistence;
976 }
977
978
983 public void setResourcePersistence(ResourcePersistence resourcePersistence) {
984 this.resourcePersistence = resourcePersistence;
985 }
986
987
992 public ResourceFinder getResourceFinder() {
993 return resourceFinder;
994 }
995
996
1001 public void setResourceFinder(ResourceFinder resourceFinder) {
1002 this.resourceFinder = resourceFinder;
1003 }
1004
1005
1010 public UserLocalService getUserLocalService() {
1011 return userLocalService;
1012 }
1013
1014
1019 public void setUserLocalService(UserLocalService userLocalService) {
1020 this.userLocalService = userLocalService;
1021 }
1022
1023
1028 public UserService getUserService() {
1029 return userService;
1030 }
1031
1032
1037 public void setUserService(UserService userService) {
1038 this.userService = userService;
1039 }
1040
1041
1046 public UserPersistence getUserPersistence() {
1047 return userPersistence;
1048 }
1049
1050
1055 public void setUserPersistence(UserPersistence userPersistence) {
1056 this.userPersistence = userPersistence;
1057 }
1058
1059
1064 public UserFinder getUserFinder() {
1065 return userFinder;
1066 }
1067
1068
1073 public void setUserFinder(UserFinder userFinder) {
1074 this.userFinder = userFinder;
1075 }
1076
1077
1082 protected void runSQL(String sql) throws SystemException {
1083 try {
1084 DataSource dataSource = journalContentSearchPersistence.getDataSource();
1085
1086 SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
1087 sql, new int[0]);
1088
1089 sqlUpdate.update();
1090 }
1091 catch (Exception e) {
1092 throw new SystemException(e);
1093 }
1094 }
1095
1096 @BeanReference(type = JournalArticleLocalService.class)
1097 protected JournalArticleLocalService journalArticleLocalService;
1098 @BeanReference(type = JournalArticleService.class)
1099 protected JournalArticleService journalArticleService;
1100 @BeanReference(type = JournalArticlePersistence.class)
1101 protected JournalArticlePersistence journalArticlePersistence;
1102 @BeanReference(type = JournalArticleFinder.class)
1103 protected JournalArticleFinder journalArticleFinder;
1104 @BeanReference(type = JournalArticleImageLocalService.class)
1105 protected JournalArticleImageLocalService journalArticleImageLocalService;
1106 @BeanReference(type = JournalArticleImagePersistence.class)
1107 protected JournalArticleImagePersistence journalArticleImagePersistence;
1108 @BeanReference(type = JournalArticleResourceLocalService.class)
1109 protected JournalArticleResourceLocalService journalArticleResourceLocalService;
1110 @BeanReference(type = JournalArticleResourcePersistence.class)
1111 protected JournalArticleResourcePersistence journalArticleResourcePersistence;
1112 @BeanReference(type = JournalContentSearchLocalService.class)
1113 protected JournalContentSearchLocalService journalContentSearchLocalService;
1114 @BeanReference(type = JournalContentSearchPersistence.class)
1115 protected JournalContentSearchPersistence journalContentSearchPersistence;
1116 @BeanReference(type = JournalFeedLocalService.class)
1117 protected JournalFeedLocalService journalFeedLocalService;
1118 @BeanReference(type = JournalFeedService.class)
1119 protected JournalFeedService journalFeedService;
1120 @BeanReference(type = JournalFeedPersistence.class)
1121 protected JournalFeedPersistence journalFeedPersistence;
1122 @BeanReference(type = JournalFeedFinder.class)
1123 protected JournalFeedFinder journalFeedFinder;
1124 @BeanReference(type = JournalStructureLocalService.class)
1125 protected JournalStructureLocalService journalStructureLocalService;
1126 @BeanReference(type = JournalStructureService.class)
1127 protected JournalStructureService journalStructureService;
1128 @BeanReference(type = JournalStructurePersistence.class)
1129 protected JournalStructurePersistence journalStructurePersistence;
1130 @BeanReference(type = JournalStructureFinder.class)
1131 protected JournalStructureFinder journalStructureFinder;
1132 @BeanReference(type = JournalTemplateLocalService.class)
1133 protected JournalTemplateLocalService journalTemplateLocalService;
1134 @BeanReference(type = JournalTemplateService.class)
1135 protected JournalTemplateService journalTemplateService;
1136 @BeanReference(type = JournalTemplatePersistence.class)
1137 protected JournalTemplatePersistence journalTemplatePersistence;
1138 @BeanReference(type = JournalTemplateFinder.class)
1139 protected JournalTemplateFinder journalTemplateFinder;
1140 @BeanReference(type = CounterLocalService.class)
1141 protected CounterLocalService counterLocalService;
1142 @BeanReference(type = GroupLocalService.class)
1143 protected GroupLocalService groupLocalService;
1144 @BeanReference(type = GroupService.class)
1145 protected GroupService groupService;
1146 @BeanReference(type = GroupPersistence.class)
1147 protected GroupPersistence groupPersistence;
1148 @BeanReference(type = GroupFinder.class)
1149 protected GroupFinder groupFinder;
1150 @BeanReference(type = LayoutLocalService.class)
1151 protected LayoutLocalService layoutLocalService;
1152 @BeanReference(type = LayoutService.class)
1153 protected LayoutService layoutService;
1154 @BeanReference(type = LayoutPersistence.class)
1155 protected LayoutPersistence layoutPersistence;
1156 @BeanReference(type = LayoutFinder.class)
1157 protected LayoutFinder layoutFinder;
1158 @BeanReference(type = PortletPreferencesLocalService.class)
1159 protected PortletPreferencesLocalService portletPreferencesLocalService;
1160 @BeanReference(type = PortletPreferencesService.class)
1161 protected PortletPreferencesService portletPreferencesService;
1162 @BeanReference(type = PortletPreferencesPersistence.class)
1163 protected PortletPreferencesPersistence portletPreferencesPersistence;
1164 @BeanReference(type = PortletPreferencesFinder.class)
1165 protected PortletPreferencesFinder portletPreferencesFinder;
1166 @BeanReference(type = ResourceLocalService.class)
1167 protected ResourceLocalService resourceLocalService;
1168 @BeanReference(type = ResourceService.class)
1169 protected ResourceService resourceService;
1170 @BeanReference(type = ResourcePersistence.class)
1171 protected ResourcePersistence resourcePersistence;
1172 @BeanReference(type = ResourceFinder.class)
1173 protected ResourceFinder resourceFinder;
1174 @BeanReference(type = UserLocalService.class)
1175 protected UserLocalService userLocalService;
1176 @BeanReference(type = UserService.class)
1177 protected UserService userService;
1178 @BeanReference(type = UserPersistence.class)
1179 protected UserPersistence userPersistence;
1180 @BeanReference(type = UserFinder.class)
1181 protected UserFinder userFinder;
1182 }