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