001
014
015 package com.liferay.portal.service;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018 import com.liferay.portal.kernel.util.ReferenceRegistry;
019
020
033 public class CountryServiceUtil {
034
039
040
045 public static java.lang.String getBeanIdentifier() {
046 return getService().getBeanIdentifier();
047 }
048
049
054 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
055 getService().setBeanIdentifier(beanIdentifier);
056 }
057
058 public static com.liferay.portal.model.Country addCountry(
059 java.lang.String name, java.lang.String a2, java.lang.String a3,
060 java.lang.String number, java.lang.String idd, boolean active)
061 throws com.liferay.portal.kernel.exception.PortalException,
062 com.liferay.portal.kernel.exception.SystemException {
063 return getService().addCountry(name, a2, a3, number, idd, active);
064 }
065
066 public static com.liferay.portal.model.Country fetchCountry(long countryId)
067 throws com.liferay.portal.kernel.exception.SystemException {
068 return getService().fetchCountry(countryId);
069 }
070
071 public static com.liferay.portal.model.Country fetchCountryByA2(
072 java.lang.String a2)
073 throws com.liferay.portal.kernel.exception.SystemException {
074 return getService().fetchCountryByA2(a2);
075 }
076
077 public static com.liferay.portal.model.Country fetchCountryByA3(
078 java.lang.String a3)
079 throws com.liferay.portal.kernel.exception.SystemException {
080 return getService().fetchCountryByA3(a3);
081 }
082
083 public static java.util.List<com.liferay.portal.model.Country> getCountries()
084 throws com.liferay.portal.kernel.exception.SystemException {
085 return getService().getCountries();
086 }
087
088 public static java.util.List<com.liferay.portal.model.Country> getCountries(
089 boolean active)
090 throws com.liferay.portal.kernel.exception.SystemException {
091 return getService().getCountries(active);
092 }
093
094 public static com.liferay.portal.model.Country getCountry(long countryId)
095 throws com.liferay.portal.kernel.exception.PortalException,
096 com.liferay.portal.kernel.exception.SystemException {
097 return getService().getCountry(countryId);
098 }
099
100 public static com.liferay.portal.model.Country getCountryByA2(
101 java.lang.String a2)
102 throws com.liferay.portal.kernel.exception.PortalException,
103 com.liferay.portal.kernel.exception.SystemException {
104 return getService().getCountryByA2(a2);
105 }
106
107 public static com.liferay.portal.model.Country getCountryByA3(
108 java.lang.String a3)
109 throws com.liferay.portal.kernel.exception.PortalException,
110 com.liferay.portal.kernel.exception.SystemException {
111 return getService().getCountryByA3(a3);
112 }
113
114 public static com.liferay.portal.model.Country getCountryByName(
115 java.lang.String name)
116 throws com.liferay.portal.kernel.exception.PortalException,
117 com.liferay.portal.kernel.exception.SystemException {
118 return getService().getCountryByName(name);
119 }
120
121 public static CountryService getService() {
122 if (_service == null) {
123 _service = (CountryService)PortalBeanLocatorUtil.locate(CountryService.class.getName());
124
125 ReferenceRegistry.registerReference(CountryServiceUtil.class,
126 "_service");
127 }
128
129 return _service;
130 }
131
132
135 public void setService(CountryService service) {
136 }
137
138 private static CountryService _service;
139 }