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