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