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.ResourceLocalService;
027    import com.liferay.portal.service.ResourceService;
028    import com.liferay.portal.service.UserLocalService;
029    import com.liferay.portal.service.UserService;
030    import com.liferay.portal.service.persistence.ResourceFinder;
031    import com.liferay.portal.service.persistence.ResourcePersistence;
032    import com.liferay.portal.service.persistence.UserFinder;
033    import com.liferay.portal.service.persistence.UserPersistence;
034    
035    import com.liferay.portlet.asset.service.AssetEntryLocalService;
036    import com.liferay.portlet.asset.service.AssetEntryService;
037    import com.liferay.portlet.asset.service.persistence.AssetEntryFinder;
038    import com.liferay.portlet.asset.service.persistence.AssetEntryPersistence;
039    import com.liferay.portlet.documentlibrary.model.DLFileVersion;
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 version 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.DLFileVersionLocalServiceImpl}.
066     * </p>
067     *
068     * <p>
069     * Never modify or reference this class directly. Always use {@link com.liferay.portlet.documentlibrary.service.DLFileVersionLocalServiceUtil} to access the d l file version local service.
070     * </p>
071     *
072     * @author Brian Wing Shun Chan
073     * @see com.liferay.portlet.documentlibrary.service.impl.DLFileVersionLocalServiceImpl
074     * @see com.liferay.portlet.documentlibrary.service.DLFileVersionLocalServiceUtil
075     * @generated
076     */
077    public abstract class DLFileVersionLocalServiceBaseImpl
078            implements DLFileVersionLocalService {
079            /**
080             * Adds the d l file version to the database. Also notifies the appropriate model listeners.
081             *
082             * @param dlFileVersion the d l file version to add
083             * @return the d l file version that was added
084             * @throws SystemException if a system exception occurred
085             */
086            public DLFileVersion addDLFileVersion(DLFileVersion dlFileVersion)
087                    throws SystemException {
088                    dlFileVersion.setNew(true);
089    
090                    return dlFileVersionPersistence.update(dlFileVersion, false);
091            }
092    
093            /**
094             * Creates a new d l file version with the primary key. Does not add the d l file version to the database.
095             *
096             * @param fileVersionId the primary key for the new d l file version
097             * @return the new d l file version
098             */
099            public DLFileVersion createDLFileVersion(long fileVersionId) {
100                    return dlFileVersionPersistence.create(fileVersionId);
101            }
102    
103            /**
104             * Deletes the d l file version with the primary key from the database. Also notifies the appropriate model listeners.
105             *
106             * @param fileVersionId the primary key of the d l file version to delete
107             * @throws PortalException if a d l file version with the primary key could not be found
108             * @throws SystemException if a system exception occurred
109             */
110            public void deleteDLFileVersion(long fileVersionId)
111                    throws PortalException, SystemException {
112                    dlFileVersionPersistence.remove(fileVersionId);
113            }
114    
115            /**
116             * Deletes the d l file version from the database. Also notifies the appropriate model listeners.
117             *
118             * @param dlFileVersion the d l file version to delete
119             * @throws SystemException if a system exception occurred
120             */
121            public void deleteDLFileVersion(DLFileVersion dlFileVersion)
122                    throws SystemException {
123                    dlFileVersionPersistence.remove(dlFileVersion);
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 dlFileVersionPersistence.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 dlFileVersionPersistence.findWithDynamicQuery(dynamicQuery,
156                            start, 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 dlFileVersionPersistence.findWithDynamicQuery(dynamicQuery,
177                            start, 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 dlFileVersionPersistence.countWithDynamicQuery(dynamicQuery);
190            }
191    
192            /**
193             * Gets the d l file version with the primary key.
194             *
195             * @param fileVersionId the primary key of the d l file version to get
196             * @return the d l file version
197             * @throws PortalException if a d l file version with the primary key could not be found
198             * @throws SystemException if a system exception occurred
199             */
200            public DLFileVersion getDLFileVersion(long fileVersionId)
201                    throws PortalException, SystemException {
202                    return dlFileVersionPersistence.findByPrimaryKey(fileVersionId);
203            }
204    
205            /**
206             * Gets a range of all the d l file versions.
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 versions to return
213             * @param end the upper bound of the range of d l file versions to return (not inclusive)
214             * @return the range of d l file versions
215             * @throws SystemException if a system exception occurred
216             */
217            public List<DLFileVersion> getDLFileVersions(int start, int end)
218                    throws SystemException {
219                    return dlFileVersionPersistence.findAll(start, end);
220            }
221    
222            /**
223             * Gets the number of d l file versions.
224             *
225             * @return the number of d l file versions
226             * @throws SystemException if a system exception occurred
227             */
228            public int getDLFileVersionsCount() throws SystemException {
229                    return dlFileVersionPersistence.countAll();
230            }
231    
232            /**
233             * Updates the d l file version in the database. Also notifies the appropriate model listeners.
234             *
235             * @param dlFileVersion the d l file version to update
236             * @return the d l file version that was updated
237             * @throws SystemException if a system exception occurred
238             */
239            public DLFileVersion updateDLFileVersion(DLFileVersion dlFileVersion)
240                    throws SystemException {
241                    dlFileVersion.setNew(false);
242    
243                    return dlFileVersionPersistence.update(dlFileVersion, true);
244            }
245    
246            /**
247             * Updates the d l file version in the database. Also notifies the appropriate model listeners.
248             *
249             * @param dlFileVersion the d l file version to update
250             * @param merge whether to merge the d l file version 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 version that was updated
252             * @throws SystemException if a system exception occurred
253             */
254            public DLFileVersion updateDLFileVersion(DLFileVersion dlFileVersion,
255                    boolean merge) throws SystemException {
256                    dlFileVersion.setNew(false);
257    
258                    return dlFileVersionPersistence.update(dlFileVersion, 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 resource local service.
580             *
581             * @return the resource local service
582             */
583            public ResourceLocalService getResourceLocalService() {
584                    return resourceLocalService;
585            }
586    
587            /**
588             * Sets the resource local service.
589             *
590             * @param resourceLocalService the resource local service
591             */
592            public void setResourceLocalService(
593                    ResourceLocalService resourceLocalService) {
594                    this.resourceLocalService = resourceLocalService;
595            }
596    
597            /**
598             * Gets the resource remote service.
599             *
600             * @return the resource remote service
601             */
602            public ResourceService getResourceService() {
603                    return resourceService;
604            }
605    
606            /**
607             * Sets the resource remote service.
608             *
609             * @param resourceService the resource remote service
610             */
611            public void setResourceService(ResourceService resourceService) {
612                    this.resourceService = resourceService;
613            }
614    
615            /**
616             * Gets the resource persistence.
617             *
618             * @return the resource persistence
619             */
620            public ResourcePersistence getResourcePersistence() {
621                    return resourcePersistence;
622            }
623    
624            /**
625             * Sets the resource persistence.
626             *
627             * @param resourcePersistence the resource persistence
628             */
629            public void setResourcePersistence(ResourcePersistence resourcePersistence) {
630                    this.resourcePersistence = resourcePersistence;
631            }
632    
633            /**
634             * Gets the resource finder.
635             *
636             * @return the resource finder
637             */
638            public ResourceFinder getResourceFinder() {
639                    return resourceFinder;
640            }
641    
642            /**
643             * Sets the resource finder.
644             *
645             * @param resourceFinder the resource finder
646             */
647            public void setResourceFinder(ResourceFinder resourceFinder) {
648                    this.resourceFinder = resourceFinder;
649            }
650    
651            /**
652             * Gets the user local service.
653             *
654             * @return the user local service
655             */
656            public UserLocalService getUserLocalService() {
657                    return userLocalService;
658            }
659    
660            /**
661             * Sets the user local service.
662             *
663             * @param userLocalService the user local service
664             */
665            public void setUserLocalService(UserLocalService userLocalService) {
666                    this.userLocalService = userLocalService;
667            }
668    
669            /**
670             * Gets the user remote service.
671             *
672             * @return the user remote service
673             */
674            public UserService getUserService() {
675                    return userService;
676            }
677    
678            /**
679             * Sets the user remote service.
680             *
681             * @param userService the user remote service
682             */
683            public void setUserService(UserService userService) {
684                    this.userService = userService;
685            }
686    
687            /**
688             * Gets the user persistence.
689             *
690             * @return the user persistence
691             */
692            public UserPersistence getUserPersistence() {
693                    return userPersistence;
694            }
695    
696            /**
697             * Sets the user persistence.
698             *
699             * @param userPersistence the user persistence
700             */
701            public void setUserPersistence(UserPersistence userPersistence) {
702                    this.userPersistence = userPersistence;
703            }
704    
705            /**
706             * Gets the user finder.
707             *
708             * @return the user finder
709             */
710            public UserFinder getUserFinder() {
711                    return userFinder;
712            }
713    
714            /**
715             * Sets the user finder.
716             *
717             * @param userFinder the user finder
718             */
719            public void setUserFinder(UserFinder userFinder) {
720                    this.userFinder = userFinder;
721            }
722    
723            /**
724             * Gets the asset entry local service.
725             *
726             * @return the asset entry local service
727             */
728            public AssetEntryLocalService getAssetEntryLocalService() {
729                    return assetEntryLocalService;
730            }
731    
732            /**
733             * Sets the asset entry local service.
734             *
735             * @param assetEntryLocalService the asset entry local service
736             */
737            public void setAssetEntryLocalService(
738                    AssetEntryLocalService assetEntryLocalService) {
739                    this.assetEntryLocalService = assetEntryLocalService;
740            }
741    
742            /**
743             * Gets the asset entry remote service.
744             *
745             * @return the asset entry remote service
746             */
747            public AssetEntryService getAssetEntryService() {
748                    return assetEntryService;
749            }
750    
751            /**
752             * Sets the asset entry remote service.
753             *
754             * @param assetEntryService the asset entry remote service
755             */
756            public void setAssetEntryService(AssetEntryService assetEntryService) {
757                    this.assetEntryService = assetEntryService;
758            }
759    
760            /**
761             * Gets the asset entry persistence.
762             *
763             * @return the asset entry persistence
764             */
765            public AssetEntryPersistence getAssetEntryPersistence() {
766                    return assetEntryPersistence;
767            }
768    
769            /**
770             * Sets the asset entry persistence.
771             *
772             * @param assetEntryPersistence the asset entry persistence
773             */
774            public void setAssetEntryPersistence(
775                    AssetEntryPersistence assetEntryPersistence) {
776                    this.assetEntryPersistence = assetEntryPersistence;
777            }
778    
779            /**
780             * Gets the asset entry finder.
781             *
782             * @return the asset entry finder
783             */
784            public AssetEntryFinder getAssetEntryFinder() {
785                    return assetEntryFinder;
786            }
787    
788            /**
789             * Sets the asset entry finder.
790             *
791             * @param assetEntryFinder the asset entry finder
792             */
793            public void setAssetEntryFinder(AssetEntryFinder assetEntryFinder) {
794                    this.assetEntryFinder = assetEntryFinder;
795            }
796    
797            /**
798             * Performs an SQL query.
799             *
800             * @param sql the sql query to perform
801             */
802            protected void runSQL(String sql) throws SystemException {
803                    try {
804                            DataSource dataSource = dlFileVersionPersistence.getDataSource();
805    
806                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
807                                            sql, new int[0]);
808    
809                            sqlUpdate.update();
810                    }
811                    catch (Exception e) {
812                            throw new SystemException(e);
813                    }
814            }
815    
816            @BeanReference(type = DLFileEntryLocalService.class)
817            protected DLFileEntryLocalService dlFileEntryLocalService;
818            @BeanReference(type = DLFileEntryService.class)
819            protected DLFileEntryService dlFileEntryService;
820            @BeanReference(type = DLFileEntryPersistence.class)
821            protected DLFileEntryPersistence dlFileEntryPersistence;
822            @BeanReference(type = DLFileEntryFinder.class)
823            protected DLFileEntryFinder dlFileEntryFinder;
824            @BeanReference(type = DLFileRankLocalService.class)
825            protected DLFileRankLocalService dlFileRankLocalService;
826            @BeanReference(type = DLFileRankPersistence.class)
827            protected DLFileRankPersistence dlFileRankPersistence;
828            @BeanReference(type = DLFileShortcutLocalService.class)
829            protected DLFileShortcutLocalService dlFileShortcutLocalService;
830            @BeanReference(type = DLFileShortcutService.class)
831            protected DLFileShortcutService dlFileShortcutService;
832            @BeanReference(type = DLFileShortcutPersistence.class)
833            protected DLFileShortcutPersistence dlFileShortcutPersistence;
834            @BeanReference(type = DLFileVersionLocalService.class)
835            protected DLFileVersionLocalService dlFileVersionLocalService;
836            @BeanReference(type = DLFileVersionService.class)
837            protected DLFileVersionService dlFileVersionService;
838            @BeanReference(type = DLFileVersionPersistence.class)
839            protected DLFileVersionPersistence dlFileVersionPersistence;
840            @BeanReference(type = DLFolderLocalService.class)
841            protected DLFolderLocalService dlFolderLocalService;
842            @BeanReference(type = DLFolderService.class)
843            protected DLFolderService dlFolderService;
844            @BeanReference(type = DLFolderPersistence.class)
845            protected DLFolderPersistence dlFolderPersistence;
846            @BeanReference(type = DLFolderFinder.class)
847            protected DLFolderFinder dlFolderFinder;
848            @BeanReference(type = CounterLocalService.class)
849            protected CounterLocalService counterLocalService;
850            @BeanReference(type = ResourceLocalService.class)
851            protected ResourceLocalService resourceLocalService;
852            @BeanReference(type = ResourceService.class)
853            protected ResourceService resourceService;
854            @BeanReference(type = ResourcePersistence.class)
855            protected ResourcePersistence resourcePersistence;
856            @BeanReference(type = ResourceFinder.class)
857            protected ResourceFinder resourceFinder;
858            @BeanReference(type = UserLocalService.class)
859            protected UserLocalService userLocalService;
860            @BeanReference(type = UserService.class)
861            protected UserService userService;
862            @BeanReference(type = UserPersistence.class)
863            protected UserPersistence userPersistence;
864            @BeanReference(type = UserFinder.class)
865            protected UserFinder userFinder;
866            @BeanReference(type = AssetEntryLocalService.class)
867            protected AssetEntryLocalService assetEntryLocalService;
868            @BeanReference(type = AssetEntryService.class)
869            protected AssetEntryService assetEntryService;
870            @BeanReference(type = AssetEntryPersistence.class)
871            protected AssetEntryPersistence assetEntryPersistence;
872            @BeanReference(type = AssetEntryFinder.class)
873            protected AssetEntryFinder assetEntryFinder;
874    }