001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.dynamicdatamapping.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.exception.SystemException;
022    import com.liferay.portal.service.BaseServiceImpl;
023    import com.liferay.portal.service.persistence.GroupFinder;
024    import com.liferay.portal.service.persistence.GroupPersistence;
025    import com.liferay.portal.service.persistence.ImagePersistence;
026    import com.liferay.portal.service.persistence.SystemEventPersistence;
027    import com.liferay.portal.service.persistence.UserFinder;
028    import com.liferay.portal.service.persistence.UserPersistence;
029    
030    import com.liferay.portlet.dynamicdatamapping.model.DDMTemplate;
031    import com.liferay.portlet.dynamicdatamapping.service.DDMTemplateService;
032    import com.liferay.portlet.dynamicdatamapping.service.persistence.DDMContentPersistence;
033    import com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStorageLinkPersistence;
034    import com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStructureFinder;
035    import com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStructureLinkPersistence;
036    import com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStructurePersistence;
037    import com.liferay.portlet.dynamicdatamapping.service.persistence.DDMTemplateFinder;
038    import com.liferay.portlet.dynamicdatamapping.service.persistence.DDMTemplatePersistence;
039    
040    import javax.sql.DataSource;
041    
042    /**
043     * Provides the base implementation for the d d m template remote service.
044     *
045     * <p>
046     * This implementation exists only as a container for the default service methods generated by ServiceBuilder. All custom service methods should be put in {@link com.liferay.portlet.dynamicdatamapping.service.impl.DDMTemplateServiceImpl}.
047     * </p>
048     *
049     * @author Brian Wing Shun Chan
050     * @see com.liferay.portlet.dynamicdatamapping.service.impl.DDMTemplateServiceImpl
051     * @see com.liferay.portlet.dynamicdatamapping.service.DDMTemplateServiceUtil
052     * @generated
053     */
054    public abstract class DDMTemplateServiceBaseImpl extends BaseServiceImpl
055            implements DDMTemplateService, IdentifiableBean {
056            /*
057             * NOTE FOR DEVELOPERS:
058             *
059             * Never modify or reference this class directly. Always use {@link com.liferay.portlet.dynamicdatamapping.service.DDMTemplateServiceUtil} to access the d d m template remote service.
060             */
061    
062            /**
063             * Returns the d d m content local service.
064             *
065             * @return the d d m content local service
066             */
067            public com.liferay.portlet.dynamicdatamapping.service.DDMContentLocalService getDDMContentLocalService() {
068                    return ddmContentLocalService;
069            }
070    
071            /**
072             * Sets the d d m content local service.
073             *
074             * @param ddmContentLocalService the d d m content local service
075             */
076            public void setDDMContentLocalService(
077                    com.liferay.portlet.dynamicdatamapping.service.DDMContentLocalService ddmContentLocalService) {
078                    this.ddmContentLocalService = ddmContentLocalService;
079            }
080    
081            /**
082             * Returns the d d m content persistence.
083             *
084             * @return the d d m content persistence
085             */
086            public DDMContentPersistence getDDMContentPersistence() {
087                    return ddmContentPersistence;
088            }
089    
090            /**
091             * Sets the d d m content persistence.
092             *
093             * @param ddmContentPersistence the d d m content persistence
094             */
095            public void setDDMContentPersistence(
096                    DDMContentPersistence ddmContentPersistence) {
097                    this.ddmContentPersistence = ddmContentPersistence;
098            }
099    
100            /**
101             * Returns the d d m storage link local service.
102             *
103             * @return the d d m storage link local service
104             */
105            public com.liferay.portlet.dynamicdatamapping.service.DDMStorageLinkLocalService getDDMStorageLinkLocalService() {
106                    return ddmStorageLinkLocalService;
107            }
108    
109            /**
110             * Sets the d d m storage link local service.
111             *
112             * @param ddmStorageLinkLocalService the d d m storage link local service
113             */
114            public void setDDMStorageLinkLocalService(
115                    com.liferay.portlet.dynamicdatamapping.service.DDMStorageLinkLocalService ddmStorageLinkLocalService) {
116                    this.ddmStorageLinkLocalService = ddmStorageLinkLocalService;
117            }
118    
119            /**
120             * Returns the d d m storage link persistence.
121             *
122             * @return the d d m storage link persistence
123             */
124            public DDMStorageLinkPersistence getDDMStorageLinkPersistence() {
125                    return ddmStorageLinkPersistence;
126            }
127    
128            /**
129             * Sets the d d m storage link persistence.
130             *
131             * @param ddmStorageLinkPersistence the d d m storage link persistence
132             */
133            public void setDDMStorageLinkPersistence(
134                    DDMStorageLinkPersistence ddmStorageLinkPersistence) {
135                    this.ddmStorageLinkPersistence = ddmStorageLinkPersistence;
136            }
137    
138            /**
139             * Returns the d d m structure local service.
140             *
141             * @return the d d m structure local service
142             */
143            public com.liferay.portlet.dynamicdatamapping.service.DDMStructureLocalService getDDMStructureLocalService() {
144                    return ddmStructureLocalService;
145            }
146    
147            /**
148             * Sets the d d m structure local service.
149             *
150             * @param ddmStructureLocalService the d d m structure local service
151             */
152            public void setDDMStructureLocalService(
153                    com.liferay.portlet.dynamicdatamapping.service.DDMStructureLocalService ddmStructureLocalService) {
154                    this.ddmStructureLocalService = ddmStructureLocalService;
155            }
156    
157            /**
158             * Returns the d d m structure remote service.
159             *
160             * @return the d d m structure remote service
161             */
162            public com.liferay.portlet.dynamicdatamapping.service.DDMStructureService getDDMStructureService() {
163                    return ddmStructureService;
164            }
165    
166            /**
167             * Sets the d d m structure remote service.
168             *
169             * @param ddmStructureService the d d m structure remote service
170             */
171            public void setDDMStructureService(
172                    com.liferay.portlet.dynamicdatamapping.service.DDMStructureService ddmStructureService) {
173                    this.ddmStructureService = ddmStructureService;
174            }
175    
176            /**
177             * Returns the d d m structure persistence.
178             *
179             * @return the d d m structure persistence
180             */
181            public DDMStructurePersistence getDDMStructurePersistence() {
182                    return ddmStructurePersistence;
183            }
184    
185            /**
186             * Sets the d d m structure persistence.
187             *
188             * @param ddmStructurePersistence the d d m structure persistence
189             */
190            public void setDDMStructurePersistence(
191                    DDMStructurePersistence ddmStructurePersistence) {
192                    this.ddmStructurePersistence = ddmStructurePersistence;
193            }
194    
195            /**
196             * Returns the d d m structure finder.
197             *
198             * @return the d d m structure finder
199             */
200            public DDMStructureFinder getDDMStructureFinder() {
201                    return ddmStructureFinder;
202            }
203    
204            /**
205             * Sets the d d m structure finder.
206             *
207             * @param ddmStructureFinder the d d m structure finder
208             */
209            public void setDDMStructureFinder(DDMStructureFinder ddmStructureFinder) {
210                    this.ddmStructureFinder = ddmStructureFinder;
211            }
212    
213            /**
214             * Returns the d d m structure link local service.
215             *
216             * @return the d d m structure link local service
217             */
218            public com.liferay.portlet.dynamicdatamapping.service.DDMStructureLinkLocalService getDDMStructureLinkLocalService() {
219                    return ddmStructureLinkLocalService;
220            }
221    
222            /**
223             * Sets the d d m structure link local service.
224             *
225             * @param ddmStructureLinkLocalService the d d m structure link local service
226             */
227            public void setDDMStructureLinkLocalService(
228                    com.liferay.portlet.dynamicdatamapping.service.DDMStructureLinkLocalService ddmStructureLinkLocalService) {
229                    this.ddmStructureLinkLocalService = ddmStructureLinkLocalService;
230            }
231    
232            /**
233             * Returns the d d m structure link persistence.
234             *
235             * @return the d d m structure link persistence
236             */
237            public DDMStructureLinkPersistence getDDMStructureLinkPersistence() {
238                    return ddmStructureLinkPersistence;
239            }
240    
241            /**
242             * Sets the d d m structure link persistence.
243             *
244             * @param ddmStructureLinkPersistence the d d m structure link persistence
245             */
246            public void setDDMStructureLinkPersistence(
247                    DDMStructureLinkPersistence ddmStructureLinkPersistence) {
248                    this.ddmStructureLinkPersistence = ddmStructureLinkPersistence;
249            }
250    
251            /**
252             * Returns the d d m template local service.
253             *
254             * @return the d d m template local service
255             */
256            public com.liferay.portlet.dynamicdatamapping.service.DDMTemplateLocalService getDDMTemplateLocalService() {
257                    return ddmTemplateLocalService;
258            }
259    
260            /**
261             * Sets the d d m template local service.
262             *
263             * @param ddmTemplateLocalService the d d m template local service
264             */
265            public void setDDMTemplateLocalService(
266                    com.liferay.portlet.dynamicdatamapping.service.DDMTemplateLocalService ddmTemplateLocalService) {
267                    this.ddmTemplateLocalService = ddmTemplateLocalService;
268            }
269    
270            /**
271             * Returns the d d m template remote service.
272             *
273             * @return the d d m template remote service
274             */
275            public com.liferay.portlet.dynamicdatamapping.service.DDMTemplateService getDDMTemplateService() {
276                    return ddmTemplateService;
277            }
278    
279            /**
280             * Sets the d d m template remote service.
281             *
282             * @param ddmTemplateService the d d m template remote service
283             */
284            public void setDDMTemplateService(
285                    com.liferay.portlet.dynamicdatamapping.service.DDMTemplateService ddmTemplateService) {
286                    this.ddmTemplateService = ddmTemplateService;
287            }
288    
289            /**
290             * Returns the d d m template persistence.
291             *
292             * @return the d d m template persistence
293             */
294            public DDMTemplatePersistence getDDMTemplatePersistence() {
295                    return ddmTemplatePersistence;
296            }
297    
298            /**
299             * Sets the d d m template persistence.
300             *
301             * @param ddmTemplatePersistence the d d m template persistence
302             */
303            public void setDDMTemplatePersistence(
304                    DDMTemplatePersistence ddmTemplatePersistence) {
305                    this.ddmTemplatePersistence = ddmTemplatePersistence;
306            }
307    
308            /**
309             * Returns the d d m template finder.
310             *
311             * @return the d d m template finder
312             */
313            public DDMTemplateFinder getDDMTemplateFinder() {
314                    return ddmTemplateFinder;
315            }
316    
317            /**
318             * Sets the d d m template finder.
319             *
320             * @param ddmTemplateFinder the d d m template finder
321             */
322            public void setDDMTemplateFinder(DDMTemplateFinder ddmTemplateFinder) {
323                    this.ddmTemplateFinder = ddmTemplateFinder;
324            }
325    
326            /**
327             * Returns the counter local service.
328             *
329             * @return the counter local service
330             */
331            public com.liferay.counter.service.CounterLocalService getCounterLocalService() {
332                    return counterLocalService;
333            }
334    
335            /**
336             * Sets the counter local service.
337             *
338             * @param counterLocalService the counter local service
339             */
340            public void setCounterLocalService(
341                    com.liferay.counter.service.CounterLocalService counterLocalService) {
342                    this.counterLocalService = counterLocalService;
343            }
344    
345            /**
346             * Returns the group local service.
347             *
348             * @return the group local service
349             */
350            public com.liferay.portal.service.GroupLocalService getGroupLocalService() {
351                    return groupLocalService;
352            }
353    
354            /**
355             * Sets the group local service.
356             *
357             * @param groupLocalService the group local service
358             */
359            public void setGroupLocalService(
360                    com.liferay.portal.service.GroupLocalService groupLocalService) {
361                    this.groupLocalService = groupLocalService;
362            }
363    
364            /**
365             * Returns the group remote service.
366             *
367             * @return the group remote service
368             */
369            public com.liferay.portal.service.GroupService getGroupService() {
370                    return groupService;
371            }
372    
373            /**
374             * Sets the group remote service.
375             *
376             * @param groupService the group remote service
377             */
378            public void setGroupService(
379                    com.liferay.portal.service.GroupService groupService) {
380                    this.groupService = groupService;
381            }
382    
383            /**
384             * Returns the group persistence.
385             *
386             * @return the group persistence
387             */
388            public GroupPersistence getGroupPersistence() {
389                    return groupPersistence;
390            }
391    
392            /**
393             * Sets the group persistence.
394             *
395             * @param groupPersistence the group persistence
396             */
397            public void setGroupPersistence(GroupPersistence groupPersistence) {
398                    this.groupPersistence = groupPersistence;
399            }
400    
401            /**
402             * Returns the group finder.
403             *
404             * @return the group finder
405             */
406            public GroupFinder getGroupFinder() {
407                    return groupFinder;
408            }
409    
410            /**
411             * Sets the group finder.
412             *
413             * @param groupFinder the group finder
414             */
415            public void setGroupFinder(GroupFinder groupFinder) {
416                    this.groupFinder = groupFinder;
417            }
418    
419            /**
420             * Returns the image local service.
421             *
422             * @return the image local service
423             */
424            public com.liferay.portal.service.ImageLocalService getImageLocalService() {
425                    return imageLocalService;
426            }
427    
428            /**
429             * Sets the image local service.
430             *
431             * @param imageLocalService the image local service
432             */
433            public void setImageLocalService(
434                    com.liferay.portal.service.ImageLocalService imageLocalService) {
435                    this.imageLocalService = imageLocalService;
436            }
437    
438            /**
439             * Returns the image remote service.
440             *
441             * @return the image remote service
442             */
443            public com.liferay.portal.service.ImageService getImageService() {
444                    return imageService;
445            }
446    
447            /**
448             * Sets the image remote service.
449             *
450             * @param imageService the image remote service
451             */
452            public void setImageService(
453                    com.liferay.portal.service.ImageService imageService) {
454                    this.imageService = imageService;
455            }
456    
457            /**
458             * Returns the image persistence.
459             *
460             * @return the image persistence
461             */
462            public ImagePersistence getImagePersistence() {
463                    return imagePersistence;
464            }
465    
466            /**
467             * Sets the image persistence.
468             *
469             * @param imagePersistence the image persistence
470             */
471            public void setImagePersistence(ImagePersistence imagePersistence) {
472                    this.imagePersistence = imagePersistence;
473            }
474    
475            /**
476             * Returns the resource local service.
477             *
478             * @return the resource local service
479             */
480            public com.liferay.portal.service.ResourceLocalService getResourceLocalService() {
481                    return resourceLocalService;
482            }
483    
484            /**
485             * Sets the resource local service.
486             *
487             * @param resourceLocalService the resource local service
488             */
489            public void setResourceLocalService(
490                    com.liferay.portal.service.ResourceLocalService resourceLocalService) {
491                    this.resourceLocalService = resourceLocalService;
492            }
493    
494            /**
495             * Returns the system event local service.
496             *
497             * @return the system event local service
498             */
499            public com.liferay.portal.service.SystemEventLocalService getSystemEventLocalService() {
500                    return systemEventLocalService;
501            }
502    
503            /**
504             * Sets the system event local service.
505             *
506             * @param systemEventLocalService the system event local service
507             */
508            public void setSystemEventLocalService(
509                    com.liferay.portal.service.SystemEventLocalService systemEventLocalService) {
510                    this.systemEventLocalService = systemEventLocalService;
511            }
512    
513            /**
514             * Returns the system event persistence.
515             *
516             * @return the system event persistence
517             */
518            public SystemEventPersistence getSystemEventPersistence() {
519                    return systemEventPersistence;
520            }
521    
522            /**
523             * Sets the system event persistence.
524             *
525             * @param systemEventPersistence the system event persistence
526             */
527            public void setSystemEventPersistence(
528                    SystemEventPersistence systemEventPersistence) {
529                    this.systemEventPersistence = systemEventPersistence;
530            }
531    
532            /**
533             * Returns the user local service.
534             *
535             * @return the user local service
536             */
537            public com.liferay.portal.service.UserLocalService getUserLocalService() {
538                    return userLocalService;
539            }
540    
541            /**
542             * Sets the user local service.
543             *
544             * @param userLocalService the user local service
545             */
546            public void setUserLocalService(
547                    com.liferay.portal.service.UserLocalService userLocalService) {
548                    this.userLocalService = userLocalService;
549            }
550    
551            /**
552             * Returns the user remote service.
553             *
554             * @return the user remote service
555             */
556            public com.liferay.portal.service.UserService getUserService() {
557                    return userService;
558            }
559    
560            /**
561             * Sets the user remote service.
562             *
563             * @param userService the user remote service
564             */
565            public void setUserService(
566                    com.liferay.portal.service.UserService userService) {
567                    this.userService = userService;
568            }
569    
570            /**
571             * Returns the user persistence.
572             *
573             * @return the user persistence
574             */
575            public UserPersistence getUserPersistence() {
576                    return userPersistence;
577            }
578    
579            /**
580             * Sets the user persistence.
581             *
582             * @param userPersistence the user persistence
583             */
584            public void setUserPersistence(UserPersistence userPersistence) {
585                    this.userPersistence = userPersistence;
586            }
587    
588            /**
589             * Returns the user finder.
590             *
591             * @return the user finder
592             */
593            public UserFinder getUserFinder() {
594                    return userFinder;
595            }
596    
597            /**
598             * Sets the user finder.
599             *
600             * @param userFinder the user finder
601             */
602            public void setUserFinder(UserFinder userFinder) {
603                    this.userFinder = userFinder;
604            }
605    
606            public void afterPropertiesSet() {
607            }
608    
609            public void destroy() {
610            }
611    
612            /**
613             * Returns the Spring bean ID for this bean.
614             *
615             * @return the Spring bean ID for this bean
616             */
617            @Override
618            public String getBeanIdentifier() {
619                    return _beanIdentifier;
620            }
621    
622            /**
623             * Sets the Spring bean ID for this bean.
624             *
625             * @param beanIdentifier the Spring bean ID for this bean
626             */
627            @Override
628            public void setBeanIdentifier(String beanIdentifier) {
629                    _beanIdentifier = beanIdentifier;
630            }
631    
632            protected Class<?> getModelClass() {
633                    return DDMTemplate.class;
634            }
635    
636            protected String getModelClassName() {
637                    return DDMTemplate.class.getName();
638            }
639    
640            /**
641             * Performs an SQL query.
642             *
643             * @param sql the sql query
644             */
645            protected void runSQL(String sql) throws SystemException {
646                    try {
647                            DataSource dataSource = ddmTemplatePersistence.getDataSource();
648    
649                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
650                                            sql, new int[0]);
651    
652                            sqlUpdate.update();
653                    }
654                    catch (Exception e) {
655                            throw new SystemException(e);
656                    }
657            }
658    
659            @BeanReference(type = com.liferay.portlet.dynamicdatamapping.service.DDMContentLocalService.class)
660            protected com.liferay.portlet.dynamicdatamapping.service.DDMContentLocalService ddmContentLocalService;
661            @BeanReference(type = DDMContentPersistence.class)
662            protected DDMContentPersistence ddmContentPersistence;
663            @BeanReference(type = com.liferay.portlet.dynamicdatamapping.service.DDMStorageLinkLocalService.class)
664            protected com.liferay.portlet.dynamicdatamapping.service.DDMStorageLinkLocalService ddmStorageLinkLocalService;
665            @BeanReference(type = DDMStorageLinkPersistence.class)
666            protected DDMStorageLinkPersistence ddmStorageLinkPersistence;
667            @BeanReference(type = com.liferay.portlet.dynamicdatamapping.service.DDMStructureLocalService.class)
668            protected com.liferay.portlet.dynamicdatamapping.service.DDMStructureLocalService ddmStructureLocalService;
669            @BeanReference(type = com.liferay.portlet.dynamicdatamapping.service.DDMStructureService.class)
670            protected com.liferay.portlet.dynamicdatamapping.service.DDMStructureService ddmStructureService;
671            @BeanReference(type = DDMStructurePersistence.class)
672            protected DDMStructurePersistence ddmStructurePersistence;
673            @BeanReference(type = DDMStructureFinder.class)
674            protected DDMStructureFinder ddmStructureFinder;
675            @BeanReference(type = com.liferay.portlet.dynamicdatamapping.service.DDMStructureLinkLocalService.class)
676            protected com.liferay.portlet.dynamicdatamapping.service.DDMStructureLinkLocalService ddmStructureLinkLocalService;
677            @BeanReference(type = DDMStructureLinkPersistence.class)
678            protected DDMStructureLinkPersistence ddmStructureLinkPersistence;
679            @BeanReference(type = com.liferay.portlet.dynamicdatamapping.service.DDMTemplateLocalService.class)
680            protected com.liferay.portlet.dynamicdatamapping.service.DDMTemplateLocalService ddmTemplateLocalService;
681            @BeanReference(type = com.liferay.portlet.dynamicdatamapping.service.DDMTemplateService.class)
682            protected com.liferay.portlet.dynamicdatamapping.service.DDMTemplateService ddmTemplateService;
683            @BeanReference(type = DDMTemplatePersistence.class)
684            protected DDMTemplatePersistence ddmTemplatePersistence;
685            @BeanReference(type = DDMTemplateFinder.class)
686            protected DDMTemplateFinder ddmTemplateFinder;
687            @BeanReference(type = com.liferay.counter.service.CounterLocalService.class)
688            protected com.liferay.counter.service.CounterLocalService counterLocalService;
689            @BeanReference(type = com.liferay.portal.service.GroupLocalService.class)
690            protected com.liferay.portal.service.GroupLocalService groupLocalService;
691            @BeanReference(type = com.liferay.portal.service.GroupService.class)
692            protected com.liferay.portal.service.GroupService groupService;
693            @BeanReference(type = GroupPersistence.class)
694            protected GroupPersistence groupPersistence;
695            @BeanReference(type = GroupFinder.class)
696            protected GroupFinder groupFinder;
697            @BeanReference(type = com.liferay.portal.service.ImageLocalService.class)
698            protected com.liferay.portal.service.ImageLocalService imageLocalService;
699            @BeanReference(type = com.liferay.portal.service.ImageService.class)
700            protected com.liferay.portal.service.ImageService imageService;
701            @BeanReference(type = ImagePersistence.class)
702            protected ImagePersistence imagePersistence;
703            @BeanReference(type = com.liferay.portal.service.ResourceLocalService.class)
704            protected com.liferay.portal.service.ResourceLocalService resourceLocalService;
705            @BeanReference(type = com.liferay.portal.service.SystemEventLocalService.class)
706            protected com.liferay.portal.service.SystemEventLocalService systemEventLocalService;
707            @BeanReference(type = SystemEventPersistence.class)
708            protected SystemEventPersistence systemEventPersistence;
709            @BeanReference(type = com.liferay.portal.service.UserLocalService.class)
710            protected com.liferay.portal.service.UserLocalService userLocalService;
711            @BeanReference(type = com.liferay.portal.service.UserService.class)
712            protected com.liferay.portal.service.UserService userService;
713            @BeanReference(type = UserPersistence.class)
714            protected UserPersistence userPersistence;
715            @BeanReference(type = UserFinder.class)
716            protected UserFinder userFinder;
717            private String _beanIdentifier;
718    }