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