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