001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.documentlibrary.service.base;
016    
017    import com.liferay.portal.kernel.bean.BeanReference;
018    import com.liferay.portal.kernel.bean.IdentifiableBean;
019    import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
020    import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
021    import com.liferay.portal.kernel.dao.orm.DynamicQuery;
022    import com.liferay.portal.kernel.dao.orm.DynamicQueryFactoryUtil;
023    import com.liferay.portal.kernel.dao.orm.Projection;
024    import com.liferay.portal.kernel.exception.PortalException;
025    import com.liferay.portal.kernel.exception.SystemException;
026    import com.liferay.portal.kernel.search.Indexable;
027    import com.liferay.portal.kernel.search.IndexableType;
028    import com.liferay.portal.kernel.util.OrderByComparator;
029    import com.liferay.portal.model.PersistedModel;
030    import com.liferay.portal.service.BaseLocalServiceImpl;
031    import com.liferay.portal.service.PersistedModelLocalServiceRegistry;
032    import com.liferay.portal.service.persistence.UserFinder;
033    import com.liferay.portal.service.persistence.UserPersistence;
034    
035    import com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata;
036    import com.liferay.portlet.documentlibrary.service.DLFileEntryMetadataLocalService;
037    import com.liferay.portlet.documentlibrary.service.persistence.DLContentPersistence;
038    import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryFinder;
039    import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryMetadataPersistence;
040    import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryPersistence;
041    import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryTypeFinder;
042    import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryTypePersistence;
043    import com.liferay.portlet.documentlibrary.service.persistence.DLFileRankFinder;
044    import com.liferay.portlet.documentlibrary.service.persistence.DLFileRankPersistence;
045    import com.liferay.portlet.documentlibrary.service.persistence.DLFileShortcutPersistence;
046    import com.liferay.portlet.documentlibrary.service.persistence.DLFileVersionPersistence;
047    import com.liferay.portlet.documentlibrary.service.persistence.DLFolderFinder;
048    import com.liferay.portlet.documentlibrary.service.persistence.DLFolderPersistence;
049    import com.liferay.portlet.documentlibrary.service.persistence.DLSyncEventPersistence;
050    import com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStructureLinkPersistence;
051    
052    import java.io.Serializable;
053    
054    import java.util.List;
055    
056    import javax.sql.DataSource;
057    
058    /**
059     * Provides the base implementation for the document library file entry metadata local service.
060     *
061     * <p>
062     * 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.DLFileEntryMetadataLocalServiceImpl}.
063     * </p>
064     *
065     * @author Brian Wing Shun Chan
066     * @see com.liferay.portlet.documentlibrary.service.impl.DLFileEntryMetadataLocalServiceImpl
067     * @see com.liferay.portlet.documentlibrary.service.DLFileEntryMetadataLocalServiceUtil
068     * @generated
069     */
070    public abstract class DLFileEntryMetadataLocalServiceBaseImpl
071            extends BaseLocalServiceImpl implements DLFileEntryMetadataLocalService,
072                    IdentifiableBean {
073            /*
074             * NOTE FOR DEVELOPERS:
075             *
076             * Never modify or reference this class directly. Always use {@link com.liferay.portlet.documentlibrary.service.DLFileEntryMetadataLocalServiceUtil} to access the document library file entry metadata local service.
077             */
078    
079            /**
080             * Adds the document library file entry metadata to the database. Also notifies the appropriate model listeners.
081             *
082             * @param dlFileEntryMetadata the document library file entry metadata
083             * @return the document library file entry metadata that was added
084             * @throws SystemException if a system exception occurred
085             */
086            @Indexable(type = IndexableType.REINDEX)
087            @Override
088            public DLFileEntryMetadata addDLFileEntryMetadata(
089                    DLFileEntryMetadata dlFileEntryMetadata) throws SystemException {
090                    dlFileEntryMetadata.setNew(true);
091    
092                    return dlFileEntryMetadataPersistence.update(dlFileEntryMetadata);
093            }
094    
095            /**
096             * Creates a new document library file entry metadata with the primary key. Does not add the document library file entry metadata to the database.
097             *
098             * @param fileEntryMetadataId the primary key for the new document library file entry metadata
099             * @return the new document library file entry metadata
100             */
101            @Override
102            public DLFileEntryMetadata createDLFileEntryMetadata(
103                    long fileEntryMetadataId) {
104                    return dlFileEntryMetadataPersistence.create(fileEntryMetadataId);
105            }
106    
107            /**
108             * Deletes the document library file entry metadata with the primary key from the database. Also notifies the appropriate model listeners.
109             *
110             * @param fileEntryMetadataId the primary key of the document library file entry metadata
111             * @return the document library file entry metadata that was removed
112             * @throws PortalException if a document library file entry metadata with the primary key could not be found
113             * @throws SystemException if a system exception occurred
114             */
115            @Indexable(type = IndexableType.DELETE)
116            @Override
117            public DLFileEntryMetadata deleteDLFileEntryMetadata(
118                    long fileEntryMetadataId) throws PortalException, SystemException {
119                    return dlFileEntryMetadataPersistence.remove(fileEntryMetadataId);
120            }
121    
122            /**
123             * Deletes the document library file entry metadata from the database. Also notifies the appropriate model listeners.
124             *
125             * @param dlFileEntryMetadata the document library file entry metadata
126             * @return the document library file entry metadata that was removed
127             * @throws SystemException if a system exception occurred
128             */
129            @Indexable(type = IndexableType.DELETE)
130            @Override
131            public DLFileEntryMetadata deleteDLFileEntryMetadata(
132                    DLFileEntryMetadata dlFileEntryMetadata) throws SystemException {
133                    return dlFileEntryMetadataPersistence.remove(dlFileEntryMetadata);
134            }
135    
136            @Override
137            public DynamicQuery dynamicQuery() {
138                    Class<?> clazz = getClass();
139    
140                    return DynamicQueryFactoryUtil.forClass(DLFileEntryMetadata.class,
141                            clazz.getClassLoader());
142            }
143    
144            /**
145             * Performs a dynamic query on the database and returns the matching rows.
146             *
147             * @param dynamicQuery the dynamic query
148             * @return the matching rows
149             * @throws SystemException if a system exception occurred
150             */
151            @Override
152            @SuppressWarnings("rawtypes")
153            public List dynamicQuery(DynamicQuery dynamicQuery)
154                    throws SystemException {
155                    return dlFileEntryMetadataPersistence.findWithDynamicQuery(dynamicQuery);
156            }
157    
158            /**
159             * Performs a dynamic query on the database and returns a range of the matching rows.
160             *
161             * <p>
162             * 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.DLFileEntryMetadataModelImpl}. 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.
163             * </p>
164             *
165             * @param dynamicQuery the dynamic query
166             * @param start the lower bound of the range of model instances
167             * @param end the upper bound of the range of model instances (not inclusive)
168             * @return the range of matching rows
169             * @throws SystemException if a system exception occurred
170             */
171            @Override
172            @SuppressWarnings("rawtypes")
173            public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
174                    throws SystemException {
175                    return dlFileEntryMetadataPersistence.findWithDynamicQuery(dynamicQuery,
176                            start, end);
177            }
178    
179            /**
180             * Performs a dynamic query on the database and returns an ordered range of the matching rows.
181             *
182             * <p>
183             * 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.DLFileEntryMetadataModelImpl}. 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.
184             * </p>
185             *
186             * @param dynamicQuery the dynamic query
187             * @param start the lower bound of the range of model instances
188             * @param end the upper bound of the range of model instances (not inclusive)
189             * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
190             * @return the ordered range of matching rows
191             * @throws SystemException if a system exception occurred
192             */
193            @Override
194            @SuppressWarnings("rawtypes")
195            public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end,
196                    OrderByComparator orderByComparator) throws SystemException {
197                    return dlFileEntryMetadataPersistence.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             * @throws SystemException if a system exception occurred
207             */
208            @Override
209            public long dynamicQueryCount(DynamicQuery dynamicQuery)
210                    throws SystemException {
211                    return dlFileEntryMetadataPersistence.countWithDynamicQuery(dynamicQuery);
212            }
213    
214            /**
215             * Returns the number of rows that match 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 that match the dynamic query
220             * @throws SystemException if a system exception occurred
221             */
222            @Override
223            public long dynamicQueryCount(DynamicQuery dynamicQuery,
224                    Projection projection) throws SystemException {
225                    return dlFileEntryMetadataPersistence.countWithDynamicQuery(dynamicQuery,
226                            projection);
227            }
228    
229            @Override
230            public DLFileEntryMetadata fetchDLFileEntryMetadata(
231                    long fileEntryMetadataId) throws SystemException {
232                    return dlFileEntryMetadataPersistence.fetchByPrimaryKey(fileEntryMetadataId);
233            }
234    
235            /**
236             * Returns the document library file entry metadata with the primary key.
237             *
238             * @param fileEntryMetadataId the primary key of the document library file entry metadata
239             * @return the document library file entry metadata
240             * @throws PortalException if a document library file entry metadata with the primary key could not be found
241             * @throws SystemException if a system exception occurred
242             */
243            @Override
244            public DLFileEntryMetadata getDLFileEntryMetadata(long fileEntryMetadataId)
245                    throws PortalException, SystemException {
246                    return dlFileEntryMetadataPersistence.findByPrimaryKey(fileEntryMetadataId);
247            }
248    
249            @Override
250            public PersistedModel getPersistedModel(Serializable primaryKeyObj)
251                    throws PortalException, SystemException {
252                    return dlFileEntryMetadataPersistence.findByPrimaryKey(primaryKeyObj);
253            }
254    
255            /**
256             * Returns a range of all the document library file entry metadatas.
257             *
258             * <p>
259             * 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.DLFileEntryMetadataModelImpl}. 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.
260             * </p>
261             *
262             * @param start the lower bound of the range of document library file entry metadatas
263             * @param end the upper bound of the range of document library file entry metadatas (not inclusive)
264             * @return the range of document library file entry metadatas
265             * @throws SystemException if a system exception occurred
266             */
267            @Override
268            public List<DLFileEntryMetadata> getDLFileEntryMetadatas(int start, int end)
269                    throws SystemException {
270                    return dlFileEntryMetadataPersistence.findAll(start, end);
271            }
272    
273            /**
274             * Returns the number of document library file entry metadatas.
275             *
276             * @return the number of document library file entry metadatas
277             * @throws SystemException if a system exception occurred
278             */
279            @Override
280            public int getDLFileEntryMetadatasCount() throws SystemException {
281                    return dlFileEntryMetadataPersistence.countAll();
282            }
283    
284            /**
285             * Updates the document library file entry metadata in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
286             *
287             * @param dlFileEntryMetadata the document library file entry metadata
288             * @return the document library file entry metadata that was updated
289             * @throws SystemException if a system exception occurred
290             */
291            @Indexable(type = IndexableType.REINDEX)
292            @Override
293            public DLFileEntryMetadata updateDLFileEntryMetadata(
294                    DLFileEntryMetadata dlFileEntryMetadata) throws SystemException {
295                    return dlFileEntryMetadataPersistence.update(dlFileEntryMetadata);
296            }
297    
298            /**
299             * Returns the d l app local service.
300             *
301             * @return the d l app local service
302             */
303            public com.liferay.portlet.documentlibrary.service.DLAppLocalService getDLAppLocalService() {
304                    return dlAppLocalService;
305            }
306    
307            /**
308             * Sets the d l app local service.
309             *
310             * @param dlAppLocalService the d l app local service
311             */
312            public void setDLAppLocalService(
313                    com.liferay.portlet.documentlibrary.service.DLAppLocalService dlAppLocalService) {
314                    this.dlAppLocalService = dlAppLocalService;
315            }
316    
317            /**
318             * Returns the d l app remote service.
319             *
320             * @return the d l app remote service
321             */
322            public com.liferay.portlet.documentlibrary.service.DLAppService getDLAppService() {
323                    return dlAppService;
324            }
325    
326            /**
327             * Sets the d l app remote service.
328             *
329             * @param dlAppService the d l app remote service
330             */
331            public void setDLAppService(
332                    com.liferay.portlet.documentlibrary.service.DLAppService dlAppService) {
333                    this.dlAppService = dlAppService;
334            }
335    
336            /**
337             * Returns the d l app helper local service.
338             *
339             * @return the d l app helper local service
340             */
341            public com.liferay.portlet.documentlibrary.service.DLAppHelperLocalService getDLAppHelperLocalService() {
342                    return dlAppHelperLocalService;
343            }
344    
345            /**
346             * Sets the d l app helper local service.
347             *
348             * @param dlAppHelperLocalService the d l app helper local service
349             */
350            public void setDLAppHelperLocalService(
351                    com.liferay.portlet.documentlibrary.service.DLAppHelperLocalService dlAppHelperLocalService) {
352                    this.dlAppHelperLocalService = dlAppHelperLocalService;
353            }
354    
355            /**
356             * Returns the document library content local service.
357             *
358             * @return the document library content local service
359             */
360            public com.liferay.portlet.documentlibrary.service.DLContentLocalService getDLContentLocalService() {
361                    return dlContentLocalService;
362            }
363    
364            /**
365             * Sets the document library content local service.
366             *
367             * @param dlContentLocalService the document library content local service
368             */
369            public void setDLContentLocalService(
370                    com.liferay.portlet.documentlibrary.service.DLContentLocalService dlContentLocalService) {
371                    this.dlContentLocalService = dlContentLocalService;
372            }
373    
374            /**
375             * Returns the document library content persistence.
376             *
377             * @return the document library content persistence
378             */
379            public DLContentPersistence getDLContentPersistence() {
380                    return dlContentPersistence;
381            }
382    
383            /**
384             * Sets the document library content persistence.
385             *
386             * @param dlContentPersistence the document library content persistence
387             */
388            public void setDLContentPersistence(
389                    DLContentPersistence dlContentPersistence) {
390                    this.dlContentPersistence = dlContentPersistence;
391            }
392    
393            /**
394             * Returns the document library file entry local service.
395             *
396             * @return the document library file entry local service
397             */
398            public com.liferay.portlet.documentlibrary.service.DLFileEntryLocalService getDLFileEntryLocalService() {
399                    return dlFileEntryLocalService;
400            }
401    
402            /**
403             * Sets the document library file entry local service.
404             *
405             * @param dlFileEntryLocalService the document library file entry local service
406             */
407            public void setDLFileEntryLocalService(
408                    com.liferay.portlet.documentlibrary.service.DLFileEntryLocalService dlFileEntryLocalService) {
409                    this.dlFileEntryLocalService = dlFileEntryLocalService;
410            }
411    
412            /**
413             * Returns the document library file entry remote service.
414             *
415             * @return the document library file entry remote service
416             */
417            public com.liferay.portlet.documentlibrary.service.DLFileEntryService getDLFileEntryService() {
418                    return dlFileEntryService;
419            }
420    
421            /**
422             * Sets the document library file entry remote service.
423             *
424             * @param dlFileEntryService the document library file entry remote service
425             */
426            public void setDLFileEntryService(
427                    com.liferay.portlet.documentlibrary.service.DLFileEntryService dlFileEntryService) {
428                    this.dlFileEntryService = dlFileEntryService;
429            }
430    
431            /**
432             * Returns the document library file entry persistence.
433             *
434             * @return the document library file entry persistence
435             */
436            public DLFileEntryPersistence getDLFileEntryPersistence() {
437                    return dlFileEntryPersistence;
438            }
439    
440            /**
441             * Sets the document library file entry persistence.
442             *
443             * @param dlFileEntryPersistence the document library file entry persistence
444             */
445            public void setDLFileEntryPersistence(
446                    DLFileEntryPersistence dlFileEntryPersistence) {
447                    this.dlFileEntryPersistence = dlFileEntryPersistence;
448            }
449    
450            /**
451             * Returns the document library file entry finder.
452             *
453             * @return the document library file entry finder
454             */
455            public DLFileEntryFinder getDLFileEntryFinder() {
456                    return dlFileEntryFinder;
457            }
458    
459            /**
460             * Sets the document library file entry finder.
461             *
462             * @param dlFileEntryFinder the document library file entry finder
463             */
464            public void setDLFileEntryFinder(DLFileEntryFinder dlFileEntryFinder) {
465                    this.dlFileEntryFinder = dlFileEntryFinder;
466            }
467    
468            /**
469             * Returns the document library file entry metadata local service.
470             *
471             * @return the document library file entry metadata local service
472             */
473            public com.liferay.portlet.documentlibrary.service.DLFileEntryMetadataLocalService getDLFileEntryMetadataLocalService() {
474                    return dlFileEntryMetadataLocalService;
475            }
476    
477            /**
478             * Sets the document library file entry metadata local service.
479             *
480             * @param dlFileEntryMetadataLocalService the document library file entry metadata local service
481             */
482            public void setDLFileEntryMetadataLocalService(
483                    com.liferay.portlet.documentlibrary.service.DLFileEntryMetadataLocalService dlFileEntryMetadataLocalService) {
484                    this.dlFileEntryMetadataLocalService = dlFileEntryMetadataLocalService;
485            }
486    
487            /**
488             * Returns the document library file entry metadata persistence.
489             *
490             * @return the document library file entry metadata persistence
491             */
492            public DLFileEntryMetadataPersistence getDLFileEntryMetadataPersistence() {
493                    return dlFileEntryMetadataPersistence;
494            }
495    
496            /**
497             * Sets the document library file entry metadata persistence.
498             *
499             * @param dlFileEntryMetadataPersistence the document library file entry metadata persistence
500             */
501            public void setDLFileEntryMetadataPersistence(
502                    DLFileEntryMetadataPersistence dlFileEntryMetadataPersistence) {
503                    this.dlFileEntryMetadataPersistence = dlFileEntryMetadataPersistence;
504            }
505    
506            /**
507             * Returns the document library file entry type local service.
508             *
509             * @return the document library file entry type local service
510             */
511            public com.liferay.portlet.documentlibrary.service.DLFileEntryTypeLocalService getDLFileEntryTypeLocalService() {
512                    return dlFileEntryTypeLocalService;
513            }
514    
515            /**
516             * Sets the document library file entry type local service.
517             *
518             * @param dlFileEntryTypeLocalService the document library file entry type local service
519             */
520            public void setDLFileEntryTypeLocalService(
521                    com.liferay.portlet.documentlibrary.service.DLFileEntryTypeLocalService dlFileEntryTypeLocalService) {
522                    this.dlFileEntryTypeLocalService = dlFileEntryTypeLocalService;
523            }
524    
525            /**
526             * Returns the document library file entry type remote service.
527             *
528             * @return the document library file entry type remote service
529             */
530            public com.liferay.portlet.documentlibrary.service.DLFileEntryTypeService getDLFileEntryTypeService() {
531                    return dlFileEntryTypeService;
532            }
533    
534            /**
535             * Sets the document library file entry type remote service.
536             *
537             * @param dlFileEntryTypeService the document library file entry type remote service
538             */
539            public void setDLFileEntryTypeService(
540                    com.liferay.portlet.documentlibrary.service.DLFileEntryTypeService dlFileEntryTypeService) {
541                    this.dlFileEntryTypeService = dlFileEntryTypeService;
542            }
543    
544            /**
545             * Returns the document library file entry type persistence.
546             *
547             * @return the document library file entry type persistence
548             */
549            public DLFileEntryTypePersistence getDLFileEntryTypePersistence() {
550                    return dlFileEntryTypePersistence;
551            }
552    
553            /**
554             * Sets the document library file entry type persistence.
555             *
556             * @param dlFileEntryTypePersistence the document library file entry type persistence
557             */
558            public void setDLFileEntryTypePersistence(
559                    DLFileEntryTypePersistence dlFileEntryTypePersistence) {
560                    this.dlFileEntryTypePersistence = dlFileEntryTypePersistence;
561            }
562    
563            /**
564             * Returns the document library file entry type finder.
565             *
566             * @return the document library file entry type finder
567             */
568            public DLFileEntryTypeFinder getDLFileEntryTypeFinder() {
569                    return dlFileEntryTypeFinder;
570            }
571    
572            /**
573             * Sets the document library file entry type finder.
574             *
575             * @param dlFileEntryTypeFinder the document library file entry type finder
576             */
577            public void setDLFileEntryTypeFinder(
578                    DLFileEntryTypeFinder dlFileEntryTypeFinder) {
579                    this.dlFileEntryTypeFinder = dlFileEntryTypeFinder;
580            }
581    
582            /**
583             * Returns the document library file rank local service.
584             *
585             * @return the document library file rank local service
586             */
587            public com.liferay.portlet.documentlibrary.service.DLFileRankLocalService getDLFileRankLocalService() {
588                    return dlFileRankLocalService;
589            }
590    
591            /**
592             * Sets the document library file rank local service.
593             *
594             * @param dlFileRankLocalService the document library file rank local service
595             */
596            public void setDLFileRankLocalService(
597                    com.liferay.portlet.documentlibrary.service.DLFileRankLocalService dlFileRankLocalService) {
598                    this.dlFileRankLocalService = dlFileRankLocalService;
599            }
600    
601            /**
602             * Returns the document library file rank persistence.
603             *
604             * @return the document library file rank persistence
605             */
606            public DLFileRankPersistence getDLFileRankPersistence() {
607                    return dlFileRankPersistence;
608            }
609    
610            /**
611             * Sets the document library file rank persistence.
612             *
613             * @param dlFileRankPersistence the document library file rank persistence
614             */
615            public void setDLFileRankPersistence(
616                    DLFileRankPersistence dlFileRankPersistence) {
617                    this.dlFileRankPersistence = dlFileRankPersistence;
618            }
619    
620            /**
621             * Returns the document library file rank finder.
622             *
623             * @return the document library file rank finder
624             */
625            public DLFileRankFinder getDLFileRankFinder() {
626                    return dlFileRankFinder;
627            }
628    
629            /**
630             * Sets the document library file rank finder.
631             *
632             * @param dlFileRankFinder the document library file rank finder
633             */
634            public void setDLFileRankFinder(DLFileRankFinder dlFileRankFinder) {
635                    this.dlFileRankFinder = dlFileRankFinder;
636            }
637    
638            /**
639             * Returns the document library file shortcut local service.
640             *
641             * @return the document library file shortcut local service
642             */
643            public com.liferay.portlet.documentlibrary.service.DLFileShortcutLocalService getDLFileShortcutLocalService() {
644                    return dlFileShortcutLocalService;
645            }
646    
647            /**
648             * Sets the document library file shortcut local service.
649             *
650             * @param dlFileShortcutLocalService the document library file shortcut local service
651             */
652            public void setDLFileShortcutLocalService(
653                    com.liferay.portlet.documentlibrary.service.DLFileShortcutLocalService dlFileShortcutLocalService) {
654                    this.dlFileShortcutLocalService = dlFileShortcutLocalService;
655            }
656    
657            /**
658             * Returns the document library file shortcut remote service.
659             *
660             * @return the document library file shortcut remote service
661             */
662            public com.liferay.portlet.documentlibrary.service.DLFileShortcutService getDLFileShortcutService() {
663                    return dlFileShortcutService;
664            }
665    
666            /**
667             * Sets the document library file shortcut remote service.
668             *
669             * @param dlFileShortcutService the document library file shortcut remote service
670             */
671            public void setDLFileShortcutService(
672                    com.liferay.portlet.documentlibrary.service.DLFileShortcutService dlFileShortcutService) {
673                    this.dlFileShortcutService = dlFileShortcutService;
674            }
675    
676            /**
677             * Returns the document library file shortcut persistence.
678             *
679             * @return the document library file shortcut persistence
680             */
681            public DLFileShortcutPersistence getDLFileShortcutPersistence() {
682                    return dlFileShortcutPersistence;
683            }
684    
685            /**
686             * Sets the document library file shortcut persistence.
687             *
688             * @param dlFileShortcutPersistence the document library file shortcut persistence
689             */
690            public void setDLFileShortcutPersistence(
691                    DLFileShortcutPersistence dlFileShortcutPersistence) {
692                    this.dlFileShortcutPersistence = dlFileShortcutPersistence;
693            }
694    
695            /**
696             * Returns the document library file version local service.
697             *
698             * @return the document library file version local service
699             */
700            public com.liferay.portlet.documentlibrary.service.DLFileVersionLocalService getDLFileVersionLocalService() {
701                    return dlFileVersionLocalService;
702            }
703    
704            /**
705             * Sets the document library file version local service.
706             *
707             * @param dlFileVersionLocalService the document library file version local service
708             */
709            public void setDLFileVersionLocalService(
710                    com.liferay.portlet.documentlibrary.service.DLFileVersionLocalService dlFileVersionLocalService) {
711                    this.dlFileVersionLocalService = dlFileVersionLocalService;
712            }
713    
714            /**
715             * Returns the document library file version remote service.
716             *
717             * @return the document library file version remote service
718             */
719            public com.liferay.portlet.documentlibrary.service.DLFileVersionService getDLFileVersionService() {
720                    return dlFileVersionService;
721            }
722    
723            /**
724             * Sets the document library file version remote service.
725             *
726             * @param dlFileVersionService the document library file version remote service
727             */
728            public void setDLFileVersionService(
729                    com.liferay.portlet.documentlibrary.service.DLFileVersionService dlFileVersionService) {
730                    this.dlFileVersionService = dlFileVersionService;
731            }
732    
733            /**
734             * Returns the document library file version persistence.
735             *
736             * @return the document library file version persistence
737             */
738            public DLFileVersionPersistence getDLFileVersionPersistence() {
739                    return dlFileVersionPersistence;
740            }
741    
742            /**
743             * Sets the document library file version persistence.
744             *
745             * @param dlFileVersionPersistence the document library file version persistence
746             */
747            public void setDLFileVersionPersistence(
748                    DLFileVersionPersistence dlFileVersionPersistence) {
749                    this.dlFileVersionPersistence = dlFileVersionPersistence;
750            }
751    
752            /**
753             * Returns the document library folder local service.
754             *
755             * @return the document library folder local service
756             */
757            public com.liferay.portlet.documentlibrary.service.DLFolderLocalService getDLFolderLocalService() {
758                    return dlFolderLocalService;
759            }
760    
761            /**
762             * Sets the document library folder local service.
763             *
764             * @param dlFolderLocalService the document library folder local service
765             */
766            public void setDLFolderLocalService(
767                    com.liferay.portlet.documentlibrary.service.DLFolderLocalService dlFolderLocalService) {
768                    this.dlFolderLocalService = dlFolderLocalService;
769            }
770    
771            /**
772             * Returns the document library folder remote service.
773             *
774             * @return the document library folder remote service
775             */
776            public com.liferay.portlet.documentlibrary.service.DLFolderService getDLFolderService() {
777                    return dlFolderService;
778            }
779    
780            /**
781             * Sets the document library folder remote service.
782             *
783             * @param dlFolderService the document library folder remote service
784             */
785            public void setDLFolderService(
786                    com.liferay.portlet.documentlibrary.service.DLFolderService dlFolderService) {
787                    this.dlFolderService = dlFolderService;
788            }
789    
790            /**
791             * Returns the document library folder persistence.
792             *
793             * @return the document library folder persistence
794             */
795            public DLFolderPersistence getDLFolderPersistence() {
796                    return dlFolderPersistence;
797            }
798    
799            /**
800             * Sets the document library folder persistence.
801             *
802             * @param dlFolderPersistence the document library folder persistence
803             */
804            public void setDLFolderPersistence(DLFolderPersistence dlFolderPersistence) {
805                    this.dlFolderPersistence = dlFolderPersistence;
806            }
807    
808            /**
809             * Returns the document library folder finder.
810             *
811             * @return the document library folder finder
812             */
813            public DLFolderFinder getDLFolderFinder() {
814                    return dlFolderFinder;
815            }
816    
817            /**
818             * Sets the document library folder finder.
819             *
820             * @param dlFolderFinder the document library folder finder
821             */
822            public void setDLFolderFinder(DLFolderFinder dlFolderFinder) {
823                    this.dlFolderFinder = dlFolderFinder;
824            }
825    
826            /**
827             * Returns the d l sync event local service.
828             *
829             * @return the d l sync event local service
830             */
831            public com.liferay.portlet.documentlibrary.service.DLSyncEventLocalService getDLSyncEventLocalService() {
832                    return dlSyncEventLocalService;
833            }
834    
835            /**
836             * Sets the d l sync event local service.
837             *
838             * @param dlSyncEventLocalService the d l sync event local service
839             */
840            public void setDLSyncEventLocalService(
841                    com.liferay.portlet.documentlibrary.service.DLSyncEventLocalService dlSyncEventLocalService) {
842                    this.dlSyncEventLocalService = dlSyncEventLocalService;
843            }
844    
845            /**
846             * Returns the d l sync event persistence.
847             *
848             * @return the d l sync event persistence
849             */
850            public DLSyncEventPersistence getDLSyncEventPersistence() {
851                    return dlSyncEventPersistence;
852            }
853    
854            /**
855             * Sets the d l sync event persistence.
856             *
857             * @param dlSyncEventPersistence the d l sync event persistence
858             */
859            public void setDLSyncEventPersistence(
860                    DLSyncEventPersistence dlSyncEventPersistence) {
861                    this.dlSyncEventPersistence = dlSyncEventPersistence;
862            }
863    
864            /**
865             * Returns the counter local service.
866             *
867             * @return the counter local service
868             */
869            public com.liferay.counter.service.CounterLocalService getCounterLocalService() {
870                    return counterLocalService;
871            }
872    
873            /**
874             * Sets the counter local service.
875             *
876             * @param counterLocalService the counter local service
877             */
878            public void setCounterLocalService(
879                    com.liferay.counter.service.CounterLocalService counterLocalService) {
880                    this.counterLocalService = counterLocalService;
881            }
882    
883            /**
884             * Returns the resource local service.
885             *
886             * @return the resource local service
887             */
888            public com.liferay.portal.service.ResourceLocalService getResourceLocalService() {
889                    return resourceLocalService;
890            }
891    
892            /**
893             * Sets the resource local service.
894             *
895             * @param resourceLocalService the resource local service
896             */
897            public void setResourceLocalService(
898                    com.liferay.portal.service.ResourceLocalService resourceLocalService) {
899                    this.resourceLocalService = resourceLocalService;
900            }
901    
902            /**
903             * Returns the user local service.
904             *
905             * @return the user local service
906             */
907            public com.liferay.portal.service.UserLocalService getUserLocalService() {
908                    return userLocalService;
909            }
910    
911            /**
912             * Sets the user local service.
913             *
914             * @param userLocalService the user local service
915             */
916            public void setUserLocalService(
917                    com.liferay.portal.service.UserLocalService userLocalService) {
918                    this.userLocalService = userLocalService;
919            }
920    
921            /**
922             * Returns the user remote service.
923             *
924             * @return the user remote service
925             */
926            public com.liferay.portal.service.UserService getUserService() {
927                    return userService;
928            }
929    
930            /**
931             * Sets the user remote service.
932             *
933             * @param userService the user remote service
934             */
935            public void setUserService(
936                    com.liferay.portal.service.UserService userService) {
937                    this.userService = userService;
938            }
939    
940            /**
941             * Returns the user persistence.
942             *
943             * @return the user persistence
944             */
945            public UserPersistence getUserPersistence() {
946                    return userPersistence;
947            }
948    
949            /**
950             * Sets the user persistence.
951             *
952             * @param userPersistence the user persistence
953             */
954            public void setUserPersistence(UserPersistence userPersistence) {
955                    this.userPersistence = userPersistence;
956            }
957    
958            /**
959             * Returns the user finder.
960             *
961             * @return the user finder
962             */
963            public UserFinder getUserFinder() {
964                    return userFinder;
965            }
966    
967            /**
968             * Sets the user finder.
969             *
970             * @param userFinder the user finder
971             */
972            public void setUserFinder(UserFinder userFinder) {
973                    this.userFinder = userFinder;
974            }
975    
976            /**
977             * Returns the d d m structure link local service.
978             *
979             * @return the d d m structure link local service
980             */
981            public com.liferay.portlet.dynamicdatamapping.service.DDMStructureLinkLocalService getDDMStructureLinkLocalService() {
982                    return ddmStructureLinkLocalService;
983            }
984    
985            /**
986             * Sets the d d m structure link local service.
987             *
988             * @param ddmStructureLinkLocalService the d d m structure link local service
989             */
990            public void setDDMStructureLinkLocalService(
991                    com.liferay.portlet.dynamicdatamapping.service.DDMStructureLinkLocalService ddmStructureLinkLocalService) {
992                    this.ddmStructureLinkLocalService = ddmStructureLinkLocalService;
993            }
994    
995            /**
996             * Returns the d d m structure link persistence.
997             *
998             * @return the d d m structure link persistence
999             */
1000            public DDMStructureLinkPersistence getDDMStructureLinkPersistence() {
1001                    return ddmStructureLinkPersistence;
1002            }
1003    
1004            /**
1005             * Sets the d d m structure link persistence.
1006             *
1007             * @param ddmStructureLinkPersistence the d d m structure link persistence
1008             */
1009            public void setDDMStructureLinkPersistence(
1010                    DDMStructureLinkPersistence ddmStructureLinkPersistence) {
1011                    this.ddmStructureLinkPersistence = ddmStructureLinkPersistence;
1012            }
1013    
1014            public void afterPropertiesSet() {
1015                    persistedModelLocalServiceRegistry.register("com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata",
1016                            dlFileEntryMetadataLocalService);
1017            }
1018    
1019            public void destroy() {
1020                    persistedModelLocalServiceRegistry.unregister(
1021                            "com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata");
1022            }
1023    
1024            /**
1025             * Returns the Spring bean ID for this bean.
1026             *
1027             * @return the Spring bean ID for this bean
1028             */
1029            @Override
1030            public String getBeanIdentifier() {
1031                    return _beanIdentifier;
1032            }
1033    
1034            /**
1035             * Sets the Spring bean ID for this bean.
1036             *
1037             * @param beanIdentifier the Spring bean ID for this bean
1038             */
1039            @Override
1040            public void setBeanIdentifier(String beanIdentifier) {
1041                    _beanIdentifier = beanIdentifier;
1042            }
1043    
1044            protected Class<?> getModelClass() {
1045                    return DLFileEntryMetadata.class;
1046            }
1047    
1048            protected String getModelClassName() {
1049                    return DLFileEntryMetadata.class.getName();
1050            }
1051    
1052            /**
1053             * Performs an SQL query.
1054             *
1055             * @param sql the sql query
1056             */
1057            protected void runSQL(String sql) throws SystemException {
1058                    try {
1059                            DataSource dataSource = dlFileEntryMetadataPersistence.getDataSource();
1060    
1061                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
1062                                            sql, new int[0]);
1063    
1064                            sqlUpdate.update();
1065                    }
1066                    catch (Exception e) {
1067                            throw new SystemException(e);
1068                    }
1069            }
1070    
1071            @BeanReference(type = com.liferay.portlet.documentlibrary.service.DLAppLocalService.class)
1072            protected com.liferay.portlet.documentlibrary.service.DLAppLocalService dlAppLocalService;
1073            @BeanReference(type = com.liferay.portlet.documentlibrary.service.DLAppService.class)
1074            protected com.liferay.portlet.documentlibrary.service.DLAppService dlAppService;
1075            @BeanReference(type = com.liferay.portlet.documentlibrary.service.DLAppHelperLocalService.class)
1076            protected com.liferay.portlet.documentlibrary.service.DLAppHelperLocalService dlAppHelperLocalService;
1077            @BeanReference(type = com.liferay.portlet.documentlibrary.service.DLContentLocalService.class)
1078            protected com.liferay.portlet.documentlibrary.service.DLContentLocalService dlContentLocalService;
1079            @BeanReference(type = DLContentPersistence.class)
1080            protected DLContentPersistence dlContentPersistence;
1081            @BeanReference(type = com.liferay.portlet.documentlibrary.service.DLFileEntryLocalService.class)
1082            protected com.liferay.portlet.documentlibrary.service.DLFileEntryLocalService dlFileEntryLocalService;
1083            @BeanReference(type = com.liferay.portlet.documentlibrary.service.DLFileEntryService.class)
1084            protected com.liferay.portlet.documentlibrary.service.DLFileEntryService dlFileEntryService;
1085            @BeanReference(type = DLFileEntryPersistence.class)
1086            protected DLFileEntryPersistence dlFileEntryPersistence;
1087            @BeanReference(type = DLFileEntryFinder.class)
1088            protected DLFileEntryFinder dlFileEntryFinder;
1089            @BeanReference(type = com.liferay.portlet.documentlibrary.service.DLFileEntryMetadataLocalService.class)
1090            protected com.liferay.portlet.documentlibrary.service.DLFileEntryMetadataLocalService dlFileEntryMetadataLocalService;
1091            @BeanReference(type = DLFileEntryMetadataPersistence.class)
1092            protected DLFileEntryMetadataPersistence dlFileEntryMetadataPersistence;
1093            @BeanReference(type = com.liferay.portlet.documentlibrary.service.DLFileEntryTypeLocalService.class)
1094            protected com.liferay.portlet.documentlibrary.service.DLFileEntryTypeLocalService dlFileEntryTypeLocalService;
1095            @BeanReference(type = com.liferay.portlet.documentlibrary.service.DLFileEntryTypeService.class)
1096            protected com.liferay.portlet.documentlibrary.service.DLFileEntryTypeService dlFileEntryTypeService;
1097            @BeanReference(type = DLFileEntryTypePersistence.class)
1098            protected DLFileEntryTypePersistence dlFileEntryTypePersistence;
1099            @BeanReference(type = DLFileEntryTypeFinder.class)
1100            protected DLFileEntryTypeFinder dlFileEntryTypeFinder;
1101            @BeanReference(type = com.liferay.portlet.documentlibrary.service.DLFileRankLocalService.class)
1102            protected com.liferay.portlet.documentlibrary.service.DLFileRankLocalService dlFileRankLocalService;
1103            @BeanReference(type = DLFileRankPersistence.class)
1104            protected DLFileRankPersistence dlFileRankPersistence;
1105            @BeanReference(type = DLFileRankFinder.class)
1106            protected DLFileRankFinder dlFileRankFinder;
1107            @BeanReference(type = com.liferay.portlet.documentlibrary.service.DLFileShortcutLocalService.class)
1108            protected com.liferay.portlet.documentlibrary.service.DLFileShortcutLocalService dlFileShortcutLocalService;
1109            @BeanReference(type = com.liferay.portlet.documentlibrary.service.DLFileShortcutService.class)
1110            protected com.liferay.portlet.documentlibrary.service.DLFileShortcutService dlFileShortcutService;
1111            @BeanReference(type = DLFileShortcutPersistence.class)
1112            protected DLFileShortcutPersistence dlFileShortcutPersistence;
1113            @BeanReference(type = com.liferay.portlet.documentlibrary.service.DLFileVersionLocalService.class)
1114            protected com.liferay.portlet.documentlibrary.service.DLFileVersionLocalService dlFileVersionLocalService;
1115            @BeanReference(type = com.liferay.portlet.documentlibrary.service.DLFileVersionService.class)
1116            protected com.liferay.portlet.documentlibrary.service.DLFileVersionService dlFileVersionService;
1117            @BeanReference(type = DLFileVersionPersistence.class)
1118            protected DLFileVersionPersistence dlFileVersionPersistence;
1119            @BeanReference(type = com.liferay.portlet.documentlibrary.service.DLFolderLocalService.class)
1120            protected com.liferay.portlet.documentlibrary.service.DLFolderLocalService dlFolderLocalService;
1121            @BeanReference(type = com.liferay.portlet.documentlibrary.service.DLFolderService.class)
1122            protected com.liferay.portlet.documentlibrary.service.DLFolderService dlFolderService;
1123            @BeanReference(type = DLFolderPersistence.class)
1124            protected DLFolderPersistence dlFolderPersistence;
1125            @BeanReference(type = DLFolderFinder.class)
1126            protected DLFolderFinder dlFolderFinder;
1127            @BeanReference(type = com.liferay.portlet.documentlibrary.service.DLSyncEventLocalService.class)
1128            protected com.liferay.portlet.documentlibrary.service.DLSyncEventLocalService dlSyncEventLocalService;
1129            @BeanReference(type = DLSyncEventPersistence.class)
1130            protected DLSyncEventPersistence dlSyncEventPersistence;
1131            @BeanReference(type = com.liferay.counter.service.CounterLocalService.class)
1132            protected com.liferay.counter.service.CounterLocalService counterLocalService;
1133            @BeanReference(type = com.liferay.portal.service.ResourceLocalService.class)
1134            protected com.liferay.portal.service.ResourceLocalService resourceLocalService;
1135            @BeanReference(type = com.liferay.portal.service.UserLocalService.class)
1136            protected com.liferay.portal.service.UserLocalService userLocalService;
1137            @BeanReference(type = com.liferay.portal.service.UserService.class)
1138            protected com.liferay.portal.service.UserService userService;
1139            @BeanReference(type = UserPersistence.class)
1140            protected UserPersistence userPersistence;
1141            @BeanReference(type = UserFinder.class)
1142            protected UserFinder userFinder;
1143            @BeanReference(type = com.liferay.portlet.dynamicdatamapping.service.DDMStructureLinkLocalService.class)
1144            protected com.liferay.portlet.dynamicdatamapping.service.DDMStructureLinkLocalService ddmStructureLinkLocalService;
1145            @BeanReference(type = DDMStructureLinkPersistence.class)
1146            protected DDMStructureLinkPersistence ddmStructureLinkPersistence;
1147            @BeanReference(type = PersistedModelLocalServiceRegistry.class)
1148            protected PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry;
1149            private String _beanIdentifier;
1150    }