001
014
015 package com.liferay.portal.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.db.DB;
020 import com.liferay.portal.kernel.dao.db.DBFactoryUtil;
021 import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
022 import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
023 import com.liferay.portal.kernel.exception.SystemException;
024 import com.liferay.portal.model.LayoutRevision;
025 import com.liferay.portal.service.BaseServiceImpl;
026 import com.liferay.portal.service.LayoutRevisionService;
027 import com.liferay.portal.service.persistence.ImagePersistence;
028 import com.liferay.portal.service.persistence.LayoutBranchPersistence;
029 import com.liferay.portal.service.persistence.LayoutFinder;
030 import com.liferay.portal.service.persistence.LayoutPersistence;
031 import com.liferay.portal.service.persistence.LayoutRevisionPersistence;
032 import com.liferay.portal.service.persistence.LayoutSetBranchPersistence;
033 import com.liferay.portal.service.persistence.LayoutSetPersistence;
034 import com.liferay.portal.service.persistence.PortletPreferencesFinder;
035 import com.liferay.portal.service.persistence.PortletPreferencesPersistence;
036 import com.liferay.portal.service.persistence.UserFinder;
037 import com.liferay.portal.service.persistence.UserPersistence;
038 import com.liferay.portal.service.persistence.WorkflowInstanceLinkPersistence;
039 import com.liferay.portal.util.PortalUtil;
040
041 import javax.sql.DataSource;
042
043
055 public abstract class LayoutRevisionServiceBaseImpl extends BaseServiceImpl
056 implements LayoutRevisionService, IdentifiableBean {
057
062
063
068 public com.liferay.portal.service.LayoutRevisionLocalService getLayoutRevisionLocalService() {
069 return layoutRevisionLocalService;
070 }
071
072
077 public void setLayoutRevisionLocalService(
078 com.liferay.portal.service.LayoutRevisionLocalService layoutRevisionLocalService) {
079 this.layoutRevisionLocalService = layoutRevisionLocalService;
080 }
081
082
087 public LayoutRevisionService getLayoutRevisionService() {
088 return layoutRevisionService;
089 }
090
091
096 public void setLayoutRevisionService(
097 LayoutRevisionService layoutRevisionService) {
098 this.layoutRevisionService = layoutRevisionService;
099 }
100
101
106 public LayoutRevisionPersistence getLayoutRevisionPersistence() {
107 return layoutRevisionPersistence;
108 }
109
110
115 public void setLayoutRevisionPersistence(
116 LayoutRevisionPersistence layoutRevisionPersistence) {
117 this.layoutRevisionPersistence = layoutRevisionPersistence;
118 }
119
120
125 public com.liferay.counter.service.CounterLocalService getCounterLocalService() {
126 return counterLocalService;
127 }
128
129
134 public void setCounterLocalService(
135 com.liferay.counter.service.CounterLocalService counterLocalService) {
136 this.counterLocalService = counterLocalService;
137 }
138
139
144 public com.liferay.portal.service.ImageLocalService getImageLocalService() {
145 return imageLocalService;
146 }
147
148
153 public void setImageLocalService(
154 com.liferay.portal.service.ImageLocalService imageLocalService) {
155 this.imageLocalService = imageLocalService;
156 }
157
158
163 public com.liferay.portal.service.ImageService getImageService() {
164 return imageService;
165 }
166
167
172 public void setImageService(
173 com.liferay.portal.service.ImageService imageService) {
174 this.imageService = imageService;
175 }
176
177
182 public ImagePersistence getImagePersistence() {
183 return imagePersistence;
184 }
185
186
191 public void setImagePersistence(ImagePersistence imagePersistence) {
192 this.imagePersistence = imagePersistence;
193 }
194
195
200 public com.liferay.portal.service.LayoutLocalService getLayoutLocalService() {
201 return layoutLocalService;
202 }
203
204
209 public void setLayoutLocalService(
210 com.liferay.portal.service.LayoutLocalService layoutLocalService) {
211 this.layoutLocalService = layoutLocalService;
212 }
213
214
219 public com.liferay.portal.service.LayoutService getLayoutService() {
220 return layoutService;
221 }
222
223
228 public void setLayoutService(
229 com.liferay.portal.service.LayoutService layoutService) {
230 this.layoutService = layoutService;
231 }
232
233
238 public LayoutPersistence getLayoutPersistence() {
239 return layoutPersistence;
240 }
241
242
247 public void setLayoutPersistence(LayoutPersistence layoutPersistence) {
248 this.layoutPersistence = layoutPersistence;
249 }
250
251
256 public LayoutFinder getLayoutFinder() {
257 return layoutFinder;
258 }
259
260
265 public void setLayoutFinder(LayoutFinder layoutFinder) {
266 this.layoutFinder = layoutFinder;
267 }
268
269
274 public com.liferay.portal.service.LayoutBranchLocalService getLayoutBranchLocalService() {
275 return layoutBranchLocalService;
276 }
277
278
283 public void setLayoutBranchLocalService(
284 com.liferay.portal.service.LayoutBranchLocalService layoutBranchLocalService) {
285 this.layoutBranchLocalService = layoutBranchLocalService;
286 }
287
288
293 public com.liferay.portal.service.LayoutBranchService getLayoutBranchService() {
294 return layoutBranchService;
295 }
296
297
302 public void setLayoutBranchService(
303 com.liferay.portal.service.LayoutBranchService layoutBranchService) {
304 this.layoutBranchService = layoutBranchService;
305 }
306
307
312 public LayoutBranchPersistence getLayoutBranchPersistence() {
313 return layoutBranchPersistence;
314 }
315
316
321 public void setLayoutBranchPersistence(
322 LayoutBranchPersistence layoutBranchPersistence) {
323 this.layoutBranchPersistence = layoutBranchPersistence;
324 }
325
326
331 public com.liferay.portal.service.LayoutSetLocalService getLayoutSetLocalService() {
332 return layoutSetLocalService;
333 }
334
335
340 public void setLayoutSetLocalService(
341 com.liferay.portal.service.LayoutSetLocalService layoutSetLocalService) {
342 this.layoutSetLocalService = layoutSetLocalService;
343 }
344
345
350 public com.liferay.portal.service.LayoutSetService getLayoutSetService() {
351 return layoutSetService;
352 }
353
354
359 public void setLayoutSetService(
360 com.liferay.portal.service.LayoutSetService layoutSetService) {
361 this.layoutSetService = layoutSetService;
362 }
363
364
369 public LayoutSetPersistence getLayoutSetPersistence() {
370 return layoutSetPersistence;
371 }
372
373
378 public void setLayoutSetPersistence(
379 LayoutSetPersistence layoutSetPersistence) {
380 this.layoutSetPersistence = layoutSetPersistence;
381 }
382
383
388 public com.liferay.portal.service.LayoutSetBranchLocalService getLayoutSetBranchLocalService() {
389 return layoutSetBranchLocalService;
390 }
391
392
397 public void setLayoutSetBranchLocalService(
398 com.liferay.portal.service.LayoutSetBranchLocalService layoutSetBranchLocalService) {
399 this.layoutSetBranchLocalService = layoutSetBranchLocalService;
400 }
401
402
407 public com.liferay.portal.service.LayoutSetBranchService getLayoutSetBranchService() {
408 return layoutSetBranchService;
409 }
410
411
416 public void setLayoutSetBranchService(
417 com.liferay.portal.service.LayoutSetBranchService layoutSetBranchService) {
418 this.layoutSetBranchService = layoutSetBranchService;
419 }
420
421
426 public LayoutSetBranchPersistence getLayoutSetBranchPersistence() {
427 return layoutSetBranchPersistence;
428 }
429
430
435 public void setLayoutSetBranchPersistence(
436 LayoutSetBranchPersistence layoutSetBranchPersistence) {
437 this.layoutSetBranchPersistence = layoutSetBranchPersistence;
438 }
439
440
445 public com.liferay.portal.service.PortletPreferencesLocalService getPortletPreferencesLocalService() {
446 return portletPreferencesLocalService;
447 }
448
449
454 public void setPortletPreferencesLocalService(
455 com.liferay.portal.service.PortletPreferencesLocalService portletPreferencesLocalService) {
456 this.portletPreferencesLocalService = portletPreferencesLocalService;
457 }
458
459
464 public com.liferay.portal.service.PortletPreferencesService getPortletPreferencesService() {
465 return portletPreferencesService;
466 }
467
468
473 public void setPortletPreferencesService(
474 com.liferay.portal.service.PortletPreferencesService portletPreferencesService) {
475 this.portletPreferencesService = portletPreferencesService;
476 }
477
478
483 public PortletPreferencesPersistence getPortletPreferencesPersistence() {
484 return portletPreferencesPersistence;
485 }
486
487
492 public void setPortletPreferencesPersistence(
493 PortletPreferencesPersistence portletPreferencesPersistence) {
494 this.portletPreferencesPersistence = portletPreferencesPersistence;
495 }
496
497
502 public PortletPreferencesFinder getPortletPreferencesFinder() {
503 return portletPreferencesFinder;
504 }
505
506
511 public void setPortletPreferencesFinder(
512 PortletPreferencesFinder portletPreferencesFinder) {
513 this.portletPreferencesFinder = portletPreferencesFinder;
514 }
515
516
521 public com.liferay.portal.service.ResourceLocalService getResourceLocalService() {
522 return resourceLocalService;
523 }
524
525
530 public void setResourceLocalService(
531 com.liferay.portal.service.ResourceLocalService resourceLocalService) {
532 this.resourceLocalService = resourceLocalService;
533 }
534
535
540 public com.liferay.portal.service.UserLocalService getUserLocalService() {
541 return userLocalService;
542 }
543
544
549 public void setUserLocalService(
550 com.liferay.portal.service.UserLocalService userLocalService) {
551 this.userLocalService = userLocalService;
552 }
553
554
559 public com.liferay.portal.service.UserService getUserService() {
560 return userService;
561 }
562
563
568 public void setUserService(
569 com.liferay.portal.service.UserService userService) {
570 this.userService = userService;
571 }
572
573
578 public UserPersistence getUserPersistence() {
579 return userPersistence;
580 }
581
582
587 public void setUserPersistence(UserPersistence userPersistence) {
588 this.userPersistence = userPersistence;
589 }
590
591
596 public UserFinder getUserFinder() {
597 return userFinder;
598 }
599
600
605 public void setUserFinder(UserFinder userFinder) {
606 this.userFinder = userFinder;
607 }
608
609
614 public com.liferay.portal.service.WorkflowInstanceLinkLocalService getWorkflowInstanceLinkLocalService() {
615 return workflowInstanceLinkLocalService;
616 }
617
618
623 public void setWorkflowInstanceLinkLocalService(
624 com.liferay.portal.service.WorkflowInstanceLinkLocalService workflowInstanceLinkLocalService) {
625 this.workflowInstanceLinkLocalService = workflowInstanceLinkLocalService;
626 }
627
628
633 public WorkflowInstanceLinkPersistence getWorkflowInstanceLinkPersistence() {
634 return workflowInstanceLinkPersistence;
635 }
636
637
642 public void setWorkflowInstanceLinkPersistence(
643 WorkflowInstanceLinkPersistence workflowInstanceLinkPersistence) {
644 this.workflowInstanceLinkPersistence = workflowInstanceLinkPersistence;
645 }
646
647 public void afterPropertiesSet() {
648 }
649
650 public void destroy() {
651 }
652
653
658 @Override
659 public String getBeanIdentifier() {
660 return _beanIdentifier;
661 }
662
663
668 @Override
669 public void setBeanIdentifier(String beanIdentifier) {
670 _beanIdentifier = beanIdentifier;
671 }
672
673 protected Class<?> getModelClass() {
674 return LayoutRevision.class;
675 }
676
677 protected String getModelClassName() {
678 return LayoutRevision.class.getName();
679 }
680
681
686 protected void runSQL(String sql) {
687 try {
688 DataSource dataSource = layoutRevisionPersistence.getDataSource();
689
690 DB db = DBFactoryUtil.getDB();
691
692 sql = db.buildSQL(sql);
693 sql = PortalUtil.transformSQL(sql);
694
695 SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
696 sql, new int[0]);
697
698 sqlUpdate.update();
699 }
700 catch (Exception e) {
701 throw new SystemException(e);
702 }
703 }
704
705 @BeanReference(type = com.liferay.portal.service.LayoutRevisionLocalService.class)
706 protected com.liferay.portal.service.LayoutRevisionLocalService layoutRevisionLocalService;
707 @BeanReference(type = LayoutRevisionService.class)
708 protected LayoutRevisionService layoutRevisionService;
709 @BeanReference(type = LayoutRevisionPersistence.class)
710 protected LayoutRevisionPersistence layoutRevisionPersistence;
711 @BeanReference(type = com.liferay.counter.service.CounterLocalService.class)
712 protected com.liferay.counter.service.CounterLocalService counterLocalService;
713 @BeanReference(type = com.liferay.portal.service.ImageLocalService.class)
714 protected com.liferay.portal.service.ImageLocalService imageLocalService;
715 @BeanReference(type = com.liferay.portal.service.ImageService.class)
716 protected com.liferay.portal.service.ImageService imageService;
717 @BeanReference(type = ImagePersistence.class)
718 protected ImagePersistence imagePersistence;
719 @BeanReference(type = com.liferay.portal.service.LayoutLocalService.class)
720 protected com.liferay.portal.service.LayoutLocalService layoutLocalService;
721 @BeanReference(type = com.liferay.portal.service.LayoutService.class)
722 protected com.liferay.portal.service.LayoutService layoutService;
723 @BeanReference(type = LayoutPersistence.class)
724 protected LayoutPersistence layoutPersistence;
725 @BeanReference(type = LayoutFinder.class)
726 protected LayoutFinder layoutFinder;
727 @BeanReference(type = com.liferay.portal.service.LayoutBranchLocalService.class)
728 protected com.liferay.portal.service.LayoutBranchLocalService layoutBranchLocalService;
729 @BeanReference(type = com.liferay.portal.service.LayoutBranchService.class)
730 protected com.liferay.portal.service.LayoutBranchService layoutBranchService;
731 @BeanReference(type = LayoutBranchPersistence.class)
732 protected LayoutBranchPersistence layoutBranchPersistence;
733 @BeanReference(type = com.liferay.portal.service.LayoutSetLocalService.class)
734 protected com.liferay.portal.service.LayoutSetLocalService layoutSetLocalService;
735 @BeanReference(type = com.liferay.portal.service.LayoutSetService.class)
736 protected com.liferay.portal.service.LayoutSetService layoutSetService;
737 @BeanReference(type = LayoutSetPersistence.class)
738 protected LayoutSetPersistence layoutSetPersistence;
739 @BeanReference(type = com.liferay.portal.service.LayoutSetBranchLocalService.class)
740 protected com.liferay.portal.service.LayoutSetBranchLocalService layoutSetBranchLocalService;
741 @BeanReference(type = com.liferay.portal.service.LayoutSetBranchService.class)
742 protected com.liferay.portal.service.LayoutSetBranchService layoutSetBranchService;
743 @BeanReference(type = LayoutSetBranchPersistence.class)
744 protected LayoutSetBranchPersistence layoutSetBranchPersistence;
745 @BeanReference(type = com.liferay.portal.service.PortletPreferencesLocalService.class)
746 protected com.liferay.portal.service.PortletPreferencesLocalService portletPreferencesLocalService;
747 @BeanReference(type = com.liferay.portal.service.PortletPreferencesService.class)
748 protected com.liferay.portal.service.PortletPreferencesService portletPreferencesService;
749 @BeanReference(type = PortletPreferencesPersistence.class)
750 protected PortletPreferencesPersistence portletPreferencesPersistence;
751 @BeanReference(type = PortletPreferencesFinder.class)
752 protected PortletPreferencesFinder portletPreferencesFinder;
753 @BeanReference(type = com.liferay.portal.service.ResourceLocalService.class)
754 protected com.liferay.portal.service.ResourceLocalService resourceLocalService;
755 @BeanReference(type = com.liferay.portal.service.UserLocalService.class)
756 protected com.liferay.portal.service.UserLocalService userLocalService;
757 @BeanReference(type = com.liferay.portal.service.UserService.class)
758 protected com.liferay.portal.service.UserService userService;
759 @BeanReference(type = UserPersistence.class)
760 protected UserPersistence userPersistence;
761 @BeanReference(type = UserFinder.class)
762 protected UserFinder userFinder;
763 @BeanReference(type = com.liferay.portal.service.WorkflowInstanceLinkLocalService.class)
764 protected com.liferay.portal.service.WorkflowInstanceLinkLocalService workflowInstanceLinkLocalService;
765 @BeanReference(type = WorkflowInstanceLinkPersistence.class)
766 protected WorkflowInstanceLinkPersistence workflowInstanceLinkPersistence;
767 private String _beanIdentifier;
768 }