001    /**
002     * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.documentlibrary.service.base;
016    
017    import com.liferay.counter.service.CounterLocalService;
018    
019    import com.liferay.portal.kernel.bean.BeanReference;
020    import com.liferay.portal.kernel.bean.IdentifiableBean;
021    import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
022    import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
023    import com.liferay.portal.kernel.exception.SystemException;
024    import com.liferay.portal.service.ResourceLocalService;
025    import com.liferay.portal.service.ResourceService;
026    import com.liferay.portal.service.UserLocalService;
027    import com.liferay.portal.service.UserService;
028    import com.liferay.portal.service.base.PrincipalBean;
029    import com.liferay.portal.service.persistence.ResourceFinder;
030    import com.liferay.portal.service.persistence.ResourcePersistence;
031    import com.liferay.portal.service.persistence.UserFinder;
032    import com.liferay.portal.service.persistence.UserPersistence;
033    
034    import com.liferay.portlet.documentlibrary.model.DLFileVersion;
035    import com.liferay.portlet.documentlibrary.service.DLAppHelperLocalService;
036    import com.liferay.portlet.documentlibrary.service.DLAppLocalService;
037    import com.liferay.portlet.documentlibrary.service.DLAppService;
038    import com.liferay.portlet.documentlibrary.service.DLContentLocalService;
039    import com.liferay.portlet.documentlibrary.service.DLFileEntryLocalService;
040    import com.liferay.portlet.documentlibrary.service.DLFileEntryMetadataLocalService;
041    import com.liferay.portlet.documentlibrary.service.DLFileEntryService;
042    import com.liferay.portlet.documentlibrary.service.DLFileEntryTypeLocalService;
043    import com.liferay.portlet.documentlibrary.service.DLFileEntryTypeService;
044    import com.liferay.portlet.documentlibrary.service.DLFileRankLocalService;
045    import com.liferay.portlet.documentlibrary.service.DLFileShortcutLocalService;
046    import com.liferay.portlet.documentlibrary.service.DLFileShortcutService;
047    import com.liferay.portlet.documentlibrary.service.DLFileVersionLocalService;
048    import com.liferay.portlet.documentlibrary.service.DLFileVersionService;
049    import com.liferay.portlet.documentlibrary.service.DLFolderLocalService;
050    import com.liferay.portlet.documentlibrary.service.DLFolderService;
051    import com.liferay.portlet.documentlibrary.service.DLSyncLocalService;
052    import com.liferay.portlet.documentlibrary.service.DLSyncService;
053    import com.liferay.portlet.documentlibrary.service.persistence.DLContentPersistence;
054    import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryFinder;
055    import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryMetadataPersistence;
056    import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryPersistence;
057    import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryTypeFinder;
058    import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryTypePersistence;
059    import com.liferay.portlet.documentlibrary.service.persistence.DLFileRankFinder;
060    import com.liferay.portlet.documentlibrary.service.persistence.DLFileRankPersistence;
061    import com.liferay.portlet.documentlibrary.service.persistence.DLFileShortcutPersistence;
062    import com.liferay.portlet.documentlibrary.service.persistence.DLFileVersionPersistence;
063    import com.liferay.portlet.documentlibrary.service.persistence.DLFolderFinder;
064    import com.liferay.portlet.documentlibrary.service.persistence.DLFolderPersistence;
065    import com.liferay.portlet.documentlibrary.service.persistence.DLSyncPersistence;
066    
067    import javax.sql.DataSource;
068    
069    /**
070     * The base implementation of the document library file version remote service.
071     *
072     * <p>
073     * 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.DLFileVersionServiceImpl}.
074     * </p>
075     *
076     * @author Brian Wing Shun Chan
077     * @see com.liferay.portlet.documentlibrary.service.impl.DLFileVersionServiceImpl
078     * @see com.liferay.portlet.documentlibrary.service.DLFileVersionServiceUtil
079     * @generated
080     */
081    public abstract class DLFileVersionServiceBaseImpl extends PrincipalBean
082            implements DLFileVersionService, IdentifiableBean {
083            /*
084             * NOTE FOR DEVELOPERS:
085             *
086             * Never modify or reference this class directly. Always use {@link com.liferay.portlet.documentlibrary.service.DLFileVersionServiceUtil} to access the document library file version remote service.
087             */
088    
089            /**
090             * Returns the d l app local service.
091             *
092             * @return the d l app local service
093             */
094            public DLAppLocalService getDLAppLocalService() {
095                    return dlAppLocalService;
096            }
097    
098            /**
099             * Sets the d l app local service.
100             *
101             * @param dlAppLocalService the d l app local service
102             */
103            public void setDLAppLocalService(DLAppLocalService dlAppLocalService) {
104                    this.dlAppLocalService = dlAppLocalService;
105            }
106    
107            /**
108             * Returns the d l app remote service.
109             *
110             * @return the d l app remote service
111             */
112            public DLAppService getDLAppService() {
113                    return dlAppService;
114            }
115    
116            /**
117             * Sets the d l app remote service.
118             *
119             * @param dlAppService the d l app remote service
120             */
121            public void setDLAppService(DLAppService dlAppService) {
122                    this.dlAppService = dlAppService;
123            }
124    
125            /**
126             * Returns the d l app helper local service.
127             *
128             * @return the d l app helper local service
129             */
130            public DLAppHelperLocalService getDLAppHelperLocalService() {
131                    return dlAppHelperLocalService;
132            }
133    
134            /**
135             * Sets the d l app helper local service.
136             *
137             * @param dlAppHelperLocalService the d l app helper local service
138             */
139            public void setDLAppHelperLocalService(
140                    DLAppHelperLocalService dlAppHelperLocalService) {
141                    this.dlAppHelperLocalService = dlAppHelperLocalService;
142            }
143    
144            /**
145             * Returns the document library content local service.
146             *
147             * @return the document library content local service
148             */
149            public DLContentLocalService getDLContentLocalService() {
150                    return dlContentLocalService;
151            }
152    
153            /**
154             * Sets the document library content local service.
155             *
156             * @param dlContentLocalService the document library content local service
157             */
158            public void setDLContentLocalService(
159                    DLContentLocalService dlContentLocalService) {
160                    this.dlContentLocalService = dlContentLocalService;
161            }
162    
163            /**
164             * Returns the document library content persistence.
165             *
166             * @return the document library content persistence
167             */
168            public DLContentPersistence getDLContentPersistence() {
169                    return dlContentPersistence;
170            }
171    
172            /**
173             * Sets the document library content persistence.
174             *
175             * @param dlContentPersistence the document library content persistence
176             */
177            public void setDLContentPersistence(
178                    DLContentPersistence dlContentPersistence) {
179                    this.dlContentPersistence = dlContentPersistence;
180            }
181    
182            /**
183             * Returns the document library file entry local service.
184             *
185             * @return the document library file entry local service
186             */
187            public DLFileEntryLocalService getDLFileEntryLocalService() {
188                    return dlFileEntryLocalService;
189            }
190    
191            /**
192             * Sets the document library file entry local service.
193             *
194             * @param dlFileEntryLocalService the document library file entry local service
195             */
196            public void setDLFileEntryLocalService(
197                    DLFileEntryLocalService dlFileEntryLocalService) {
198                    this.dlFileEntryLocalService = dlFileEntryLocalService;
199            }
200    
201            /**
202             * Returns the document library file entry remote service.
203             *
204             * @return the document library file entry remote service
205             */
206            public DLFileEntryService getDLFileEntryService() {
207                    return dlFileEntryService;
208            }
209    
210            /**
211             * Sets the document library file entry remote service.
212             *
213             * @param dlFileEntryService the document library file entry remote service
214             */
215            public void setDLFileEntryService(DLFileEntryService dlFileEntryService) {
216                    this.dlFileEntryService = dlFileEntryService;
217            }
218    
219            /**
220             * Returns the document library file entry persistence.
221             *
222             * @return the document library file entry persistence
223             */
224            public DLFileEntryPersistence getDLFileEntryPersistence() {
225                    return dlFileEntryPersistence;
226            }
227    
228            /**
229             * Sets the document library file entry persistence.
230             *
231             * @param dlFileEntryPersistence the document library file entry persistence
232             */
233            public void setDLFileEntryPersistence(
234                    DLFileEntryPersistence dlFileEntryPersistence) {
235                    this.dlFileEntryPersistence = dlFileEntryPersistence;
236            }
237    
238            /**
239             * Returns the document library file entry finder.
240             *
241             * @return the document library file entry finder
242             */
243            public DLFileEntryFinder getDLFileEntryFinder() {
244                    return dlFileEntryFinder;
245            }
246    
247            /**
248             * Sets the document library file entry finder.
249             *
250             * @param dlFileEntryFinder the document library file entry finder
251             */
252            public void setDLFileEntryFinder(DLFileEntryFinder dlFileEntryFinder) {
253                    this.dlFileEntryFinder = dlFileEntryFinder;
254            }
255    
256            /**
257             * Returns the document library file entry metadata local service.
258             *
259             * @return the document library file entry metadata local service
260             */
261            public DLFileEntryMetadataLocalService getDLFileEntryMetadataLocalService() {
262                    return dlFileEntryMetadataLocalService;
263            }
264    
265            /**
266             * Sets the document library file entry metadata local service.
267             *
268             * @param dlFileEntryMetadataLocalService the document library file entry metadata local service
269             */
270            public void setDLFileEntryMetadataLocalService(
271                    DLFileEntryMetadataLocalService dlFileEntryMetadataLocalService) {
272                    this.dlFileEntryMetadataLocalService = dlFileEntryMetadataLocalService;
273            }
274    
275            /**
276             * Returns the document library file entry metadata persistence.
277             *
278             * @return the document library file entry metadata persistence
279             */
280            public DLFileEntryMetadataPersistence getDLFileEntryMetadataPersistence() {
281                    return dlFileEntryMetadataPersistence;
282            }
283    
284            /**
285             * Sets the document library file entry metadata persistence.
286             *
287             * @param dlFileEntryMetadataPersistence the document library file entry metadata persistence
288             */
289            public void setDLFileEntryMetadataPersistence(
290                    DLFileEntryMetadataPersistence dlFileEntryMetadataPersistence) {
291                    this.dlFileEntryMetadataPersistence = dlFileEntryMetadataPersistence;
292            }
293    
294            /**
295             * Returns the document library file entry type local service.
296             *
297             * @return the document library file entry type local service
298             */
299            public DLFileEntryTypeLocalService getDLFileEntryTypeLocalService() {
300                    return dlFileEntryTypeLocalService;
301            }
302    
303            /**
304             * Sets the document library file entry type local service.
305             *
306             * @param dlFileEntryTypeLocalService the document library file entry type local service
307             */
308            public void setDLFileEntryTypeLocalService(
309                    DLFileEntryTypeLocalService dlFileEntryTypeLocalService) {
310                    this.dlFileEntryTypeLocalService = dlFileEntryTypeLocalService;
311            }
312    
313            /**
314             * Returns the document library file entry type remote service.
315             *
316             * @return the document library file entry type remote service
317             */
318            public DLFileEntryTypeService getDLFileEntryTypeService() {
319                    return dlFileEntryTypeService;
320            }
321    
322            /**
323             * Sets the document library file entry type remote service.
324             *
325             * @param dlFileEntryTypeService the document library file entry type remote service
326             */
327            public void setDLFileEntryTypeService(
328                    DLFileEntryTypeService dlFileEntryTypeService) {
329                    this.dlFileEntryTypeService = dlFileEntryTypeService;
330            }
331    
332            /**
333             * Returns the document library file entry type persistence.
334             *
335             * @return the document library file entry type persistence
336             */
337            public DLFileEntryTypePersistence getDLFileEntryTypePersistence() {
338                    return dlFileEntryTypePersistence;
339            }
340    
341            /**
342             * Sets the document library file entry type persistence.
343             *
344             * @param dlFileEntryTypePersistence the document library file entry type persistence
345             */
346            public void setDLFileEntryTypePersistence(
347                    DLFileEntryTypePersistence dlFileEntryTypePersistence) {
348                    this.dlFileEntryTypePersistence = dlFileEntryTypePersistence;
349            }
350    
351            /**
352             * Returns the document library file entry type finder.
353             *
354             * @return the document library file entry type finder
355             */
356            public DLFileEntryTypeFinder getDLFileEntryTypeFinder() {
357                    return dlFileEntryTypeFinder;
358            }
359    
360            /**
361             * Sets the document library file entry type finder.
362             *
363             * @param dlFileEntryTypeFinder the document library file entry type finder
364             */
365            public void setDLFileEntryTypeFinder(
366                    DLFileEntryTypeFinder dlFileEntryTypeFinder) {
367                    this.dlFileEntryTypeFinder = dlFileEntryTypeFinder;
368            }
369    
370            /**
371             * Returns the document library file rank local service.
372             *
373             * @return the document library file rank local service
374             */
375            public DLFileRankLocalService getDLFileRankLocalService() {
376                    return dlFileRankLocalService;
377            }
378    
379            /**
380             * Sets the document library file rank local service.
381             *
382             * @param dlFileRankLocalService the document library file rank local service
383             */
384            public void setDLFileRankLocalService(
385                    DLFileRankLocalService dlFileRankLocalService) {
386                    this.dlFileRankLocalService = dlFileRankLocalService;
387            }
388    
389            /**
390             * Returns the document library file rank persistence.
391             *
392             * @return the document library file rank persistence
393             */
394            public DLFileRankPersistence getDLFileRankPersistence() {
395                    return dlFileRankPersistence;
396            }
397    
398            /**
399             * Sets the document library file rank persistence.
400             *
401             * @param dlFileRankPersistence the document library file rank persistence
402             */
403            public void setDLFileRankPersistence(
404                    DLFileRankPersistence dlFileRankPersistence) {
405                    this.dlFileRankPersistence = dlFileRankPersistence;
406            }
407    
408            /**
409             * Returns the document library file rank finder.
410             *
411             * @return the document library file rank finder
412             */
413            public DLFileRankFinder getDLFileRankFinder() {
414                    return dlFileRankFinder;
415            }
416    
417            /**
418             * Sets the document library file rank finder.
419             *
420             * @param dlFileRankFinder the document library file rank finder
421             */
422            public void setDLFileRankFinder(DLFileRankFinder dlFileRankFinder) {
423                    this.dlFileRankFinder = dlFileRankFinder;
424            }
425    
426            /**
427             * Returns the document library file shortcut local service.
428             *
429             * @return the document library file shortcut local service
430             */
431            public DLFileShortcutLocalService getDLFileShortcutLocalService() {
432                    return dlFileShortcutLocalService;
433            }
434    
435            /**
436             * Sets the document library file shortcut local service.
437             *
438             * @param dlFileShortcutLocalService the document library file shortcut local service
439             */
440            public void setDLFileShortcutLocalService(
441                    DLFileShortcutLocalService dlFileShortcutLocalService) {
442                    this.dlFileShortcutLocalService = dlFileShortcutLocalService;
443            }
444    
445            /**
446             * Returns the document library file shortcut remote service.
447             *
448             * @return the document library file shortcut remote service
449             */
450            public DLFileShortcutService getDLFileShortcutService() {
451                    return dlFileShortcutService;
452            }
453    
454            /**
455             * Sets the document library file shortcut remote service.
456             *
457             * @param dlFileShortcutService the document library file shortcut remote service
458             */
459            public void setDLFileShortcutService(
460                    DLFileShortcutService dlFileShortcutService) {
461                    this.dlFileShortcutService = dlFileShortcutService;
462            }
463    
464            /**
465             * Returns the document library file shortcut persistence.
466             *
467             * @return the document library file shortcut persistence
468             */
469            public DLFileShortcutPersistence getDLFileShortcutPersistence() {
470                    return dlFileShortcutPersistence;
471            }
472    
473            /**
474             * Sets the document library file shortcut persistence.
475             *
476             * @param dlFileShortcutPersistence the document library file shortcut persistence
477             */
478            public void setDLFileShortcutPersistence(
479                    DLFileShortcutPersistence dlFileShortcutPersistence) {
480                    this.dlFileShortcutPersistence = dlFileShortcutPersistence;
481            }
482    
483            /**
484             * Returns the document library file version local service.
485             *
486             * @return the document library file version local service
487             */
488            public DLFileVersionLocalService getDLFileVersionLocalService() {
489                    return dlFileVersionLocalService;
490            }
491    
492            /**
493             * Sets the document library file version local service.
494             *
495             * @param dlFileVersionLocalService the document library file version local service
496             */
497            public void setDLFileVersionLocalService(
498                    DLFileVersionLocalService dlFileVersionLocalService) {
499                    this.dlFileVersionLocalService = dlFileVersionLocalService;
500            }
501    
502            /**
503             * Returns the document library file version remote service.
504             *
505             * @return the document library file version remote service
506             */
507            public DLFileVersionService getDLFileVersionService() {
508                    return dlFileVersionService;
509            }
510    
511            /**
512             * Sets the document library file version remote service.
513             *
514             * @param dlFileVersionService the document library file version remote service
515             */
516            public void setDLFileVersionService(
517                    DLFileVersionService dlFileVersionService) {
518                    this.dlFileVersionService = dlFileVersionService;
519            }
520    
521            /**
522             * Returns the document library file version persistence.
523             *
524             * @return the document library file version persistence
525             */
526            public DLFileVersionPersistence getDLFileVersionPersistence() {
527                    return dlFileVersionPersistence;
528            }
529    
530            /**
531             * Sets the document library file version persistence.
532             *
533             * @param dlFileVersionPersistence the document library file version persistence
534             */
535            public void setDLFileVersionPersistence(
536                    DLFileVersionPersistence dlFileVersionPersistence) {
537                    this.dlFileVersionPersistence = dlFileVersionPersistence;
538            }
539    
540            /**
541             * Returns the document library folder local service.
542             *
543             * @return the document library folder local service
544             */
545            public DLFolderLocalService getDLFolderLocalService() {
546                    return dlFolderLocalService;
547            }
548    
549            /**
550             * Sets the document library folder local service.
551             *
552             * @param dlFolderLocalService the document library folder local service
553             */
554            public void setDLFolderLocalService(
555                    DLFolderLocalService dlFolderLocalService) {
556                    this.dlFolderLocalService = dlFolderLocalService;
557            }
558    
559            /**
560             * Returns the document library folder remote service.
561             *
562             * @return the document library folder remote service
563             */
564            public DLFolderService getDLFolderService() {
565                    return dlFolderService;
566            }
567    
568            /**
569             * Sets the document library folder remote service.
570             *
571             * @param dlFolderService the document library folder remote service
572             */
573            public void setDLFolderService(DLFolderService dlFolderService) {
574                    this.dlFolderService = dlFolderService;
575            }
576    
577            /**
578             * Returns the document library folder persistence.
579             *
580             * @return the document library folder persistence
581             */
582            public DLFolderPersistence getDLFolderPersistence() {
583                    return dlFolderPersistence;
584            }
585    
586            /**
587             * Sets the document library folder persistence.
588             *
589             * @param dlFolderPersistence the document library folder persistence
590             */
591            public void setDLFolderPersistence(DLFolderPersistence dlFolderPersistence) {
592                    this.dlFolderPersistence = dlFolderPersistence;
593            }
594    
595            /**
596             * Returns the document library folder finder.
597             *
598             * @return the document library folder finder
599             */
600            public DLFolderFinder getDLFolderFinder() {
601                    return dlFolderFinder;
602            }
603    
604            /**
605             * Sets the document library folder finder.
606             *
607             * @param dlFolderFinder the document library folder finder
608             */
609            public void setDLFolderFinder(DLFolderFinder dlFolderFinder) {
610                    this.dlFolderFinder = dlFolderFinder;
611            }
612    
613            /**
614             * Returns the d l sync local service.
615             *
616             * @return the d l sync local service
617             */
618            public DLSyncLocalService getDLSyncLocalService() {
619                    return dlSyncLocalService;
620            }
621    
622            /**
623             * Sets the d l sync local service.
624             *
625             * @param dlSyncLocalService the d l sync local service
626             */
627            public void setDLSyncLocalService(DLSyncLocalService dlSyncLocalService) {
628                    this.dlSyncLocalService = dlSyncLocalService;
629            }
630    
631            /**
632             * Returns the d l sync remote service.
633             *
634             * @return the d l sync remote service
635             */
636            public DLSyncService getDLSyncService() {
637                    return dlSyncService;
638            }
639    
640            /**
641             * Sets the d l sync remote service.
642             *
643             * @param dlSyncService the d l sync remote service
644             */
645            public void setDLSyncService(DLSyncService dlSyncService) {
646                    this.dlSyncService = dlSyncService;
647            }
648    
649            /**
650             * Returns the d l sync persistence.
651             *
652             * @return the d l sync persistence
653             */
654            public DLSyncPersistence getDLSyncPersistence() {
655                    return dlSyncPersistence;
656            }
657    
658            /**
659             * Sets the d l sync persistence.
660             *
661             * @param dlSyncPersistence the d l sync persistence
662             */
663            public void setDLSyncPersistence(DLSyncPersistence dlSyncPersistence) {
664                    this.dlSyncPersistence = dlSyncPersistence;
665            }
666    
667            /**
668             * Returns the counter local service.
669             *
670             * @return the counter local service
671             */
672            public CounterLocalService getCounterLocalService() {
673                    return counterLocalService;
674            }
675    
676            /**
677             * Sets the counter local service.
678             *
679             * @param counterLocalService the counter local service
680             */
681            public void setCounterLocalService(CounterLocalService counterLocalService) {
682                    this.counterLocalService = counterLocalService;
683            }
684    
685            /**
686             * Returns the resource local service.
687             *
688             * @return the resource local service
689             */
690            public ResourceLocalService getResourceLocalService() {
691                    return resourceLocalService;
692            }
693    
694            /**
695             * Sets the resource local service.
696             *
697             * @param resourceLocalService the resource local service
698             */
699            public void setResourceLocalService(
700                    ResourceLocalService resourceLocalService) {
701                    this.resourceLocalService = resourceLocalService;
702            }
703    
704            /**
705             * Returns the resource remote service.
706             *
707             * @return the resource remote service
708             */
709            public ResourceService getResourceService() {
710                    return resourceService;
711            }
712    
713            /**
714             * Sets the resource remote service.
715             *
716             * @param resourceService the resource remote service
717             */
718            public void setResourceService(ResourceService resourceService) {
719                    this.resourceService = resourceService;
720            }
721    
722            /**
723             * Returns the resource persistence.
724             *
725             * @return the resource persistence
726             */
727            public ResourcePersistence getResourcePersistence() {
728                    return resourcePersistence;
729            }
730    
731            /**
732             * Sets the resource persistence.
733             *
734             * @param resourcePersistence the resource persistence
735             */
736            public void setResourcePersistence(ResourcePersistence resourcePersistence) {
737                    this.resourcePersistence = resourcePersistence;
738            }
739    
740            /**
741             * Returns the resource finder.
742             *
743             * @return the resource finder
744             */
745            public ResourceFinder getResourceFinder() {
746                    return resourceFinder;
747            }
748    
749            /**
750             * Sets the resource finder.
751             *
752             * @param resourceFinder the resource finder
753             */
754            public void setResourceFinder(ResourceFinder resourceFinder) {
755                    this.resourceFinder = resourceFinder;
756            }
757    
758            /**
759             * Returns the user local service.
760             *
761             * @return the user local service
762             */
763            public UserLocalService getUserLocalService() {
764                    return userLocalService;
765            }
766    
767            /**
768             * Sets the user local service.
769             *
770             * @param userLocalService the user local service
771             */
772            public void setUserLocalService(UserLocalService userLocalService) {
773                    this.userLocalService = userLocalService;
774            }
775    
776            /**
777             * Returns the user remote service.
778             *
779             * @return the user remote service
780             */
781            public UserService getUserService() {
782                    return userService;
783            }
784    
785            /**
786             * Sets the user remote service.
787             *
788             * @param userService the user remote service
789             */
790            public void setUserService(UserService userService) {
791                    this.userService = userService;
792            }
793    
794            /**
795             * Returns the user persistence.
796             *
797             * @return the user persistence
798             */
799            public UserPersistence getUserPersistence() {
800                    return userPersistence;
801            }
802    
803            /**
804             * Sets the user persistence.
805             *
806             * @param userPersistence the user persistence
807             */
808            public void setUserPersistence(UserPersistence userPersistence) {
809                    this.userPersistence = userPersistence;
810            }
811    
812            /**
813             * Returns the user finder.
814             *
815             * @return the user finder
816             */
817            public UserFinder getUserFinder() {
818                    return userFinder;
819            }
820    
821            /**
822             * Sets the user finder.
823             *
824             * @param userFinder the user finder
825             */
826            public void setUserFinder(UserFinder userFinder) {
827                    this.userFinder = userFinder;
828            }
829    
830            public void afterPropertiesSet() {
831            }
832    
833            public void destroy() {
834            }
835    
836            /**
837             * Returns the Spring bean ID for this bean.
838             *
839             * @return the Spring bean ID for this bean
840             */
841            public String getBeanIdentifier() {
842                    return _beanIdentifier;
843            }
844    
845            /**
846             * Sets the Spring bean ID for this bean.
847             *
848             * @param beanIdentifier the Spring bean ID for this bean
849             */
850            public void setBeanIdentifier(String beanIdentifier) {
851                    _beanIdentifier = beanIdentifier;
852            }
853    
854            protected ClassLoader getClassLoader() {
855                    Class<?> clazz = getClass();
856    
857                    return clazz.getClassLoader();
858            }
859    
860            protected Class<?> getModelClass() {
861                    return DLFileVersion.class;
862            }
863    
864            protected String getModelClassName() {
865                    return DLFileVersion.class.getName();
866            }
867    
868            /**
869             * Performs an SQL query.
870             *
871             * @param sql the sql query
872             */
873            protected void runSQL(String sql) throws SystemException {
874                    try {
875                            DataSource dataSource = dlFileVersionPersistence.getDataSource();
876    
877                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
878                                            sql, new int[0]);
879    
880                            sqlUpdate.update();
881                    }
882                    catch (Exception e) {
883                            throw new SystemException(e);
884                    }
885            }
886    
887            @BeanReference(type = DLAppLocalService.class)
888            protected DLAppLocalService dlAppLocalService;
889            @BeanReference(type = DLAppService.class)
890            protected DLAppService dlAppService;
891            @BeanReference(type = DLAppHelperLocalService.class)
892            protected DLAppHelperLocalService dlAppHelperLocalService;
893            @BeanReference(type = DLContentLocalService.class)
894            protected DLContentLocalService dlContentLocalService;
895            @BeanReference(type = DLContentPersistence.class)
896            protected DLContentPersistence dlContentPersistence;
897            @BeanReference(type = DLFileEntryLocalService.class)
898            protected DLFileEntryLocalService dlFileEntryLocalService;
899            @BeanReference(type = DLFileEntryService.class)
900            protected DLFileEntryService dlFileEntryService;
901            @BeanReference(type = DLFileEntryPersistence.class)
902            protected DLFileEntryPersistence dlFileEntryPersistence;
903            @BeanReference(type = DLFileEntryFinder.class)
904            protected DLFileEntryFinder dlFileEntryFinder;
905            @BeanReference(type = DLFileEntryMetadataLocalService.class)
906            protected DLFileEntryMetadataLocalService dlFileEntryMetadataLocalService;
907            @BeanReference(type = DLFileEntryMetadataPersistence.class)
908            protected DLFileEntryMetadataPersistence dlFileEntryMetadataPersistence;
909            @BeanReference(type = DLFileEntryTypeLocalService.class)
910            protected DLFileEntryTypeLocalService dlFileEntryTypeLocalService;
911            @BeanReference(type = DLFileEntryTypeService.class)
912            protected DLFileEntryTypeService dlFileEntryTypeService;
913            @BeanReference(type = DLFileEntryTypePersistence.class)
914            protected DLFileEntryTypePersistence dlFileEntryTypePersistence;
915            @BeanReference(type = DLFileEntryTypeFinder.class)
916            protected DLFileEntryTypeFinder dlFileEntryTypeFinder;
917            @BeanReference(type = DLFileRankLocalService.class)
918            protected DLFileRankLocalService dlFileRankLocalService;
919            @BeanReference(type = DLFileRankPersistence.class)
920            protected DLFileRankPersistence dlFileRankPersistence;
921            @BeanReference(type = DLFileRankFinder.class)
922            protected DLFileRankFinder dlFileRankFinder;
923            @BeanReference(type = DLFileShortcutLocalService.class)
924            protected DLFileShortcutLocalService dlFileShortcutLocalService;
925            @BeanReference(type = DLFileShortcutService.class)
926            protected DLFileShortcutService dlFileShortcutService;
927            @BeanReference(type = DLFileShortcutPersistence.class)
928            protected DLFileShortcutPersistence dlFileShortcutPersistence;
929            @BeanReference(type = DLFileVersionLocalService.class)
930            protected DLFileVersionLocalService dlFileVersionLocalService;
931            @BeanReference(type = DLFileVersionService.class)
932            protected DLFileVersionService dlFileVersionService;
933            @BeanReference(type = DLFileVersionPersistence.class)
934            protected DLFileVersionPersistence dlFileVersionPersistence;
935            @BeanReference(type = DLFolderLocalService.class)
936            protected DLFolderLocalService dlFolderLocalService;
937            @BeanReference(type = DLFolderService.class)
938            protected DLFolderService dlFolderService;
939            @BeanReference(type = DLFolderPersistence.class)
940            protected DLFolderPersistence dlFolderPersistence;
941            @BeanReference(type = DLFolderFinder.class)
942            protected DLFolderFinder dlFolderFinder;
943            @BeanReference(type = DLSyncLocalService.class)
944            protected DLSyncLocalService dlSyncLocalService;
945            @BeanReference(type = DLSyncService.class)
946            protected DLSyncService dlSyncService;
947            @BeanReference(type = DLSyncPersistence.class)
948            protected DLSyncPersistence dlSyncPersistence;
949            @BeanReference(type = CounterLocalService.class)
950            protected CounterLocalService counterLocalService;
951            @BeanReference(type = ResourceLocalService.class)
952            protected ResourceLocalService resourceLocalService;
953            @BeanReference(type = ResourceService.class)
954            protected ResourceService resourceService;
955            @BeanReference(type = ResourcePersistence.class)
956            protected ResourcePersistence resourcePersistence;
957            @BeanReference(type = ResourceFinder.class)
958            protected ResourceFinder resourceFinder;
959            @BeanReference(type = UserLocalService.class)
960            protected UserLocalService userLocalService;
961            @BeanReference(type = UserService.class)
962            protected UserService userService;
963            @BeanReference(type = UserPersistence.class)
964            protected UserPersistence userPersistence;
965            @BeanReference(type = UserFinder.class)
966            protected UserFinder userFinder;
967            private String _beanIdentifier;
968    }