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