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.Role;
025    import com.liferay.portal.service.BaseServiceImpl;
026    import com.liferay.portal.service.RoleService;
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.LayoutFinder;
032    import com.liferay.portal.service.persistence.LayoutPersistence;
033    import com.liferay.portal.service.persistence.ResourceActionPersistence;
034    import com.liferay.portal.service.persistence.ResourceBlockFinder;
035    import com.liferay.portal.service.persistence.ResourceBlockPermissionPersistence;
036    import com.liferay.portal.service.persistence.ResourceBlockPersistence;
037    import com.liferay.portal.service.persistence.ResourcePermissionFinder;
038    import com.liferay.portal.service.persistence.ResourcePermissionPersistence;
039    import com.liferay.portal.service.persistence.ResourceTypePermissionFinder;
040    import com.liferay.portal.service.persistence.ResourceTypePermissionPersistence;
041    import com.liferay.portal.service.persistence.RoleFinder;
042    import com.liferay.portal.service.persistence.RolePersistence;
043    import com.liferay.portal.service.persistence.ShardPersistence;
044    import com.liferay.portal.service.persistence.TeamFinder;
045    import com.liferay.portal.service.persistence.TeamPersistence;
046    import com.liferay.portal.service.persistence.UserFinder;
047    import com.liferay.portal.service.persistence.UserGroupGroupRoleFinder;
048    import com.liferay.portal.service.persistence.UserGroupGroupRolePersistence;
049    import com.liferay.portal.service.persistence.UserGroupRoleFinder;
050    import com.liferay.portal.service.persistence.UserGroupRolePersistence;
051    import com.liferay.portal.service.persistence.UserPersistence;
052    import com.liferay.portal.util.PortalUtil;
053    
054    import com.liferay.portlet.expando.service.persistence.ExpandoRowPersistence;
055    
056    import javax.sql.DataSource;
057    
058    /**
059     * Provides the base implementation for the role remote service.
060     *
061     * <p>
062     * 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.RoleServiceImpl}.
063     * </p>
064     *
065     * @author Brian Wing Shun Chan
066     * @see com.liferay.portal.service.impl.RoleServiceImpl
067     * @see com.liferay.portal.service.RoleServiceUtil
068     * @generated
069     */
070    public abstract class RoleServiceBaseImpl extends BaseServiceImpl
071            implements RoleService, IdentifiableBean {
072            /*
073             * NOTE FOR DEVELOPERS:
074             *
075             * Never modify or reference this class directly. Always use {@link com.liferay.portal.service.RoleServiceUtil} to access the role remote service.
076             */
077    
078            /**
079             * Returns the role local service.
080             *
081             * @return the role local service
082             */
083            public com.liferay.portal.service.RoleLocalService getRoleLocalService() {
084                    return roleLocalService;
085            }
086    
087            /**
088             * Sets the role local service.
089             *
090             * @param roleLocalService the role local service
091             */
092            public void setRoleLocalService(
093                    com.liferay.portal.service.RoleLocalService roleLocalService) {
094                    this.roleLocalService = roleLocalService;
095            }
096    
097            /**
098             * Returns the role remote service.
099             *
100             * @return the role remote service
101             */
102            public com.liferay.portal.service.RoleService getRoleService() {
103                    return roleService;
104            }
105    
106            /**
107             * Sets the role remote service.
108             *
109             * @param roleService the role remote service
110             */
111            public void setRoleService(
112                    com.liferay.portal.service.RoleService roleService) {
113                    this.roleService = roleService;
114            }
115    
116            /**
117             * Returns the role persistence.
118             *
119             * @return the role persistence
120             */
121            public RolePersistence getRolePersistence() {
122                    return rolePersistence;
123            }
124    
125            /**
126             * Sets the role persistence.
127             *
128             * @param rolePersistence the role persistence
129             */
130            public void setRolePersistence(RolePersistence rolePersistence) {
131                    this.rolePersistence = rolePersistence;
132            }
133    
134            /**
135             * Returns the role finder.
136             *
137             * @return the role finder
138             */
139            public RoleFinder getRoleFinder() {
140                    return roleFinder;
141            }
142    
143            /**
144             * Sets the role finder.
145             *
146             * @param roleFinder the role finder
147             */
148            public void setRoleFinder(RoleFinder roleFinder) {
149                    this.roleFinder = roleFinder;
150            }
151    
152            /**
153             * Returns the counter local service.
154             *
155             * @return the counter local service
156             */
157            public com.liferay.counter.service.CounterLocalService getCounterLocalService() {
158                    return counterLocalService;
159            }
160    
161            /**
162             * Sets the counter local service.
163             *
164             * @param counterLocalService the counter local service
165             */
166            public void setCounterLocalService(
167                    com.liferay.counter.service.CounterLocalService counterLocalService) {
168                    this.counterLocalService = counterLocalService;
169            }
170    
171            /**
172             * Returns the class name local service.
173             *
174             * @return the class name local service
175             */
176            public com.liferay.portal.service.ClassNameLocalService getClassNameLocalService() {
177                    return classNameLocalService;
178            }
179    
180            /**
181             * Sets the class name local service.
182             *
183             * @param classNameLocalService the class name local service
184             */
185            public void setClassNameLocalService(
186                    com.liferay.portal.service.ClassNameLocalService classNameLocalService) {
187                    this.classNameLocalService = classNameLocalService;
188            }
189    
190            /**
191             * Returns the class name remote service.
192             *
193             * @return the class name remote service
194             */
195            public com.liferay.portal.service.ClassNameService getClassNameService() {
196                    return classNameService;
197            }
198    
199            /**
200             * Sets the class name remote service.
201             *
202             * @param classNameService the class name remote service
203             */
204            public void setClassNameService(
205                    com.liferay.portal.service.ClassNameService classNameService) {
206                    this.classNameService = classNameService;
207            }
208    
209            /**
210             * Returns the class name persistence.
211             *
212             * @return the class name persistence
213             */
214            public ClassNamePersistence getClassNamePersistence() {
215                    return classNamePersistence;
216            }
217    
218            /**
219             * Sets the class name persistence.
220             *
221             * @param classNamePersistence the class name persistence
222             */
223            public void setClassNamePersistence(
224                    ClassNamePersistence classNamePersistence) {
225                    this.classNamePersistence = classNamePersistence;
226            }
227    
228            /**
229             * Returns the company local service.
230             *
231             * @return the company local service
232             */
233            public com.liferay.portal.service.CompanyLocalService getCompanyLocalService() {
234                    return companyLocalService;
235            }
236    
237            /**
238             * Sets the company local service.
239             *
240             * @param companyLocalService the company local service
241             */
242            public void setCompanyLocalService(
243                    com.liferay.portal.service.CompanyLocalService companyLocalService) {
244                    this.companyLocalService = companyLocalService;
245            }
246    
247            /**
248             * Returns the company remote service.
249             *
250             * @return the company remote service
251             */
252            public com.liferay.portal.service.CompanyService getCompanyService() {
253                    return companyService;
254            }
255    
256            /**
257             * Sets the company remote service.
258             *
259             * @param companyService the company remote service
260             */
261            public void setCompanyService(
262                    com.liferay.portal.service.CompanyService companyService) {
263                    this.companyService = companyService;
264            }
265    
266            /**
267             * Returns the company persistence.
268             *
269             * @return the company persistence
270             */
271            public CompanyPersistence getCompanyPersistence() {
272                    return companyPersistence;
273            }
274    
275            /**
276             * Sets the company persistence.
277             *
278             * @param companyPersistence the company persistence
279             */
280            public void setCompanyPersistence(CompanyPersistence companyPersistence) {
281                    this.companyPersistence = companyPersistence;
282            }
283    
284            /**
285             * Returns the group local service.
286             *
287             * @return the group local service
288             */
289            public com.liferay.portal.service.GroupLocalService getGroupLocalService() {
290                    return groupLocalService;
291            }
292    
293            /**
294             * Sets the group local service.
295             *
296             * @param groupLocalService the group local service
297             */
298            public void setGroupLocalService(
299                    com.liferay.portal.service.GroupLocalService groupLocalService) {
300                    this.groupLocalService = groupLocalService;
301            }
302    
303            /**
304             * Returns the group remote service.
305             *
306             * @return the group remote service
307             */
308            public com.liferay.portal.service.GroupService getGroupService() {
309                    return groupService;
310            }
311    
312            /**
313             * Sets the group remote service.
314             *
315             * @param groupService the group remote service
316             */
317            public void setGroupService(
318                    com.liferay.portal.service.GroupService groupService) {
319                    this.groupService = groupService;
320            }
321    
322            /**
323             * Returns the group persistence.
324             *
325             * @return the group persistence
326             */
327            public GroupPersistence getGroupPersistence() {
328                    return groupPersistence;
329            }
330    
331            /**
332             * Sets the group persistence.
333             *
334             * @param groupPersistence the group persistence
335             */
336            public void setGroupPersistence(GroupPersistence groupPersistence) {
337                    this.groupPersistence = groupPersistence;
338            }
339    
340            /**
341             * Returns the group finder.
342             *
343             * @return the group finder
344             */
345            public GroupFinder getGroupFinder() {
346                    return groupFinder;
347            }
348    
349            /**
350             * Sets the group finder.
351             *
352             * @param groupFinder the group finder
353             */
354            public void setGroupFinder(GroupFinder groupFinder) {
355                    this.groupFinder = groupFinder;
356            }
357    
358            /**
359             * Returns the layout local service.
360             *
361             * @return the layout local service
362             */
363            public com.liferay.portal.service.LayoutLocalService getLayoutLocalService() {
364                    return layoutLocalService;
365            }
366    
367            /**
368             * Sets the layout local service.
369             *
370             * @param layoutLocalService the layout local service
371             */
372            public void setLayoutLocalService(
373                    com.liferay.portal.service.LayoutLocalService layoutLocalService) {
374                    this.layoutLocalService = layoutLocalService;
375            }
376    
377            /**
378             * Returns the layout remote service.
379             *
380             * @return the layout remote service
381             */
382            public com.liferay.portal.service.LayoutService getLayoutService() {
383                    return layoutService;
384            }
385    
386            /**
387             * Sets the layout remote service.
388             *
389             * @param layoutService the layout remote service
390             */
391            public void setLayoutService(
392                    com.liferay.portal.service.LayoutService layoutService) {
393                    this.layoutService = layoutService;
394            }
395    
396            /**
397             * Returns the layout persistence.
398             *
399             * @return the layout persistence
400             */
401            public LayoutPersistence getLayoutPersistence() {
402                    return layoutPersistence;
403            }
404    
405            /**
406             * Sets the layout persistence.
407             *
408             * @param layoutPersistence the layout persistence
409             */
410            public void setLayoutPersistence(LayoutPersistence layoutPersistence) {
411                    this.layoutPersistence = layoutPersistence;
412            }
413    
414            /**
415             * Returns the layout finder.
416             *
417             * @return the layout finder
418             */
419            public LayoutFinder getLayoutFinder() {
420                    return layoutFinder;
421            }
422    
423            /**
424             * Sets the layout finder.
425             *
426             * @param layoutFinder the layout finder
427             */
428            public void setLayoutFinder(LayoutFinder layoutFinder) {
429                    this.layoutFinder = layoutFinder;
430            }
431    
432            /**
433             * Returns the resource local service.
434             *
435             * @return the resource local service
436             */
437            public com.liferay.portal.service.ResourceLocalService getResourceLocalService() {
438                    return resourceLocalService;
439            }
440    
441            /**
442             * Sets the resource local service.
443             *
444             * @param resourceLocalService the resource local service
445             */
446            public void setResourceLocalService(
447                    com.liferay.portal.service.ResourceLocalService resourceLocalService) {
448                    this.resourceLocalService = resourceLocalService;
449            }
450    
451            /**
452             * Returns the resource action local service.
453             *
454             * @return the resource action local service
455             */
456            public com.liferay.portal.service.ResourceActionLocalService getResourceActionLocalService() {
457                    return resourceActionLocalService;
458            }
459    
460            /**
461             * Sets the resource action local service.
462             *
463             * @param resourceActionLocalService the resource action local service
464             */
465            public void setResourceActionLocalService(
466                    com.liferay.portal.service.ResourceActionLocalService resourceActionLocalService) {
467                    this.resourceActionLocalService = resourceActionLocalService;
468            }
469    
470            /**
471             * Returns the resource action persistence.
472             *
473             * @return the resource action persistence
474             */
475            public ResourceActionPersistence getResourceActionPersistence() {
476                    return resourceActionPersistence;
477            }
478    
479            /**
480             * Sets the resource action persistence.
481             *
482             * @param resourceActionPersistence the resource action persistence
483             */
484            public void setResourceActionPersistence(
485                    ResourceActionPersistence resourceActionPersistence) {
486                    this.resourceActionPersistence = resourceActionPersistence;
487            }
488    
489            /**
490             * Returns the resource block local service.
491             *
492             * @return the resource block local service
493             */
494            public com.liferay.portal.service.ResourceBlockLocalService getResourceBlockLocalService() {
495                    return resourceBlockLocalService;
496            }
497    
498            /**
499             * Sets the resource block local service.
500             *
501             * @param resourceBlockLocalService the resource block local service
502             */
503            public void setResourceBlockLocalService(
504                    com.liferay.portal.service.ResourceBlockLocalService resourceBlockLocalService) {
505                    this.resourceBlockLocalService = resourceBlockLocalService;
506            }
507    
508            /**
509             * Returns the resource block remote service.
510             *
511             * @return the resource block remote service
512             */
513            public com.liferay.portal.service.ResourceBlockService getResourceBlockService() {
514                    return resourceBlockService;
515            }
516    
517            /**
518             * Sets the resource block remote service.
519             *
520             * @param resourceBlockService the resource block remote service
521             */
522            public void setResourceBlockService(
523                    com.liferay.portal.service.ResourceBlockService resourceBlockService) {
524                    this.resourceBlockService = resourceBlockService;
525            }
526    
527            /**
528             * Returns the resource block persistence.
529             *
530             * @return the resource block persistence
531             */
532            public ResourceBlockPersistence getResourceBlockPersistence() {
533                    return resourceBlockPersistence;
534            }
535    
536            /**
537             * Sets the resource block persistence.
538             *
539             * @param resourceBlockPersistence the resource block persistence
540             */
541            public void setResourceBlockPersistence(
542                    ResourceBlockPersistence resourceBlockPersistence) {
543                    this.resourceBlockPersistence = resourceBlockPersistence;
544            }
545    
546            /**
547             * Returns the resource block finder.
548             *
549             * @return the resource block finder
550             */
551            public ResourceBlockFinder getResourceBlockFinder() {
552                    return resourceBlockFinder;
553            }
554    
555            /**
556             * Sets the resource block finder.
557             *
558             * @param resourceBlockFinder the resource block finder
559             */
560            public void setResourceBlockFinder(ResourceBlockFinder resourceBlockFinder) {
561                    this.resourceBlockFinder = resourceBlockFinder;
562            }
563    
564            /**
565             * Returns the resource block permission local service.
566             *
567             * @return the resource block permission local service
568             */
569            public com.liferay.portal.service.ResourceBlockPermissionLocalService getResourceBlockPermissionLocalService() {
570                    return resourceBlockPermissionLocalService;
571            }
572    
573            /**
574             * Sets the resource block permission local service.
575             *
576             * @param resourceBlockPermissionLocalService the resource block permission local service
577             */
578            public void setResourceBlockPermissionLocalService(
579                    com.liferay.portal.service.ResourceBlockPermissionLocalService resourceBlockPermissionLocalService) {
580                    this.resourceBlockPermissionLocalService = resourceBlockPermissionLocalService;
581            }
582    
583            /**
584             * Returns the resource block permission persistence.
585             *
586             * @return the resource block permission persistence
587             */
588            public ResourceBlockPermissionPersistence getResourceBlockPermissionPersistence() {
589                    return resourceBlockPermissionPersistence;
590            }
591    
592            /**
593             * Sets the resource block permission persistence.
594             *
595             * @param resourceBlockPermissionPersistence the resource block permission persistence
596             */
597            public void setResourceBlockPermissionPersistence(
598                    ResourceBlockPermissionPersistence resourceBlockPermissionPersistence) {
599                    this.resourceBlockPermissionPersistence = resourceBlockPermissionPersistence;
600            }
601    
602            /**
603             * Returns the resource permission local service.
604             *
605             * @return the resource permission local service
606             */
607            public com.liferay.portal.service.ResourcePermissionLocalService getResourcePermissionLocalService() {
608                    return resourcePermissionLocalService;
609            }
610    
611            /**
612             * Sets the resource permission local service.
613             *
614             * @param resourcePermissionLocalService the resource permission local service
615             */
616            public void setResourcePermissionLocalService(
617                    com.liferay.portal.service.ResourcePermissionLocalService resourcePermissionLocalService) {
618                    this.resourcePermissionLocalService = resourcePermissionLocalService;
619            }
620    
621            /**
622             * Returns the resource permission remote service.
623             *
624             * @return the resource permission remote service
625             */
626            public com.liferay.portal.service.ResourcePermissionService getResourcePermissionService() {
627                    return resourcePermissionService;
628            }
629    
630            /**
631             * Sets the resource permission remote service.
632             *
633             * @param resourcePermissionService the resource permission remote service
634             */
635            public void setResourcePermissionService(
636                    com.liferay.portal.service.ResourcePermissionService resourcePermissionService) {
637                    this.resourcePermissionService = resourcePermissionService;
638            }
639    
640            /**
641             * Returns the resource permission persistence.
642             *
643             * @return the resource permission persistence
644             */
645            public ResourcePermissionPersistence getResourcePermissionPersistence() {
646                    return resourcePermissionPersistence;
647            }
648    
649            /**
650             * Sets the resource permission persistence.
651             *
652             * @param resourcePermissionPersistence the resource permission persistence
653             */
654            public void setResourcePermissionPersistence(
655                    ResourcePermissionPersistence resourcePermissionPersistence) {
656                    this.resourcePermissionPersistence = resourcePermissionPersistence;
657            }
658    
659            /**
660             * Returns the resource permission finder.
661             *
662             * @return the resource permission finder
663             */
664            public ResourcePermissionFinder getResourcePermissionFinder() {
665                    return resourcePermissionFinder;
666            }
667    
668            /**
669             * Sets the resource permission finder.
670             *
671             * @param resourcePermissionFinder the resource permission finder
672             */
673            public void setResourcePermissionFinder(
674                    ResourcePermissionFinder resourcePermissionFinder) {
675                    this.resourcePermissionFinder = resourcePermissionFinder;
676            }
677    
678            /**
679             * Returns the resource type permission local service.
680             *
681             * @return the resource type permission local service
682             */
683            public com.liferay.portal.service.ResourceTypePermissionLocalService getResourceTypePermissionLocalService() {
684                    return resourceTypePermissionLocalService;
685            }
686    
687            /**
688             * Sets the resource type permission local service.
689             *
690             * @param resourceTypePermissionLocalService the resource type permission local service
691             */
692            public void setResourceTypePermissionLocalService(
693                    com.liferay.portal.service.ResourceTypePermissionLocalService resourceTypePermissionLocalService) {
694                    this.resourceTypePermissionLocalService = resourceTypePermissionLocalService;
695            }
696    
697            /**
698             * Returns the resource type permission persistence.
699             *
700             * @return the resource type permission persistence
701             */
702            public ResourceTypePermissionPersistence getResourceTypePermissionPersistence() {
703                    return resourceTypePermissionPersistence;
704            }
705    
706            /**
707             * Sets the resource type permission persistence.
708             *
709             * @param resourceTypePermissionPersistence the resource type permission persistence
710             */
711            public void setResourceTypePermissionPersistence(
712                    ResourceTypePermissionPersistence resourceTypePermissionPersistence) {
713                    this.resourceTypePermissionPersistence = resourceTypePermissionPersistence;
714            }
715    
716            /**
717             * Returns the resource type permission finder.
718             *
719             * @return the resource type permission finder
720             */
721            public ResourceTypePermissionFinder getResourceTypePermissionFinder() {
722                    return resourceTypePermissionFinder;
723            }
724    
725            /**
726             * Sets the resource type permission finder.
727             *
728             * @param resourceTypePermissionFinder the resource type permission finder
729             */
730            public void setResourceTypePermissionFinder(
731                    ResourceTypePermissionFinder resourceTypePermissionFinder) {
732                    this.resourceTypePermissionFinder = resourceTypePermissionFinder;
733            }
734    
735            /**
736             * Returns the expando row local service.
737             *
738             * @return the expando row local service
739             */
740            public com.liferay.portlet.expando.service.ExpandoRowLocalService getExpandoRowLocalService() {
741                    return expandoRowLocalService;
742            }
743    
744            /**
745             * Sets the expando row local service.
746             *
747             * @param expandoRowLocalService the expando row local service
748             */
749            public void setExpandoRowLocalService(
750                    com.liferay.portlet.expando.service.ExpandoRowLocalService expandoRowLocalService) {
751                    this.expandoRowLocalService = expandoRowLocalService;
752            }
753    
754            /**
755             * Returns the expando row persistence.
756             *
757             * @return the expando row persistence
758             */
759            public ExpandoRowPersistence getExpandoRowPersistence() {
760                    return expandoRowPersistence;
761            }
762    
763            /**
764             * Sets the expando row persistence.
765             *
766             * @param expandoRowPersistence the expando row persistence
767             */
768            public void setExpandoRowPersistence(
769                    ExpandoRowPersistence expandoRowPersistence) {
770                    this.expandoRowPersistence = expandoRowPersistence;
771            }
772    
773            /**
774             * Returns the shard local service.
775             *
776             * @return the shard local service
777             */
778            public com.liferay.portal.service.ShardLocalService getShardLocalService() {
779                    return shardLocalService;
780            }
781    
782            /**
783             * Sets the shard local service.
784             *
785             * @param shardLocalService the shard local service
786             */
787            public void setShardLocalService(
788                    com.liferay.portal.service.ShardLocalService shardLocalService) {
789                    this.shardLocalService = shardLocalService;
790            }
791    
792            /**
793             * Returns the shard persistence.
794             *
795             * @return the shard persistence
796             */
797            public ShardPersistence getShardPersistence() {
798                    return shardPersistence;
799            }
800    
801            /**
802             * Sets the shard persistence.
803             *
804             * @param shardPersistence the shard persistence
805             */
806            public void setShardPersistence(ShardPersistence shardPersistence) {
807                    this.shardPersistence = shardPersistence;
808            }
809    
810            /**
811             * Returns the team local service.
812             *
813             * @return the team local service
814             */
815            public com.liferay.portal.service.TeamLocalService getTeamLocalService() {
816                    return teamLocalService;
817            }
818    
819            /**
820             * Sets the team local service.
821             *
822             * @param teamLocalService the team local service
823             */
824            public void setTeamLocalService(
825                    com.liferay.portal.service.TeamLocalService teamLocalService) {
826                    this.teamLocalService = teamLocalService;
827            }
828    
829            /**
830             * Returns the team remote service.
831             *
832             * @return the team remote service
833             */
834            public com.liferay.portal.service.TeamService getTeamService() {
835                    return teamService;
836            }
837    
838            /**
839             * Sets the team remote service.
840             *
841             * @param teamService the team remote service
842             */
843            public void setTeamService(
844                    com.liferay.portal.service.TeamService teamService) {
845                    this.teamService = teamService;
846            }
847    
848            /**
849             * Returns the team persistence.
850             *
851             * @return the team persistence
852             */
853            public TeamPersistence getTeamPersistence() {
854                    return teamPersistence;
855            }
856    
857            /**
858             * Sets the team persistence.
859             *
860             * @param teamPersistence the team persistence
861             */
862            public void setTeamPersistence(TeamPersistence teamPersistence) {
863                    this.teamPersistence = teamPersistence;
864            }
865    
866            /**
867             * Returns the team finder.
868             *
869             * @return the team finder
870             */
871            public TeamFinder getTeamFinder() {
872                    return teamFinder;
873            }
874    
875            /**
876             * Sets the team finder.
877             *
878             * @param teamFinder the team finder
879             */
880            public void setTeamFinder(TeamFinder teamFinder) {
881                    this.teamFinder = teamFinder;
882            }
883    
884            /**
885             * Returns the user local service.
886             *
887             * @return the user local service
888             */
889            public com.liferay.portal.service.UserLocalService getUserLocalService() {
890                    return userLocalService;
891            }
892    
893            /**
894             * Sets the user local service.
895             *
896             * @param userLocalService the user local service
897             */
898            public void setUserLocalService(
899                    com.liferay.portal.service.UserLocalService userLocalService) {
900                    this.userLocalService = userLocalService;
901            }
902    
903            /**
904             * Returns the user remote service.
905             *
906             * @return the user remote service
907             */
908            public com.liferay.portal.service.UserService getUserService() {
909                    return userService;
910            }
911    
912            /**
913             * Sets the user remote service.
914             *
915             * @param userService the user remote service
916             */
917            public void setUserService(
918                    com.liferay.portal.service.UserService userService) {
919                    this.userService = userService;
920            }
921    
922            /**
923             * Returns the user persistence.
924             *
925             * @return the user persistence
926             */
927            public UserPersistence getUserPersistence() {
928                    return userPersistence;
929            }
930    
931            /**
932             * Sets the user persistence.
933             *
934             * @param userPersistence the user persistence
935             */
936            public void setUserPersistence(UserPersistence userPersistence) {
937                    this.userPersistence = userPersistence;
938            }
939    
940            /**
941             * Returns the user finder.
942             *
943             * @return the user finder
944             */
945            public UserFinder getUserFinder() {
946                    return userFinder;
947            }
948    
949            /**
950             * Sets the user finder.
951             *
952             * @param userFinder the user finder
953             */
954            public void setUserFinder(UserFinder userFinder) {
955                    this.userFinder = userFinder;
956            }
957    
958            /**
959             * Returns the user group group role local service.
960             *
961             * @return the user group group role local service
962             */
963            public com.liferay.portal.service.UserGroupGroupRoleLocalService getUserGroupGroupRoleLocalService() {
964                    return userGroupGroupRoleLocalService;
965            }
966    
967            /**
968             * Sets the user group group role local service.
969             *
970             * @param userGroupGroupRoleLocalService the user group group role local service
971             */
972            public void setUserGroupGroupRoleLocalService(
973                    com.liferay.portal.service.UserGroupGroupRoleLocalService userGroupGroupRoleLocalService) {
974                    this.userGroupGroupRoleLocalService = userGroupGroupRoleLocalService;
975            }
976    
977            /**
978             * Returns the user group group role remote service.
979             *
980             * @return the user group group role remote service
981             */
982            public com.liferay.portal.service.UserGroupGroupRoleService getUserGroupGroupRoleService() {
983                    return userGroupGroupRoleService;
984            }
985    
986            /**
987             * Sets the user group group role remote service.
988             *
989             * @param userGroupGroupRoleService the user group group role remote service
990             */
991            public void setUserGroupGroupRoleService(
992                    com.liferay.portal.service.UserGroupGroupRoleService userGroupGroupRoleService) {
993                    this.userGroupGroupRoleService = userGroupGroupRoleService;
994            }
995    
996            /**
997             * Returns the user group group role persistence.
998             *
999             * @return the user group group role persistence
1000             */
1001            public UserGroupGroupRolePersistence getUserGroupGroupRolePersistence() {
1002                    return userGroupGroupRolePersistence;
1003            }
1004    
1005            /**
1006             * Sets the user group group role persistence.
1007             *
1008             * @param userGroupGroupRolePersistence the user group group role persistence
1009             */
1010            public void setUserGroupGroupRolePersistence(
1011                    UserGroupGroupRolePersistence userGroupGroupRolePersistence) {
1012                    this.userGroupGroupRolePersistence = userGroupGroupRolePersistence;
1013            }
1014    
1015            /**
1016             * Returns the user group group role finder.
1017             *
1018             * @return the user group group role finder
1019             */
1020            public UserGroupGroupRoleFinder getUserGroupGroupRoleFinder() {
1021                    return userGroupGroupRoleFinder;
1022            }
1023    
1024            /**
1025             * Sets the user group group role finder.
1026             *
1027             * @param userGroupGroupRoleFinder the user group group role finder
1028             */
1029            public void setUserGroupGroupRoleFinder(
1030                    UserGroupGroupRoleFinder userGroupGroupRoleFinder) {
1031                    this.userGroupGroupRoleFinder = userGroupGroupRoleFinder;
1032            }
1033    
1034            /**
1035             * Returns the user group role local service.
1036             *
1037             * @return the user group role local service
1038             */
1039            public com.liferay.portal.service.UserGroupRoleLocalService getUserGroupRoleLocalService() {
1040                    return userGroupRoleLocalService;
1041            }
1042    
1043            /**
1044             * Sets the user group role local service.
1045             *
1046             * @param userGroupRoleLocalService the user group role local service
1047             */
1048            public void setUserGroupRoleLocalService(
1049                    com.liferay.portal.service.UserGroupRoleLocalService userGroupRoleLocalService) {
1050                    this.userGroupRoleLocalService = userGroupRoleLocalService;
1051            }
1052    
1053            /**
1054             * Returns the user group role remote service.
1055             *
1056             * @return the user group role remote service
1057             */
1058            public com.liferay.portal.service.UserGroupRoleService getUserGroupRoleService() {
1059                    return userGroupRoleService;
1060            }
1061    
1062            /**
1063             * Sets the user group role remote service.
1064             *
1065             * @param userGroupRoleService the user group role remote service
1066             */
1067            public void setUserGroupRoleService(
1068                    com.liferay.portal.service.UserGroupRoleService userGroupRoleService) {
1069                    this.userGroupRoleService = userGroupRoleService;
1070            }
1071    
1072            /**
1073             * Returns the user group role persistence.
1074             *
1075             * @return the user group role persistence
1076             */
1077            public UserGroupRolePersistence getUserGroupRolePersistence() {
1078                    return userGroupRolePersistence;
1079            }
1080    
1081            /**
1082             * Sets the user group role persistence.
1083             *
1084             * @param userGroupRolePersistence the user group role persistence
1085             */
1086            public void setUserGroupRolePersistence(
1087                    UserGroupRolePersistence userGroupRolePersistence) {
1088                    this.userGroupRolePersistence = userGroupRolePersistence;
1089            }
1090    
1091            /**
1092             * Returns the user group role finder.
1093             *
1094             * @return the user group role finder
1095             */
1096            public UserGroupRoleFinder getUserGroupRoleFinder() {
1097                    return userGroupRoleFinder;
1098            }
1099    
1100            /**
1101             * Sets the user group role finder.
1102             *
1103             * @param userGroupRoleFinder the user group role finder
1104             */
1105            public void setUserGroupRoleFinder(UserGroupRoleFinder userGroupRoleFinder) {
1106                    this.userGroupRoleFinder = userGroupRoleFinder;
1107            }
1108    
1109            public void afterPropertiesSet() {
1110            }
1111    
1112            public void destroy() {
1113            }
1114    
1115            /**
1116             * Returns the Spring bean ID for this bean.
1117             *
1118             * @return the Spring bean ID for this bean
1119             */
1120            @Override
1121            public String getBeanIdentifier() {
1122                    return _beanIdentifier;
1123            }
1124    
1125            /**
1126             * Sets the Spring bean ID for this bean.
1127             *
1128             * @param beanIdentifier the Spring bean ID for this bean
1129             */
1130            @Override
1131            public void setBeanIdentifier(String beanIdentifier) {
1132                    _beanIdentifier = beanIdentifier;
1133            }
1134    
1135            protected Class<?> getModelClass() {
1136                    return Role.class;
1137            }
1138    
1139            protected String getModelClassName() {
1140                    return Role.class.getName();
1141            }
1142    
1143            /**
1144             * Performs a SQL query.
1145             *
1146             * @param sql the sql query
1147             */
1148            protected void runSQL(String sql) {
1149                    try {
1150                            DataSource dataSource = rolePersistence.getDataSource();
1151    
1152                            DB db = DBFactoryUtil.getDB();
1153    
1154                            sql = db.buildSQL(sql);
1155                            sql = PortalUtil.transformSQL(sql);
1156    
1157                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
1158                                            sql, new int[0]);
1159    
1160                            sqlUpdate.update();
1161                    }
1162                    catch (Exception e) {
1163                            throw new SystemException(e);
1164                    }
1165            }
1166    
1167            @BeanReference(type = com.liferay.portal.service.RoleLocalService.class)
1168            protected com.liferay.portal.service.RoleLocalService roleLocalService;
1169            @BeanReference(type = com.liferay.portal.service.RoleService.class)
1170            protected com.liferay.portal.service.RoleService roleService;
1171            @BeanReference(type = RolePersistence.class)
1172            protected RolePersistence rolePersistence;
1173            @BeanReference(type = RoleFinder.class)
1174            protected RoleFinder roleFinder;
1175            @BeanReference(type = com.liferay.counter.service.CounterLocalService.class)
1176            protected com.liferay.counter.service.CounterLocalService counterLocalService;
1177            @BeanReference(type = com.liferay.portal.service.ClassNameLocalService.class)
1178            protected com.liferay.portal.service.ClassNameLocalService classNameLocalService;
1179            @BeanReference(type = com.liferay.portal.service.ClassNameService.class)
1180            protected com.liferay.portal.service.ClassNameService classNameService;
1181            @BeanReference(type = ClassNamePersistence.class)
1182            protected ClassNamePersistence classNamePersistence;
1183            @BeanReference(type = com.liferay.portal.service.CompanyLocalService.class)
1184            protected com.liferay.portal.service.CompanyLocalService companyLocalService;
1185            @BeanReference(type = com.liferay.portal.service.CompanyService.class)
1186            protected com.liferay.portal.service.CompanyService companyService;
1187            @BeanReference(type = CompanyPersistence.class)
1188            protected CompanyPersistence companyPersistence;
1189            @BeanReference(type = com.liferay.portal.service.GroupLocalService.class)
1190            protected com.liferay.portal.service.GroupLocalService groupLocalService;
1191            @BeanReference(type = com.liferay.portal.service.GroupService.class)
1192            protected com.liferay.portal.service.GroupService groupService;
1193            @BeanReference(type = GroupPersistence.class)
1194            protected GroupPersistence groupPersistence;
1195            @BeanReference(type = GroupFinder.class)
1196            protected GroupFinder groupFinder;
1197            @BeanReference(type = com.liferay.portal.service.LayoutLocalService.class)
1198            protected com.liferay.portal.service.LayoutLocalService layoutLocalService;
1199            @BeanReference(type = com.liferay.portal.service.LayoutService.class)
1200            protected com.liferay.portal.service.LayoutService layoutService;
1201            @BeanReference(type = LayoutPersistence.class)
1202            protected LayoutPersistence layoutPersistence;
1203            @BeanReference(type = LayoutFinder.class)
1204            protected LayoutFinder layoutFinder;
1205            @BeanReference(type = com.liferay.portal.service.ResourceLocalService.class)
1206            protected com.liferay.portal.service.ResourceLocalService resourceLocalService;
1207            @BeanReference(type = com.liferay.portal.service.ResourceActionLocalService.class)
1208            protected com.liferay.portal.service.ResourceActionLocalService resourceActionLocalService;
1209            @BeanReference(type = ResourceActionPersistence.class)
1210            protected ResourceActionPersistence resourceActionPersistence;
1211            @BeanReference(type = com.liferay.portal.service.ResourceBlockLocalService.class)
1212            protected com.liferay.portal.service.ResourceBlockLocalService resourceBlockLocalService;
1213            @BeanReference(type = com.liferay.portal.service.ResourceBlockService.class)
1214            protected com.liferay.portal.service.ResourceBlockService resourceBlockService;
1215            @BeanReference(type = ResourceBlockPersistence.class)
1216            protected ResourceBlockPersistence resourceBlockPersistence;
1217            @BeanReference(type = ResourceBlockFinder.class)
1218            protected ResourceBlockFinder resourceBlockFinder;
1219            @BeanReference(type = com.liferay.portal.service.ResourceBlockPermissionLocalService.class)
1220            protected com.liferay.portal.service.ResourceBlockPermissionLocalService resourceBlockPermissionLocalService;
1221            @BeanReference(type = ResourceBlockPermissionPersistence.class)
1222            protected ResourceBlockPermissionPersistence resourceBlockPermissionPersistence;
1223            @BeanReference(type = com.liferay.portal.service.ResourcePermissionLocalService.class)
1224            protected com.liferay.portal.service.ResourcePermissionLocalService resourcePermissionLocalService;
1225            @BeanReference(type = com.liferay.portal.service.ResourcePermissionService.class)
1226            protected com.liferay.portal.service.ResourcePermissionService resourcePermissionService;
1227            @BeanReference(type = ResourcePermissionPersistence.class)
1228            protected ResourcePermissionPersistence resourcePermissionPersistence;
1229            @BeanReference(type = ResourcePermissionFinder.class)
1230            protected ResourcePermissionFinder resourcePermissionFinder;
1231            @BeanReference(type = com.liferay.portal.service.ResourceTypePermissionLocalService.class)
1232            protected com.liferay.portal.service.ResourceTypePermissionLocalService resourceTypePermissionLocalService;
1233            @BeanReference(type = ResourceTypePermissionPersistence.class)
1234            protected ResourceTypePermissionPersistence resourceTypePermissionPersistence;
1235            @BeanReference(type = ResourceTypePermissionFinder.class)
1236            protected ResourceTypePermissionFinder resourceTypePermissionFinder;
1237            @BeanReference(type = com.liferay.portlet.expando.service.ExpandoRowLocalService.class)
1238            protected com.liferay.portlet.expando.service.ExpandoRowLocalService expandoRowLocalService;
1239            @BeanReference(type = ExpandoRowPersistence.class)
1240            protected ExpandoRowPersistence expandoRowPersistence;
1241            @BeanReference(type = com.liferay.portal.service.ShardLocalService.class)
1242            protected com.liferay.portal.service.ShardLocalService shardLocalService;
1243            @BeanReference(type = ShardPersistence.class)
1244            protected ShardPersistence shardPersistence;
1245            @BeanReference(type = com.liferay.portal.service.TeamLocalService.class)
1246            protected com.liferay.portal.service.TeamLocalService teamLocalService;
1247            @BeanReference(type = com.liferay.portal.service.TeamService.class)
1248            protected com.liferay.portal.service.TeamService teamService;
1249            @BeanReference(type = TeamPersistence.class)
1250            protected TeamPersistence teamPersistence;
1251            @BeanReference(type = TeamFinder.class)
1252            protected TeamFinder teamFinder;
1253            @BeanReference(type = com.liferay.portal.service.UserLocalService.class)
1254            protected com.liferay.portal.service.UserLocalService userLocalService;
1255            @BeanReference(type = com.liferay.portal.service.UserService.class)
1256            protected com.liferay.portal.service.UserService userService;
1257            @BeanReference(type = UserPersistence.class)
1258            protected UserPersistence userPersistence;
1259            @BeanReference(type = UserFinder.class)
1260            protected UserFinder userFinder;
1261            @BeanReference(type = com.liferay.portal.service.UserGroupGroupRoleLocalService.class)
1262            protected com.liferay.portal.service.UserGroupGroupRoleLocalService userGroupGroupRoleLocalService;
1263            @BeanReference(type = com.liferay.portal.service.UserGroupGroupRoleService.class)
1264            protected com.liferay.portal.service.UserGroupGroupRoleService userGroupGroupRoleService;
1265            @BeanReference(type = UserGroupGroupRolePersistence.class)
1266            protected UserGroupGroupRolePersistence userGroupGroupRolePersistence;
1267            @BeanReference(type = UserGroupGroupRoleFinder.class)
1268            protected UserGroupGroupRoleFinder userGroupGroupRoleFinder;
1269            @BeanReference(type = com.liferay.portal.service.UserGroupRoleLocalService.class)
1270            protected com.liferay.portal.service.UserGroupRoleLocalService userGroupRoleLocalService;
1271            @BeanReference(type = com.liferay.portal.service.UserGroupRoleService.class)
1272            protected com.liferay.portal.service.UserGroupRoleService userGroupRoleService;
1273            @BeanReference(type = UserGroupRolePersistence.class)
1274            protected UserGroupRolePersistence userGroupRolePersistence;
1275            @BeanReference(type = UserGroupRoleFinder.class)
1276            protected UserGroupRoleFinder userGroupRoleFinder;
1277            private String _beanIdentifier;
1278    }