001    /**
002     * Copyright (c) 2000-present 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.portal.service.base;
016    
017    import com.liferay.portal.kernel.bean.BeanReference;
018    import com.liferay.portal.kernel.bean.IdentifiableBean;
019    import com.liferay.portal.kernel.dao.db.DB;
020    import com.liferay.portal.kernel.dao.db.DBFactoryUtil;
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.model.Repository;
025    import com.liferay.portal.service.BaseServiceImpl;
026    import com.liferay.portal.service.RepositoryService;
027    import com.liferay.portal.service.persistence.ClassNamePersistence;
028    import com.liferay.portal.service.persistence.CompanyPersistence;
029    import com.liferay.portal.service.persistence.GroupFinder;
030    import com.liferay.portal.service.persistence.GroupPersistence;
031    import com.liferay.portal.service.persistence.RepositoryEntryPersistence;
032    import com.liferay.portal.service.persistence.RepositoryPersistence;
033    import com.liferay.portal.service.persistence.SystemEventPersistence;
034    import com.liferay.portal.service.persistence.UserFinder;
035    import com.liferay.portal.service.persistence.UserPersistence;
036    import com.liferay.portal.util.PortalUtil;
037    
038    import com.liferay.portlet.asset.service.persistence.AssetEntryFinder;
039    import com.liferay.portlet.asset.service.persistence.AssetEntryPersistence;
040    import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryFinder;
041    import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryPersistence;
042    import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryTypeFinder;
043    import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryTypePersistence;
044    import com.liferay.portlet.documentlibrary.service.persistence.DLFileVersionPersistence;
045    import com.liferay.portlet.documentlibrary.service.persistence.DLFolderFinder;
046    import com.liferay.portlet.documentlibrary.service.persistence.DLFolderPersistence;
047    import com.liferay.portlet.expando.service.persistence.ExpandoValuePersistence;
048    
049    import javax.sql.DataSource;
050    
051    /**
052     * Provides the base implementation for the repository remote service.
053     *
054     * <p>
055     * 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.portal.service.impl.RepositoryServiceImpl}.
056     * </p>
057     *
058     * @author Brian Wing Shun Chan
059     * @see com.liferay.portal.service.impl.RepositoryServiceImpl
060     * @see com.liferay.portal.service.RepositoryServiceUtil
061     * @generated
062     */
063    public abstract class RepositoryServiceBaseImpl extends BaseServiceImpl
064            implements RepositoryService, IdentifiableBean {
065            /*
066             * NOTE FOR DEVELOPERS:
067             *
068             * Never modify or reference this class directly. Always use {@link com.liferay.portal.service.RepositoryServiceUtil} to access the repository remote service.
069             */
070    
071            /**
072             * Returns the repository local service.
073             *
074             * @return the repository local service
075             */
076            public com.liferay.portal.service.RepositoryLocalService getRepositoryLocalService() {
077                    return repositoryLocalService;
078            }
079    
080            /**
081             * Sets the repository local service.
082             *
083             * @param repositoryLocalService the repository local service
084             */
085            public void setRepositoryLocalService(
086                    com.liferay.portal.service.RepositoryLocalService repositoryLocalService) {
087                    this.repositoryLocalService = repositoryLocalService;
088            }
089    
090            /**
091             * Returns the repository remote service.
092             *
093             * @return the repository remote service
094             */
095            public com.liferay.portal.service.RepositoryService getRepositoryService() {
096                    return repositoryService;
097            }
098    
099            /**
100             * Sets the repository remote service.
101             *
102             * @param repositoryService the repository remote service
103             */
104            public void setRepositoryService(
105                    com.liferay.portal.service.RepositoryService repositoryService) {
106                    this.repositoryService = repositoryService;
107            }
108    
109            /**
110             * Returns the repository persistence.
111             *
112             * @return the repository persistence
113             */
114            public RepositoryPersistence getRepositoryPersistence() {
115                    return repositoryPersistence;
116            }
117    
118            /**
119             * Sets the repository persistence.
120             *
121             * @param repositoryPersistence the repository persistence
122             */
123            public void setRepositoryPersistence(
124                    RepositoryPersistence repositoryPersistence) {
125                    this.repositoryPersistence = repositoryPersistence;
126            }
127    
128            /**
129             * Returns the counter local service.
130             *
131             * @return the counter local service
132             */
133            public com.liferay.counter.service.CounterLocalService getCounterLocalService() {
134                    return counterLocalService;
135            }
136    
137            /**
138             * Sets the counter local service.
139             *
140             * @param counterLocalService the counter local service
141             */
142            public void setCounterLocalService(
143                    com.liferay.counter.service.CounterLocalService counterLocalService) {
144                    this.counterLocalService = counterLocalService;
145            }
146    
147            /**
148             * Returns the class name local service.
149             *
150             * @return the class name local service
151             */
152            public com.liferay.portal.service.ClassNameLocalService getClassNameLocalService() {
153                    return classNameLocalService;
154            }
155    
156            /**
157             * Sets the class name local service.
158             *
159             * @param classNameLocalService the class name local service
160             */
161            public void setClassNameLocalService(
162                    com.liferay.portal.service.ClassNameLocalService classNameLocalService) {
163                    this.classNameLocalService = classNameLocalService;
164            }
165    
166            /**
167             * Returns the class name remote service.
168             *
169             * @return the class name remote service
170             */
171            public com.liferay.portal.service.ClassNameService getClassNameService() {
172                    return classNameService;
173            }
174    
175            /**
176             * Sets the class name remote service.
177             *
178             * @param classNameService the class name remote service
179             */
180            public void setClassNameService(
181                    com.liferay.portal.service.ClassNameService classNameService) {
182                    this.classNameService = classNameService;
183            }
184    
185            /**
186             * Returns the class name persistence.
187             *
188             * @return the class name persistence
189             */
190            public ClassNamePersistence getClassNamePersistence() {
191                    return classNamePersistence;
192            }
193    
194            /**
195             * Sets the class name persistence.
196             *
197             * @param classNamePersistence the class name persistence
198             */
199            public void setClassNamePersistence(
200                    ClassNamePersistence classNamePersistence) {
201                    this.classNamePersistence = classNamePersistence;
202            }
203    
204            /**
205             * Returns the company local service.
206             *
207             * @return the company local service
208             */
209            public com.liferay.portal.service.CompanyLocalService getCompanyLocalService() {
210                    return companyLocalService;
211            }
212    
213            /**
214             * Sets the company local service.
215             *
216             * @param companyLocalService the company local service
217             */
218            public void setCompanyLocalService(
219                    com.liferay.portal.service.CompanyLocalService companyLocalService) {
220                    this.companyLocalService = companyLocalService;
221            }
222    
223            /**
224             * Returns the company remote service.
225             *
226             * @return the company remote service
227             */
228            public com.liferay.portal.service.CompanyService getCompanyService() {
229                    return companyService;
230            }
231    
232            /**
233             * Sets the company remote service.
234             *
235             * @param companyService the company remote service
236             */
237            public void setCompanyService(
238                    com.liferay.portal.service.CompanyService companyService) {
239                    this.companyService = companyService;
240            }
241    
242            /**
243             * Returns the company persistence.
244             *
245             * @return the company persistence
246             */
247            public CompanyPersistence getCompanyPersistence() {
248                    return companyPersistence;
249            }
250    
251            /**
252             * Sets the company persistence.
253             *
254             * @param companyPersistence the company persistence
255             */
256            public void setCompanyPersistence(CompanyPersistence companyPersistence) {
257                    this.companyPersistence = companyPersistence;
258            }
259    
260            /**
261             * Returns the group local service.
262             *
263             * @return the group local service
264             */
265            public com.liferay.portal.service.GroupLocalService getGroupLocalService() {
266                    return groupLocalService;
267            }
268    
269            /**
270             * Sets the group local service.
271             *
272             * @param groupLocalService the group local service
273             */
274            public void setGroupLocalService(
275                    com.liferay.portal.service.GroupLocalService groupLocalService) {
276                    this.groupLocalService = groupLocalService;
277            }
278    
279            /**
280             * Returns the group remote service.
281             *
282             * @return the group remote service
283             */
284            public com.liferay.portal.service.GroupService getGroupService() {
285                    return groupService;
286            }
287    
288            /**
289             * Sets the group remote service.
290             *
291             * @param groupService the group remote service
292             */
293            public void setGroupService(
294                    com.liferay.portal.service.GroupService groupService) {
295                    this.groupService = groupService;
296            }
297    
298            /**
299             * Returns the group persistence.
300             *
301             * @return the group persistence
302             */
303            public GroupPersistence getGroupPersistence() {
304                    return groupPersistence;
305            }
306    
307            /**
308             * Sets the group persistence.
309             *
310             * @param groupPersistence the group persistence
311             */
312            public void setGroupPersistence(GroupPersistence groupPersistence) {
313                    this.groupPersistence = groupPersistence;
314            }
315    
316            /**
317             * Returns the group finder.
318             *
319             * @return the group finder
320             */
321            public GroupFinder getGroupFinder() {
322                    return groupFinder;
323            }
324    
325            /**
326             * Sets the group finder.
327             *
328             * @param groupFinder the group finder
329             */
330            public void setGroupFinder(GroupFinder groupFinder) {
331                    this.groupFinder = groupFinder;
332            }
333    
334            /**
335             * Returns the asset entry local service.
336             *
337             * @return the asset entry local service
338             */
339            public com.liferay.portlet.asset.service.AssetEntryLocalService getAssetEntryLocalService() {
340                    return assetEntryLocalService;
341            }
342    
343            /**
344             * Sets the asset entry local service.
345             *
346             * @param assetEntryLocalService the asset entry local service
347             */
348            public void setAssetEntryLocalService(
349                    com.liferay.portlet.asset.service.AssetEntryLocalService assetEntryLocalService) {
350                    this.assetEntryLocalService = assetEntryLocalService;
351            }
352    
353            /**
354             * Returns the asset entry remote service.
355             *
356             * @return the asset entry remote service
357             */
358            public com.liferay.portlet.asset.service.AssetEntryService getAssetEntryService() {
359                    return assetEntryService;
360            }
361    
362            /**
363             * Sets the asset entry remote service.
364             *
365             * @param assetEntryService the asset entry remote service
366             */
367            public void setAssetEntryService(
368                    com.liferay.portlet.asset.service.AssetEntryService assetEntryService) {
369                    this.assetEntryService = assetEntryService;
370            }
371    
372            /**
373             * Returns the asset entry persistence.
374             *
375             * @return the asset entry persistence
376             */
377            public AssetEntryPersistence getAssetEntryPersistence() {
378                    return assetEntryPersistence;
379            }
380    
381            /**
382             * Sets the asset entry persistence.
383             *
384             * @param assetEntryPersistence the asset entry persistence
385             */
386            public void setAssetEntryPersistence(
387                    AssetEntryPersistence assetEntryPersistence) {
388                    this.assetEntryPersistence = assetEntryPersistence;
389            }
390    
391            /**
392             * Returns the asset entry finder.
393             *
394             * @return the asset entry finder
395             */
396            public AssetEntryFinder getAssetEntryFinder() {
397                    return assetEntryFinder;
398            }
399    
400            /**
401             * Sets the asset entry finder.
402             *
403             * @param assetEntryFinder the asset entry finder
404             */
405            public void setAssetEntryFinder(AssetEntryFinder assetEntryFinder) {
406                    this.assetEntryFinder = assetEntryFinder;
407            }
408    
409            /**
410             * Returns the d l app helper local service.
411             *
412             * @return the d l app helper local service
413             */
414            public com.liferay.portlet.documentlibrary.service.DLAppHelperLocalService getDLAppHelperLocalService() {
415                    return dlAppHelperLocalService;
416            }
417    
418            /**
419             * Sets the d l app helper local service.
420             *
421             * @param dlAppHelperLocalService the d l app helper local service
422             */
423            public void setDLAppHelperLocalService(
424                    com.liferay.portlet.documentlibrary.service.DLAppHelperLocalService dlAppHelperLocalService) {
425                    this.dlAppHelperLocalService = dlAppHelperLocalService;
426            }
427    
428            /**
429             * Returns the document library file entry local service.
430             *
431             * @return the document library file entry local service
432             */
433            public com.liferay.portlet.documentlibrary.service.DLFileEntryLocalService getDLFileEntryLocalService() {
434                    return dlFileEntryLocalService;
435            }
436    
437            /**
438             * Sets the document library file entry local service.
439             *
440             * @param dlFileEntryLocalService the document library file entry local service
441             */
442            public void setDLFileEntryLocalService(
443                    com.liferay.portlet.documentlibrary.service.DLFileEntryLocalService dlFileEntryLocalService) {
444                    this.dlFileEntryLocalService = dlFileEntryLocalService;
445            }
446    
447            /**
448             * Returns the document library file entry remote service.
449             *
450             * @return the document library file entry remote service
451             */
452            public com.liferay.portlet.documentlibrary.service.DLFileEntryService getDLFileEntryService() {
453                    return dlFileEntryService;
454            }
455    
456            /**
457             * Sets the document library file entry remote service.
458             *
459             * @param dlFileEntryService the document library file entry remote service
460             */
461            public void setDLFileEntryService(
462                    com.liferay.portlet.documentlibrary.service.DLFileEntryService dlFileEntryService) {
463                    this.dlFileEntryService = dlFileEntryService;
464            }
465    
466            /**
467             * Returns the document library file entry persistence.
468             *
469             * @return the document library file entry persistence
470             */
471            public DLFileEntryPersistence getDLFileEntryPersistence() {
472                    return dlFileEntryPersistence;
473            }
474    
475            /**
476             * Sets the document library file entry persistence.
477             *
478             * @param dlFileEntryPersistence the document library file entry persistence
479             */
480            public void setDLFileEntryPersistence(
481                    DLFileEntryPersistence dlFileEntryPersistence) {
482                    this.dlFileEntryPersistence = dlFileEntryPersistence;
483            }
484    
485            /**
486             * Returns the document library file entry finder.
487             *
488             * @return the document library file entry finder
489             */
490            public DLFileEntryFinder getDLFileEntryFinder() {
491                    return dlFileEntryFinder;
492            }
493    
494            /**
495             * Sets the document library file entry finder.
496             *
497             * @param dlFileEntryFinder the document library file entry finder
498             */
499            public void setDLFileEntryFinder(DLFileEntryFinder dlFileEntryFinder) {
500                    this.dlFileEntryFinder = dlFileEntryFinder;
501            }
502    
503            /**
504             * Returns the document library file entry type local service.
505             *
506             * @return the document library file entry type local service
507             */
508            public com.liferay.portlet.documentlibrary.service.DLFileEntryTypeLocalService getDLFileEntryTypeLocalService() {
509                    return dlFileEntryTypeLocalService;
510            }
511    
512            /**
513             * Sets the document library file entry type local service.
514             *
515             * @param dlFileEntryTypeLocalService the document library file entry type local service
516             */
517            public void setDLFileEntryTypeLocalService(
518                    com.liferay.portlet.documentlibrary.service.DLFileEntryTypeLocalService dlFileEntryTypeLocalService) {
519                    this.dlFileEntryTypeLocalService = dlFileEntryTypeLocalService;
520            }
521    
522            /**
523             * Returns the document library file entry type remote service.
524             *
525             * @return the document library file entry type remote service
526             */
527            public com.liferay.portlet.documentlibrary.service.DLFileEntryTypeService getDLFileEntryTypeService() {
528                    return dlFileEntryTypeService;
529            }
530    
531            /**
532             * Sets the document library file entry type remote service.
533             *
534             * @param dlFileEntryTypeService the document library file entry type remote service
535             */
536            public void setDLFileEntryTypeService(
537                    com.liferay.portlet.documentlibrary.service.DLFileEntryTypeService dlFileEntryTypeService) {
538                    this.dlFileEntryTypeService = dlFileEntryTypeService;
539            }
540    
541            /**
542             * Returns the document library file entry type persistence.
543             *
544             * @return the document library file entry type persistence
545             */
546            public DLFileEntryTypePersistence getDLFileEntryTypePersistence() {
547                    return dlFileEntryTypePersistence;
548            }
549    
550            /**
551             * Sets the document library file entry type persistence.
552             *
553             * @param dlFileEntryTypePersistence the document library file entry type persistence
554             */
555            public void setDLFileEntryTypePersistence(
556                    DLFileEntryTypePersistence dlFileEntryTypePersistence) {
557                    this.dlFileEntryTypePersistence = dlFileEntryTypePersistence;
558            }
559    
560            /**
561             * Returns the document library file entry type finder.
562             *
563             * @return the document library file entry type finder
564             */
565            public DLFileEntryTypeFinder getDLFileEntryTypeFinder() {
566                    return dlFileEntryTypeFinder;
567            }
568    
569            /**
570             * Sets the document library file entry type finder.
571             *
572             * @param dlFileEntryTypeFinder the document library file entry type finder
573             */
574            public void setDLFileEntryTypeFinder(
575                    DLFileEntryTypeFinder dlFileEntryTypeFinder) {
576                    this.dlFileEntryTypeFinder = dlFileEntryTypeFinder;
577            }
578    
579            /**
580             * Returns the document library file version local service.
581             *
582             * @return the document library file version local service
583             */
584            public com.liferay.portlet.documentlibrary.service.DLFileVersionLocalService getDLFileVersionLocalService() {
585                    return dlFileVersionLocalService;
586            }
587    
588            /**
589             * Sets the document library file version local service.
590             *
591             * @param dlFileVersionLocalService the document library file version local service
592             */
593            public void setDLFileVersionLocalService(
594                    com.liferay.portlet.documentlibrary.service.DLFileVersionLocalService dlFileVersionLocalService) {
595                    this.dlFileVersionLocalService = dlFileVersionLocalService;
596            }
597    
598            /**
599             * Returns the document library file version remote service.
600             *
601             * @return the document library file version remote service
602             */
603            public com.liferay.portlet.documentlibrary.service.DLFileVersionService getDLFileVersionService() {
604                    return dlFileVersionService;
605            }
606    
607            /**
608             * Sets the document library file version remote service.
609             *
610             * @param dlFileVersionService the document library file version remote service
611             */
612            public void setDLFileVersionService(
613                    com.liferay.portlet.documentlibrary.service.DLFileVersionService dlFileVersionService) {
614                    this.dlFileVersionService = dlFileVersionService;
615            }
616    
617            /**
618             * Returns the document library file version persistence.
619             *
620             * @return the document library file version persistence
621             */
622            public DLFileVersionPersistence getDLFileVersionPersistence() {
623                    return dlFileVersionPersistence;
624            }
625    
626            /**
627             * Sets the document library file version persistence.
628             *
629             * @param dlFileVersionPersistence the document library file version persistence
630             */
631            public void setDLFileVersionPersistence(
632                    DLFileVersionPersistence dlFileVersionPersistence) {
633                    this.dlFileVersionPersistence = dlFileVersionPersistence;
634            }
635    
636            /**
637             * Returns the document library folder local service.
638             *
639             * @return the document library folder local service
640             */
641            public com.liferay.portlet.documentlibrary.service.DLFolderLocalService getDLFolderLocalService() {
642                    return dlFolderLocalService;
643            }
644    
645            /**
646             * Sets the document library folder local service.
647             *
648             * @param dlFolderLocalService the document library folder local service
649             */
650            public void setDLFolderLocalService(
651                    com.liferay.portlet.documentlibrary.service.DLFolderLocalService dlFolderLocalService) {
652                    this.dlFolderLocalService = dlFolderLocalService;
653            }
654    
655            /**
656             * Returns the document library folder remote service.
657             *
658             * @return the document library folder remote service
659             */
660            public com.liferay.portlet.documentlibrary.service.DLFolderService getDLFolderService() {
661                    return dlFolderService;
662            }
663    
664            /**
665             * Sets the document library folder remote service.
666             *
667             * @param dlFolderService the document library folder remote service
668             */
669            public void setDLFolderService(
670                    com.liferay.portlet.documentlibrary.service.DLFolderService dlFolderService) {
671                    this.dlFolderService = dlFolderService;
672            }
673    
674            /**
675             * Returns the document library folder persistence.
676             *
677             * @return the document library folder persistence
678             */
679            public DLFolderPersistence getDLFolderPersistence() {
680                    return dlFolderPersistence;
681            }
682    
683            /**
684             * Sets the document library folder persistence.
685             *
686             * @param dlFolderPersistence the document library folder persistence
687             */
688            public void setDLFolderPersistence(DLFolderPersistence dlFolderPersistence) {
689                    this.dlFolderPersistence = dlFolderPersistence;
690            }
691    
692            /**
693             * Returns the document library folder finder.
694             *
695             * @return the document library folder finder
696             */
697            public DLFolderFinder getDLFolderFinder() {
698                    return dlFolderFinder;
699            }
700    
701            /**
702             * Sets the document library folder finder.
703             *
704             * @param dlFolderFinder the document library folder finder
705             */
706            public void setDLFolderFinder(DLFolderFinder dlFolderFinder) {
707                    this.dlFolderFinder = dlFolderFinder;
708            }
709    
710            /**
711             * Returns the expando value local service.
712             *
713             * @return the expando value local service
714             */
715            public com.liferay.portlet.expando.service.ExpandoValueLocalService getExpandoValueLocalService() {
716                    return expandoValueLocalService;
717            }
718    
719            /**
720             * Sets the expando value local service.
721             *
722             * @param expandoValueLocalService the expando value local service
723             */
724            public void setExpandoValueLocalService(
725                    com.liferay.portlet.expando.service.ExpandoValueLocalService expandoValueLocalService) {
726                    this.expandoValueLocalService = expandoValueLocalService;
727            }
728    
729            /**
730             * Returns the expando value remote service.
731             *
732             * @return the expando value remote service
733             */
734            public com.liferay.portlet.expando.service.ExpandoValueService getExpandoValueService() {
735                    return expandoValueService;
736            }
737    
738            /**
739             * Sets the expando value remote service.
740             *
741             * @param expandoValueService the expando value remote service
742             */
743            public void setExpandoValueService(
744                    com.liferay.portlet.expando.service.ExpandoValueService expandoValueService) {
745                    this.expandoValueService = expandoValueService;
746            }
747    
748            /**
749             * Returns the expando value persistence.
750             *
751             * @return the expando value persistence
752             */
753            public ExpandoValuePersistence getExpandoValuePersistence() {
754                    return expandoValuePersistence;
755            }
756    
757            /**
758             * Sets the expando value persistence.
759             *
760             * @param expandoValuePersistence the expando value persistence
761             */
762            public void setExpandoValuePersistence(
763                    ExpandoValuePersistence expandoValuePersistence) {
764                    this.expandoValuePersistence = expandoValuePersistence;
765            }
766    
767            /**
768             * Returns the repository entry local service.
769             *
770             * @return the repository entry local service
771             */
772            public com.liferay.portal.service.RepositoryEntryLocalService getRepositoryEntryLocalService() {
773                    return repositoryEntryLocalService;
774            }
775    
776            /**
777             * Sets the repository entry local service.
778             *
779             * @param repositoryEntryLocalService the repository entry local service
780             */
781            public void setRepositoryEntryLocalService(
782                    com.liferay.portal.service.RepositoryEntryLocalService repositoryEntryLocalService) {
783                    this.repositoryEntryLocalService = repositoryEntryLocalService;
784            }
785    
786            /**
787             * Returns the repository entry persistence.
788             *
789             * @return the repository entry persistence
790             */
791            public RepositoryEntryPersistence getRepositoryEntryPersistence() {
792                    return repositoryEntryPersistence;
793            }
794    
795            /**
796             * Sets the repository entry persistence.
797             *
798             * @param repositoryEntryPersistence the repository entry persistence
799             */
800            public void setRepositoryEntryPersistence(
801                    RepositoryEntryPersistence repositoryEntryPersistence) {
802                    this.repositoryEntryPersistence = repositoryEntryPersistence;
803            }
804    
805            /**
806             * Returns the resource local service.
807             *
808             * @return the resource local service
809             */
810            public com.liferay.portal.service.ResourceLocalService getResourceLocalService() {
811                    return resourceLocalService;
812            }
813    
814            /**
815             * Sets the resource local service.
816             *
817             * @param resourceLocalService the resource local service
818             */
819            public void setResourceLocalService(
820                    com.liferay.portal.service.ResourceLocalService resourceLocalService) {
821                    this.resourceLocalService = resourceLocalService;
822            }
823    
824            /**
825             * Returns the system event local service.
826             *
827             * @return the system event local service
828             */
829            public com.liferay.portal.service.SystemEventLocalService getSystemEventLocalService() {
830                    return systemEventLocalService;
831            }
832    
833            /**
834             * Sets the system event local service.
835             *
836             * @param systemEventLocalService the system event local service
837             */
838            public void setSystemEventLocalService(
839                    com.liferay.portal.service.SystemEventLocalService systemEventLocalService) {
840                    this.systemEventLocalService = systemEventLocalService;
841            }
842    
843            /**
844             * Returns the system event persistence.
845             *
846             * @return the system event persistence
847             */
848            public SystemEventPersistence getSystemEventPersistence() {
849                    return systemEventPersistence;
850            }
851    
852            /**
853             * Sets the system event persistence.
854             *
855             * @param systemEventPersistence the system event persistence
856             */
857            public void setSystemEventPersistence(
858                    SystemEventPersistence systemEventPersistence) {
859                    this.systemEventPersistence = systemEventPersistence;
860            }
861    
862            /**
863             * Returns the user local service.
864             *
865             * @return the user local service
866             */
867            public com.liferay.portal.service.UserLocalService getUserLocalService() {
868                    return userLocalService;
869            }
870    
871            /**
872             * Sets the user local service.
873             *
874             * @param userLocalService the user local service
875             */
876            public void setUserLocalService(
877                    com.liferay.portal.service.UserLocalService userLocalService) {
878                    this.userLocalService = userLocalService;
879            }
880    
881            /**
882             * Returns the user remote service.
883             *
884             * @return the user remote service
885             */
886            public com.liferay.portal.service.UserService getUserService() {
887                    return userService;
888            }
889    
890            /**
891             * Sets the user remote service.
892             *
893             * @param userService the user remote service
894             */
895            public void setUserService(
896                    com.liferay.portal.service.UserService userService) {
897                    this.userService = userService;
898            }
899    
900            /**
901             * Returns the user persistence.
902             *
903             * @return the user persistence
904             */
905            public UserPersistence getUserPersistence() {
906                    return userPersistence;
907            }
908    
909            /**
910             * Sets the user persistence.
911             *
912             * @param userPersistence the user persistence
913             */
914            public void setUserPersistence(UserPersistence userPersistence) {
915                    this.userPersistence = userPersistence;
916            }
917    
918            /**
919             * Returns the user finder.
920             *
921             * @return the user finder
922             */
923            public UserFinder getUserFinder() {
924                    return userFinder;
925            }
926    
927            /**
928             * Sets the user finder.
929             *
930             * @param userFinder the user finder
931             */
932            public void setUserFinder(UserFinder userFinder) {
933                    this.userFinder = userFinder;
934            }
935    
936            public void afterPropertiesSet() {
937            }
938    
939            public void destroy() {
940            }
941    
942            /**
943             * Returns the Spring bean ID for this bean.
944             *
945             * @return the Spring bean ID for this bean
946             */
947            @Override
948            public String getBeanIdentifier() {
949                    return _beanIdentifier;
950            }
951    
952            /**
953             * Sets the Spring bean ID for this bean.
954             *
955             * @param beanIdentifier the Spring bean ID for this bean
956             */
957            @Override
958            public void setBeanIdentifier(String beanIdentifier) {
959                    _beanIdentifier = beanIdentifier;
960            }
961    
962            protected Class<?> getModelClass() {
963                    return Repository.class;
964            }
965    
966            protected String getModelClassName() {
967                    return Repository.class.getName();
968            }
969    
970            /**
971             * Performs a SQL query.
972             *
973             * @param sql the sql query
974             */
975            protected void runSQL(String sql) {
976                    try {
977                            DataSource dataSource = repositoryPersistence.getDataSource();
978    
979                            DB db = DBFactoryUtil.getDB();
980    
981                            sql = db.buildSQL(sql);
982                            sql = PortalUtil.transformSQL(sql);
983    
984                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
985                                            sql, new int[0]);
986    
987                            sqlUpdate.update();
988                    }
989                    catch (Exception e) {
990                            throw new SystemException(e);
991                    }
992            }
993    
994            @BeanReference(type = com.liferay.portal.service.RepositoryLocalService.class)
995            protected com.liferay.portal.service.RepositoryLocalService repositoryLocalService;
996            @BeanReference(type = com.liferay.portal.service.RepositoryService.class)
997            protected com.liferay.portal.service.RepositoryService repositoryService;
998            @BeanReference(type = RepositoryPersistence.class)
999            protected RepositoryPersistence repositoryPersistence;
1000            @BeanReference(type = com.liferay.counter.service.CounterLocalService.class)
1001            protected com.liferay.counter.service.CounterLocalService counterLocalService;
1002            @BeanReference(type = com.liferay.portal.service.ClassNameLocalService.class)
1003            protected com.liferay.portal.service.ClassNameLocalService classNameLocalService;
1004            @BeanReference(type = com.liferay.portal.service.ClassNameService.class)
1005            protected com.liferay.portal.service.ClassNameService classNameService;
1006            @BeanReference(type = ClassNamePersistence.class)
1007            protected ClassNamePersistence classNamePersistence;
1008            @BeanReference(type = com.liferay.portal.service.CompanyLocalService.class)
1009            protected com.liferay.portal.service.CompanyLocalService companyLocalService;
1010            @BeanReference(type = com.liferay.portal.service.CompanyService.class)
1011            protected com.liferay.portal.service.CompanyService companyService;
1012            @BeanReference(type = CompanyPersistence.class)
1013            protected CompanyPersistence companyPersistence;
1014            @BeanReference(type = com.liferay.portal.service.GroupLocalService.class)
1015            protected com.liferay.portal.service.GroupLocalService groupLocalService;
1016            @BeanReference(type = com.liferay.portal.service.GroupService.class)
1017            protected com.liferay.portal.service.GroupService groupService;
1018            @BeanReference(type = GroupPersistence.class)
1019            protected GroupPersistence groupPersistence;
1020            @BeanReference(type = GroupFinder.class)
1021            protected GroupFinder groupFinder;
1022            @BeanReference(type = com.liferay.portlet.asset.service.AssetEntryLocalService.class)
1023            protected com.liferay.portlet.asset.service.AssetEntryLocalService assetEntryLocalService;
1024            @BeanReference(type = com.liferay.portlet.asset.service.AssetEntryService.class)
1025            protected com.liferay.portlet.asset.service.AssetEntryService assetEntryService;
1026            @BeanReference(type = AssetEntryPersistence.class)
1027            protected AssetEntryPersistence assetEntryPersistence;
1028            @BeanReference(type = AssetEntryFinder.class)
1029            protected AssetEntryFinder assetEntryFinder;
1030            @BeanReference(type = com.liferay.portlet.documentlibrary.service.DLAppHelperLocalService.class)
1031            protected com.liferay.portlet.documentlibrary.service.DLAppHelperLocalService dlAppHelperLocalService;
1032            @BeanReference(type = com.liferay.portlet.documentlibrary.service.DLFileEntryLocalService.class)
1033            protected com.liferay.portlet.documentlibrary.service.DLFileEntryLocalService dlFileEntryLocalService;
1034            @BeanReference(type = com.liferay.portlet.documentlibrary.service.DLFileEntryService.class)
1035            protected com.liferay.portlet.documentlibrary.service.DLFileEntryService dlFileEntryService;
1036            @BeanReference(type = DLFileEntryPersistence.class)
1037            protected DLFileEntryPersistence dlFileEntryPersistence;
1038            @BeanReference(type = DLFileEntryFinder.class)
1039            protected DLFileEntryFinder dlFileEntryFinder;
1040            @BeanReference(type = com.liferay.portlet.documentlibrary.service.DLFileEntryTypeLocalService.class)
1041            protected com.liferay.portlet.documentlibrary.service.DLFileEntryTypeLocalService dlFileEntryTypeLocalService;
1042            @BeanReference(type = com.liferay.portlet.documentlibrary.service.DLFileEntryTypeService.class)
1043            protected com.liferay.portlet.documentlibrary.service.DLFileEntryTypeService dlFileEntryTypeService;
1044            @BeanReference(type = DLFileEntryTypePersistence.class)
1045            protected DLFileEntryTypePersistence dlFileEntryTypePersistence;
1046            @BeanReference(type = DLFileEntryTypeFinder.class)
1047            protected DLFileEntryTypeFinder dlFileEntryTypeFinder;
1048            @BeanReference(type = com.liferay.portlet.documentlibrary.service.DLFileVersionLocalService.class)
1049            protected com.liferay.portlet.documentlibrary.service.DLFileVersionLocalService dlFileVersionLocalService;
1050            @BeanReference(type = com.liferay.portlet.documentlibrary.service.DLFileVersionService.class)
1051            protected com.liferay.portlet.documentlibrary.service.DLFileVersionService dlFileVersionService;
1052            @BeanReference(type = DLFileVersionPersistence.class)
1053            protected DLFileVersionPersistence dlFileVersionPersistence;
1054            @BeanReference(type = com.liferay.portlet.documentlibrary.service.DLFolderLocalService.class)
1055            protected com.liferay.portlet.documentlibrary.service.DLFolderLocalService dlFolderLocalService;
1056            @BeanReference(type = com.liferay.portlet.documentlibrary.service.DLFolderService.class)
1057            protected com.liferay.portlet.documentlibrary.service.DLFolderService dlFolderService;
1058            @BeanReference(type = DLFolderPersistence.class)
1059            protected DLFolderPersistence dlFolderPersistence;
1060            @BeanReference(type = DLFolderFinder.class)
1061            protected DLFolderFinder dlFolderFinder;
1062            @BeanReference(type = com.liferay.portlet.expando.service.ExpandoValueLocalService.class)
1063            protected com.liferay.portlet.expando.service.ExpandoValueLocalService expandoValueLocalService;
1064            @BeanReference(type = com.liferay.portlet.expando.service.ExpandoValueService.class)
1065            protected com.liferay.portlet.expando.service.ExpandoValueService expandoValueService;
1066            @BeanReference(type = ExpandoValuePersistence.class)
1067            protected ExpandoValuePersistence expandoValuePersistence;
1068            @BeanReference(type = com.liferay.portal.service.RepositoryEntryLocalService.class)
1069            protected com.liferay.portal.service.RepositoryEntryLocalService repositoryEntryLocalService;
1070            @BeanReference(type = RepositoryEntryPersistence.class)
1071            protected RepositoryEntryPersistence repositoryEntryPersistence;
1072            @BeanReference(type = com.liferay.portal.service.ResourceLocalService.class)
1073            protected com.liferay.portal.service.ResourceLocalService resourceLocalService;
1074            @BeanReference(type = com.liferay.portal.service.SystemEventLocalService.class)
1075            protected com.liferay.portal.service.SystemEventLocalService systemEventLocalService;
1076            @BeanReference(type = SystemEventPersistence.class)
1077            protected SystemEventPersistence systemEventPersistence;
1078            @BeanReference(type = com.liferay.portal.service.UserLocalService.class)
1079            protected com.liferay.portal.service.UserLocalService userLocalService;
1080            @BeanReference(type = com.liferay.portal.service.UserService.class)
1081            protected com.liferay.portal.service.UserService userService;
1082            @BeanReference(type = UserPersistence.class)
1083            protected UserPersistence userPersistence;
1084            @BeanReference(type = UserFinder.class)
1085            protected UserFinder userFinder;
1086            private String _beanIdentifier;
1087    }