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