001    /**
002     * Copyright (c) 2000-2012 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.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.exception.SystemException;
024    import com.liferay.portal.service.BaseServiceImpl;
025    import com.liferay.portal.service.ResourceLocalService;
026    import com.liferay.portal.service.UserLocalService;
027    import com.liferay.portal.service.UserService;
028    import com.liferay.portal.service.persistence.UserFinder;
029    import com.liferay.portal.service.persistence.UserPersistence;
030    
031    import com.liferay.portlet.documentlibrary.service.DLFileEntryTypeLocalService;
032    import com.liferay.portlet.documentlibrary.service.DLFileEntryTypeService;
033    import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryTypeFinder;
034    import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryTypePersistence;
035    import com.liferay.portlet.dynamicdatamapping.model.DDMStructure;
036    import com.liferay.portlet.dynamicdatamapping.service.DDMContentLocalService;
037    import com.liferay.portlet.dynamicdatamapping.service.DDMStorageLinkLocalService;
038    import com.liferay.portlet.dynamicdatamapping.service.DDMStructureLinkLocalService;
039    import com.liferay.portlet.dynamicdatamapping.service.DDMStructureLocalService;
040    import com.liferay.portlet.dynamicdatamapping.service.DDMStructureService;
041    import com.liferay.portlet.dynamicdatamapping.service.DDMTemplateLocalService;
042    import com.liferay.portlet.dynamicdatamapping.service.DDMTemplateService;
043    import com.liferay.portlet.dynamicdatamapping.service.persistence.DDMContentPersistence;
044    import com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStorageLinkPersistence;
045    import com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStructureFinder;
046    import com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStructureLinkPersistence;
047    import com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStructurePersistence;
048    import com.liferay.portlet.dynamicdatamapping.service.persistence.DDMTemplateFinder;
049    import com.liferay.portlet.dynamicdatamapping.service.persistence.DDMTemplatePersistence;
050    
051    import javax.sql.DataSource;
052    
053    /**
054     * The base implementation of the d d m structure remote service.
055     *
056     * <p>
057     * 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.DDMStructureServiceImpl}.
058     * </p>
059     *
060     * @author Brian Wing Shun Chan
061     * @see com.liferay.portlet.dynamicdatamapping.service.impl.DDMStructureServiceImpl
062     * @see com.liferay.portlet.dynamicdatamapping.service.DDMStructureServiceUtil
063     * @generated
064     */
065    public abstract class DDMStructureServiceBaseImpl extends BaseServiceImpl
066            implements DDMStructureService, IdentifiableBean {
067            /*
068             * NOTE FOR DEVELOPERS:
069             *
070             * Never modify or reference this class directly. Always use {@link com.liferay.portlet.dynamicdatamapping.service.DDMStructureServiceUtil} to access the d d m structure remote service.
071             */
072    
073            /**
074             * Returns the d d m content local service.
075             *
076             * @return the d d m content local service
077             */
078            public DDMContentLocalService getDDMContentLocalService() {
079                    return ddmContentLocalService;
080            }
081    
082            /**
083             * Sets the d d m content local service.
084             *
085             * @param ddmContentLocalService the d d m content local service
086             */
087            public void setDDMContentLocalService(
088                    DDMContentLocalService ddmContentLocalService) {
089                    this.ddmContentLocalService = ddmContentLocalService;
090            }
091    
092            /**
093             * Returns the d d m content persistence.
094             *
095             * @return the d d m content persistence
096             */
097            public DDMContentPersistence getDDMContentPersistence() {
098                    return ddmContentPersistence;
099            }
100    
101            /**
102             * Sets the d d m content persistence.
103             *
104             * @param ddmContentPersistence the d d m content persistence
105             */
106            public void setDDMContentPersistence(
107                    DDMContentPersistence ddmContentPersistence) {
108                    this.ddmContentPersistence = ddmContentPersistence;
109            }
110    
111            /**
112             * Returns the d d m storage link local service.
113             *
114             * @return the d d m storage link local service
115             */
116            public DDMStorageLinkLocalService getDDMStorageLinkLocalService() {
117                    return ddmStorageLinkLocalService;
118            }
119    
120            /**
121             * Sets the d d m storage link local service.
122             *
123             * @param ddmStorageLinkLocalService the d d m storage link local service
124             */
125            public void setDDMStorageLinkLocalService(
126                    DDMStorageLinkLocalService ddmStorageLinkLocalService) {
127                    this.ddmStorageLinkLocalService = ddmStorageLinkLocalService;
128            }
129    
130            /**
131             * Returns the d d m storage link persistence.
132             *
133             * @return the d d m storage link persistence
134             */
135            public DDMStorageLinkPersistence getDDMStorageLinkPersistence() {
136                    return ddmStorageLinkPersistence;
137            }
138    
139            /**
140             * Sets the d d m storage link persistence.
141             *
142             * @param ddmStorageLinkPersistence the d d m storage link persistence
143             */
144            public void setDDMStorageLinkPersistence(
145                    DDMStorageLinkPersistence ddmStorageLinkPersistence) {
146                    this.ddmStorageLinkPersistence = ddmStorageLinkPersistence;
147            }
148    
149            /**
150             * Returns the d d m structure local service.
151             *
152             * @return the d d m structure local service
153             */
154            public DDMStructureLocalService getDDMStructureLocalService() {
155                    return ddmStructureLocalService;
156            }
157    
158            /**
159             * Sets the d d m structure local service.
160             *
161             * @param ddmStructureLocalService the d d m structure local service
162             */
163            public void setDDMStructureLocalService(
164                    DDMStructureLocalService ddmStructureLocalService) {
165                    this.ddmStructureLocalService = ddmStructureLocalService;
166            }
167    
168            /**
169             * Returns the d d m structure remote service.
170             *
171             * @return the d d m structure remote service
172             */
173            public DDMStructureService getDDMStructureService() {
174                    return ddmStructureService;
175            }
176    
177            /**
178             * Sets the d d m structure remote service.
179             *
180             * @param ddmStructureService the d d m structure remote service
181             */
182            public void setDDMStructureService(DDMStructureService ddmStructureService) {
183                    this.ddmStructureService = ddmStructureService;
184            }
185    
186            /**
187             * Returns the d d m structure persistence.
188             *
189             * @return the d d m structure persistence
190             */
191            public DDMStructurePersistence getDDMStructurePersistence() {
192                    return ddmStructurePersistence;
193            }
194    
195            /**
196             * Sets the d d m structure persistence.
197             *
198             * @param ddmStructurePersistence the d d m structure persistence
199             */
200            public void setDDMStructurePersistence(
201                    DDMStructurePersistence ddmStructurePersistence) {
202                    this.ddmStructurePersistence = ddmStructurePersistence;
203            }
204    
205            /**
206             * Returns the d d m structure finder.
207             *
208             * @return the d d m structure finder
209             */
210            public DDMStructureFinder getDDMStructureFinder() {
211                    return ddmStructureFinder;
212            }
213    
214            /**
215             * Sets the d d m structure finder.
216             *
217             * @param ddmStructureFinder the d d m structure finder
218             */
219            public void setDDMStructureFinder(DDMStructureFinder ddmStructureFinder) {
220                    this.ddmStructureFinder = ddmStructureFinder;
221            }
222    
223            /**
224             * Returns the d d m structure link local service.
225             *
226             * @return the d d m structure link local service
227             */
228            public DDMStructureLinkLocalService getDDMStructureLinkLocalService() {
229                    return ddmStructureLinkLocalService;
230            }
231    
232            /**
233             * Sets the d d m structure link local service.
234             *
235             * @param ddmStructureLinkLocalService the d d m structure link local service
236             */
237            public void setDDMStructureLinkLocalService(
238                    DDMStructureLinkLocalService ddmStructureLinkLocalService) {
239                    this.ddmStructureLinkLocalService = ddmStructureLinkLocalService;
240            }
241    
242            /**
243             * Returns the d d m structure link persistence.
244             *
245             * @return the d d m structure link persistence
246             */
247            public DDMStructureLinkPersistence getDDMStructureLinkPersistence() {
248                    return ddmStructureLinkPersistence;
249            }
250    
251            /**
252             * Sets the d d m structure link persistence.
253             *
254             * @param ddmStructureLinkPersistence the d d m structure link persistence
255             */
256            public void setDDMStructureLinkPersistence(
257                    DDMStructureLinkPersistence ddmStructureLinkPersistence) {
258                    this.ddmStructureLinkPersistence = ddmStructureLinkPersistence;
259            }
260    
261            /**
262             * Returns the d d m template local service.
263             *
264             * @return the d d m template local service
265             */
266            public DDMTemplateLocalService getDDMTemplateLocalService() {
267                    return ddmTemplateLocalService;
268            }
269    
270            /**
271             * Sets the d d m template local service.
272             *
273             * @param ddmTemplateLocalService the d d m template local service
274             */
275            public void setDDMTemplateLocalService(
276                    DDMTemplateLocalService ddmTemplateLocalService) {
277                    this.ddmTemplateLocalService = ddmTemplateLocalService;
278            }
279    
280            /**
281             * Returns the d d m template remote service.
282             *
283             * @return the d d m template remote service
284             */
285            public DDMTemplateService getDDMTemplateService() {
286                    return ddmTemplateService;
287            }
288    
289            /**
290             * Sets the d d m template remote service.
291             *
292             * @param ddmTemplateService the d d m template remote service
293             */
294            public void setDDMTemplateService(DDMTemplateService ddmTemplateService) {
295                    this.ddmTemplateService = ddmTemplateService;
296            }
297    
298            /**
299             * Returns the d d m template persistence.
300             *
301             * @return the d d m template persistence
302             */
303            public DDMTemplatePersistence getDDMTemplatePersistence() {
304                    return ddmTemplatePersistence;
305            }
306    
307            /**
308             * Sets the d d m template persistence.
309             *
310             * @param ddmTemplatePersistence the d d m template persistence
311             */
312            public void setDDMTemplatePersistence(
313                    DDMTemplatePersistence ddmTemplatePersistence) {
314                    this.ddmTemplatePersistence = ddmTemplatePersistence;
315            }
316    
317            /**
318             * Returns the d d m template finder.
319             *
320             * @return the d d m template finder
321             */
322            public DDMTemplateFinder getDDMTemplateFinder() {
323                    return ddmTemplateFinder;
324            }
325    
326            /**
327             * Sets the d d m template finder.
328             *
329             * @param ddmTemplateFinder the d d m template finder
330             */
331            public void setDDMTemplateFinder(DDMTemplateFinder ddmTemplateFinder) {
332                    this.ddmTemplateFinder = ddmTemplateFinder;
333            }
334    
335            /**
336             * Returns the counter local service.
337             *
338             * @return the counter local service
339             */
340            public CounterLocalService getCounterLocalService() {
341                    return counterLocalService;
342            }
343    
344            /**
345             * Sets the counter local service.
346             *
347             * @param counterLocalService the counter local service
348             */
349            public void setCounterLocalService(CounterLocalService counterLocalService) {
350                    this.counterLocalService = counterLocalService;
351            }
352    
353            /**
354             * Returns the resource local service.
355             *
356             * @return the resource local service
357             */
358            public ResourceLocalService getResourceLocalService() {
359                    return resourceLocalService;
360            }
361    
362            /**
363             * Sets the resource local service.
364             *
365             * @param resourceLocalService the resource local service
366             */
367            public void setResourceLocalService(
368                    ResourceLocalService resourceLocalService) {
369                    this.resourceLocalService = resourceLocalService;
370            }
371    
372            /**
373             * Returns the user local service.
374             *
375             * @return the user local service
376             */
377            public UserLocalService getUserLocalService() {
378                    return userLocalService;
379            }
380    
381            /**
382             * Sets the user local service.
383             *
384             * @param userLocalService the user local service
385             */
386            public void setUserLocalService(UserLocalService userLocalService) {
387                    this.userLocalService = userLocalService;
388            }
389    
390            /**
391             * Returns the user remote service.
392             *
393             * @return the user remote service
394             */
395            public UserService getUserService() {
396                    return userService;
397            }
398    
399            /**
400             * Sets the user remote service.
401             *
402             * @param userService the user remote service
403             */
404            public void setUserService(UserService userService) {
405                    this.userService = userService;
406            }
407    
408            /**
409             * Returns the user persistence.
410             *
411             * @return the user persistence
412             */
413            public UserPersistence getUserPersistence() {
414                    return userPersistence;
415            }
416    
417            /**
418             * Sets the user persistence.
419             *
420             * @param userPersistence the user persistence
421             */
422            public void setUserPersistence(UserPersistence userPersistence) {
423                    this.userPersistence = userPersistence;
424            }
425    
426            /**
427             * Returns the user finder.
428             *
429             * @return the user finder
430             */
431            public UserFinder getUserFinder() {
432                    return userFinder;
433            }
434    
435            /**
436             * Sets the user finder.
437             *
438             * @param userFinder the user finder
439             */
440            public void setUserFinder(UserFinder userFinder) {
441                    this.userFinder = userFinder;
442            }
443    
444            /**
445             * Returns the document library file entry type local service.
446             *
447             * @return the document library file entry type local service
448             */
449            public DLFileEntryTypeLocalService getDLFileEntryTypeLocalService() {
450                    return dlFileEntryTypeLocalService;
451            }
452    
453            /**
454             * Sets the document library file entry type local service.
455             *
456             * @param dlFileEntryTypeLocalService the document library file entry type local service
457             */
458            public void setDLFileEntryTypeLocalService(
459                    DLFileEntryTypeLocalService dlFileEntryTypeLocalService) {
460                    this.dlFileEntryTypeLocalService = dlFileEntryTypeLocalService;
461            }
462    
463            /**
464             * Returns the document library file entry type remote service.
465             *
466             * @return the document library file entry type remote service
467             */
468            public DLFileEntryTypeService getDLFileEntryTypeService() {
469                    return dlFileEntryTypeService;
470            }
471    
472            /**
473             * Sets the document library file entry type remote service.
474             *
475             * @param dlFileEntryTypeService the document library file entry type remote service
476             */
477            public void setDLFileEntryTypeService(
478                    DLFileEntryTypeService dlFileEntryTypeService) {
479                    this.dlFileEntryTypeService = dlFileEntryTypeService;
480            }
481    
482            /**
483             * Returns the document library file entry type persistence.
484             *
485             * @return the document library file entry type persistence
486             */
487            public DLFileEntryTypePersistence getDLFileEntryTypePersistence() {
488                    return dlFileEntryTypePersistence;
489            }
490    
491            /**
492             * Sets the document library file entry type persistence.
493             *
494             * @param dlFileEntryTypePersistence the document library file entry type persistence
495             */
496            public void setDLFileEntryTypePersistence(
497                    DLFileEntryTypePersistence dlFileEntryTypePersistence) {
498                    this.dlFileEntryTypePersistence = dlFileEntryTypePersistence;
499            }
500    
501            /**
502             * Returns the document library file entry type finder.
503             *
504             * @return the document library file entry type finder
505             */
506            public DLFileEntryTypeFinder getDLFileEntryTypeFinder() {
507                    return dlFileEntryTypeFinder;
508            }
509    
510            /**
511             * Sets the document library file entry type finder.
512             *
513             * @param dlFileEntryTypeFinder the document library file entry type finder
514             */
515            public void setDLFileEntryTypeFinder(
516                    DLFileEntryTypeFinder dlFileEntryTypeFinder) {
517                    this.dlFileEntryTypeFinder = dlFileEntryTypeFinder;
518            }
519    
520            public void afterPropertiesSet() {
521            }
522    
523            public void destroy() {
524            }
525    
526            /**
527             * Returns the Spring bean ID for this bean.
528             *
529             * @return the Spring bean ID for this bean
530             */
531            public String getBeanIdentifier() {
532                    return _beanIdentifier;
533            }
534    
535            /**
536             * Sets the Spring bean ID for this bean.
537             *
538             * @param beanIdentifier the Spring bean ID for this bean
539             */
540            public void setBeanIdentifier(String beanIdentifier) {
541                    _beanIdentifier = beanIdentifier;
542            }
543    
544            protected Class<?> getModelClass() {
545                    return DDMStructure.class;
546            }
547    
548            protected String getModelClassName() {
549                    return DDMStructure.class.getName();
550            }
551    
552            /**
553             * Performs an SQL query.
554             *
555             * @param sql the sql query
556             */
557            protected void runSQL(String sql) throws SystemException {
558                    try {
559                            DataSource dataSource = ddmStructurePersistence.getDataSource();
560    
561                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
562                                            sql, new int[0]);
563    
564                            sqlUpdate.update();
565                    }
566                    catch (Exception e) {
567                            throw new SystemException(e);
568                    }
569            }
570    
571            @BeanReference(type = DDMContentLocalService.class)
572            protected DDMContentLocalService ddmContentLocalService;
573            @BeanReference(type = DDMContentPersistence.class)
574            protected DDMContentPersistence ddmContentPersistence;
575            @BeanReference(type = DDMStorageLinkLocalService.class)
576            protected DDMStorageLinkLocalService ddmStorageLinkLocalService;
577            @BeanReference(type = DDMStorageLinkPersistence.class)
578            protected DDMStorageLinkPersistence ddmStorageLinkPersistence;
579            @BeanReference(type = DDMStructureLocalService.class)
580            protected DDMStructureLocalService ddmStructureLocalService;
581            @BeanReference(type = DDMStructureService.class)
582            protected DDMStructureService ddmStructureService;
583            @BeanReference(type = DDMStructurePersistence.class)
584            protected DDMStructurePersistence ddmStructurePersistence;
585            @BeanReference(type = DDMStructureFinder.class)
586            protected DDMStructureFinder ddmStructureFinder;
587            @BeanReference(type = DDMStructureLinkLocalService.class)
588            protected DDMStructureLinkLocalService ddmStructureLinkLocalService;
589            @BeanReference(type = DDMStructureLinkPersistence.class)
590            protected DDMStructureLinkPersistence ddmStructureLinkPersistence;
591            @BeanReference(type = DDMTemplateLocalService.class)
592            protected DDMTemplateLocalService ddmTemplateLocalService;
593            @BeanReference(type = DDMTemplateService.class)
594            protected DDMTemplateService ddmTemplateService;
595            @BeanReference(type = DDMTemplatePersistence.class)
596            protected DDMTemplatePersistence ddmTemplatePersistence;
597            @BeanReference(type = DDMTemplateFinder.class)
598            protected DDMTemplateFinder ddmTemplateFinder;
599            @BeanReference(type = CounterLocalService.class)
600            protected CounterLocalService counterLocalService;
601            @BeanReference(type = ResourceLocalService.class)
602            protected ResourceLocalService resourceLocalService;
603            @BeanReference(type = UserLocalService.class)
604            protected UserLocalService userLocalService;
605            @BeanReference(type = UserService.class)
606            protected UserService userService;
607            @BeanReference(type = UserPersistence.class)
608            protected UserPersistence userPersistence;
609            @BeanReference(type = UserFinder.class)
610            protected UserFinder userFinder;
611            @BeanReference(type = DLFileEntryTypeLocalService.class)
612            protected DLFileEntryTypeLocalService dlFileEntryTypeLocalService;
613            @BeanReference(type = DLFileEntryTypeService.class)
614            protected DLFileEntryTypeService dlFileEntryTypeService;
615            @BeanReference(type = DLFileEntryTypePersistence.class)
616            protected DLFileEntryTypePersistence dlFileEntryTypePersistence;
617            @BeanReference(type = DLFileEntryTypeFinder.class)
618            protected DLFileEntryTypeFinder dlFileEntryTypeFinder;
619            private String _beanIdentifier;
620    }