001    /**
002     * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
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.DDMStructureLinkService;
046    import com.liferay.portlet.dynamicdatamapping.service.DDMStructureLocalService;
047    import com.liferay.portlet.dynamicdatamapping.service.DDMStructureService;
048    import com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStructureFinder;
049    import com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStructureLinkPersistence;
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 set 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.DDLRecordSetServiceImpl}.
059     * </p>
060     *
061     * @author Brian Wing Shun Chan
062     * @see com.liferay.portlet.dynamicdatalists.service.impl.DDLRecordSetServiceImpl
063     * @see com.liferay.portlet.dynamicdatalists.service.DDLRecordSetServiceUtil
064     * @generated
065     */
066    public abstract class DDLRecordSetServiceBaseImpl extends PrincipalBean
067            implements DDLRecordSetService, IdentifiableBean {
068            /*
069             * NOTE FOR DEVELOPERS:
070             *
071             * 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.
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 resource remote service.
280             *
281             * @return the resource remote service
282             */
283            public ResourceService getResourceService() {
284                    return resourceService;
285            }
286    
287            /**
288             * Sets the resource remote service.
289             *
290             * @param resourceService the resource remote service
291             */
292            public void setResourceService(ResourceService resourceService) {
293                    this.resourceService = resourceService;
294            }
295    
296            /**
297             * Returns the resource persistence.
298             *
299             * @return the resource persistence
300             */
301            public ResourcePersistence getResourcePersistence() {
302                    return resourcePersistence;
303            }
304    
305            /**
306             * Sets the resource persistence.
307             *
308             * @param resourcePersistence the resource persistence
309             */
310            public void setResourcePersistence(ResourcePersistence resourcePersistence) {
311                    this.resourcePersistence = resourcePersistence;
312            }
313    
314            /**
315             * Returns the resource finder.
316             *
317             * @return the resource finder
318             */
319            public ResourceFinder getResourceFinder() {
320                    return resourceFinder;
321            }
322    
323            /**
324             * Sets the resource finder.
325             *
326             * @param resourceFinder the resource finder
327             */
328            public void setResourceFinder(ResourceFinder resourceFinder) {
329                    this.resourceFinder = resourceFinder;
330            }
331    
332            /**
333             * Returns the user local service.
334             *
335             * @return the user local service
336             */
337            public UserLocalService getUserLocalService() {
338                    return userLocalService;
339            }
340    
341            /**
342             * Sets the user local service.
343             *
344             * @param userLocalService the user local service
345             */
346            public void setUserLocalService(UserLocalService userLocalService) {
347                    this.userLocalService = userLocalService;
348            }
349    
350            /**
351             * Returns the user remote service.
352             *
353             * @return the user remote service
354             */
355            public UserService getUserService() {
356                    return userService;
357            }
358    
359            /**
360             * Sets the user remote service.
361             *
362             * @param userService the user remote service
363             */
364            public void setUserService(UserService userService) {
365                    this.userService = userService;
366            }
367    
368            /**
369             * Returns the user persistence.
370             *
371             * @return the user persistence
372             */
373            public UserPersistence getUserPersistence() {
374                    return userPersistence;
375            }
376    
377            /**
378             * Sets the user persistence.
379             *
380             * @param userPersistence the user persistence
381             */
382            public void setUserPersistence(UserPersistence userPersistence) {
383                    this.userPersistence = userPersistence;
384            }
385    
386            /**
387             * Returns the user finder.
388             *
389             * @return the user finder
390             */
391            public UserFinder getUserFinder() {
392                    return userFinder;
393            }
394    
395            /**
396             * Sets the user finder.
397             *
398             * @param userFinder the user finder
399             */
400            public void setUserFinder(UserFinder userFinder) {
401                    this.userFinder = userFinder;
402            }
403    
404            /**
405             * Returns the d d m structure local service.
406             *
407             * @return the d d m structure local service
408             */
409            public DDMStructureLocalService getDDMStructureLocalService() {
410                    return ddmStructureLocalService;
411            }
412    
413            /**
414             * Sets the d d m structure local service.
415             *
416             * @param ddmStructureLocalService the d d m structure local service
417             */
418            public void setDDMStructureLocalService(
419                    DDMStructureLocalService ddmStructureLocalService) {
420                    this.ddmStructureLocalService = ddmStructureLocalService;
421            }
422    
423            /**
424             * Returns the d d m structure remote service.
425             *
426             * @return the d d m structure remote service
427             */
428            public DDMStructureService getDDMStructureService() {
429                    return ddmStructureService;
430            }
431    
432            /**
433             * Sets the d d m structure remote service.
434             *
435             * @param ddmStructureService the d d m structure remote service
436             */
437            public void setDDMStructureService(DDMStructureService ddmStructureService) {
438                    this.ddmStructureService = ddmStructureService;
439            }
440    
441            /**
442             * Returns the d d m structure persistence.
443             *
444             * @return the d d m structure persistence
445             */
446            public DDMStructurePersistence getDDMStructurePersistence() {
447                    return ddmStructurePersistence;
448            }
449    
450            /**
451             * Sets the d d m structure persistence.
452             *
453             * @param ddmStructurePersistence the d d m structure persistence
454             */
455            public void setDDMStructurePersistence(
456                    DDMStructurePersistence ddmStructurePersistence) {
457                    this.ddmStructurePersistence = ddmStructurePersistence;
458            }
459    
460            /**
461             * Returns the d d m structure finder.
462             *
463             * @return the d d m structure finder
464             */
465            public DDMStructureFinder getDDMStructureFinder() {
466                    return ddmStructureFinder;
467            }
468    
469            /**
470             * Sets the d d m structure finder.
471             *
472             * @param ddmStructureFinder the d d m structure finder
473             */
474            public void setDDMStructureFinder(DDMStructureFinder ddmStructureFinder) {
475                    this.ddmStructureFinder = ddmStructureFinder;
476            }
477    
478            /**
479             * Returns the d d m structure link local service.
480             *
481             * @return the d d m structure link local service
482             */
483            public DDMStructureLinkLocalService getDDMStructureLinkLocalService() {
484                    return ddmStructureLinkLocalService;
485            }
486    
487            /**
488             * Sets the d d m structure link local service.
489             *
490             * @param ddmStructureLinkLocalService the d d m structure link local service
491             */
492            public void setDDMStructureLinkLocalService(
493                    DDMStructureLinkLocalService ddmStructureLinkLocalService) {
494                    this.ddmStructureLinkLocalService = ddmStructureLinkLocalService;
495            }
496    
497            /**
498             * Returns the d d m structure link remote service.
499             *
500             * @return the d d m structure link remote service
501             */
502            public DDMStructureLinkService getDDMStructureLinkService() {
503                    return ddmStructureLinkService;
504            }
505    
506            /**
507             * Sets the d d m structure link remote service.
508             *
509             * @param ddmStructureLinkService the d d m structure link remote service
510             */
511            public void setDDMStructureLinkService(
512                    DDMStructureLinkService ddmStructureLinkService) {
513                    this.ddmStructureLinkService = ddmStructureLinkService;
514            }
515    
516            /**
517             * Returns the d d m structure link persistence.
518             *
519             * @return the d d m structure link persistence
520             */
521            public DDMStructureLinkPersistence getDDMStructureLinkPersistence() {
522                    return ddmStructureLinkPersistence;
523            }
524    
525            /**
526             * Sets the d d m structure link persistence.
527             *
528             * @param ddmStructureLinkPersistence the d d m structure link persistence
529             */
530            public void setDDMStructureLinkPersistence(
531                    DDMStructureLinkPersistence ddmStructureLinkPersistence) {
532                    this.ddmStructureLinkPersistence = ddmStructureLinkPersistence;
533            }
534    
535            public void afterPropertiesSet() {
536            }
537    
538            public void destroy() {
539            }
540    
541            /**
542             * Returns the Spring bean ID for this bean.
543             *
544             * @return the Spring bean ID for this bean
545             */
546            public String getBeanIdentifier() {
547                    return _beanIdentifier;
548            }
549    
550            /**
551             * Sets the Spring bean ID for this bean.
552             *
553             * @param beanIdentifier the Spring bean ID for this bean
554             */
555            public void setBeanIdentifier(String beanIdentifier) {
556                    _beanIdentifier = beanIdentifier;
557            }
558    
559            protected Class<?> getModelClass() {
560                    return DDLRecordSet.class;
561            }
562    
563            protected String getModelClassName() {
564                    return DDLRecordSet.class.getName();
565            }
566    
567            /**
568             * Performs an SQL query.
569             *
570             * @param sql the sql query
571             */
572            protected void runSQL(String sql) throws SystemException {
573                    try {
574                            DataSource dataSource = ddlRecordSetPersistence.getDataSource();
575    
576                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
577                                            sql, new int[0]);
578    
579                            sqlUpdate.update();
580                    }
581                    catch (Exception e) {
582                            throw new SystemException(e);
583                    }
584            }
585    
586            @BeanReference(type = DDLRecordLocalService.class)
587            protected DDLRecordLocalService ddlRecordLocalService;
588            @BeanReference(type = DDLRecordService.class)
589            protected DDLRecordService ddlRecordService;
590            @BeanReference(type = DDLRecordPersistence.class)
591            protected DDLRecordPersistence ddlRecordPersistence;
592            @BeanReference(type = DDLRecordFinder.class)
593            protected DDLRecordFinder ddlRecordFinder;
594            @BeanReference(type = DDLRecordSetLocalService.class)
595            protected DDLRecordSetLocalService ddlRecordSetLocalService;
596            @BeanReference(type = DDLRecordSetService.class)
597            protected DDLRecordSetService ddlRecordSetService;
598            @BeanReference(type = DDLRecordSetPersistence.class)
599            protected DDLRecordSetPersistence ddlRecordSetPersistence;
600            @BeanReference(type = DDLRecordSetFinder.class)
601            protected DDLRecordSetFinder ddlRecordSetFinder;
602            @BeanReference(type = DDLRecordVersionPersistence.class)
603            protected DDLRecordVersionPersistence ddlRecordVersionPersistence;
604            @BeanReference(type = CounterLocalService.class)
605            protected CounterLocalService counterLocalService;
606            @BeanReference(type = ResourceLocalService.class)
607            protected ResourceLocalService resourceLocalService;
608            @BeanReference(type = ResourceService.class)
609            protected ResourceService resourceService;
610            @BeanReference(type = ResourcePersistence.class)
611            protected ResourcePersistence resourcePersistence;
612            @BeanReference(type = ResourceFinder.class)
613            protected ResourceFinder resourceFinder;
614            @BeanReference(type = UserLocalService.class)
615            protected UserLocalService userLocalService;
616            @BeanReference(type = UserService.class)
617            protected UserService userService;
618            @BeanReference(type = UserPersistence.class)
619            protected UserPersistence userPersistence;
620            @BeanReference(type = UserFinder.class)
621            protected UserFinder userFinder;
622            @BeanReference(type = DDMStructureLocalService.class)
623            protected DDMStructureLocalService ddmStructureLocalService;
624            @BeanReference(type = DDMStructureService.class)
625            protected DDMStructureService ddmStructureService;
626            @BeanReference(type = DDMStructurePersistence.class)
627            protected DDMStructurePersistence ddmStructurePersistence;
628            @BeanReference(type = DDMStructureFinder.class)
629            protected DDMStructureFinder ddmStructureFinder;
630            @BeanReference(type = DDMStructureLinkLocalService.class)
631            protected DDMStructureLinkLocalService ddmStructureLinkLocalService;
632            @BeanReference(type = DDMStructureLinkService.class)
633            protected DDMStructureLinkService ddmStructureLinkService;
634            @BeanReference(type = DDMStructureLinkPersistence.class)
635            protected DDMStructureLinkPersistence ddmStructureLinkPersistence;
636            private String _beanIdentifier;
637    }