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