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