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