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