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