1
19
20 package com.liferay.portal.service;
21
22
23
44 public class CountryServiceUtil {
45 public static com.liferay.portal.model.Country addCountry(
46 java.lang.String name, java.lang.String a2, java.lang.String a3,
47 java.lang.String number, java.lang.String idd, boolean active)
48 throws com.liferay.portal.PortalException,
49 com.liferay.portal.SystemException, java.rmi.RemoteException {
50 return getService().addCountry(name, a2, a3, number, idd, active);
51 }
52
53 public static java.util.List<com.liferay.portal.model.Country> getCountries()
54 throws com.liferay.portal.SystemException, java.rmi.RemoteException {
55 return getService().getCountries();
56 }
57
58 public static java.util.List<com.liferay.portal.model.Country> getCountries(
59 boolean active)
60 throws com.liferay.portal.SystemException, java.rmi.RemoteException {
61 return getService().getCountries(active);
62 }
63
64 public static com.liferay.portal.model.Country getCountry(long countryId)
65 throws com.liferay.portal.PortalException,
66 com.liferay.portal.SystemException, java.rmi.RemoteException {
67 return getService().getCountry(countryId);
68 }
69
70 public static com.liferay.portal.model.Country getCountryByA2(
71 java.lang.String a2)
72 throws com.liferay.portal.PortalException,
73 com.liferay.portal.SystemException, java.rmi.RemoteException {
74 return getService().getCountryByA2(a2);
75 }
76
77 public static com.liferay.portal.model.Country getCountryByA3(
78 java.lang.String a3)
79 throws com.liferay.portal.PortalException,
80 com.liferay.portal.SystemException, java.rmi.RemoteException {
81 return getService().getCountryByA3(a3);
82 }
83
84 public static com.liferay.portal.model.Country getCountryByName(
85 java.lang.String name)
86 throws com.liferay.portal.PortalException,
87 com.liferay.portal.SystemException, java.rmi.RemoteException {
88 return getService().getCountryByName(name);
89 }
90
91 public static CountryService getService() {
92 if (_service == null) {
93 throw new RuntimeException("CountryService is not set");
94 }
95
96 return _service;
97 }
98
99 public void setService(CountryService service) {
100 _service = service;
101 }
102
103 private static CountryService _service;
104 }