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