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.dynamicdatamapping.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.GroupFinder;
033    import com.liferay.portal.service.persistence.GroupPersistence;
034    import com.liferay.portal.service.persistence.SystemEventPersistence;
035    import com.liferay.portal.service.persistence.UserFinder;
036    import com.liferay.portal.service.persistence.UserPersistence;
037    
038    import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryTypeFinder;
039    import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryTypePersistence;
040    import com.liferay.portlet.dynamicdatamapping.model.DDMStructure;
041    import com.liferay.portlet.dynamicdatamapping.service.DDMStructureLocalService;
042    import com.liferay.portlet.dynamicdatamapping.service.persistence.DDMContentPersistence;
043    import com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStorageLinkPersistence;
044    import com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStructureFinder;
045    import com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStructureLinkPersistence;
046    import com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStructurePersistence;
047    import com.liferay.portlet.dynamicdatamapping.service.persistence.DDMTemplateFinder;
048    import com.liferay.portlet.dynamicdatamapping.service.persistence.DDMTemplatePersistence;
049    
050    import java.io.Serializable;
051    
052    import java.util.List;
053    
054    import javax.sql.DataSource;
055    
056    /**
057     * Provides the base implementation for the d d m structure local service.
058     *
059     * <p>
060     * 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.dynamicdatamapping.service.impl.DDMStructureLocalServiceImpl}.
061     * </p>
062     *
063     * @author Brian Wing Shun Chan
064     * @see com.liferay.portlet.dynamicdatamapping.service.impl.DDMStructureLocalServiceImpl
065     * @see com.liferay.portlet.dynamicdatamapping.service.DDMStructureLocalServiceUtil
066     * @generated
067     */
068    public abstract class DDMStructureLocalServiceBaseImpl
069            extends BaseLocalServiceImpl implements DDMStructureLocalService,
070                    IdentifiableBean {
071            /*
072             * NOTE FOR DEVELOPERS:
073             *
074             * Never modify or reference this class directly. Always use {@link com.liferay.portlet.dynamicdatamapping.service.DDMStructureLocalServiceUtil} to access the d d m structure local service.
075             */
076    
077            /**
078             * Adds the d d m structure to the database. Also notifies the appropriate model listeners.
079             *
080             * @param ddmStructure the d d m structure
081             * @return the d d m structure that was added
082             * @throws SystemException if a system exception occurred
083             */
084            @Indexable(type = IndexableType.REINDEX)
085            @Override
086            public DDMStructure addDDMStructure(DDMStructure ddmStructure)
087                    throws SystemException {
088                    ddmStructure.setNew(true);
089    
090                    return ddmStructurePersistence.update(ddmStructure);
091            }
092    
093            /**
094             * Creates a new d d m structure with the primary key. Does not add the d d m structure to the database.
095             *
096             * @param structureId the primary key for the new d d m structure
097             * @return the new d d m structure
098             */
099            @Override
100            public DDMStructure createDDMStructure(long structureId) {
101                    return ddmStructurePersistence.create(structureId);
102            }
103    
104            /**
105             * Deletes the d d m structure with the primary key from the database. Also notifies the appropriate model listeners.
106             *
107             * @param structureId the primary key of the d d m structure
108             * @return the d d m structure that was removed
109             * @throws PortalException if a d d m structure with the primary key could not be found
110             * @throws SystemException if a system exception occurred
111             */
112            @Indexable(type = IndexableType.DELETE)
113            @Override
114            public DDMStructure deleteDDMStructure(long structureId)
115                    throws PortalException, SystemException {
116                    return ddmStructurePersistence.remove(structureId);
117            }
118    
119            /**
120             * Deletes the d d m structure from the database. Also notifies the appropriate model listeners.
121             *
122             * @param ddmStructure the d d m structure
123             * @return the d d m structure that was removed
124             * @throws SystemException if a system exception occurred
125             */
126            @Indexable(type = IndexableType.DELETE)
127            @Override
128            public DDMStructure deleteDDMStructure(DDMStructure ddmStructure)
129                    throws SystemException {
130                    return ddmStructurePersistence.remove(ddmStructure);
131            }
132    
133            @Override
134            public DynamicQuery dynamicQuery() {
135                    Class<?> clazz = getClass();
136    
137                    return DynamicQueryFactoryUtil.forClass(DDMStructure.class,
138                            clazz.getClassLoader());
139            }
140    
141            /**
142             * Performs a dynamic query on the database and returns the matching rows.
143             *
144             * @param dynamicQuery the dynamic query
145             * @return the matching rows
146             * @throws SystemException if a system exception occurred
147             */
148            @Override
149            @SuppressWarnings("rawtypes")
150            public List dynamicQuery(DynamicQuery dynamicQuery)
151                    throws SystemException {
152                    return ddmStructurePersistence.findWithDynamicQuery(dynamicQuery);
153            }
154    
155            /**
156             * Performs a dynamic query on the database and returns a range of the matching rows.
157             *
158             * <p>
159             * 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.dynamicdatamapping.model.impl.DDMStructureModelImpl}. 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.
160             * </p>
161             *
162             * @param dynamicQuery the dynamic query
163             * @param start the lower bound of the range of model instances
164             * @param end the upper bound of the range of model instances (not inclusive)
165             * @return the range of matching rows
166             * @throws SystemException if a system exception occurred
167             */
168            @Override
169            @SuppressWarnings("rawtypes")
170            public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
171                    throws SystemException {
172                    return ddmStructurePersistence.findWithDynamicQuery(dynamicQuery,
173                            start, end);
174            }
175    
176            /**
177             * Performs a dynamic query on the database and returns an ordered range of the matching rows.
178             *
179             * <p>
180             * 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.dynamicdatamapping.model.impl.DDMStructureModelImpl}. 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.
181             * </p>
182             *
183             * @param dynamicQuery the dynamic query
184             * @param start the lower bound of the range of model instances
185             * @param end the upper bound of the range of model instances (not inclusive)
186             * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
187             * @return the ordered range of matching rows
188             * @throws SystemException if a system exception occurred
189             */
190            @Override
191            @SuppressWarnings("rawtypes")
192            public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end,
193                    OrderByComparator orderByComparator) throws SystemException {
194                    return ddmStructurePersistence.findWithDynamicQuery(dynamicQuery,
195                            start, end, orderByComparator);
196            }
197    
198            /**
199             * Returns the number of rows that match the dynamic query.
200             *
201             * @param dynamicQuery the dynamic query
202             * @return the number of rows that match the dynamic query
203             * @throws SystemException if a system exception occurred
204             */
205            @Override
206            public long dynamicQueryCount(DynamicQuery dynamicQuery)
207                    throws SystemException {
208                    return ddmStructurePersistence.countWithDynamicQuery(dynamicQuery);
209            }
210    
211            /**
212             * Returns the number of rows that match the dynamic query.
213             *
214             * @param dynamicQuery the dynamic query
215             * @param projection the projection to apply to the query
216             * @return the number of rows that match the dynamic query
217             * @throws SystemException if a system exception occurred
218             */
219            @Override
220            public long dynamicQueryCount(DynamicQuery dynamicQuery,
221                    Projection projection) throws SystemException {
222                    return ddmStructurePersistence.countWithDynamicQuery(dynamicQuery,
223                            projection);
224            }
225    
226            @Override
227            public DDMStructure fetchDDMStructure(long structureId)
228                    throws SystemException {
229                    return ddmStructurePersistence.fetchByPrimaryKey(structureId);
230            }
231    
232            /**
233             * Returns the d d m structure with the matching UUID and company.
234             *
235             * @param uuid the d d m structure's UUID
236             * @param  companyId the primary key of the company
237             * @return the matching d d m structure, or <code>null</code> if a matching d d m structure could not be found
238             * @throws SystemException if a system exception occurred
239             */
240            @Override
241            public DDMStructure fetchDDMStructureByUuidAndCompanyId(String uuid,
242                    long companyId) throws SystemException {
243                    return ddmStructurePersistence.fetchByUuid_C_First(uuid, companyId, null);
244            }
245    
246            /**
247             * Returns the d d m structure matching the UUID and group.
248             *
249             * @param uuid the d d m structure's UUID
250             * @param groupId the primary key of the group
251             * @return the matching d d m structure, or <code>null</code> if a matching d d m structure could not be found
252             * @throws SystemException if a system exception occurred
253             */
254            @Override
255            public DDMStructure fetchDDMStructureByUuidAndGroupId(String uuid,
256                    long groupId) throws SystemException {
257                    return ddmStructurePersistence.fetchByUUID_G(uuid, groupId);
258            }
259    
260            /**
261             * Returns the d d m structure with the primary key.
262             *
263             * @param structureId the primary key of the d d m structure
264             * @return the d d m structure
265             * @throws PortalException if a d d m structure with the primary key could not be found
266             * @throws SystemException if a system exception occurred
267             */
268            @Override
269            public DDMStructure getDDMStructure(long structureId)
270                    throws PortalException, SystemException {
271                    return ddmStructurePersistence.findByPrimaryKey(structureId);
272            }
273    
274            @Override
275            public PersistedModel getPersistedModel(Serializable primaryKeyObj)
276                    throws PortalException, SystemException {
277                    return ddmStructurePersistence.findByPrimaryKey(primaryKeyObj);
278            }
279    
280            /**
281             * Returns the d d m structure with the matching UUID and company.
282             *
283             * @param uuid the d d m structure's UUID
284             * @param  companyId the primary key of the company
285             * @return the matching d d m structure
286             * @throws PortalException if a matching d d m structure could not be found
287             * @throws SystemException if a system exception occurred
288             */
289            @Override
290            public DDMStructure getDDMStructureByUuidAndCompanyId(String uuid,
291                    long companyId) throws PortalException, SystemException {
292                    return ddmStructurePersistence.findByUuid_C_First(uuid, companyId, null);
293            }
294    
295            /**
296             * Returns the d d m structure matching the UUID and group.
297             *
298             * @param uuid the d d m structure's UUID
299             * @param groupId the primary key of the group
300             * @return the matching d d m structure
301             * @throws PortalException if a matching d d m structure could not be found
302             * @throws SystemException if a system exception occurred
303             */
304            @Override
305            public DDMStructure getDDMStructureByUuidAndGroupId(String uuid,
306                    long groupId) throws PortalException, SystemException {
307                    return ddmStructurePersistence.findByUUID_G(uuid, groupId);
308            }
309    
310            /**
311             * Returns a range of all the d d m structures.
312             *
313             * <p>
314             * 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.dynamicdatamapping.model.impl.DDMStructureModelImpl}. 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.
315             * </p>
316             *
317             * @param start the lower bound of the range of d d m structures
318             * @param end the upper bound of the range of d d m structures (not inclusive)
319             * @return the range of d d m structures
320             * @throws SystemException if a system exception occurred
321             */
322            @Override
323            public List<DDMStructure> getDDMStructures(int start, int end)
324                    throws SystemException {
325                    return ddmStructurePersistence.findAll(start, end);
326            }
327    
328            /**
329             * Returns the number of d d m structures.
330             *
331             * @return the number of d d m structures
332             * @throws SystemException if a system exception occurred
333             */
334            @Override
335            public int getDDMStructuresCount() throws SystemException {
336                    return ddmStructurePersistence.countAll();
337            }
338    
339            /**
340             * Updates the d d m structure in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
341             *
342             * @param ddmStructure the d d m structure
343             * @return the d d m structure that was updated
344             * @throws SystemException if a system exception occurred
345             */
346            @Indexable(type = IndexableType.REINDEX)
347            @Override
348            public DDMStructure updateDDMStructure(DDMStructure ddmStructure)
349                    throws SystemException {
350                    return ddmStructurePersistence.update(ddmStructure);
351            }
352    
353            /**
354             * @throws SystemException if a system exception occurred
355             */
356            @Override
357            public void addDLFileEntryTypeDDMStructure(long fileEntryTypeId,
358                    long structureId) throws SystemException {
359                    dlFileEntryTypePersistence.addDDMStructure(fileEntryTypeId, structureId);
360            }
361    
362            /**
363             * @throws SystemException if a system exception occurred
364             */
365            @Override
366            public void addDLFileEntryTypeDDMStructure(long fileEntryTypeId,
367                    DDMStructure ddmStructure) throws SystemException {
368                    dlFileEntryTypePersistence.addDDMStructure(fileEntryTypeId, ddmStructure);
369            }
370    
371            /**
372             * @throws SystemException if a system exception occurred
373             */
374            @Override
375            public void addDLFileEntryTypeDDMStructures(long fileEntryTypeId,
376                    long[] structureIds) throws SystemException {
377                    dlFileEntryTypePersistence.addDDMStructures(fileEntryTypeId,
378                            structureIds);
379            }
380    
381            /**
382             * @throws SystemException if a system exception occurred
383             */
384            @Override
385            public void addDLFileEntryTypeDDMStructures(long fileEntryTypeId,
386                    List<DDMStructure> DDMStructures) throws SystemException {
387                    dlFileEntryTypePersistence.addDDMStructures(fileEntryTypeId,
388                            DDMStructures);
389            }
390    
391            /**
392             * @throws SystemException if a system exception occurred
393             */
394            @Override
395            public void clearDLFileEntryTypeDDMStructures(long fileEntryTypeId)
396                    throws SystemException {
397                    dlFileEntryTypePersistence.clearDDMStructures(fileEntryTypeId);
398            }
399    
400            /**
401             * @throws SystemException if a system exception occurred
402             */
403            @Override
404            public void deleteDLFileEntryTypeDDMStructure(long fileEntryTypeId,
405                    long structureId) throws SystemException {
406                    dlFileEntryTypePersistence.removeDDMStructure(fileEntryTypeId,
407                            structureId);
408            }
409    
410            /**
411             * @throws SystemException if a system exception occurred
412             */
413            @Override
414            public void deleteDLFileEntryTypeDDMStructure(long fileEntryTypeId,
415                    DDMStructure ddmStructure) throws SystemException {
416                    dlFileEntryTypePersistence.removeDDMStructure(fileEntryTypeId,
417                            ddmStructure);
418            }
419    
420            /**
421             * @throws SystemException if a system exception occurred
422             */
423            @Override
424            public void deleteDLFileEntryTypeDDMStructures(long fileEntryTypeId,
425                    long[] structureIds) throws SystemException {
426                    dlFileEntryTypePersistence.removeDDMStructures(fileEntryTypeId,
427                            structureIds);
428            }
429    
430            /**
431             * @throws SystemException if a system exception occurred
432             */
433            @Override
434            public void deleteDLFileEntryTypeDDMStructures(long fileEntryTypeId,
435                    List<DDMStructure> DDMStructures) throws SystemException {
436                    dlFileEntryTypePersistence.removeDDMStructures(fileEntryTypeId,
437                            DDMStructures);
438            }
439    
440            /**
441             * @throws SystemException if a system exception occurred
442             */
443            @Override
444            public List<DDMStructure> getDLFileEntryTypeDDMStructures(
445                    long fileEntryTypeId) throws SystemException {
446                    return dlFileEntryTypePersistence.getDDMStructures(fileEntryTypeId);
447            }
448    
449            /**
450             * @throws SystemException if a system exception occurred
451             */
452            @Override
453            public List<DDMStructure> getDLFileEntryTypeDDMStructures(
454                    long fileEntryTypeId, int start, int end) throws SystemException {
455                    return dlFileEntryTypePersistence.getDDMStructures(fileEntryTypeId,
456                            start, end);
457            }
458    
459            /**
460             * @throws SystemException if a system exception occurred
461             */
462            @Override
463            public List<DDMStructure> getDLFileEntryTypeDDMStructures(
464                    long fileEntryTypeId, int start, int end,
465                    OrderByComparator orderByComparator) throws SystemException {
466                    return dlFileEntryTypePersistence.getDDMStructures(fileEntryTypeId,
467                            start, end, orderByComparator);
468            }
469    
470            /**
471             * @throws SystemException if a system exception occurred
472             */
473            @Override
474            public int getDLFileEntryTypeDDMStructuresCount(long fileEntryTypeId)
475                    throws SystemException {
476                    return dlFileEntryTypePersistence.getDDMStructuresSize(fileEntryTypeId);
477            }
478    
479            /**
480             * @throws SystemException if a system exception occurred
481             */
482            @Override
483            public boolean hasDLFileEntryTypeDDMStructure(long fileEntryTypeId,
484                    long structureId) throws SystemException {
485                    return dlFileEntryTypePersistence.containsDDMStructure(fileEntryTypeId,
486                            structureId);
487            }
488    
489            /**
490             * @throws SystemException if a system exception occurred
491             */
492            @Override
493            public boolean hasDLFileEntryTypeDDMStructures(long fileEntryTypeId)
494                    throws SystemException {
495                    return dlFileEntryTypePersistence.containsDDMStructures(fileEntryTypeId);
496            }
497    
498            /**
499             * @throws SystemException if a system exception occurred
500             */
501            @Override
502            public void setDLFileEntryTypeDDMStructures(long fileEntryTypeId,
503                    long[] structureIds) throws SystemException {
504                    dlFileEntryTypePersistence.setDDMStructures(fileEntryTypeId,
505                            structureIds);
506            }
507    
508            /**
509             * Returns the d d m content local service.
510             *
511             * @return the d d m content local service
512             */
513            public com.liferay.portlet.dynamicdatamapping.service.DDMContentLocalService getDDMContentLocalService() {
514                    return ddmContentLocalService;
515            }
516    
517            /**
518             * Sets the d d m content local service.
519             *
520             * @param ddmContentLocalService the d d m content local service
521             */
522            public void setDDMContentLocalService(
523                    com.liferay.portlet.dynamicdatamapping.service.DDMContentLocalService ddmContentLocalService) {
524                    this.ddmContentLocalService = ddmContentLocalService;
525            }
526    
527            /**
528             * Returns the d d m content persistence.
529             *
530             * @return the d d m content persistence
531             */
532            public DDMContentPersistence getDDMContentPersistence() {
533                    return ddmContentPersistence;
534            }
535    
536            /**
537             * Sets the d d m content persistence.
538             *
539             * @param ddmContentPersistence the d d m content persistence
540             */
541            public void setDDMContentPersistence(
542                    DDMContentPersistence ddmContentPersistence) {
543                    this.ddmContentPersistence = ddmContentPersistence;
544            }
545    
546            /**
547             * Returns the d d m storage link local service.
548             *
549             * @return the d d m storage link local service
550             */
551            public com.liferay.portlet.dynamicdatamapping.service.DDMStorageLinkLocalService getDDMStorageLinkLocalService() {
552                    return ddmStorageLinkLocalService;
553            }
554    
555            /**
556             * Sets the d d m storage link local service.
557             *
558             * @param ddmStorageLinkLocalService the d d m storage link local service
559             */
560            public void setDDMStorageLinkLocalService(
561                    com.liferay.portlet.dynamicdatamapping.service.DDMStorageLinkLocalService ddmStorageLinkLocalService) {
562                    this.ddmStorageLinkLocalService = ddmStorageLinkLocalService;
563            }
564    
565            /**
566             * Returns the d d m storage link persistence.
567             *
568             * @return the d d m storage link persistence
569             */
570            public DDMStorageLinkPersistence getDDMStorageLinkPersistence() {
571                    return ddmStorageLinkPersistence;
572            }
573    
574            /**
575             * Sets the d d m storage link persistence.
576             *
577             * @param ddmStorageLinkPersistence the d d m storage link persistence
578             */
579            public void setDDMStorageLinkPersistence(
580                    DDMStorageLinkPersistence ddmStorageLinkPersistence) {
581                    this.ddmStorageLinkPersistence = ddmStorageLinkPersistence;
582            }
583    
584            /**
585             * Returns the d d m structure local service.
586             *
587             * @return the d d m structure local service
588             */
589            public com.liferay.portlet.dynamicdatamapping.service.DDMStructureLocalService getDDMStructureLocalService() {
590                    return ddmStructureLocalService;
591            }
592    
593            /**
594             * Sets the d d m structure local service.
595             *
596             * @param ddmStructureLocalService the d d m structure local service
597             */
598            public void setDDMStructureLocalService(
599                    com.liferay.portlet.dynamicdatamapping.service.DDMStructureLocalService ddmStructureLocalService) {
600                    this.ddmStructureLocalService = ddmStructureLocalService;
601            }
602    
603            /**
604             * Returns the d d m structure remote service.
605             *
606             * @return the d d m structure remote service
607             */
608            public com.liferay.portlet.dynamicdatamapping.service.DDMStructureService getDDMStructureService() {
609                    return ddmStructureService;
610            }
611    
612            /**
613             * Sets the d d m structure remote service.
614             *
615             * @param ddmStructureService the d d m structure remote service
616             */
617            public void setDDMStructureService(
618                    com.liferay.portlet.dynamicdatamapping.service.DDMStructureService ddmStructureService) {
619                    this.ddmStructureService = ddmStructureService;
620            }
621    
622            /**
623             * Returns the d d m structure persistence.
624             *
625             * @return the d d m structure persistence
626             */
627            public DDMStructurePersistence getDDMStructurePersistence() {
628                    return ddmStructurePersistence;
629            }
630    
631            /**
632             * Sets the d d m structure persistence.
633             *
634             * @param ddmStructurePersistence the d d m structure persistence
635             */
636            public void setDDMStructurePersistence(
637                    DDMStructurePersistence ddmStructurePersistence) {
638                    this.ddmStructurePersistence = ddmStructurePersistence;
639            }
640    
641            /**
642             * Returns the d d m structure finder.
643             *
644             * @return the d d m structure finder
645             */
646            public DDMStructureFinder getDDMStructureFinder() {
647                    return ddmStructureFinder;
648            }
649    
650            /**
651             * Sets the d d m structure finder.
652             *
653             * @param ddmStructureFinder the d d m structure finder
654             */
655            public void setDDMStructureFinder(DDMStructureFinder ddmStructureFinder) {
656                    this.ddmStructureFinder = ddmStructureFinder;
657            }
658    
659            /**
660             * Returns the d d m structure link local service.
661             *
662             * @return the d d m structure link local service
663             */
664            public com.liferay.portlet.dynamicdatamapping.service.DDMStructureLinkLocalService getDDMStructureLinkLocalService() {
665                    return ddmStructureLinkLocalService;
666            }
667    
668            /**
669             * Sets the d d m structure link local service.
670             *
671             * @param ddmStructureLinkLocalService the d d m structure link local service
672             */
673            public void setDDMStructureLinkLocalService(
674                    com.liferay.portlet.dynamicdatamapping.service.DDMStructureLinkLocalService ddmStructureLinkLocalService) {
675                    this.ddmStructureLinkLocalService = ddmStructureLinkLocalService;
676            }
677    
678            /**
679             * Returns the d d m structure link persistence.
680             *
681             * @return the d d m structure link persistence
682             */
683            public DDMStructureLinkPersistence getDDMStructureLinkPersistence() {
684                    return ddmStructureLinkPersistence;
685            }
686    
687            /**
688             * Sets the d d m structure link persistence.
689             *
690             * @param ddmStructureLinkPersistence the d d m structure link persistence
691             */
692            public void setDDMStructureLinkPersistence(
693                    DDMStructureLinkPersistence ddmStructureLinkPersistence) {
694                    this.ddmStructureLinkPersistence = ddmStructureLinkPersistence;
695            }
696    
697            /**
698             * Returns the d d m template local service.
699             *
700             * @return the d d m template local service
701             */
702            public com.liferay.portlet.dynamicdatamapping.service.DDMTemplateLocalService getDDMTemplateLocalService() {
703                    return ddmTemplateLocalService;
704            }
705    
706            /**
707             * Sets the d d m template local service.
708             *
709             * @param ddmTemplateLocalService the d d m template local service
710             */
711            public void setDDMTemplateLocalService(
712                    com.liferay.portlet.dynamicdatamapping.service.DDMTemplateLocalService ddmTemplateLocalService) {
713                    this.ddmTemplateLocalService = ddmTemplateLocalService;
714            }
715    
716            /**
717             * Returns the d d m template remote service.
718             *
719             * @return the d d m template remote service
720             */
721            public com.liferay.portlet.dynamicdatamapping.service.DDMTemplateService getDDMTemplateService() {
722                    return ddmTemplateService;
723            }
724    
725            /**
726             * Sets the d d m template remote service.
727             *
728             * @param ddmTemplateService the d d m template remote service
729             */
730            public void setDDMTemplateService(
731                    com.liferay.portlet.dynamicdatamapping.service.DDMTemplateService ddmTemplateService) {
732                    this.ddmTemplateService = ddmTemplateService;
733            }
734    
735            /**
736             * Returns the d d m template persistence.
737             *
738             * @return the d d m template persistence
739             */
740            public DDMTemplatePersistence getDDMTemplatePersistence() {
741                    return ddmTemplatePersistence;
742            }
743    
744            /**
745             * Sets the d d m template persistence.
746             *
747             * @param ddmTemplatePersistence the d d m template persistence
748             */
749            public void setDDMTemplatePersistence(
750                    DDMTemplatePersistence ddmTemplatePersistence) {
751                    this.ddmTemplatePersistence = ddmTemplatePersistence;
752            }
753    
754            /**
755             * Returns the d d m template finder.
756             *
757             * @return the d d m template finder
758             */
759            public DDMTemplateFinder getDDMTemplateFinder() {
760                    return ddmTemplateFinder;
761            }
762    
763            /**
764             * Sets the d d m template finder.
765             *
766             * @param ddmTemplateFinder the d d m template finder
767             */
768            public void setDDMTemplateFinder(DDMTemplateFinder ddmTemplateFinder) {
769                    this.ddmTemplateFinder = ddmTemplateFinder;
770            }
771    
772            /**
773             * Returns the counter local service.
774             *
775             * @return the counter local service
776             */
777            public com.liferay.counter.service.CounterLocalService getCounterLocalService() {
778                    return counterLocalService;
779            }
780    
781            /**
782             * Sets the counter local service.
783             *
784             * @param counterLocalService the counter local service
785             */
786            public void setCounterLocalService(
787                    com.liferay.counter.service.CounterLocalService counterLocalService) {
788                    this.counterLocalService = counterLocalService;
789            }
790    
791            /**
792             * Returns the group local service.
793             *
794             * @return the group local service
795             */
796            public com.liferay.portal.service.GroupLocalService getGroupLocalService() {
797                    return groupLocalService;
798            }
799    
800            /**
801             * Sets the group local service.
802             *
803             * @param groupLocalService the group local service
804             */
805            public void setGroupLocalService(
806                    com.liferay.portal.service.GroupLocalService groupLocalService) {
807                    this.groupLocalService = groupLocalService;
808            }
809    
810            /**
811             * Returns the group remote service.
812             *
813             * @return the group remote service
814             */
815            public com.liferay.portal.service.GroupService getGroupService() {
816                    return groupService;
817            }
818    
819            /**
820             * Sets the group remote service.
821             *
822             * @param groupService the group remote service
823             */
824            public void setGroupService(
825                    com.liferay.portal.service.GroupService groupService) {
826                    this.groupService = groupService;
827            }
828    
829            /**
830             * Returns the group persistence.
831             *
832             * @return the group persistence
833             */
834            public GroupPersistence getGroupPersistence() {
835                    return groupPersistence;
836            }
837    
838            /**
839             * Sets the group persistence.
840             *
841             * @param groupPersistence the group persistence
842             */
843            public void setGroupPersistence(GroupPersistence groupPersistence) {
844                    this.groupPersistence = groupPersistence;
845            }
846    
847            /**
848             * Returns the group finder.
849             *
850             * @return the group finder
851             */
852            public GroupFinder getGroupFinder() {
853                    return groupFinder;
854            }
855    
856            /**
857             * Sets the group finder.
858             *
859             * @param groupFinder the group finder
860             */
861            public void setGroupFinder(GroupFinder groupFinder) {
862                    this.groupFinder = groupFinder;
863            }
864    
865            /**
866             * Returns the resource local service.
867             *
868             * @return the resource local service
869             */
870            public com.liferay.portal.service.ResourceLocalService getResourceLocalService() {
871                    return resourceLocalService;
872            }
873    
874            /**
875             * Sets the resource local service.
876             *
877             * @param resourceLocalService the resource local service
878             */
879            public void setResourceLocalService(
880                    com.liferay.portal.service.ResourceLocalService resourceLocalService) {
881                    this.resourceLocalService = resourceLocalService;
882            }
883    
884            /**
885             * Returns the system event local service.
886             *
887             * @return the system event local service
888             */
889            public com.liferay.portal.service.SystemEventLocalService getSystemEventLocalService() {
890                    return systemEventLocalService;
891            }
892    
893            /**
894             * Sets the system event local service.
895             *
896             * @param systemEventLocalService the system event local service
897             */
898            public void setSystemEventLocalService(
899                    com.liferay.portal.service.SystemEventLocalService systemEventLocalService) {
900                    this.systemEventLocalService = systemEventLocalService;
901            }
902    
903            /**
904             * Returns the system event persistence.
905             *
906             * @return the system event persistence
907             */
908            public SystemEventPersistence getSystemEventPersistence() {
909                    return systemEventPersistence;
910            }
911    
912            /**
913             * Sets the system event persistence.
914             *
915             * @param systemEventPersistence the system event persistence
916             */
917            public void setSystemEventPersistence(
918                    SystemEventPersistence systemEventPersistence) {
919                    this.systemEventPersistence = systemEventPersistence;
920            }
921    
922            /**
923             * Returns the user local service.
924             *
925             * @return the user local service
926             */
927            public com.liferay.portal.service.UserLocalService getUserLocalService() {
928                    return userLocalService;
929            }
930    
931            /**
932             * Sets the user local service.
933             *
934             * @param userLocalService the user local service
935             */
936            public void setUserLocalService(
937                    com.liferay.portal.service.UserLocalService userLocalService) {
938                    this.userLocalService = userLocalService;
939            }
940    
941            /**
942             * Returns the user remote service.
943             *
944             * @return the user remote service
945             */
946            public com.liferay.portal.service.UserService getUserService() {
947                    return userService;
948            }
949    
950            /**
951             * Sets the user remote service.
952             *
953             * @param userService the user remote service
954             */
955            public void setUserService(
956                    com.liferay.portal.service.UserService userService) {
957                    this.userService = userService;
958            }
959    
960            /**
961             * Returns the user persistence.
962             *
963             * @return the user persistence
964             */
965            public UserPersistence getUserPersistence() {
966                    return userPersistence;
967            }
968    
969            /**
970             * Sets the user persistence.
971             *
972             * @param userPersistence the user persistence
973             */
974            public void setUserPersistence(UserPersistence userPersistence) {
975                    this.userPersistence = userPersistence;
976            }
977    
978            /**
979             * Returns the user finder.
980             *
981             * @return the user finder
982             */
983            public UserFinder getUserFinder() {
984                    return userFinder;
985            }
986    
987            /**
988             * Sets the user finder.
989             *
990             * @param userFinder the user finder
991             */
992            public void setUserFinder(UserFinder userFinder) {
993                    this.userFinder = userFinder;
994            }
995    
996            /**
997             * Returns the document library file entry type local service.
998             *
999             * @return the document library file entry type local service
1000             */
1001            public com.liferay.portlet.documentlibrary.service.DLFileEntryTypeLocalService getDLFileEntryTypeLocalService() {
1002                    return dlFileEntryTypeLocalService;
1003            }
1004    
1005            /**
1006             * Sets the document library file entry type local service.
1007             *
1008             * @param dlFileEntryTypeLocalService the document library file entry type local service
1009             */
1010            public void setDLFileEntryTypeLocalService(
1011                    com.liferay.portlet.documentlibrary.service.DLFileEntryTypeLocalService dlFileEntryTypeLocalService) {
1012                    this.dlFileEntryTypeLocalService = dlFileEntryTypeLocalService;
1013            }
1014    
1015            /**
1016             * Returns the document library file entry type remote service.
1017             *
1018             * @return the document library file entry type remote service
1019             */
1020            public com.liferay.portlet.documentlibrary.service.DLFileEntryTypeService getDLFileEntryTypeService() {
1021                    return dlFileEntryTypeService;
1022            }
1023    
1024            /**
1025             * Sets the document library file entry type remote service.
1026             *
1027             * @param dlFileEntryTypeService the document library file entry type remote service
1028             */
1029            public void setDLFileEntryTypeService(
1030                    com.liferay.portlet.documentlibrary.service.DLFileEntryTypeService dlFileEntryTypeService) {
1031                    this.dlFileEntryTypeService = dlFileEntryTypeService;
1032            }
1033    
1034            /**
1035             * Returns the document library file entry type persistence.
1036             *
1037             * @return the document library file entry type persistence
1038             */
1039            public DLFileEntryTypePersistence getDLFileEntryTypePersistence() {
1040                    return dlFileEntryTypePersistence;
1041            }
1042    
1043            /**
1044             * Sets the document library file entry type persistence.
1045             *
1046             * @param dlFileEntryTypePersistence the document library file entry type persistence
1047             */
1048            public void setDLFileEntryTypePersistence(
1049                    DLFileEntryTypePersistence dlFileEntryTypePersistence) {
1050                    this.dlFileEntryTypePersistence = dlFileEntryTypePersistence;
1051            }
1052    
1053            /**
1054             * Returns the document library file entry type finder.
1055             *
1056             * @return the document library file entry type finder
1057             */
1058            public DLFileEntryTypeFinder getDLFileEntryTypeFinder() {
1059                    return dlFileEntryTypeFinder;
1060            }
1061    
1062            /**
1063             * Sets the document library file entry type finder.
1064             *
1065             * @param dlFileEntryTypeFinder the document library file entry type finder
1066             */
1067            public void setDLFileEntryTypeFinder(
1068                    DLFileEntryTypeFinder dlFileEntryTypeFinder) {
1069                    this.dlFileEntryTypeFinder = dlFileEntryTypeFinder;
1070            }
1071    
1072            public void afterPropertiesSet() {
1073                    persistedModelLocalServiceRegistry.register("com.liferay.portlet.dynamicdatamapping.model.DDMStructure",
1074                            ddmStructureLocalService);
1075            }
1076    
1077            public void destroy() {
1078                    persistedModelLocalServiceRegistry.unregister(
1079                            "com.liferay.portlet.dynamicdatamapping.model.DDMStructure");
1080            }
1081    
1082            /**
1083             * Returns the Spring bean ID for this bean.
1084             *
1085             * @return the Spring bean ID for this bean
1086             */
1087            @Override
1088            public String getBeanIdentifier() {
1089                    return _beanIdentifier;
1090            }
1091    
1092            /**
1093             * Sets the Spring bean ID for this bean.
1094             *
1095             * @param beanIdentifier the Spring bean ID for this bean
1096             */
1097            @Override
1098            public void setBeanIdentifier(String beanIdentifier) {
1099                    _beanIdentifier = beanIdentifier;
1100            }
1101    
1102            protected Class<?> getModelClass() {
1103                    return DDMStructure.class;
1104            }
1105    
1106            protected String getModelClassName() {
1107                    return DDMStructure.class.getName();
1108            }
1109    
1110            /**
1111             * Performs an SQL query.
1112             *
1113             * @param sql the sql query
1114             */
1115            protected void runSQL(String sql) throws SystemException {
1116                    try {
1117                            DataSource dataSource = ddmStructurePersistence.getDataSource();
1118    
1119                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
1120                                            sql, new int[0]);
1121    
1122                            sqlUpdate.update();
1123                    }
1124                    catch (Exception e) {
1125                            throw new SystemException(e);
1126                    }
1127            }
1128    
1129            @BeanReference(type = com.liferay.portlet.dynamicdatamapping.service.DDMContentLocalService.class)
1130            protected com.liferay.portlet.dynamicdatamapping.service.DDMContentLocalService ddmContentLocalService;
1131            @BeanReference(type = DDMContentPersistence.class)
1132            protected DDMContentPersistence ddmContentPersistence;
1133            @BeanReference(type = com.liferay.portlet.dynamicdatamapping.service.DDMStorageLinkLocalService.class)
1134            protected com.liferay.portlet.dynamicdatamapping.service.DDMStorageLinkLocalService ddmStorageLinkLocalService;
1135            @BeanReference(type = DDMStorageLinkPersistence.class)
1136            protected DDMStorageLinkPersistence ddmStorageLinkPersistence;
1137            @BeanReference(type = com.liferay.portlet.dynamicdatamapping.service.DDMStructureLocalService.class)
1138            protected com.liferay.portlet.dynamicdatamapping.service.DDMStructureLocalService ddmStructureLocalService;
1139            @BeanReference(type = com.liferay.portlet.dynamicdatamapping.service.DDMStructureService.class)
1140            protected com.liferay.portlet.dynamicdatamapping.service.DDMStructureService ddmStructureService;
1141            @BeanReference(type = DDMStructurePersistence.class)
1142            protected DDMStructurePersistence ddmStructurePersistence;
1143            @BeanReference(type = DDMStructureFinder.class)
1144            protected DDMStructureFinder ddmStructureFinder;
1145            @BeanReference(type = com.liferay.portlet.dynamicdatamapping.service.DDMStructureLinkLocalService.class)
1146            protected com.liferay.portlet.dynamicdatamapping.service.DDMStructureLinkLocalService ddmStructureLinkLocalService;
1147            @BeanReference(type = DDMStructureLinkPersistence.class)
1148            protected DDMStructureLinkPersistence ddmStructureLinkPersistence;
1149            @BeanReference(type = com.liferay.portlet.dynamicdatamapping.service.DDMTemplateLocalService.class)
1150            protected com.liferay.portlet.dynamicdatamapping.service.DDMTemplateLocalService ddmTemplateLocalService;
1151            @BeanReference(type = com.liferay.portlet.dynamicdatamapping.service.DDMTemplateService.class)
1152            protected com.liferay.portlet.dynamicdatamapping.service.DDMTemplateService ddmTemplateService;
1153            @BeanReference(type = DDMTemplatePersistence.class)
1154            protected DDMTemplatePersistence ddmTemplatePersistence;
1155            @BeanReference(type = DDMTemplateFinder.class)
1156            protected DDMTemplateFinder ddmTemplateFinder;
1157            @BeanReference(type = com.liferay.counter.service.CounterLocalService.class)
1158            protected com.liferay.counter.service.CounterLocalService counterLocalService;
1159            @BeanReference(type = com.liferay.portal.service.GroupLocalService.class)
1160            protected com.liferay.portal.service.GroupLocalService groupLocalService;
1161            @BeanReference(type = com.liferay.portal.service.GroupService.class)
1162            protected com.liferay.portal.service.GroupService groupService;
1163            @BeanReference(type = GroupPersistence.class)
1164            protected GroupPersistence groupPersistence;
1165            @BeanReference(type = GroupFinder.class)
1166            protected GroupFinder groupFinder;
1167            @BeanReference(type = com.liferay.portal.service.ResourceLocalService.class)
1168            protected com.liferay.portal.service.ResourceLocalService resourceLocalService;
1169            @BeanReference(type = com.liferay.portal.service.SystemEventLocalService.class)
1170            protected com.liferay.portal.service.SystemEventLocalService systemEventLocalService;
1171            @BeanReference(type = SystemEventPersistence.class)
1172            protected SystemEventPersistence systemEventPersistence;
1173            @BeanReference(type = com.liferay.portal.service.UserLocalService.class)
1174            protected com.liferay.portal.service.UserLocalService userLocalService;
1175            @BeanReference(type = com.liferay.portal.service.UserService.class)
1176            protected com.liferay.portal.service.UserService userService;
1177            @BeanReference(type = UserPersistence.class)
1178            protected UserPersistence userPersistence;
1179            @BeanReference(type = UserFinder.class)
1180            protected UserFinder userFinder;
1181            @BeanReference(type = com.liferay.portlet.documentlibrary.service.DLFileEntryTypeLocalService.class)
1182            protected com.liferay.portlet.documentlibrary.service.DLFileEntryTypeLocalService dlFileEntryTypeLocalService;
1183            @BeanReference(type = com.liferay.portlet.documentlibrary.service.DLFileEntryTypeService.class)
1184            protected com.liferay.portlet.documentlibrary.service.DLFileEntryTypeService dlFileEntryTypeService;
1185            @BeanReference(type = DLFileEntryTypePersistence.class)
1186            protected DLFileEntryTypePersistence dlFileEntryTypePersistence;
1187            @BeanReference(type = DLFileEntryTypeFinder.class)
1188            protected DLFileEntryTypeFinder dlFileEntryTypeFinder;
1189            @BeanReference(type = PersistedModelLocalServiceRegistry.class)
1190            protected PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry;
1191            private String _beanIdentifier;
1192    }