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