1
14
15 package com.liferay.portal.service;
16
17 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18
19
39 public class CountryServiceUtil {
40 public static com.liferay.portal.model.Country addCountry(
41 java.lang.String name, java.lang.String a2, java.lang.String a3,
42 java.lang.String number, java.lang.String idd, boolean active)
43 throws com.liferay.portal.PortalException,
44 com.liferay.portal.SystemException {
45 return getService().addCountry(name, a2, a3, number, idd, active);
46 }
47
48 public static java.util.List<com.liferay.portal.model.Country> getCountries()
49 throws com.liferay.portal.SystemException {
50 return getService().getCountries();
51 }
52
53 public static java.util.List<com.liferay.portal.model.Country> getCountries(
54 boolean active) throws com.liferay.portal.SystemException {
55 return getService().getCountries(active);
56 }
57
58 public static com.liferay.portal.model.Country getCountry(long countryId)
59 throws com.liferay.portal.PortalException,
60 com.liferay.portal.SystemException {
61 return getService().getCountry(countryId);
62 }
63
64 public static com.liferay.portal.model.Country getCountryByA2(
65 java.lang.String a2)
66 throws com.liferay.portal.PortalException,
67 com.liferay.portal.SystemException {
68 return getService().getCountryByA2(a2);
69 }
70
71 public static com.liferay.portal.model.Country getCountryByA3(
72 java.lang.String a3)
73 throws com.liferay.portal.PortalException,
74 com.liferay.portal.SystemException {
75 return getService().getCountryByA3(a3);
76 }
77
78 public static com.liferay.portal.model.Country getCountryByName(
79 java.lang.String name)
80 throws com.liferay.portal.PortalException,
81 com.liferay.portal.SystemException {
82 return getService().getCountryByName(name);
83 }
84
85 public static CountryService getService() {
86 if (_service == null) {
87 _service = (CountryService)PortalBeanLocatorUtil.locate(CountryService.class.getName());
88 }
89
90 return _service;
91 }
92
93 public void setService(CountryService service) {
94 _service = service;
95 }
96
97 private static CountryService _service;
98 }