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.Organization;
025    import com.liferay.portal.service.BaseServiceImpl;
026    import com.liferay.portal.service.OrganizationService;
027    import com.liferay.portal.service.persistence.AddressPersistence;
028    import com.liferay.portal.service.persistence.CompanyPersistence;
029    import com.liferay.portal.service.persistence.CountryPersistence;
030    import com.liferay.portal.service.persistence.EmailAddressPersistence;
031    import com.liferay.portal.service.persistence.GroupFinder;
032    import com.liferay.portal.service.persistence.GroupPersistence;
033    import com.liferay.portal.service.persistence.ListTypePersistence;
034    import com.liferay.portal.service.persistence.OrganizationFinder;
035    import com.liferay.portal.service.persistence.OrganizationPersistence;
036    import com.liferay.portal.service.persistence.PasswordPolicyFinder;
037    import com.liferay.portal.service.persistence.PasswordPolicyPersistence;
038    import com.liferay.portal.service.persistence.PasswordPolicyRelPersistence;
039    import com.liferay.portal.service.persistence.PhonePersistence;
040    import com.liferay.portal.service.persistence.RegionPersistence;
041    import com.liferay.portal.service.persistence.RoleFinder;
042    import com.liferay.portal.service.persistence.RolePersistence;
043    import com.liferay.portal.service.persistence.UserFinder;
044    import com.liferay.portal.service.persistence.UserGroupRoleFinder;
045    import com.liferay.portal.service.persistence.UserGroupRolePersistence;
046    import com.liferay.portal.service.persistence.UserPersistence;
047    import com.liferay.portal.service.persistence.WebsitePersistence;
048    import com.liferay.portal.util.PortalUtil;
049    
050    import com.liferay.portlet.asset.service.persistence.AssetCategoryFinder;
051    import com.liferay.portlet.asset.service.persistence.AssetCategoryPersistence;
052    import com.liferay.portlet.asset.service.persistence.AssetEntryFinder;
053    import com.liferay.portlet.asset.service.persistence.AssetEntryPersistence;
054    import com.liferay.portlet.asset.service.persistence.AssetTagFinder;
055    import com.liferay.portlet.asset.service.persistence.AssetTagPersistence;
056    import com.liferay.portlet.expando.service.persistence.ExpandoRowPersistence;
057    
058    import javax.sql.DataSource;
059    
060    /**
061     * Provides the base implementation for the organization remote service.
062     *
063     * <p>
064     * 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.OrganizationServiceImpl}.
065     * </p>
066     *
067     * @author Brian Wing Shun Chan
068     * @see com.liferay.portal.service.impl.OrganizationServiceImpl
069     * @see com.liferay.portal.service.OrganizationServiceUtil
070     * @generated
071     */
072    public abstract class OrganizationServiceBaseImpl extends BaseServiceImpl
073            implements OrganizationService, IdentifiableOSGiService {
074            /*
075             * NOTE FOR DEVELOPERS:
076             *
077             * Never modify or reference this class directly. Always use {@link com.liferay.portal.service.OrganizationServiceUtil} to access the organization remote service.
078             */
079    
080            /**
081             * Returns the organization local service.
082             *
083             * @return the organization local service
084             */
085            public com.liferay.portal.service.OrganizationLocalService getOrganizationLocalService() {
086                    return organizationLocalService;
087            }
088    
089            /**
090             * Sets the organization local service.
091             *
092             * @param organizationLocalService the organization local service
093             */
094            public void setOrganizationLocalService(
095                    com.liferay.portal.service.OrganizationLocalService organizationLocalService) {
096                    this.organizationLocalService = organizationLocalService;
097            }
098    
099            /**
100             * Returns the organization remote service.
101             *
102             * @return the organization remote service
103             */
104            public OrganizationService getOrganizationService() {
105                    return organizationService;
106            }
107    
108            /**
109             * Sets the organization remote service.
110             *
111             * @param organizationService the organization remote service
112             */
113            public void setOrganizationService(OrganizationService organizationService) {
114                    this.organizationService = organizationService;
115            }
116    
117            /**
118             * Returns the organization persistence.
119             *
120             * @return the organization persistence
121             */
122            public OrganizationPersistence getOrganizationPersistence() {
123                    return organizationPersistence;
124            }
125    
126            /**
127             * Sets the organization persistence.
128             *
129             * @param organizationPersistence the organization persistence
130             */
131            public void setOrganizationPersistence(
132                    OrganizationPersistence organizationPersistence) {
133                    this.organizationPersistence = organizationPersistence;
134            }
135    
136            /**
137             * Returns the organization finder.
138             *
139             * @return the organization finder
140             */
141            public OrganizationFinder getOrganizationFinder() {
142                    return organizationFinder;
143            }
144    
145            /**
146             * Sets the organization finder.
147             *
148             * @param organizationFinder the organization finder
149             */
150            public void setOrganizationFinder(OrganizationFinder organizationFinder) {
151                    this.organizationFinder = organizationFinder;
152            }
153    
154            /**
155             * Returns the counter local service.
156             *
157             * @return the counter local service
158             */
159            public com.liferay.counter.service.CounterLocalService getCounterLocalService() {
160                    return counterLocalService;
161            }
162    
163            /**
164             * Sets the counter local service.
165             *
166             * @param counterLocalService the counter local service
167             */
168            public void setCounterLocalService(
169                    com.liferay.counter.service.CounterLocalService counterLocalService) {
170                    this.counterLocalService = counterLocalService;
171            }
172    
173            /**
174             * Returns the address local service.
175             *
176             * @return the address local service
177             */
178            public com.liferay.portal.service.AddressLocalService getAddressLocalService() {
179                    return addressLocalService;
180            }
181    
182            /**
183             * Sets the address local service.
184             *
185             * @param addressLocalService the address local service
186             */
187            public void setAddressLocalService(
188                    com.liferay.portal.service.AddressLocalService addressLocalService) {
189                    this.addressLocalService = addressLocalService;
190            }
191    
192            /**
193             * Returns the address remote service.
194             *
195             * @return the address remote service
196             */
197            public com.liferay.portal.service.AddressService getAddressService() {
198                    return addressService;
199            }
200    
201            /**
202             * Sets the address remote service.
203             *
204             * @param addressService the address remote service
205             */
206            public void setAddressService(
207                    com.liferay.portal.service.AddressService addressService) {
208                    this.addressService = addressService;
209            }
210    
211            /**
212             * Returns the address persistence.
213             *
214             * @return the address persistence
215             */
216            public AddressPersistence getAddressPersistence() {
217                    return addressPersistence;
218            }
219    
220            /**
221             * Sets the address persistence.
222             *
223             * @param addressPersistence the address persistence
224             */
225            public void setAddressPersistence(AddressPersistence addressPersistence) {
226                    this.addressPersistence = addressPersistence;
227            }
228    
229            /**
230             * Returns the company local service.
231             *
232             * @return the company local service
233             */
234            public com.liferay.portal.service.CompanyLocalService getCompanyLocalService() {
235                    return companyLocalService;
236            }
237    
238            /**
239             * Sets the company local service.
240             *
241             * @param companyLocalService the company local service
242             */
243            public void setCompanyLocalService(
244                    com.liferay.portal.service.CompanyLocalService companyLocalService) {
245                    this.companyLocalService = companyLocalService;
246            }
247    
248            /**
249             * Returns the company remote service.
250             *
251             * @return the company remote service
252             */
253            public com.liferay.portal.service.CompanyService getCompanyService() {
254                    return companyService;
255            }
256    
257            /**
258             * Sets the company remote service.
259             *
260             * @param companyService the company remote service
261             */
262            public void setCompanyService(
263                    com.liferay.portal.service.CompanyService companyService) {
264                    this.companyService = companyService;
265            }
266    
267            /**
268             * Returns the company persistence.
269             *
270             * @return the company persistence
271             */
272            public CompanyPersistence getCompanyPersistence() {
273                    return companyPersistence;
274            }
275    
276            /**
277             * Sets the company persistence.
278             *
279             * @param companyPersistence the company persistence
280             */
281            public void setCompanyPersistence(CompanyPersistence companyPersistence) {
282                    this.companyPersistence = companyPersistence;
283            }
284    
285            /**
286             * Returns the country remote service.
287             *
288             * @return the country remote service
289             */
290            public com.liferay.portal.service.CountryService getCountryService() {
291                    return countryService;
292            }
293    
294            /**
295             * Sets the country remote service.
296             *
297             * @param countryService the country remote service
298             */
299            public void setCountryService(
300                    com.liferay.portal.service.CountryService countryService) {
301                    this.countryService = countryService;
302            }
303    
304            /**
305             * Returns the country persistence.
306             *
307             * @return the country persistence
308             */
309            public CountryPersistence getCountryPersistence() {
310                    return countryPersistence;
311            }
312    
313            /**
314             * Sets the country persistence.
315             *
316             * @param countryPersistence the country persistence
317             */
318            public void setCountryPersistence(CountryPersistence countryPersistence) {
319                    this.countryPersistence = countryPersistence;
320            }
321    
322            /**
323             * Returns the email address local service.
324             *
325             * @return the email address local service
326             */
327            public com.liferay.portal.service.EmailAddressLocalService getEmailAddressLocalService() {
328                    return emailAddressLocalService;
329            }
330    
331            /**
332             * Sets the email address local service.
333             *
334             * @param emailAddressLocalService the email address local service
335             */
336            public void setEmailAddressLocalService(
337                    com.liferay.portal.service.EmailAddressLocalService emailAddressLocalService) {
338                    this.emailAddressLocalService = emailAddressLocalService;
339            }
340    
341            /**
342             * Returns the email address remote service.
343             *
344             * @return the email address remote service
345             */
346            public com.liferay.portal.service.EmailAddressService getEmailAddressService() {
347                    return emailAddressService;
348            }
349    
350            /**
351             * Sets the email address remote service.
352             *
353             * @param emailAddressService the email address remote service
354             */
355            public void setEmailAddressService(
356                    com.liferay.portal.service.EmailAddressService emailAddressService) {
357                    this.emailAddressService = emailAddressService;
358            }
359    
360            /**
361             * Returns the email address persistence.
362             *
363             * @return the email address persistence
364             */
365            public EmailAddressPersistence getEmailAddressPersistence() {
366                    return emailAddressPersistence;
367            }
368    
369            /**
370             * Sets the email address persistence.
371             *
372             * @param emailAddressPersistence the email address persistence
373             */
374            public void setEmailAddressPersistence(
375                    EmailAddressPersistence emailAddressPersistence) {
376                    this.emailAddressPersistence = emailAddressPersistence;
377            }
378    
379            /**
380             * Returns the group local service.
381             *
382             * @return the group local service
383             */
384            public com.liferay.portal.service.GroupLocalService getGroupLocalService() {
385                    return groupLocalService;
386            }
387    
388            /**
389             * Sets the group local service.
390             *
391             * @param groupLocalService the group local service
392             */
393            public void setGroupLocalService(
394                    com.liferay.portal.service.GroupLocalService groupLocalService) {
395                    this.groupLocalService = groupLocalService;
396            }
397    
398            /**
399             * Returns the group remote service.
400             *
401             * @return the group remote service
402             */
403            public com.liferay.portal.service.GroupService getGroupService() {
404                    return groupService;
405            }
406    
407            /**
408             * Sets the group remote service.
409             *
410             * @param groupService the group remote service
411             */
412            public void setGroupService(
413                    com.liferay.portal.service.GroupService groupService) {
414                    this.groupService = groupService;
415            }
416    
417            /**
418             * Returns the group persistence.
419             *
420             * @return the group persistence
421             */
422            public GroupPersistence getGroupPersistence() {
423                    return groupPersistence;
424            }
425    
426            /**
427             * Sets the group persistence.
428             *
429             * @param groupPersistence the group persistence
430             */
431            public void setGroupPersistence(GroupPersistence groupPersistence) {
432                    this.groupPersistence = groupPersistence;
433            }
434    
435            /**
436             * Returns the group finder.
437             *
438             * @return the group finder
439             */
440            public GroupFinder getGroupFinder() {
441                    return groupFinder;
442            }
443    
444            /**
445             * Sets the group finder.
446             *
447             * @param groupFinder the group finder
448             */
449            public void setGroupFinder(GroupFinder groupFinder) {
450                    this.groupFinder = groupFinder;
451            }
452    
453            /**
454             * Returns the list type local service.
455             *
456             * @return the list type local service
457             */
458            public com.liferay.portal.service.ListTypeLocalService getListTypeLocalService() {
459                    return listTypeLocalService;
460            }
461    
462            /**
463             * Sets the list type local service.
464             *
465             * @param listTypeLocalService the list type local service
466             */
467            public void setListTypeLocalService(
468                    com.liferay.portal.service.ListTypeLocalService listTypeLocalService) {
469                    this.listTypeLocalService = listTypeLocalService;
470            }
471    
472            /**
473             * Returns the list type remote service.
474             *
475             * @return the list type remote service
476             */
477            public com.liferay.portal.service.ListTypeService getListTypeService() {
478                    return listTypeService;
479            }
480    
481            /**
482             * Sets the list type remote service.
483             *
484             * @param listTypeService the list type remote service
485             */
486            public void setListTypeService(
487                    com.liferay.portal.service.ListTypeService listTypeService) {
488                    this.listTypeService = listTypeService;
489            }
490    
491            /**
492             * Returns the list type persistence.
493             *
494             * @return the list type persistence
495             */
496            public ListTypePersistence getListTypePersistence() {
497                    return listTypePersistence;
498            }
499    
500            /**
501             * Sets the list type persistence.
502             *
503             * @param listTypePersistence the list type persistence
504             */
505            public void setListTypePersistence(ListTypePersistence listTypePersistence) {
506                    this.listTypePersistence = listTypePersistence;
507            }
508    
509            /**
510             * Returns the asset category local service.
511             *
512             * @return the asset category local service
513             */
514            public com.liferay.portlet.asset.service.AssetCategoryLocalService getAssetCategoryLocalService() {
515                    return assetCategoryLocalService;
516            }
517    
518            /**
519             * Sets the asset category local service.
520             *
521             * @param assetCategoryLocalService the asset category local service
522             */
523            public void setAssetCategoryLocalService(
524                    com.liferay.portlet.asset.service.AssetCategoryLocalService assetCategoryLocalService) {
525                    this.assetCategoryLocalService = assetCategoryLocalService;
526            }
527    
528            /**
529             * Returns the asset category remote service.
530             *
531             * @return the asset category remote service
532             */
533            public com.liferay.portlet.asset.service.AssetCategoryService getAssetCategoryService() {
534                    return assetCategoryService;
535            }
536    
537            /**
538             * Sets the asset category remote service.
539             *
540             * @param assetCategoryService the asset category remote service
541             */
542            public void setAssetCategoryService(
543                    com.liferay.portlet.asset.service.AssetCategoryService assetCategoryService) {
544                    this.assetCategoryService = assetCategoryService;
545            }
546    
547            /**
548             * Returns the asset category persistence.
549             *
550             * @return the asset category persistence
551             */
552            public AssetCategoryPersistence getAssetCategoryPersistence() {
553                    return assetCategoryPersistence;
554            }
555    
556            /**
557             * Sets the asset category persistence.
558             *
559             * @param assetCategoryPersistence the asset category persistence
560             */
561            public void setAssetCategoryPersistence(
562                    AssetCategoryPersistence assetCategoryPersistence) {
563                    this.assetCategoryPersistence = assetCategoryPersistence;
564            }
565    
566            /**
567             * Returns the asset category finder.
568             *
569             * @return the asset category finder
570             */
571            public AssetCategoryFinder getAssetCategoryFinder() {
572                    return assetCategoryFinder;
573            }
574    
575            /**
576             * Sets the asset category finder.
577             *
578             * @param assetCategoryFinder the asset category finder
579             */
580            public void setAssetCategoryFinder(AssetCategoryFinder assetCategoryFinder) {
581                    this.assetCategoryFinder = assetCategoryFinder;
582            }
583    
584            /**
585             * Returns the asset entry local service.
586             *
587             * @return the asset entry local service
588             */
589            public com.liferay.portlet.asset.service.AssetEntryLocalService getAssetEntryLocalService() {
590                    return assetEntryLocalService;
591            }
592    
593            /**
594             * Sets the asset entry local service.
595             *
596             * @param assetEntryLocalService the asset entry local service
597             */
598            public void setAssetEntryLocalService(
599                    com.liferay.portlet.asset.service.AssetEntryLocalService assetEntryLocalService) {
600                    this.assetEntryLocalService = assetEntryLocalService;
601            }
602    
603            /**
604             * Returns the asset entry remote service.
605             *
606             * @return the asset entry remote service
607             */
608            public com.liferay.portlet.asset.service.AssetEntryService getAssetEntryService() {
609                    return assetEntryService;
610            }
611    
612            /**
613             * Sets the asset entry remote service.
614             *
615             * @param assetEntryService the asset entry remote service
616             */
617            public void setAssetEntryService(
618                    com.liferay.portlet.asset.service.AssetEntryService assetEntryService) {
619                    this.assetEntryService = assetEntryService;
620            }
621    
622            /**
623             * Returns the asset entry persistence.
624             *
625             * @return the asset entry persistence
626             */
627            public AssetEntryPersistence getAssetEntryPersistence() {
628                    return assetEntryPersistence;
629            }
630    
631            /**
632             * Sets the asset entry persistence.
633             *
634             * @param assetEntryPersistence the asset entry persistence
635             */
636            public void setAssetEntryPersistence(
637                    AssetEntryPersistence assetEntryPersistence) {
638                    this.assetEntryPersistence = assetEntryPersistence;
639            }
640    
641            /**
642             * Returns the asset entry finder.
643             *
644             * @return the asset entry finder
645             */
646            public AssetEntryFinder getAssetEntryFinder() {
647                    return assetEntryFinder;
648            }
649    
650            /**
651             * Sets the asset entry finder.
652             *
653             * @param assetEntryFinder the asset entry finder
654             */
655            public void setAssetEntryFinder(AssetEntryFinder assetEntryFinder) {
656                    this.assetEntryFinder = assetEntryFinder;
657            }
658    
659            /**
660             * Returns the asset tag local service.
661             *
662             * @return the asset tag local service
663             */
664            public com.liferay.portlet.asset.service.AssetTagLocalService getAssetTagLocalService() {
665                    return assetTagLocalService;
666            }
667    
668            /**
669             * Sets the asset tag local service.
670             *
671             * @param assetTagLocalService the asset tag local service
672             */
673            public void setAssetTagLocalService(
674                    com.liferay.portlet.asset.service.AssetTagLocalService assetTagLocalService) {
675                    this.assetTagLocalService = assetTagLocalService;
676            }
677    
678            /**
679             * Returns the asset tag remote service.
680             *
681             * @return the asset tag remote service
682             */
683            public com.liferay.portlet.asset.service.AssetTagService getAssetTagService() {
684                    return assetTagService;
685            }
686    
687            /**
688             * Sets the asset tag remote service.
689             *
690             * @param assetTagService the asset tag remote service
691             */
692            public void setAssetTagService(
693                    com.liferay.portlet.asset.service.AssetTagService assetTagService) {
694                    this.assetTagService = assetTagService;
695            }
696    
697            /**
698             * Returns the asset tag persistence.
699             *
700             * @return the asset tag persistence
701             */
702            public AssetTagPersistence getAssetTagPersistence() {
703                    return assetTagPersistence;
704            }
705    
706            /**
707             * Sets the asset tag persistence.
708             *
709             * @param assetTagPersistence the asset tag persistence
710             */
711            public void setAssetTagPersistence(AssetTagPersistence assetTagPersistence) {
712                    this.assetTagPersistence = assetTagPersistence;
713            }
714    
715            /**
716             * Returns the asset tag finder.
717             *
718             * @return the asset tag finder
719             */
720            public AssetTagFinder getAssetTagFinder() {
721                    return assetTagFinder;
722            }
723    
724            /**
725             * Sets the asset tag finder.
726             *
727             * @param assetTagFinder the asset tag finder
728             */
729            public void setAssetTagFinder(AssetTagFinder assetTagFinder) {
730                    this.assetTagFinder = assetTagFinder;
731            }
732    
733            /**
734             * Returns the expando row local service.
735             *
736             * @return the expando row local service
737             */
738            public com.liferay.portlet.expando.service.ExpandoRowLocalService getExpandoRowLocalService() {
739                    return expandoRowLocalService;
740            }
741    
742            /**
743             * Sets the expando row local service.
744             *
745             * @param expandoRowLocalService the expando row local service
746             */
747            public void setExpandoRowLocalService(
748                    com.liferay.portlet.expando.service.ExpandoRowLocalService expandoRowLocalService) {
749                    this.expandoRowLocalService = expandoRowLocalService;
750            }
751    
752            /**
753             * Returns the expando row persistence.
754             *
755             * @return the expando row persistence
756             */
757            public ExpandoRowPersistence getExpandoRowPersistence() {
758                    return expandoRowPersistence;
759            }
760    
761            /**
762             * Sets the expando row persistence.
763             *
764             * @param expandoRowPersistence the expando row persistence
765             */
766            public void setExpandoRowPersistence(
767                    ExpandoRowPersistence expandoRowPersistence) {
768                    this.expandoRowPersistence = expandoRowPersistence;
769            }
770    
771            /**
772             * Returns the password policy local service.
773             *
774             * @return the password policy local service
775             */
776            public com.liferay.portal.service.PasswordPolicyLocalService getPasswordPolicyLocalService() {
777                    return passwordPolicyLocalService;
778            }
779    
780            /**
781             * Sets the password policy local service.
782             *
783             * @param passwordPolicyLocalService the password policy local service
784             */
785            public void setPasswordPolicyLocalService(
786                    com.liferay.portal.service.PasswordPolicyLocalService passwordPolicyLocalService) {
787                    this.passwordPolicyLocalService = passwordPolicyLocalService;
788            }
789    
790            /**
791             * Returns the password policy remote service.
792             *
793             * @return the password policy remote service
794             */
795            public com.liferay.portal.service.PasswordPolicyService getPasswordPolicyService() {
796                    return passwordPolicyService;
797            }
798    
799            /**
800             * Sets the password policy remote service.
801             *
802             * @param passwordPolicyService the password policy remote service
803             */
804            public void setPasswordPolicyService(
805                    com.liferay.portal.service.PasswordPolicyService passwordPolicyService) {
806                    this.passwordPolicyService = passwordPolicyService;
807            }
808    
809            /**
810             * Returns the password policy persistence.
811             *
812             * @return the password policy persistence
813             */
814            public PasswordPolicyPersistence getPasswordPolicyPersistence() {
815                    return passwordPolicyPersistence;
816            }
817    
818            /**
819             * Sets the password policy persistence.
820             *
821             * @param passwordPolicyPersistence the password policy persistence
822             */
823            public void setPasswordPolicyPersistence(
824                    PasswordPolicyPersistence passwordPolicyPersistence) {
825                    this.passwordPolicyPersistence = passwordPolicyPersistence;
826            }
827    
828            /**
829             * Returns the password policy finder.
830             *
831             * @return the password policy finder
832             */
833            public PasswordPolicyFinder getPasswordPolicyFinder() {
834                    return passwordPolicyFinder;
835            }
836    
837            /**
838             * Sets the password policy finder.
839             *
840             * @param passwordPolicyFinder the password policy finder
841             */
842            public void setPasswordPolicyFinder(
843                    PasswordPolicyFinder passwordPolicyFinder) {
844                    this.passwordPolicyFinder = passwordPolicyFinder;
845            }
846    
847            /**
848             * Returns the password policy rel local service.
849             *
850             * @return the password policy rel local service
851             */
852            public com.liferay.portal.service.PasswordPolicyRelLocalService getPasswordPolicyRelLocalService() {
853                    return passwordPolicyRelLocalService;
854            }
855    
856            /**
857             * Sets the password policy rel local service.
858             *
859             * @param passwordPolicyRelLocalService the password policy rel local service
860             */
861            public void setPasswordPolicyRelLocalService(
862                    com.liferay.portal.service.PasswordPolicyRelLocalService passwordPolicyRelLocalService) {
863                    this.passwordPolicyRelLocalService = passwordPolicyRelLocalService;
864            }
865    
866            /**
867             * Returns the password policy rel persistence.
868             *
869             * @return the password policy rel persistence
870             */
871            public PasswordPolicyRelPersistence getPasswordPolicyRelPersistence() {
872                    return passwordPolicyRelPersistence;
873            }
874    
875            /**
876             * Sets the password policy rel persistence.
877             *
878             * @param passwordPolicyRelPersistence the password policy rel persistence
879             */
880            public void setPasswordPolicyRelPersistence(
881                    PasswordPolicyRelPersistence passwordPolicyRelPersistence) {
882                    this.passwordPolicyRelPersistence = passwordPolicyRelPersistence;
883            }
884    
885            /**
886             * Returns the phone local service.
887             *
888             * @return the phone local service
889             */
890            public com.liferay.portal.service.PhoneLocalService getPhoneLocalService() {
891                    return phoneLocalService;
892            }
893    
894            /**
895             * Sets the phone local service.
896             *
897             * @param phoneLocalService the phone local service
898             */
899            public void setPhoneLocalService(
900                    com.liferay.portal.service.PhoneLocalService phoneLocalService) {
901                    this.phoneLocalService = phoneLocalService;
902            }
903    
904            /**
905             * Returns the phone remote service.
906             *
907             * @return the phone remote service
908             */
909            public com.liferay.portal.service.PhoneService getPhoneService() {
910                    return phoneService;
911            }
912    
913            /**
914             * Sets the phone remote service.
915             *
916             * @param phoneService the phone remote service
917             */
918            public void setPhoneService(
919                    com.liferay.portal.service.PhoneService phoneService) {
920                    this.phoneService = phoneService;
921            }
922    
923            /**
924             * Returns the phone persistence.
925             *
926             * @return the phone persistence
927             */
928            public PhonePersistence getPhonePersistence() {
929                    return phonePersistence;
930            }
931    
932            /**
933             * Sets the phone persistence.
934             *
935             * @param phonePersistence the phone persistence
936             */
937            public void setPhonePersistence(PhonePersistence phonePersistence) {
938                    this.phonePersistence = phonePersistence;
939            }
940    
941            /**
942             * Returns the region remote service.
943             *
944             * @return the region remote service
945             */
946            public com.liferay.portal.service.RegionService getRegionService() {
947                    return regionService;
948            }
949    
950            /**
951             * Sets the region remote service.
952             *
953             * @param regionService the region remote service
954             */
955            public void setRegionService(
956                    com.liferay.portal.service.RegionService regionService) {
957                    this.regionService = regionService;
958            }
959    
960            /**
961             * Returns the region persistence.
962             *
963             * @return the region persistence
964             */
965            public RegionPersistence getRegionPersistence() {
966                    return regionPersistence;
967            }
968    
969            /**
970             * Sets the region persistence.
971             *
972             * @param regionPersistence the region persistence
973             */
974            public void setRegionPersistence(RegionPersistence regionPersistence) {
975                    this.regionPersistence = regionPersistence;
976            }
977    
978            /**
979             * Returns the resource local service.
980             *
981             * @return the resource local service
982             */
983            public com.liferay.portal.service.ResourceLocalService getResourceLocalService() {
984                    return resourceLocalService;
985            }
986    
987            /**
988             * Sets the resource local service.
989             *
990             * @param resourceLocalService the resource local service
991             */
992            public void setResourceLocalService(
993                    com.liferay.portal.service.ResourceLocalService resourceLocalService) {
994                    this.resourceLocalService = resourceLocalService;
995            }
996    
997            /**
998             * Returns the role local service.
999             *
1000             * @return the role local service
1001             */
1002            public com.liferay.portal.service.RoleLocalService getRoleLocalService() {
1003                    return roleLocalService;
1004            }
1005    
1006            /**
1007             * Sets the role local service.
1008             *
1009             * @param roleLocalService the role local service
1010             */
1011            public void setRoleLocalService(
1012                    com.liferay.portal.service.RoleLocalService roleLocalService) {
1013                    this.roleLocalService = roleLocalService;
1014            }
1015    
1016            /**
1017             * Returns the role remote service.
1018             *
1019             * @return the role remote service
1020             */
1021            public com.liferay.portal.service.RoleService getRoleService() {
1022                    return roleService;
1023            }
1024    
1025            /**
1026             * Sets the role remote service.
1027             *
1028             * @param roleService the role remote service
1029             */
1030            public void setRoleService(
1031                    com.liferay.portal.service.RoleService roleService) {
1032                    this.roleService = roleService;
1033            }
1034    
1035            /**
1036             * Returns the role persistence.
1037             *
1038             * @return the role persistence
1039             */
1040            public RolePersistence getRolePersistence() {
1041                    return rolePersistence;
1042            }
1043    
1044            /**
1045             * Sets the role persistence.
1046             *
1047             * @param rolePersistence the role persistence
1048             */
1049            public void setRolePersistence(RolePersistence rolePersistence) {
1050                    this.rolePersistence = rolePersistence;
1051            }
1052    
1053            /**
1054             * Returns the role finder.
1055             *
1056             * @return the role finder
1057             */
1058            public RoleFinder getRoleFinder() {
1059                    return roleFinder;
1060            }
1061    
1062            /**
1063             * Sets the role finder.
1064             *
1065             * @param roleFinder the role finder
1066             */
1067            public void setRoleFinder(RoleFinder roleFinder) {
1068                    this.roleFinder = roleFinder;
1069            }
1070    
1071            /**
1072             * Returns the user local service.
1073             *
1074             * @return the user local service
1075             */
1076            public com.liferay.portal.service.UserLocalService getUserLocalService() {
1077                    return userLocalService;
1078            }
1079    
1080            /**
1081             * Sets the user local service.
1082             *
1083             * @param userLocalService the user local service
1084             */
1085            public void setUserLocalService(
1086                    com.liferay.portal.service.UserLocalService userLocalService) {
1087                    this.userLocalService = userLocalService;
1088            }
1089    
1090            /**
1091             * Returns the user remote service.
1092             *
1093             * @return the user remote service
1094             */
1095            public com.liferay.portal.service.UserService getUserService() {
1096                    return userService;
1097            }
1098    
1099            /**
1100             * Sets the user remote service.
1101             *
1102             * @param userService the user remote service
1103             */
1104            public void setUserService(
1105                    com.liferay.portal.service.UserService userService) {
1106                    this.userService = userService;
1107            }
1108    
1109            /**
1110             * Returns the user persistence.
1111             *
1112             * @return the user persistence
1113             */
1114            public UserPersistence getUserPersistence() {
1115                    return userPersistence;
1116            }
1117    
1118            /**
1119             * Sets the user persistence.
1120             *
1121             * @param userPersistence the user persistence
1122             */
1123            public void setUserPersistence(UserPersistence userPersistence) {
1124                    this.userPersistence = userPersistence;
1125            }
1126    
1127            /**
1128             * Returns the user finder.
1129             *
1130             * @return the user finder
1131             */
1132            public UserFinder getUserFinder() {
1133                    return userFinder;
1134            }
1135    
1136            /**
1137             * Sets the user finder.
1138             *
1139             * @param userFinder the user finder
1140             */
1141            public void setUserFinder(UserFinder userFinder) {
1142                    this.userFinder = userFinder;
1143            }
1144    
1145            /**
1146             * Returns the user group role local service.
1147             *
1148             * @return the user group role local service
1149             */
1150            public com.liferay.portal.service.UserGroupRoleLocalService getUserGroupRoleLocalService() {
1151                    return userGroupRoleLocalService;
1152            }
1153    
1154            /**
1155             * Sets the user group role local service.
1156             *
1157             * @param userGroupRoleLocalService the user group role local service
1158             */
1159            public void setUserGroupRoleLocalService(
1160                    com.liferay.portal.service.UserGroupRoleLocalService userGroupRoleLocalService) {
1161                    this.userGroupRoleLocalService = userGroupRoleLocalService;
1162            }
1163    
1164            /**
1165             * Returns the user group role remote service.
1166             *
1167             * @return the user group role remote service
1168             */
1169            public com.liferay.portal.service.UserGroupRoleService getUserGroupRoleService() {
1170                    return userGroupRoleService;
1171            }
1172    
1173            /**
1174             * Sets the user group role remote service.
1175             *
1176             * @param userGroupRoleService the user group role remote service
1177             */
1178            public void setUserGroupRoleService(
1179                    com.liferay.portal.service.UserGroupRoleService userGroupRoleService) {
1180                    this.userGroupRoleService = userGroupRoleService;
1181            }
1182    
1183            /**
1184             * Returns the user group role persistence.
1185             *
1186             * @return the user group role persistence
1187             */
1188            public UserGroupRolePersistence getUserGroupRolePersistence() {
1189                    return userGroupRolePersistence;
1190            }
1191    
1192            /**
1193             * Sets the user group role persistence.
1194             *
1195             * @param userGroupRolePersistence the user group role persistence
1196             */
1197            public void setUserGroupRolePersistence(
1198                    UserGroupRolePersistence userGroupRolePersistence) {
1199                    this.userGroupRolePersistence = userGroupRolePersistence;
1200            }
1201    
1202            /**
1203             * Returns the user group role finder.
1204             *
1205             * @return the user group role finder
1206             */
1207            public UserGroupRoleFinder getUserGroupRoleFinder() {
1208                    return userGroupRoleFinder;
1209            }
1210    
1211            /**
1212             * Sets the user group role finder.
1213             *
1214             * @param userGroupRoleFinder the user group role finder
1215             */
1216            public void setUserGroupRoleFinder(UserGroupRoleFinder userGroupRoleFinder) {
1217                    this.userGroupRoleFinder = userGroupRoleFinder;
1218            }
1219    
1220            /**
1221             * Returns the website local service.
1222             *
1223             * @return the website local service
1224             */
1225            public com.liferay.portal.service.WebsiteLocalService getWebsiteLocalService() {
1226                    return websiteLocalService;
1227            }
1228    
1229            /**
1230             * Sets the website local service.
1231             *
1232             * @param websiteLocalService the website local service
1233             */
1234            public void setWebsiteLocalService(
1235                    com.liferay.portal.service.WebsiteLocalService websiteLocalService) {
1236                    this.websiteLocalService = websiteLocalService;
1237            }
1238    
1239            /**
1240             * Returns the website remote service.
1241             *
1242             * @return the website remote service
1243             */
1244            public com.liferay.portal.service.WebsiteService getWebsiteService() {
1245                    return websiteService;
1246            }
1247    
1248            /**
1249             * Sets the website remote service.
1250             *
1251             * @param websiteService the website remote service
1252             */
1253            public void setWebsiteService(
1254                    com.liferay.portal.service.WebsiteService websiteService) {
1255                    this.websiteService = websiteService;
1256            }
1257    
1258            /**
1259             * Returns the website persistence.
1260             *
1261             * @return the website persistence
1262             */
1263            public WebsitePersistence getWebsitePersistence() {
1264                    return websitePersistence;
1265            }
1266    
1267            /**
1268             * Sets the website persistence.
1269             *
1270             * @param websitePersistence the website persistence
1271             */
1272            public void setWebsitePersistence(WebsitePersistence websitePersistence) {
1273                    this.websitePersistence = websitePersistence;
1274            }
1275    
1276            public void afterPropertiesSet() {
1277            }
1278    
1279            public void destroy() {
1280            }
1281    
1282            /**
1283             * Returns the OSGi service identifier.
1284             *
1285             * @return the OSGi service identifier
1286             */
1287            @Override
1288            public String getOSGiServiceIdentifier() {
1289                    return OrganizationService.class.getName();
1290            }
1291    
1292            protected Class<?> getModelClass() {
1293                    return Organization.class;
1294            }
1295    
1296            protected String getModelClassName() {
1297                    return Organization.class.getName();
1298            }
1299    
1300            /**
1301             * Performs a SQL query.
1302             *
1303             * @param sql the sql query
1304             */
1305            protected void runSQL(String sql) {
1306                    try {
1307                            DataSource dataSource = organizationPersistence.getDataSource();
1308    
1309                            DB db = DBManagerUtil.getDB();
1310    
1311                            sql = db.buildSQL(sql);
1312                            sql = PortalUtil.transformSQL(sql);
1313    
1314                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
1315                                            sql, new int[0]);
1316    
1317                            sqlUpdate.update();
1318                    }
1319                    catch (Exception e) {
1320                            throw new SystemException(e);
1321                    }
1322            }
1323    
1324            @BeanReference(type = com.liferay.portal.service.OrganizationLocalService.class)
1325            protected com.liferay.portal.service.OrganizationLocalService organizationLocalService;
1326            @BeanReference(type = com.liferay.portal.service.OrganizationService.class)
1327            protected OrganizationService organizationService;
1328            @BeanReference(type = OrganizationPersistence.class)
1329            protected OrganizationPersistence organizationPersistence;
1330            @BeanReference(type = OrganizationFinder.class)
1331            protected OrganizationFinder organizationFinder;
1332            @BeanReference(type = com.liferay.counter.service.CounterLocalService.class)
1333            protected com.liferay.counter.service.CounterLocalService counterLocalService;
1334            @BeanReference(type = com.liferay.portal.service.AddressLocalService.class)
1335            protected com.liferay.portal.service.AddressLocalService addressLocalService;
1336            @BeanReference(type = com.liferay.portal.service.AddressService.class)
1337            protected com.liferay.portal.service.AddressService addressService;
1338            @BeanReference(type = AddressPersistence.class)
1339            protected AddressPersistence addressPersistence;
1340            @BeanReference(type = com.liferay.portal.service.CompanyLocalService.class)
1341            protected com.liferay.portal.service.CompanyLocalService companyLocalService;
1342            @BeanReference(type = com.liferay.portal.service.CompanyService.class)
1343            protected com.liferay.portal.service.CompanyService companyService;
1344            @BeanReference(type = CompanyPersistence.class)
1345            protected CompanyPersistence companyPersistence;
1346            @BeanReference(type = com.liferay.portal.service.CountryService.class)
1347            protected com.liferay.portal.service.CountryService countryService;
1348            @BeanReference(type = CountryPersistence.class)
1349            protected CountryPersistence countryPersistence;
1350            @BeanReference(type = com.liferay.portal.service.EmailAddressLocalService.class)
1351            protected com.liferay.portal.service.EmailAddressLocalService emailAddressLocalService;
1352            @BeanReference(type = com.liferay.portal.service.EmailAddressService.class)
1353            protected com.liferay.portal.service.EmailAddressService emailAddressService;
1354            @BeanReference(type = EmailAddressPersistence.class)
1355            protected EmailAddressPersistence emailAddressPersistence;
1356            @BeanReference(type = com.liferay.portal.service.GroupLocalService.class)
1357            protected com.liferay.portal.service.GroupLocalService groupLocalService;
1358            @BeanReference(type = com.liferay.portal.service.GroupService.class)
1359            protected com.liferay.portal.service.GroupService groupService;
1360            @BeanReference(type = GroupPersistence.class)
1361            protected GroupPersistence groupPersistence;
1362            @BeanReference(type = GroupFinder.class)
1363            protected GroupFinder groupFinder;
1364            @BeanReference(type = com.liferay.portal.service.ListTypeLocalService.class)
1365            protected com.liferay.portal.service.ListTypeLocalService listTypeLocalService;
1366            @BeanReference(type = com.liferay.portal.service.ListTypeService.class)
1367            protected com.liferay.portal.service.ListTypeService listTypeService;
1368            @BeanReference(type = ListTypePersistence.class)
1369            protected ListTypePersistence listTypePersistence;
1370            @BeanReference(type = com.liferay.portlet.asset.service.AssetCategoryLocalService.class)
1371            protected com.liferay.portlet.asset.service.AssetCategoryLocalService assetCategoryLocalService;
1372            @BeanReference(type = com.liferay.portlet.asset.service.AssetCategoryService.class)
1373            protected com.liferay.portlet.asset.service.AssetCategoryService assetCategoryService;
1374            @BeanReference(type = AssetCategoryPersistence.class)
1375            protected AssetCategoryPersistence assetCategoryPersistence;
1376            @BeanReference(type = AssetCategoryFinder.class)
1377            protected AssetCategoryFinder assetCategoryFinder;
1378            @BeanReference(type = com.liferay.portlet.asset.service.AssetEntryLocalService.class)
1379            protected com.liferay.portlet.asset.service.AssetEntryLocalService assetEntryLocalService;
1380            @BeanReference(type = com.liferay.portlet.asset.service.AssetEntryService.class)
1381            protected com.liferay.portlet.asset.service.AssetEntryService assetEntryService;
1382            @BeanReference(type = AssetEntryPersistence.class)
1383            protected AssetEntryPersistence assetEntryPersistence;
1384            @BeanReference(type = AssetEntryFinder.class)
1385            protected AssetEntryFinder assetEntryFinder;
1386            @BeanReference(type = com.liferay.portlet.asset.service.AssetTagLocalService.class)
1387            protected com.liferay.portlet.asset.service.AssetTagLocalService assetTagLocalService;
1388            @BeanReference(type = com.liferay.portlet.asset.service.AssetTagService.class)
1389            protected com.liferay.portlet.asset.service.AssetTagService assetTagService;
1390            @BeanReference(type = AssetTagPersistence.class)
1391            protected AssetTagPersistence assetTagPersistence;
1392            @BeanReference(type = AssetTagFinder.class)
1393            protected AssetTagFinder assetTagFinder;
1394            @BeanReference(type = com.liferay.portlet.expando.service.ExpandoRowLocalService.class)
1395            protected com.liferay.portlet.expando.service.ExpandoRowLocalService expandoRowLocalService;
1396            @BeanReference(type = ExpandoRowPersistence.class)
1397            protected ExpandoRowPersistence expandoRowPersistence;
1398            @BeanReference(type = com.liferay.portal.service.PasswordPolicyLocalService.class)
1399            protected com.liferay.portal.service.PasswordPolicyLocalService passwordPolicyLocalService;
1400            @BeanReference(type = com.liferay.portal.service.PasswordPolicyService.class)
1401            protected com.liferay.portal.service.PasswordPolicyService passwordPolicyService;
1402            @BeanReference(type = PasswordPolicyPersistence.class)
1403            protected PasswordPolicyPersistence passwordPolicyPersistence;
1404            @BeanReference(type = PasswordPolicyFinder.class)
1405            protected PasswordPolicyFinder passwordPolicyFinder;
1406            @BeanReference(type = com.liferay.portal.service.PasswordPolicyRelLocalService.class)
1407            protected com.liferay.portal.service.PasswordPolicyRelLocalService passwordPolicyRelLocalService;
1408            @BeanReference(type = PasswordPolicyRelPersistence.class)
1409            protected PasswordPolicyRelPersistence passwordPolicyRelPersistence;
1410            @BeanReference(type = com.liferay.portal.service.PhoneLocalService.class)
1411            protected com.liferay.portal.service.PhoneLocalService phoneLocalService;
1412            @BeanReference(type = com.liferay.portal.service.PhoneService.class)
1413            protected com.liferay.portal.service.PhoneService phoneService;
1414            @BeanReference(type = PhonePersistence.class)
1415            protected PhonePersistence phonePersistence;
1416            @BeanReference(type = com.liferay.portal.service.RegionService.class)
1417            protected com.liferay.portal.service.RegionService regionService;
1418            @BeanReference(type = RegionPersistence.class)
1419            protected RegionPersistence regionPersistence;
1420            @BeanReference(type = com.liferay.portal.service.ResourceLocalService.class)
1421            protected com.liferay.portal.service.ResourceLocalService resourceLocalService;
1422            @BeanReference(type = com.liferay.portal.service.RoleLocalService.class)
1423            protected com.liferay.portal.service.RoleLocalService roleLocalService;
1424            @BeanReference(type = com.liferay.portal.service.RoleService.class)
1425            protected com.liferay.portal.service.RoleService roleService;
1426            @BeanReference(type = RolePersistence.class)
1427            protected RolePersistence rolePersistence;
1428            @BeanReference(type = RoleFinder.class)
1429            protected RoleFinder roleFinder;
1430            @BeanReference(type = com.liferay.portal.service.UserLocalService.class)
1431            protected com.liferay.portal.service.UserLocalService userLocalService;
1432            @BeanReference(type = com.liferay.portal.service.UserService.class)
1433            protected com.liferay.portal.service.UserService userService;
1434            @BeanReference(type = UserPersistence.class)
1435            protected UserPersistence userPersistence;
1436            @BeanReference(type = UserFinder.class)
1437            protected UserFinder userFinder;
1438            @BeanReference(type = com.liferay.portal.service.UserGroupRoleLocalService.class)
1439            protected com.liferay.portal.service.UserGroupRoleLocalService userGroupRoleLocalService;
1440            @BeanReference(type = com.liferay.portal.service.UserGroupRoleService.class)
1441            protected com.liferay.portal.service.UserGroupRoleService userGroupRoleService;
1442            @BeanReference(type = UserGroupRolePersistence.class)
1443            protected UserGroupRolePersistence userGroupRolePersistence;
1444            @BeanReference(type = UserGroupRoleFinder.class)
1445            protected UserGroupRoleFinder userGroupRoleFinder;
1446            @BeanReference(type = com.liferay.portal.service.WebsiteLocalService.class)
1447            protected com.liferay.portal.service.WebsiteLocalService websiteLocalService;
1448            @BeanReference(type = com.liferay.portal.service.WebsiteService.class)
1449            protected com.liferay.portal.service.WebsiteService websiteService;
1450            @BeanReference(type = WebsitePersistence.class)
1451            protected WebsitePersistence websitePersistence;
1452    }