001    /**
002     * Copyright (c) 2000-2010 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.annotation.BeanReference;
020    import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
021    import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
022    import com.liferay.portal.kernel.dao.orm.DynamicQuery;
023    import com.liferay.portal.kernel.exception.PortalException;
024    import com.liferay.portal.kernel.exception.SystemException;
025    import com.liferay.portal.kernel.util.OrderByComparator;
026    import com.liferay.portal.service.LayoutLocalService;
027    import com.liferay.portal.service.LayoutService;
028    import com.liferay.portal.service.ResourceLocalService;
029    import com.liferay.portal.service.ResourceService;
030    import com.liferay.portal.service.UserLocalService;
031    import com.liferay.portal.service.UserService;
032    import com.liferay.portal.service.persistence.LayoutFinder;
033    import com.liferay.portal.service.persistence.LayoutPersistence;
034    import com.liferay.portal.service.persistence.ResourceFinder;
035    import com.liferay.portal.service.persistence.ResourcePersistence;
036    import com.liferay.portal.service.persistence.UserFinder;
037    import com.liferay.portal.service.persistence.UserPersistence;
038    
039    import com.liferay.portlet.documentlibrary.model.DLFileRank;
040    import com.liferay.portlet.documentlibrary.service.DLFileEntryLocalService;
041    import com.liferay.portlet.documentlibrary.service.DLFileEntryService;
042    import com.liferay.portlet.documentlibrary.service.DLFileRankLocalService;
043    import com.liferay.portlet.documentlibrary.service.DLFileShortcutLocalService;
044    import com.liferay.portlet.documentlibrary.service.DLFileShortcutService;
045    import com.liferay.portlet.documentlibrary.service.DLFileVersionLocalService;
046    import com.liferay.portlet.documentlibrary.service.DLFileVersionService;
047    import com.liferay.portlet.documentlibrary.service.DLFolderLocalService;
048    import com.liferay.portlet.documentlibrary.service.DLFolderService;
049    import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryFinder;
050    import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryPersistence;
051    import com.liferay.portlet.documentlibrary.service.persistence.DLFileRankPersistence;
052    import com.liferay.portlet.documentlibrary.service.persistence.DLFileShortcutPersistence;
053    import com.liferay.portlet.documentlibrary.service.persistence.DLFileVersionPersistence;
054    import com.liferay.portlet.documentlibrary.service.persistence.DLFolderFinder;
055    import com.liferay.portlet.documentlibrary.service.persistence.DLFolderPersistence;
056    
057    import java.util.List;
058    
059    import javax.sql.DataSource;
060    
061    /**
062     * The base implementation of the d l file rank local service.
063     *
064     * <p>
065     * 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}.
066     * </p>
067     *
068     * <p>
069     * Never modify or reference this class directly. Always use {@link com.liferay.portlet.documentlibrary.service.DLFileRankLocalServiceUtil} to access the d l file rank local service.
070     * </p>
071     *
072     * @author Brian Wing Shun Chan
073     * @see com.liferay.portlet.documentlibrary.service.impl.DLFileRankLocalServiceImpl
074     * @see com.liferay.portlet.documentlibrary.service.DLFileRankLocalServiceUtil
075     * @generated
076     */
077    public abstract class DLFileRankLocalServiceBaseImpl
078            implements DLFileRankLocalService {
079            /**
080             * Adds the d l file rank to the database. Also notifies the appropriate model listeners.
081             *
082             * @param dlFileRank the d l file rank to add
083             * @return the d l file rank that was added
084             * @throws SystemException if a system exception occurred
085             */
086            public DLFileRank addDLFileRank(DLFileRank dlFileRank)
087                    throws SystemException {
088                    dlFileRank.setNew(true);
089    
090                    return dlFileRankPersistence.update(dlFileRank, false);
091            }
092    
093            /**
094             * Creates a new d l file rank with the primary key. Does not add the d l file rank to the database.
095             *
096             * @param fileRankId the primary key for the new d l file rank
097             * @return the new d l file rank
098             */
099            public DLFileRank createDLFileRank(long fileRankId) {
100                    return dlFileRankPersistence.create(fileRankId);
101            }
102    
103            /**
104             * Deletes the d l file rank with the primary key from the database. Also notifies the appropriate model listeners.
105             *
106             * @param fileRankId the primary key of the d l file rank to delete
107             * @throws PortalException if a d l file rank with the primary key could not be found
108             * @throws SystemException if a system exception occurred
109             */
110            public void deleteDLFileRank(long fileRankId)
111                    throws PortalException, SystemException {
112                    dlFileRankPersistence.remove(fileRankId);
113            }
114    
115            /**
116             * Deletes the d l file rank from the database. Also notifies the appropriate model listeners.
117             *
118             * @param dlFileRank the d l file rank to delete
119             * @throws SystemException if a system exception occurred
120             */
121            public void deleteDLFileRank(DLFileRank dlFileRank)
122                    throws SystemException {
123                    dlFileRankPersistence.remove(dlFileRank);
124            }
125    
126            /**
127             * Performs a dynamic query on the database and returns the matching rows.
128             *
129             * @param dynamicQuery the dynamic query to search with
130             * @return the matching rows
131             * @throws SystemException if a system exception occurred
132             */
133            @SuppressWarnings("rawtypes")
134            public List dynamicQuery(DynamicQuery dynamicQuery)
135                    throws SystemException {
136                    return dlFileRankPersistence.findWithDynamicQuery(dynamicQuery);
137            }
138    
139            /**
140             * Performs a dynamic query on the database and returns a range of the matching rows.
141             *
142             * <p>
143             * 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.
144             * </p>
145             *
146             * @param dynamicQuery the dynamic query to search with
147             * @param start the lower bound of the range of model instances to return
148             * @param end the upper bound of the range of model instances to return (not inclusive)
149             * @return the range of matching rows
150             * @throws SystemException if a system exception occurred
151             */
152            @SuppressWarnings("rawtypes")
153            public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
154                    throws SystemException {
155                    return dlFileRankPersistence.findWithDynamicQuery(dynamicQuery, start,
156                            end);
157            }
158    
159            /**
160             * Performs a dynamic query on the database and returns an ordered range of the matching rows.
161             *
162             * <p>
163             * 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.
164             * </p>
165             *
166             * @param dynamicQuery the dynamic query to search with
167             * @param start the lower bound of the range of model instances to return
168             * @param end the upper bound of the range of model instances to return (not inclusive)
169             * @param orderByComparator the comparator to order the results by
170             * @return the ordered range of matching rows
171             * @throws SystemException if a system exception occurred
172             */
173            @SuppressWarnings("rawtypes")
174            public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end,
175                    OrderByComparator orderByComparator) throws SystemException {
176                    return dlFileRankPersistence.findWithDynamicQuery(dynamicQuery, start,
177                            end, orderByComparator);
178            }
179    
180            /**
181             * Counts the number of rows that match the dynamic query.
182             *
183             * @param dynamicQuery the dynamic query to search with
184             * @return the number of rows that match the dynamic query
185             * @throws SystemException if a system exception occurred
186             */
187            public long dynamicQueryCount(DynamicQuery dynamicQuery)
188                    throws SystemException {
189                    return dlFileRankPersistence.countWithDynamicQuery(dynamicQuery);
190            }
191    
192            /**
193             * Gets the d l file rank with the primary key.
194             *
195             * @param fileRankId the primary key of the d l file rank to get
196             * @return the d l file rank
197             * @throws PortalException if a d l file rank with the primary key could not be found
198             * @throws SystemException if a system exception occurred
199             */
200            public DLFileRank getDLFileRank(long fileRankId)
201                    throws PortalException, SystemException {
202                    return dlFileRankPersistence.findByPrimaryKey(fileRankId);
203            }
204    
205            /**
206             * Gets a range of all the d l file ranks.
207             *
208             * <p>
209             * 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.
210             * </p>
211             *
212             * @param start the lower bound of the range of d l file ranks to return
213             * @param end the upper bound of the range of d l file ranks to return (not inclusive)
214             * @return the range of d l file ranks
215             * @throws SystemException if a system exception occurred
216             */
217            public List<DLFileRank> getDLFileRanks(int start, int end)
218                    throws SystemException {
219                    return dlFileRankPersistence.findAll(start, end);
220            }
221    
222            /**
223             * Gets the number of d l file ranks.
224             *
225             * @return the number of d l file ranks
226             * @throws SystemException if a system exception occurred
227             */
228            public int getDLFileRanksCount() throws SystemException {
229                    return dlFileRankPersistence.countAll();
230            }
231    
232            /**
233             * Updates the d l file rank in the database. Also notifies the appropriate model listeners.
234             *
235             * @param dlFileRank the d l file rank to update
236             * @return the d l file rank that was updated
237             * @throws SystemException if a system exception occurred
238             */
239            public DLFileRank updateDLFileRank(DLFileRank dlFileRank)
240                    throws SystemException {
241                    dlFileRank.setNew(false);
242    
243                    return dlFileRankPersistence.update(dlFileRank, true);
244            }
245    
246            /**
247             * Updates the d l file rank in the database. Also notifies the appropriate model listeners.
248             *
249             * @param dlFileRank the d l file rank to update
250             * @param merge whether to merge the d l file rank with the current session. See {@link com.liferay.portal.service.persistence.BatchSession#update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean)} for an explanation.
251             * @return the d l file rank that was updated
252             * @throws SystemException if a system exception occurred
253             */
254            public DLFileRank updateDLFileRank(DLFileRank dlFileRank, boolean merge)
255                    throws SystemException {
256                    dlFileRank.setNew(false);
257    
258                    return dlFileRankPersistence.update(dlFileRank, merge);
259            }
260    
261            /**
262             * Gets the d l file entry local service.
263             *
264             * @return the d l file entry local service
265             */
266            public DLFileEntryLocalService getDLFileEntryLocalService() {
267                    return dlFileEntryLocalService;
268            }
269    
270            /**
271             * Sets the d l file entry local service.
272             *
273             * @param dlFileEntryLocalService the d l file entry local service
274             */
275            public void setDLFileEntryLocalService(
276                    DLFileEntryLocalService dlFileEntryLocalService) {
277                    this.dlFileEntryLocalService = dlFileEntryLocalService;
278            }
279    
280            /**
281             * Gets the d l file entry remote service.
282             *
283             * @return the d l file entry remote service
284             */
285            public DLFileEntryService getDLFileEntryService() {
286                    return dlFileEntryService;
287            }
288    
289            /**
290             * Sets the d l file entry remote service.
291             *
292             * @param dlFileEntryService the d l file entry remote service
293             */
294            public void setDLFileEntryService(DLFileEntryService dlFileEntryService) {
295                    this.dlFileEntryService = dlFileEntryService;
296            }
297    
298            /**
299             * Gets the d l file entry persistence.
300             *
301             * @return the d l file entry persistence
302             */
303            public DLFileEntryPersistence getDLFileEntryPersistence() {
304                    return dlFileEntryPersistence;
305            }
306    
307            /**
308             * Sets the d l file entry persistence.
309             *
310             * @param dlFileEntryPersistence the d l file entry persistence
311             */
312            public void setDLFileEntryPersistence(
313                    DLFileEntryPersistence dlFileEntryPersistence) {
314                    this.dlFileEntryPersistence = dlFileEntryPersistence;
315            }
316    
317            /**
318             * Gets the d l file entry finder.
319             *
320             * @return the d l file entry finder
321             */
322            public DLFileEntryFinder getDLFileEntryFinder() {
323                    return dlFileEntryFinder;
324            }
325    
326            /**
327             * Sets the d l file entry finder.
328             *
329             * @param dlFileEntryFinder the d l file entry finder
330             */
331            public void setDLFileEntryFinder(DLFileEntryFinder dlFileEntryFinder) {
332                    this.dlFileEntryFinder = dlFileEntryFinder;
333            }
334    
335            /**
336             * Gets the d l file rank local service.
337             *
338             * @return the d l file rank local service
339             */
340            public DLFileRankLocalService getDLFileRankLocalService() {
341                    return dlFileRankLocalService;
342            }
343    
344            /**
345             * Sets the d l file rank local service.
346             *
347             * @param dlFileRankLocalService the d l file rank local service
348             */
349            public void setDLFileRankLocalService(
350                    DLFileRankLocalService dlFileRankLocalService) {
351                    this.dlFileRankLocalService = dlFileRankLocalService;
352            }
353    
354            /**
355             * Gets the d l file rank persistence.
356             *
357             * @return the d l file rank persistence
358             */
359            public DLFileRankPersistence getDLFileRankPersistence() {
360                    return dlFileRankPersistence;
361            }
362    
363            /**
364             * Sets the d l file rank persistence.
365             *
366             * @param dlFileRankPersistence the d l file rank persistence
367             */
368            public void setDLFileRankPersistence(
369                    DLFileRankPersistence dlFileRankPersistence) {
370                    this.dlFileRankPersistence = dlFileRankPersistence;
371            }
372    
373            /**
374             * Gets the d l file shortcut local service.
375             *
376             * @return the d l file shortcut local service
377             */
378            public DLFileShortcutLocalService getDLFileShortcutLocalService() {
379                    return dlFileShortcutLocalService;
380            }
381    
382            /**
383             * Sets the d l file shortcut local service.
384             *
385             * @param dlFileShortcutLocalService the d l file shortcut local service
386             */
387            public void setDLFileShortcutLocalService(
388                    DLFileShortcutLocalService dlFileShortcutLocalService) {
389                    this.dlFileShortcutLocalService = dlFileShortcutLocalService;
390            }
391    
392            /**
393             * Gets the d l file shortcut remote service.
394             *
395             * @return the d l file shortcut remote service
396             */
397            public DLFileShortcutService getDLFileShortcutService() {
398                    return dlFileShortcutService;
399            }
400    
401            /**
402             * Sets the d l file shortcut remote service.
403             *
404             * @param dlFileShortcutService the d l file shortcut remote service
405             */
406            public void setDLFileShortcutService(
407                    DLFileShortcutService dlFileShortcutService) {
408                    this.dlFileShortcutService = dlFileShortcutService;
409            }
410    
411            /**
412             * Gets the d l file shortcut persistence.
413             *
414             * @return the d l file shortcut persistence
415             */
416            public DLFileShortcutPersistence getDLFileShortcutPersistence() {
417                    return dlFileShortcutPersistence;
418            }
419    
420            /**
421             * Sets the d l file shortcut persistence.
422             *
423             * @param dlFileShortcutPersistence the d l file shortcut persistence
424             */
425            public void setDLFileShortcutPersistence(
426                    DLFileShortcutPersistence dlFileShortcutPersistence) {
427                    this.dlFileShortcutPersistence = dlFileShortcutPersistence;
428            }
429    
430            /**
431             * Gets the d l file version local service.
432             *
433             * @return the d l file version local service
434             */
435            public DLFileVersionLocalService getDLFileVersionLocalService() {
436                    return dlFileVersionLocalService;
437            }
438    
439            /**
440             * Sets the d l file version local service.
441             *
442             * @param dlFileVersionLocalService the d l file version local service
443             */
444            public void setDLFileVersionLocalService(
445                    DLFileVersionLocalService dlFileVersionLocalService) {
446                    this.dlFileVersionLocalService = dlFileVersionLocalService;
447            }
448    
449            /**
450             * Gets the d l file version remote service.
451             *
452             * @return the d l file version remote service
453             */
454            public DLFileVersionService getDLFileVersionService() {
455                    return dlFileVersionService;
456            }
457    
458            /**
459             * Sets the d l file version remote service.
460             *
461             * @param dlFileVersionService the d l file version remote service
462             */
463            public void setDLFileVersionService(
464                    DLFileVersionService dlFileVersionService) {
465                    this.dlFileVersionService = dlFileVersionService;
466            }
467    
468            /**
469             * Gets the d l file version persistence.
470             *
471             * @return the d l file version persistence
472             */
473            public DLFileVersionPersistence getDLFileVersionPersistence() {
474                    return dlFileVersionPersistence;
475            }
476    
477            /**
478             * Sets the d l file version persistence.
479             *
480             * @param dlFileVersionPersistence the d l file version persistence
481             */
482            public void setDLFileVersionPersistence(
483                    DLFileVersionPersistence dlFileVersionPersistence) {
484                    this.dlFileVersionPersistence = dlFileVersionPersistence;
485            }
486    
487            /**
488             * Gets the d l folder local service.
489             *
490             * @return the d l folder local service
491             */
492            public DLFolderLocalService getDLFolderLocalService() {
493                    return dlFolderLocalService;
494            }
495    
496            /**
497             * Sets the d l folder local service.
498             *
499             * @param dlFolderLocalService the d l folder local service
500             */
501            public void setDLFolderLocalService(
502                    DLFolderLocalService dlFolderLocalService) {
503                    this.dlFolderLocalService = dlFolderLocalService;
504            }
505    
506            /**
507             * Gets the d l folder remote service.
508             *
509             * @return the d l folder remote service
510             */
511            public DLFolderService getDLFolderService() {
512                    return dlFolderService;
513            }
514    
515            /**
516             * Sets the d l folder remote service.
517             *
518             * @param dlFolderService the d l folder remote service
519             */
520            public void setDLFolderService(DLFolderService dlFolderService) {
521                    this.dlFolderService = dlFolderService;
522            }
523    
524            /**
525             * Gets the d l folder persistence.
526             *
527             * @return the d l folder persistence
528             */
529            public DLFolderPersistence getDLFolderPersistence() {
530                    return dlFolderPersistence;
531            }
532    
533            /**
534             * Sets the d l folder persistence.
535             *
536             * @param dlFolderPersistence the d l folder persistence
537             */
538            public void setDLFolderPersistence(DLFolderPersistence dlFolderPersistence) {
539                    this.dlFolderPersistence = dlFolderPersistence;
540            }
541    
542            /**
543             * Gets the d l folder finder.
544             *
545             * @return the d l folder finder
546             */
547            public DLFolderFinder getDLFolderFinder() {
548                    return dlFolderFinder;
549            }
550    
551            /**
552             * Sets the d l folder finder.
553             *
554             * @param dlFolderFinder the d l folder finder
555             */
556            public void setDLFolderFinder(DLFolderFinder dlFolderFinder) {
557                    this.dlFolderFinder = dlFolderFinder;
558            }
559    
560            /**
561             * Gets the counter local service.
562             *
563             * @return the counter local service
564             */
565            public CounterLocalService getCounterLocalService() {
566                    return counterLocalService;
567            }
568    
569            /**
570             * Sets the counter local service.
571             *
572             * @param counterLocalService the counter local service
573             */
574            public void setCounterLocalService(CounterLocalService counterLocalService) {
575                    this.counterLocalService = counterLocalService;
576            }
577    
578            /**
579             * Gets the layout local service.
580             *
581             * @return the layout local service
582             */
583            public LayoutLocalService getLayoutLocalService() {
584                    return layoutLocalService;
585            }
586    
587            /**
588             * Sets the layout local service.
589             *
590             * @param layoutLocalService the layout local service
591             */
592            public void setLayoutLocalService(LayoutLocalService layoutLocalService) {
593                    this.layoutLocalService = layoutLocalService;
594            }
595    
596            /**
597             * Gets the layout remote service.
598             *
599             * @return the layout remote service
600             */
601            public LayoutService getLayoutService() {
602                    return layoutService;
603            }
604    
605            /**
606             * Sets the layout remote service.
607             *
608             * @param layoutService the layout remote service
609             */
610            public void setLayoutService(LayoutService layoutService) {
611                    this.layoutService = layoutService;
612            }
613    
614            /**
615             * Gets the layout persistence.
616             *
617             * @return the layout persistence
618             */
619            public LayoutPersistence getLayoutPersistence() {
620                    return layoutPersistence;
621            }
622    
623            /**
624             * Sets the layout persistence.
625             *
626             * @param layoutPersistence the layout persistence
627             */
628            public void setLayoutPersistence(LayoutPersistence layoutPersistence) {
629                    this.layoutPersistence = layoutPersistence;
630            }
631    
632            /**
633             * Gets the layout finder.
634             *
635             * @return the layout finder
636             */
637            public LayoutFinder getLayoutFinder() {
638                    return layoutFinder;
639            }
640    
641            /**
642             * Sets the layout finder.
643             *
644             * @param layoutFinder the layout finder
645             */
646            public void setLayoutFinder(LayoutFinder layoutFinder) {
647                    this.layoutFinder = layoutFinder;
648            }
649    
650            /**
651             * Gets the resource local service.
652             *
653             * @return the resource local service
654             */
655            public ResourceLocalService getResourceLocalService() {
656                    return resourceLocalService;
657            }
658    
659            /**
660             * Sets the resource local service.
661             *
662             * @param resourceLocalService the resource local service
663             */
664            public void setResourceLocalService(
665                    ResourceLocalService resourceLocalService) {
666                    this.resourceLocalService = resourceLocalService;
667            }
668    
669            /**
670             * Gets the resource remote service.
671             *
672             * @return the resource remote service
673             */
674            public ResourceService getResourceService() {
675                    return resourceService;
676            }
677    
678            /**
679             * Sets the resource remote service.
680             *
681             * @param resourceService the resource remote service
682             */
683            public void setResourceService(ResourceService resourceService) {
684                    this.resourceService = resourceService;
685            }
686    
687            /**
688             * Gets the resource persistence.
689             *
690             * @return the resource persistence
691             */
692            public ResourcePersistence getResourcePersistence() {
693                    return resourcePersistence;
694            }
695    
696            /**
697             * Sets the resource persistence.
698             *
699             * @param resourcePersistence the resource persistence
700             */
701            public void setResourcePersistence(ResourcePersistence resourcePersistence) {
702                    this.resourcePersistence = resourcePersistence;
703            }
704    
705            /**
706             * Gets the resource finder.
707             *
708             * @return the resource finder
709             */
710            public ResourceFinder getResourceFinder() {
711                    return resourceFinder;
712            }
713    
714            /**
715             * Sets the resource finder.
716             *
717             * @param resourceFinder the resource finder
718             */
719            public void setResourceFinder(ResourceFinder resourceFinder) {
720                    this.resourceFinder = resourceFinder;
721            }
722    
723            /**
724             * Gets the user local service.
725             *
726             * @return the user local service
727             */
728            public UserLocalService getUserLocalService() {
729                    return userLocalService;
730            }
731    
732            /**
733             * Sets the user local service.
734             *
735             * @param userLocalService the user local service
736             */
737            public void setUserLocalService(UserLocalService userLocalService) {
738                    this.userLocalService = userLocalService;
739            }
740    
741            /**
742             * Gets the user remote service.
743             *
744             * @return the user remote service
745             */
746            public UserService getUserService() {
747                    return userService;
748            }
749    
750            /**
751             * Sets the user remote service.
752             *
753             * @param userService the user remote service
754             */
755            public void setUserService(UserService userService) {
756                    this.userService = userService;
757            }
758    
759            /**
760             * Gets the user persistence.
761             *
762             * @return the user persistence
763             */
764            public UserPersistence getUserPersistence() {
765                    return userPersistence;
766            }
767    
768            /**
769             * Sets the user persistence.
770             *
771             * @param userPersistence the user persistence
772             */
773            public void setUserPersistence(UserPersistence userPersistence) {
774                    this.userPersistence = userPersistence;
775            }
776    
777            /**
778             * Gets the user finder.
779             *
780             * @return the user finder
781             */
782            public UserFinder getUserFinder() {
783                    return userFinder;
784            }
785    
786            /**
787             * Sets the user finder.
788             *
789             * @param userFinder the user finder
790             */
791            public void setUserFinder(UserFinder userFinder) {
792                    this.userFinder = userFinder;
793            }
794    
795            /**
796             * Performs an SQL query.
797             *
798             * @param sql the sql query to perform
799             */
800            protected void runSQL(String sql) throws SystemException {
801                    try {
802                            DataSource dataSource = dlFileRankPersistence.getDataSource();
803    
804                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
805                                            sql, new int[0]);
806    
807                            sqlUpdate.update();
808                    }
809                    catch (Exception e) {
810                            throw new SystemException(e);
811                    }
812            }
813    
814            @BeanReference(type = DLFileEntryLocalService.class)
815            protected DLFileEntryLocalService dlFileEntryLocalService;
816            @BeanReference(type = DLFileEntryService.class)
817            protected DLFileEntryService dlFileEntryService;
818            @BeanReference(type = DLFileEntryPersistence.class)
819            protected DLFileEntryPersistence dlFileEntryPersistence;
820            @BeanReference(type = DLFileEntryFinder.class)
821            protected DLFileEntryFinder dlFileEntryFinder;
822            @BeanReference(type = DLFileRankLocalService.class)
823            protected DLFileRankLocalService dlFileRankLocalService;
824            @BeanReference(type = DLFileRankPersistence.class)
825            protected DLFileRankPersistence dlFileRankPersistence;
826            @BeanReference(type = DLFileShortcutLocalService.class)
827            protected DLFileShortcutLocalService dlFileShortcutLocalService;
828            @BeanReference(type = DLFileShortcutService.class)
829            protected DLFileShortcutService dlFileShortcutService;
830            @BeanReference(type = DLFileShortcutPersistence.class)
831            protected DLFileShortcutPersistence dlFileShortcutPersistence;
832            @BeanReference(type = DLFileVersionLocalService.class)
833            protected DLFileVersionLocalService dlFileVersionLocalService;
834            @BeanReference(type = DLFileVersionService.class)
835            protected DLFileVersionService dlFileVersionService;
836            @BeanReference(type = DLFileVersionPersistence.class)
837            protected DLFileVersionPersistence dlFileVersionPersistence;
838            @BeanReference(type = DLFolderLocalService.class)
839            protected DLFolderLocalService dlFolderLocalService;
840            @BeanReference(type = DLFolderService.class)
841            protected DLFolderService dlFolderService;
842            @BeanReference(type = DLFolderPersistence.class)
843            protected DLFolderPersistence dlFolderPersistence;
844            @BeanReference(type = DLFolderFinder.class)
845            protected DLFolderFinder dlFolderFinder;
846            @BeanReference(type = CounterLocalService.class)
847            protected CounterLocalService counterLocalService;
848            @BeanReference(type = LayoutLocalService.class)
849            protected LayoutLocalService layoutLocalService;
850            @BeanReference(type = LayoutService.class)
851            protected LayoutService layoutService;
852            @BeanReference(type = LayoutPersistence.class)
853            protected LayoutPersistence layoutPersistence;
854            @BeanReference(type = LayoutFinder.class)
855            protected LayoutFinder layoutFinder;
856            @BeanReference(type = ResourceLocalService.class)
857            protected ResourceLocalService resourceLocalService;
858            @BeanReference(type = ResourceService.class)
859            protected ResourceService resourceService;
860            @BeanReference(type = ResourcePersistence.class)
861            protected ResourcePersistence resourcePersistence;
862            @BeanReference(type = ResourceFinder.class)
863            protected ResourceFinder resourceFinder;
864            @BeanReference(type = UserLocalService.class)
865            protected UserLocalService userLocalService;
866            @BeanReference(type = UserService.class)
867            protected UserService userService;
868            @BeanReference(type = UserPersistence.class)
869            protected UserPersistence userPersistence;
870            @BeanReference(type = UserFinder.class)
871            protected UserFinder userFinder;
872    }