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