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