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