1
19
20 package com.liferay.portal.service.persistence;
21
22
28 public class CountryUtil {
29 public static void cacheResult(com.liferay.portal.model.Country country) {
30 getPersistence().cacheResult(country);
31 }
32
33 public static void cacheResult(
34 java.util.List<com.liferay.portal.model.Country> countries) {
35 getPersistence().cacheResult(countries);
36 }
37
38 public static void clearCache() {
39 getPersistence().clearCache();
40 }
41
42 public static com.liferay.portal.model.Country create(long countryId) {
43 return getPersistence().create(countryId);
44 }
45
46 public static com.liferay.portal.model.Country remove(long countryId)
47 throws com.liferay.portal.NoSuchCountryException,
48 com.liferay.portal.SystemException {
49 return getPersistence().remove(countryId);
50 }
51
52 public static com.liferay.portal.model.Country remove(
53 com.liferay.portal.model.Country country)
54 throws com.liferay.portal.SystemException {
55 return getPersistence().remove(country);
56 }
57
58
61 public static com.liferay.portal.model.Country update(
62 com.liferay.portal.model.Country country)
63 throws com.liferay.portal.SystemException {
64 return getPersistence().update(country);
65 }
66
67
80 public static com.liferay.portal.model.Country update(
81 com.liferay.portal.model.Country country, boolean merge)
82 throws com.liferay.portal.SystemException {
83 return getPersistence().update(country, merge);
84 }
85
86 public static com.liferay.portal.model.Country updateImpl(
87 com.liferay.portal.model.Country country, boolean merge)
88 throws com.liferay.portal.SystemException {
89 return getPersistence().updateImpl(country, merge);
90 }
91
92 public static com.liferay.portal.model.Country findByPrimaryKey(
93 long countryId)
94 throws com.liferay.portal.NoSuchCountryException,
95 com.liferay.portal.SystemException {
96 return getPersistence().findByPrimaryKey(countryId);
97 }
98
99 public static com.liferay.portal.model.Country fetchByPrimaryKey(
100 long countryId) throws com.liferay.portal.SystemException {
101 return getPersistence().fetchByPrimaryKey(countryId);
102 }
103
104 public static com.liferay.portal.model.Country findByName(
105 java.lang.String name)
106 throws com.liferay.portal.NoSuchCountryException,
107 com.liferay.portal.SystemException {
108 return getPersistence().findByName(name);
109 }
110
111 public static com.liferay.portal.model.Country fetchByName(
112 java.lang.String name) throws com.liferay.portal.SystemException {
113 return getPersistence().fetchByName(name);
114 }
115
116 public static com.liferay.portal.model.Country fetchByName(
117 java.lang.String name, boolean retrieveFromCache)
118 throws com.liferay.portal.SystemException {
119 return getPersistence().fetchByName(name, retrieveFromCache);
120 }
121
122 public static com.liferay.portal.model.Country findByA2(java.lang.String a2)
123 throws com.liferay.portal.NoSuchCountryException,
124 com.liferay.portal.SystemException {
125 return getPersistence().findByA2(a2);
126 }
127
128 public static com.liferay.portal.model.Country fetchByA2(
129 java.lang.String a2) throws com.liferay.portal.SystemException {
130 return getPersistence().fetchByA2(a2);
131 }
132
133 public static com.liferay.portal.model.Country fetchByA2(
134 java.lang.String a2, boolean retrieveFromCache)
135 throws com.liferay.portal.SystemException {
136 return getPersistence().fetchByA2(a2, retrieveFromCache);
137 }
138
139 public static com.liferay.portal.model.Country findByA3(java.lang.String a3)
140 throws com.liferay.portal.NoSuchCountryException,
141 com.liferay.portal.SystemException {
142 return getPersistence().findByA3(a3);
143 }
144
145 public static com.liferay.portal.model.Country fetchByA3(
146 java.lang.String a3) throws com.liferay.portal.SystemException {
147 return getPersistence().fetchByA3(a3);
148 }
149
150 public static com.liferay.portal.model.Country fetchByA3(
151 java.lang.String a3, boolean retrieveFromCache)
152 throws com.liferay.portal.SystemException {
153 return getPersistence().fetchByA3(a3, retrieveFromCache);
154 }
155
156 public static java.util.List<com.liferay.portal.model.Country> findByActive(
157 boolean active) throws com.liferay.portal.SystemException {
158 return getPersistence().findByActive(active);
159 }
160
161 public static java.util.List<com.liferay.portal.model.Country> findByActive(
162 boolean active, int start, int end)
163 throws com.liferay.portal.SystemException {
164 return getPersistence().findByActive(active, start, end);
165 }
166
167 public static java.util.List<com.liferay.portal.model.Country> findByActive(
168 boolean active, int start, int end,
169 com.liferay.portal.kernel.util.OrderByComparator obc)
170 throws com.liferay.portal.SystemException {
171 return getPersistence().findByActive(active, start, end, obc);
172 }
173
174 public static com.liferay.portal.model.Country findByActive_First(
175 boolean active, com.liferay.portal.kernel.util.OrderByComparator obc)
176 throws com.liferay.portal.NoSuchCountryException,
177 com.liferay.portal.SystemException {
178 return getPersistence().findByActive_First(active, obc);
179 }
180
181 public static com.liferay.portal.model.Country findByActive_Last(
182 boolean active, com.liferay.portal.kernel.util.OrderByComparator obc)
183 throws com.liferay.portal.NoSuchCountryException,
184 com.liferay.portal.SystemException {
185 return getPersistence().findByActive_Last(active, obc);
186 }
187
188 public static com.liferay.portal.model.Country[] findByActive_PrevAndNext(
189 long countryId, boolean active,
190 com.liferay.portal.kernel.util.OrderByComparator obc)
191 throws com.liferay.portal.NoSuchCountryException,
192 com.liferay.portal.SystemException {
193 return getPersistence().findByActive_PrevAndNext(countryId, active, obc);
194 }
195
196 public static java.util.List<Object> findWithDynamicQuery(
197 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
198 throws com.liferay.portal.SystemException {
199 return getPersistence().findWithDynamicQuery(dynamicQuery);
200 }
201
202 public static java.util.List<Object> findWithDynamicQuery(
203 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
204 int end) throws com.liferay.portal.SystemException {
205 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
206 }
207
208 public static java.util.List<com.liferay.portal.model.Country> findAll()
209 throws com.liferay.portal.SystemException {
210 return getPersistence().findAll();
211 }
212
213 public static java.util.List<com.liferay.portal.model.Country> findAll(
214 int start, int end) throws com.liferay.portal.SystemException {
215 return getPersistence().findAll(start, end);
216 }
217
218 public static java.util.List<com.liferay.portal.model.Country> findAll(
219 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
220 throws com.liferay.portal.SystemException {
221 return getPersistence().findAll(start, end, obc);
222 }
223
224 public static void removeByName(java.lang.String name)
225 throws com.liferay.portal.NoSuchCountryException,
226 com.liferay.portal.SystemException {
227 getPersistence().removeByName(name);
228 }
229
230 public static void removeByA2(java.lang.String a2)
231 throws com.liferay.portal.NoSuchCountryException,
232 com.liferay.portal.SystemException {
233 getPersistence().removeByA2(a2);
234 }
235
236 public static void removeByA3(java.lang.String a3)
237 throws com.liferay.portal.NoSuchCountryException,
238 com.liferay.portal.SystemException {
239 getPersistence().removeByA3(a3);
240 }
241
242 public static void removeByActive(boolean active)
243 throws com.liferay.portal.SystemException {
244 getPersistence().removeByActive(active);
245 }
246
247 public static void removeAll() throws com.liferay.portal.SystemException {
248 getPersistence().removeAll();
249 }
250
251 public static int countByName(java.lang.String name)
252 throws com.liferay.portal.SystemException {
253 return getPersistence().countByName(name);
254 }
255
256 public static int countByA2(java.lang.String a2)
257 throws com.liferay.portal.SystemException {
258 return getPersistence().countByA2(a2);
259 }
260
261 public static int countByA3(java.lang.String a3)
262 throws com.liferay.portal.SystemException {
263 return getPersistence().countByA3(a3);
264 }
265
266 public static int countByActive(boolean active)
267 throws com.liferay.portal.SystemException {
268 return getPersistence().countByActive(active);
269 }
270
271 public static int countAll() throws com.liferay.portal.SystemException {
272 return getPersistence().countAll();
273 }
274
275 public static CountryPersistence getPersistence() {
276 return _persistence;
277 }
278
279 public void setPersistence(CountryPersistence persistence) {
280 _persistence = persistence;
281 }
282
283 private static CountryPersistence _persistence;
284 }