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.dao.orm.DynamicQuery;
024    import com.liferay.portal.kernel.dao.orm.DynamicQueryFactoryUtil;
025    import com.liferay.portal.kernel.exception.PortalException;
026    import com.liferay.portal.kernel.exception.SystemException;
027    import com.liferay.portal.kernel.search.Indexable;
028    import com.liferay.portal.kernel.search.IndexableType;
029    import com.liferay.portal.kernel.util.OrderByComparator;
030    import com.liferay.portal.model.PersistedModel;
031    import com.liferay.portal.service.BaseLocalServiceImpl;
032    import com.liferay.portal.service.PersistedModelLocalServiceRegistry;
033    import com.liferay.portal.service.ResourceLocalService;
034    import com.liferay.portal.service.ResourceService;
035    import com.liferay.portal.service.UserLocalService;
036    import com.liferay.portal.service.UserService;
037    import com.liferay.portal.service.WorkflowInstanceLinkLocalService;
038    import com.liferay.portal.service.persistence.ResourceFinder;
039    import com.liferay.portal.service.persistence.ResourcePersistence;
040    import com.liferay.portal.service.persistence.UserFinder;
041    import com.liferay.portal.service.persistence.UserPersistence;
042    import com.liferay.portal.service.persistence.WorkflowInstanceLinkPersistence;
043    
044    import com.liferay.portlet.asset.service.AssetEntryLocalService;
045    import com.liferay.portlet.asset.service.AssetEntryService;
046    import com.liferay.portlet.asset.service.persistence.AssetEntryFinder;
047    import com.liferay.portlet.asset.service.persistence.AssetEntryPersistence;
048    import com.liferay.portlet.dynamicdatalists.model.DDLRecord;
049    import com.liferay.portlet.dynamicdatalists.service.DDLRecordLocalService;
050    import com.liferay.portlet.dynamicdatalists.service.DDLRecordService;
051    import com.liferay.portlet.dynamicdatalists.service.DDLRecordSetLocalService;
052    import com.liferay.portlet.dynamicdatalists.service.DDLRecordSetService;
053    import com.liferay.portlet.dynamicdatalists.service.persistence.DDLRecordFinder;
054    import com.liferay.portlet.dynamicdatalists.service.persistence.DDLRecordPersistence;
055    import com.liferay.portlet.dynamicdatalists.service.persistence.DDLRecordSetFinder;
056    import com.liferay.portlet.dynamicdatalists.service.persistence.DDLRecordSetPersistence;
057    import com.liferay.portlet.dynamicdatalists.service.persistence.DDLRecordVersionPersistence;
058    import com.liferay.portlet.dynamicdatamapping.service.DDMStructureLocalService;
059    import com.liferay.portlet.dynamicdatamapping.service.DDMStructureService;
060    import com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStructureFinder;
061    import com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStructurePersistence;
062    
063    import java.io.Serializable;
064    
065    import java.util.List;
066    
067    import javax.sql.DataSource;
068    
069    /**
070     * The base implementation of the d d l record local service.
071     *
072     * <p>
073     * 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.DDLRecordLocalServiceImpl}.
074     * </p>
075     *
076     * @author Brian Wing Shun Chan
077     * @see com.liferay.portlet.dynamicdatalists.service.impl.DDLRecordLocalServiceImpl
078     * @see com.liferay.portlet.dynamicdatalists.service.DDLRecordLocalServiceUtil
079     * @generated
080     */
081    public abstract class DDLRecordLocalServiceBaseImpl extends BaseLocalServiceImpl
082            implements DDLRecordLocalService, IdentifiableBean {
083            /*
084             * NOTE FOR DEVELOPERS:
085             *
086             * Never modify or reference this class directly. Always use {@link com.liferay.portlet.dynamicdatalists.service.DDLRecordLocalServiceUtil} to access the d d l record local service.
087             */
088    
089            /**
090             * Adds the d d l record to the database. Also notifies the appropriate model listeners.
091             *
092             * @param ddlRecord the d d l record
093             * @return the d d l record that was added
094             * @throws SystemException if a system exception occurred
095             */
096            @Indexable(type = IndexableType.REINDEX)
097            public DDLRecord addDDLRecord(DDLRecord ddlRecord)
098                    throws SystemException {
099                    ddlRecord.setNew(true);
100    
101                    return ddlRecordPersistence.update(ddlRecord, false);
102            }
103    
104            /**
105             * Creates a new d d l record with the primary key. Does not add the d d l record to the database.
106             *
107             * @param recordId the primary key for the new d d l record
108             * @return the new d d l record
109             */
110            public DDLRecord createDDLRecord(long recordId) {
111                    return ddlRecordPersistence.create(recordId);
112            }
113    
114            /**
115             * Deletes the d d l record with the primary key from the database. Also notifies the appropriate model listeners.
116             *
117             * @param recordId the primary key of the d d l record
118             * @return the d d l record that was removed
119             * @throws PortalException if a d d l record with the primary key could not be found
120             * @throws SystemException if a system exception occurred
121             */
122            @Indexable(type = IndexableType.DELETE)
123            public DDLRecord deleteDDLRecord(long recordId)
124                    throws PortalException, SystemException {
125                    return ddlRecordPersistence.remove(recordId);
126            }
127    
128            /**
129             * Deletes the d d l record from the database. Also notifies the appropriate model listeners.
130             *
131             * @param ddlRecord the d d l record
132             * @return the d d l record that was removed
133             * @throws SystemException if a system exception occurred
134             */
135            @Indexable(type = IndexableType.DELETE)
136            public DDLRecord deleteDDLRecord(DDLRecord ddlRecord)
137                    throws SystemException {
138                    return ddlRecordPersistence.remove(ddlRecord);
139            }
140    
141            public DynamicQuery dynamicQuery() {
142                    Class<?> clazz = getClass();
143    
144                    return DynamicQueryFactoryUtil.forClass(DDLRecord.class,
145                            clazz.getClassLoader());
146            }
147    
148            /**
149             * Performs a dynamic query on the database and returns the matching rows.
150             *
151             * @param dynamicQuery the dynamic query
152             * @return the matching rows
153             * @throws SystemException if a system exception occurred
154             */
155            @SuppressWarnings("rawtypes")
156            public List dynamicQuery(DynamicQuery dynamicQuery)
157                    throws SystemException {
158                    return ddlRecordPersistence.findWithDynamicQuery(dynamicQuery);
159            }
160    
161            /**
162             * Performs a dynamic query on the database and returns a range of the matching rows.
163             *
164             * <p>
165             * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
166             * </p>
167             *
168             * @param dynamicQuery the dynamic query
169             * @param start the lower bound of the range of model instances
170             * @param end the upper bound of the range of model instances (not inclusive)
171             * @return the range of matching rows
172             * @throws SystemException if a system exception occurred
173             */
174            @SuppressWarnings("rawtypes")
175            public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
176                    throws SystemException {
177                    return ddlRecordPersistence.findWithDynamicQuery(dynamicQuery, start,
178                            end);
179            }
180    
181            /**
182             * Performs a dynamic query on the database and returns an ordered range of the matching rows.
183             *
184             * <p>
185             * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
186             * </p>
187             *
188             * @param dynamicQuery the dynamic query
189             * @param start the lower bound of the range of model instances
190             * @param end the upper bound of the range of model instances (not inclusive)
191             * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
192             * @return the ordered range of matching rows
193             * @throws SystemException if a system exception occurred
194             */
195            @SuppressWarnings("rawtypes")
196            public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end,
197                    OrderByComparator orderByComparator) throws SystemException {
198                    return ddlRecordPersistence.findWithDynamicQuery(dynamicQuery, start,
199                            end, orderByComparator);
200            }
201    
202            /**
203             * Returns the number of rows that match the dynamic query.
204             *
205             * @param dynamicQuery the dynamic query
206             * @return the number of rows that match the dynamic query
207             * @throws SystemException if a system exception occurred
208             */
209            public long dynamicQueryCount(DynamicQuery dynamicQuery)
210                    throws SystemException {
211                    return ddlRecordPersistence.countWithDynamicQuery(dynamicQuery);
212            }
213    
214            public DDLRecord fetchDDLRecord(long recordId) throws SystemException {
215                    return ddlRecordPersistence.fetchByPrimaryKey(recordId);
216            }
217    
218            /**
219             * Returns the d d l record with the primary key.
220             *
221             * @param recordId the primary key of the d d l record
222             * @return the d d l record
223             * @throws PortalException if a d d l record with the primary key could not be found
224             * @throws SystemException if a system exception occurred
225             */
226            public DDLRecord getDDLRecord(long recordId)
227                    throws PortalException, SystemException {
228                    return ddlRecordPersistence.findByPrimaryKey(recordId);
229            }
230    
231            public PersistedModel getPersistedModel(Serializable primaryKeyObj)
232                    throws PortalException, SystemException {
233                    return ddlRecordPersistence.findByPrimaryKey(primaryKeyObj);
234            }
235    
236            /**
237             * Returns the d d l record with the UUID in the group.
238             *
239             * @param uuid the UUID of d d l record
240             * @param groupId the group id of the d d l record
241             * @return the d d l record
242             * @throws PortalException if a d d l record with the UUID in the group could not be found
243             * @throws SystemException if a system exception occurred
244             */
245            public DDLRecord getDDLRecordByUuidAndGroupId(String uuid, long groupId)
246                    throws PortalException, SystemException {
247                    return ddlRecordPersistence.findByUUID_G(uuid, groupId);
248            }
249    
250            /**
251             * Returns a range of all the d d l records.
252             *
253             * <p>
254             * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
255             * </p>
256             *
257             * @param start the lower bound of the range of d d l records
258             * @param end the upper bound of the range of d d l records (not inclusive)
259             * @return the range of d d l records
260             * @throws SystemException if a system exception occurred
261             */
262            public List<DDLRecord> getDDLRecords(int start, int end)
263                    throws SystemException {
264                    return ddlRecordPersistence.findAll(start, end);
265            }
266    
267            /**
268             * Returns the number of d d l records.
269             *
270             * @return the number of d d l records
271             * @throws SystemException if a system exception occurred
272             */
273            public int getDDLRecordsCount() throws SystemException {
274                    return ddlRecordPersistence.countAll();
275            }
276    
277            /**
278             * Updates the d d l record in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
279             *
280             * @param ddlRecord the d d l record
281             * @return the d d l record that was updated
282             * @throws SystemException if a system exception occurred
283             */
284            @Indexable(type = IndexableType.REINDEX)
285            public DDLRecord updateDDLRecord(DDLRecord ddlRecord)
286                    throws SystemException {
287                    return updateDDLRecord(ddlRecord, true);
288            }
289    
290            /**
291             * Updates the d d l record in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
292             *
293             * @param ddlRecord the d d l record
294             * @param merge whether to merge the d d l record with the current session. See {@link com.liferay.portal.service.persistence.BatchSession#update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean)} for an explanation.
295             * @return the d d l record that was updated
296             * @throws SystemException if a system exception occurred
297             */
298            @Indexable(type = IndexableType.REINDEX)
299            public DDLRecord updateDDLRecord(DDLRecord ddlRecord, boolean merge)
300                    throws SystemException {
301                    ddlRecord.setNew(false);
302    
303                    return ddlRecordPersistence.update(ddlRecord, merge);
304            }
305    
306            /**
307             * Returns the d d l record local service.
308             *
309             * @return the d d l record local service
310             */
311            public DDLRecordLocalService getDDLRecordLocalService() {
312                    return ddlRecordLocalService;
313            }
314    
315            /**
316             * Sets the d d l record local service.
317             *
318             * @param ddlRecordLocalService the d d l record local service
319             */
320            public void setDDLRecordLocalService(
321                    DDLRecordLocalService ddlRecordLocalService) {
322                    this.ddlRecordLocalService = ddlRecordLocalService;
323            }
324    
325            /**
326             * Returns the d d l record remote service.
327             *
328             * @return the d d l record remote service
329             */
330            public DDLRecordService getDDLRecordService() {
331                    return ddlRecordService;
332            }
333    
334            /**
335             * Sets the d d l record remote service.
336             *
337             * @param ddlRecordService the d d l record remote service
338             */
339            public void setDDLRecordService(DDLRecordService ddlRecordService) {
340                    this.ddlRecordService = ddlRecordService;
341            }
342    
343            /**
344             * Returns the d d l record persistence.
345             *
346             * @return the d d l record persistence
347             */
348            public DDLRecordPersistence getDDLRecordPersistence() {
349                    return ddlRecordPersistence;
350            }
351    
352            /**
353             * Sets the d d l record persistence.
354             *
355             * @param ddlRecordPersistence the d d l record persistence
356             */
357            public void setDDLRecordPersistence(
358                    DDLRecordPersistence ddlRecordPersistence) {
359                    this.ddlRecordPersistence = ddlRecordPersistence;
360            }
361    
362            /**
363             * Returns the d d l record finder.
364             *
365             * @return the d d l record finder
366             */
367            public DDLRecordFinder getDDLRecordFinder() {
368                    return ddlRecordFinder;
369            }
370    
371            /**
372             * Sets the d d l record finder.
373             *
374             * @param ddlRecordFinder the d d l record finder
375             */
376            public void setDDLRecordFinder(DDLRecordFinder ddlRecordFinder) {
377                    this.ddlRecordFinder = ddlRecordFinder;
378            }
379    
380            /**
381             * Returns the d d l record set local service.
382             *
383             * @return the d d l record set local service
384             */
385            public DDLRecordSetLocalService getDDLRecordSetLocalService() {
386                    return ddlRecordSetLocalService;
387            }
388    
389            /**
390             * Sets the d d l record set local service.
391             *
392             * @param ddlRecordSetLocalService the d d l record set local service
393             */
394            public void setDDLRecordSetLocalService(
395                    DDLRecordSetLocalService ddlRecordSetLocalService) {
396                    this.ddlRecordSetLocalService = ddlRecordSetLocalService;
397            }
398    
399            /**
400             * Returns the d d l record set remote service.
401             *
402             * @return the d d l record set remote service
403             */
404            public DDLRecordSetService getDDLRecordSetService() {
405                    return ddlRecordSetService;
406            }
407    
408            /**
409             * Sets the d d l record set remote service.
410             *
411             * @param ddlRecordSetService the d d l record set remote service
412             */
413            public void setDDLRecordSetService(DDLRecordSetService ddlRecordSetService) {
414                    this.ddlRecordSetService = ddlRecordSetService;
415            }
416    
417            /**
418             * Returns the d d l record set persistence.
419             *
420             * @return the d d l record set persistence
421             */
422            public DDLRecordSetPersistence getDDLRecordSetPersistence() {
423                    return ddlRecordSetPersistence;
424            }
425    
426            /**
427             * Sets the d d l record set persistence.
428             *
429             * @param ddlRecordSetPersistence the d d l record set persistence
430             */
431            public void setDDLRecordSetPersistence(
432                    DDLRecordSetPersistence ddlRecordSetPersistence) {
433                    this.ddlRecordSetPersistence = ddlRecordSetPersistence;
434            }
435    
436            /**
437             * Returns the d d l record set finder.
438             *
439             * @return the d d l record set finder
440             */
441            public DDLRecordSetFinder getDDLRecordSetFinder() {
442                    return ddlRecordSetFinder;
443            }
444    
445            /**
446             * Sets the d d l record set finder.
447             *
448             * @param ddlRecordSetFinder the d d l record set finder
449             */
450            public void setDDLRecordSetFinder(DDLRecordSetFinder ddlRecordSetFinder) {
451                    this.ddlRecordSetFinder = ddlRecordSetFinder;
452            }
453    
454            /**
455             * Returns the d d l record version persistence.
456             *
457             * @return the d d l record version persistence
458             */
459            public DDLRecordVersionPersistence getDDLRecordVersionPersistence() {
460                    return ddlRecordVersionPersistence;
461            }
462    
463            /**
464             * Sets the d d l record version persistence.
465             *
466             * @param ddlRecordVersionPersistence the d d l record version persistence
467             */
468            public void setDDLRecordVersionPersistence(
469                    DDLRecordVersionPersistence ddlRecordVersionPersistence) {
470                    this.ddlRecordVersionPersistence = ddlRecordVersionPersistence;
471            }
472    
473            /**
474             * Returns the counter local service.
475             *
476             * @return the counter local service
477             */
478            public CounterLocalService getCounterLocalService() {
479                    return counterLocalService;
480            }
481    
482            /**
483             * Sets the counter local service.
484             *
485             * @param counterLocalService the counter local service
486             */
487            public void setCounterLocalService(CounterLocalService counterLocalService) {
488                    this.counterLocalService = counterLocalService;
489            }
490    
491            /**
492             * Returns the resource local service.
493             *
494             * @return the resource local service
495             */
496            public ResourceLocalService getResourceLocalService() {
497                    return resourceLocalService;
498            }
499    
500            /**
501             * Sets the resource local service.
502             *
503             * @param resourceLocalService the resource local service
504             */
505            public void setResourceLocalService(
506                    ResourceLocalService resourceLocalService) {
507                    this.resourceLocalService = resourceLocalService;
508            }
509    
510            /**
511             * Returns the resource remote service.
512             *
513             * @return the resource remote service
514             */
515            public ResourceService getResourceService() {
516                    return resourceService;
517            }
518    
519            /**
520             * Sets the resource remote service.
521             *
522             * @param resourceService the resource remote service
523             */
524            public void setResourceService(ResourceService resourceService) {
525                    this.resourceService = resourceService;
526            }
527    
528            /**
529             * Returns the resource persistence.
530             *
531             * @return the resource persistence
532             */
533            public ResourcePersistence getResourcePersistence() {
534                    return resourcePersistence;
535            }
536    
537            /**
538             * Sets the resource persistence.
539             *
540             * @param resourcePersistence the resource persistence
541             */
542            public void setResourcePersistence(ResourcePersistence resourcePersistence) {
543                    this.resourcePersistence = resourcePersistence;
544            }
545    
546            /**
547             * Returns the resource finder.
548             *
549             * @return the resource finder
550             */
551            public ResourceFinder getResourceFinder() {
552                    return resourceFinder;
553            }
554    
555            /**
556             * Sets the resource finder.
557             *
558             * @param resourceFinder the resource finder
559             */
560            public void setResourceFinder(ResourceFinder resourceFinder) {
561                    this.resourceFinder = resourceFinder;
562            }
563    
564            /**
565             * Returns the user local service.
566             *
567             * @return the user local service
568             */
569            public UserLocalService getUserLocalService() {
570                    return userLocalService;
571            }
572    
573            /**
574             * Sets the user local service.
575             *
576             * @param userLocalService the user local service
577             */
578            public void setUserLocalService(UserLocalService userLocalService) {
579                    this.userLocalService = userLocalService;
580            }
581    
582            /**
583             * Returns the user remote service.
584             *
585             * @return the user remote service
586             */
587            public UserService getUserService() {
588                    return userService;
589            }
590    
591            /**
592             * Sets the user remote service.
593             *
594             * @param userService the user remote service
595             */
596            public void setUserService(UserService userService) {
597                    this.userService = userService;
598            }
599    
600            /**
601             * Returns the user persistence.
602             *
603             * @return the user persistence
604             */
605            public UserPersistence getUserPersistence() {
606                    return userPersistence;
607            }
608    
609            /**
610             * Sets the user persistence.
611             *
612             * @param userPersistence the user persistence
613             */
614            public void setUserPersistence(UserPersistence userPersistence) {
615                    this.userPersistence = userPersistence;
616            }
617    
618            /**
619             * Returns the user finder.
620             *
621             * @return the user finder
622             */
623            public UserFinder getUserFinder() {
624                    return userFinder;
625            }
626    
627            /**
628             * Sets the user finder.
629             *
630             * @param userFinder the user finder
631             */
632            public void setUserFinder(UserFinder userFinder) {
633                    this.userFinder = userFinder;
634            }
635    
636            /**
637             * Returns the workflow instance link local service.
638             *
639             * @return the workflow instance link local service
640             */
641            public WorkflowInstanceLinkLocalService getWorkflowInstanceLinkLocalService() {
642                    return workflowInstanceLinkLocalService;
643            }
644    
645            /**
646             * Sets the workflow instance link local service.
647             *
648             * @param workflowInstanceLinkLocalService the workflow instance link local service
649             */
650            public void setWorkflowInstanceLinkLocalService(
651                    WorkflowInstanceLinkLocalService workflowInstanceLinkLocalService) {
652                    this.workflowInstanceLinkLocalService = workflowInstanceLinkLocalService;
653            }
654    
655            /**
656             * Returns the workflow instance link persistence.
657             *
658             * @return the workflow instance link persistence
659             */
660            public WorkflowInstanceLinkPersistence getWorkflowInstanceLinkPersistence() {
661                    return workflowInstanceLinkPersistence;
662            }
663    
664            /**
665             * Sets the workflow instance link persistence.
666             *
667             * @param workflowInstanceLinkPersistence the workflow instance link persistence
668             */
669            public void setWorkflowInstanceLinkPersistence(
670                    WorkflowInstanceLinkPersistence workflowInstanceLinkPersistence) {
671                    this.workflowInstanceLinkPersistence = workflowInstanceLinkPersistence;
672            }
673    
674            /**
675             * Returns the asset entry local service.
676             *
677             * @return the asset entry local service
678             */
679            public AssetEntryLocalService getAssetEntryLocalService() {
680                    return assetEntryLocalService;
681            }
682    
683            /**
684             * Sets the asset entry local service.
685             *
686             * @param assetEntryLocalService the asset entry local service
687             */
688            public void setAssetEntryLocalService(
689                    AssetEntryLocalService assetEntryLocalService) {
690                    this.assetEntryLocalService = assetEntryLocalService;
691            }
692    
693            /**
694             * Returns the asset entry remote service.
695             *
696             * @return the asset entry remote service
697             */
698            public AssetEntryService getAssetEntryService() {
699                    return assetEntryService;
700            }
701    
702            /**
703             * Sets the asset entry remote service.
704             *
705             * @param assetEntryService the asset entry remote service
706             */
707            public void setAssetEntryService(AssetEntryService assetEntryService) {
708                    this.assetEntryService = assetEntryService;
709            }
710    
711            /**
712             * Returns the asset entry persistence.
713             *
714             * @return the asset entry persistence
715             */
716            public AssetEntryPersistence getAssetEntryPersistence() {
717                    return assetEntryPersistence;
718            }
719    
720            /**
721             * Sets the asset entry persistence.
722             *
723             * @param assetEntryPersistence the asset entry persistence
724             */
725            public void setAssetEntryPersistence(
726                    AssetEntryPersistence assetEntryPersistence) {
727                    this.assetEntryPersistence = assetEntryPersistence;
728            }
729    
730            /**
731             * Returns the asset entry finder.
732             *
733             * @return the asset entry finder
734             */
735            public AssetEntryFinder getAssetEntryFinder() {
736                    return assetEntryFinder;
737            }
738    
739            /**
740             * Sets the asset entry finder.
741             *
742             * @param assetEntryFinder the asset entry finder
743             */
744            public void setAssetEntryFinder(AssetEntryFinder assetEntryFinder) {
745                    this.assetEntryFinder = assetEntryFinder;
746            }
747    
748            /**
749             * Returns the d d m structure local service.
750             *
751             * @return the d d m structure local service
752             */
753            public DDMStructureLocalService getDDMStructureLocalService() {
754                    return ddmStructureLocalService;
755            }
756    
757            /**
758             * Sets the d d m structure local service.
759             *
760             * @param ddmStructureLocalService the d d m structure local service
761             */
762            public void setDDMStructureLocalService(
763                    DDMStructureLocalService ddmStructureLocalService) {
764                    this.ddmStructureLocalService = ddmStructureLocalService;
765            }
766    
767            /**
768             * Returns the d d m structure remote service.
769             *
770             * @return the d d m structure remote service
771             */
772            public DDMStructureService getDDMStructureService() {
773                    return ddmStructureService;
774            }
775    
776            /**
777             * Sets the d d m structure remote service.
778             *
779             * @param ddmStructureService the d d m structure remote service
780             */
781            public void setDDMStructureService(DDMStructureService ddmStructureService) {
782                    this.ddmStructureService = ddmStructureService;
783            }
784    
785            /**
786             * Returns the d d m structure persistence.
787             *
788             * @return the d d m structure persistence
789             */
790            public DDMStructurePersistence getDDMStructurePersistence() {
791                    return ddmStructurePersistence;
792            }
793    
794            /**
795             * Sets the d d m structure persistence.
796             *
797             * @param ddmStructurePersistence the d d m structure persistence
798             */
799            public void setDDMStructurePersistence(
800                    DDMStructurePersistence ddmStructurePersistence) {
801                    this.ddmStructurePersistence = ddmStructurePersistence;
802            }
803    
804            /**
805             * Returns the d d m structure finder.
806             *
807             * @return the d d m structure finder
808             */
809            public DDMStructureFinder getDDMStructureFinder() {
810                    return ddmStructureFinder;
811            }
812    
813            /**
814             * Sets the d d m structure finder.
815             *
816             * @param ddmStructureFinder the d d m structure finder
817             */
818            public void setDDMStructureFinder(DDMStructureFinder ddmStructureFinder) {
819                    this.ddmStructureFinder = ddmStructureFinder;
820            }
821    
822            public void afterPropertiesSet() {
823                    persistedModelLocalServiceRegistry.register("com.liferay.portlet.dynamicdatalists.model.DDLRecord",
824                            ddlRecordLocalService);
825            }
826    
827            public void destroy() {
828                    persistedModelLocalServiceRegistry.unregister(
829                            "com.liferay.portlet.dynamicdatalists.model.DDLRecord");
830            }
831    
832            /**
833             * Returns the Spring bean ID for this bean.
834             *
835             * @return the Spring bean ID for this bean
836             */
837            public String getBeanIdentifier() {
838                    return _beanIdentifier;
839            }
840    
841            /**
842             * Sets the Spring bean ID for this bean.
843             *
844             * @param beanIdentifier the Spring bean ID for this bean
845             */
846            public void setBeanIdentifier(String beanIdentifier) {
847                    _beanIdentifier = beanIdentifier;
848            }
849    
850            protected Class<?> getModelClass() {
851                    return DDLRecord.class;
852            }
853    
854            protected String getModelClassName() {
855                    return DDLRecord.class.getName();
856            }
857    
858            /**
859             * Performs an SQL query.
860             *
861             * @param sql the sql query
862             */
863            protected void runSQL(String sql) throws SystemException {
864                    try {
865                            DataSource dataSource = ddlRecordPersistence.getDataSource();
866    
867                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
868                                            sql, new int[0]);
869    
870                            sqlUpdate.update();
871                    }
872                    catch (Exception e) {
873                            throw new SystemException(e);
874                    }
875            }
876    
877            @BeanReference(type = DDLRecordLocalService.class)
878            protected DDLRecordLocalService ddlRecordLocalService;
879            @BeanReference(type = DDLRecordService.class)
880            protected DDLRecordService ddlRecordService;
881            @BeanReference(type = DDLRecordPersistence.class)
882            protected DDLRecordPersistence ddlRecordPersistence;
883            @BeanReference(type = DDLRecordFinder.class)
884            protected DDLRecordFinder ddlRecordFinder;
885            @BeanReference(type = DDLRecordSetLocalService.class)
886            protected DDLRecordSetLocalService ddlRecordSetLocalService;
887            @BeanReference(type = DDLRecordSetService.class)
888            protected DDLRecordSetService ddlRecordSetService;
889            @BeanReference(type = DDLRecordSetPersistence.class)
890            protected DDLRecordSetPersistence ddlRecordSetPersistence;
891            @BeanReference(type = DDLRecordSetFinder.class)
892            protected DDLRecordSetFinder ddlRecordSetFinder;
893            @BeanReference(type = DDLRecordVersionPersistence.class)
894            protected DDLRecordVersionPersistence ddlRecordVersionPersistence;
895            @BeanReference(type = CounterLocalService.class)
896            protected CounterLocalService counterLocalService;
897            @BeanReference(type = ResourceLocalService.class)
898            protected ResourceLocalService resourceLocalService;
899            @BeanReference(type = ResourceService.class)
900            protected ResourceService resourceService;
901            @BeanReference(type = ResourcePersistence.class)
902            protected ResourcePersistence resourcePersistence;
903            @BeanReference(type = ResourceFinder.class)
904            protected ResourceFinder resourceFinder;
905            @BeanReference(type = UserLocalService.class)
906            protected UserLocalService userLocalService;
907            @BeanReference(type = UserService.class)
908            protected UserService userService;
909            @BeanReference(type = UserPersistence.class)
910            protected UserPersistence userPersistence;
911            @BeanReference(type = UserFinder.class)
912            protected UserFinder userFinder;
913            @BeanReference(type = WorkflowInstanceLinkLocalService.class)
914            protected WorkflowInstanceLinkLocalService workflowInstanceLinkLocalService;
915            @BeanReference(type = WorkflowInstanceLinkPersistence.class)
916            protected WorkflowInstanceLinkPersistence workflowInstanceLinkPersistence;
917            @BeanReference(type = AssetEntryLocalService.class)
918            protected AssetEntryLocalService assetEntryLocalService;
919            @BeanReference(type = AssetEntryService.class)
920            protected AssetEntryService assetEntryService;
921            @BeanReference(type = AssetEntryPersistence.class)
922            protected AssetEntryPersistence assetEntryPersistence;
923            @BeanReference(type = AssetEntryFinder.class)
924            protected AssetEntryFinder assetEntryFinder;
925            @BeanReference(type = DDMStructureLocalService.class)
926            protected DDMStructureLocalService ddmStructureLocalService;
927            @BeanReference(type = DDMStructureService.class)
928            protected DDMStructureService ddmStructureService;
929            @BeanReference(type = DDMStructurePersistence.class)
930            protected DDMStructurePersistence ddmStructurePersistence;
931            @BeanReference(type = DDMStructureFinder.class)
932            protected DDMStructureFinder ddmStructureFinder;
933            @BeanReference(type = PersistedModelLocalServiceRegistry.class)
934            protected PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry;
935            private String _beanIdentifier;
936    }