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