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