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