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