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