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