1
22
23 package com.liferay.portal.service.persistence;
24
25
31 public class AddressUtil {
32 public static void cacheResult(com.liferay.portal.model.Address address) {
33 getPersistence().cacheResult(address);
34 }
35
36 public static void cacheResult(
37 java.util.List<com.liferay.portal.model.Address> addresses) {
38 getPersistence().cacheResult(addresses);
39 }
40
41 public static void clearCache() {
42 getPersistence().clearCache();
43 }
44
45 public static com.liferay.portal.model.Address create(long addressId) {
46 return getPersistence().create(addressId);
47 }
48
49 public static com.liferay.portal.model.Address remove(long addressId)
50 throws com.liferay.portal.NoSuchAddressException,
51 com.liferay.portal.SystemException {
52 return getPersistence().remove(addressId);
53 }
54
55 public static com.liferay.portal.model.Address remove(
56 com.liferay.portal.model.Address address)
57 throws com.liferay.portal.SystemException {
58 return getPersistence().remove(address);
59 }
60
61
64 public static com.liferay.portal.model.Address update(
65 com.liferay.portal.model.Address address)
66 throws com.liferay.portal.SystemException {
67 return getPersistence().update(address);
68 }
69
70
83 public static com.liferay.portal.model.Address update(
84 com.liferay.portal.model.Address address, boolean merge)
85 throws com.liferay.portal.SystemException {
86 return getPersistence().update(address, merge);
87 }
88
89 public static com.liferay.portal.model.Address updateImpl(
90 com.liferay.portal.model.Address address, boolean merge)
91 throws com.liferay.portal.SystemException {
92 return getPersistence().updateImpl(address, merge);
93 }
94
95 public static com.liferay.portal.model.Address findByPrimaryKey(
96 long addressId)
97 throws com.liferay.portal.NoSuchAddressException,
98 com.liferay.portal.SystemException {
99 return getPersistence().findByPrimaryKey(addressId);
100 }
101
102 public static com.liferay.portal.model.Address fetchByPrimaryKey(
103 long addressId) throws com.liferay.portal.SystemException {
104 return getPersistence().fetchByPrimaryKey(addressId);
105 }
106
107 public static java.util.List<com.liferay.portal.model.Address> findByCompanyId(
108 long companyId) throws com.liferay.portal.SystemException {
109 return getPersistence().findByCompanyId(companyId);
110 }
111
112 public static java.util.List<com.liferay.portal.model.Address> findByCompanyId(
113 long companyId, int start, int end)
114 throws com.liferay.portal.SystemException {
115 return getPersistence().findByCompanyId(companyId, start, end);
116 }
117
118 public static java.util.List<com.liferay.portal.model.Address> findByCompanyId(
119 long companyId, int start, int end,
120 com.liferay.portal.kernel.util.OrderByComparator obc)
121 throws com.liferay.portal.SystemException {
122 return getPersistence().findByCompanyId(companyId, start, end, obc);
123 }
124
125 public static com.liferay.portal.model.Address findByCompanyId_First(
126 long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
127 throws com.liferay.portal.NoSuchAddressException,
128 com.liferay.portal.SystemException {
129 return getPersistence().findByCompanyId_First(companyId, obc);
130 }
131
132 public static com.liferay.portal.model.Address findByCompanyId_Last(
133 long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
134 throws com.liferay.portal.NoSuchAddressException,
135 com.liferay.portal.SystemException {
136 return getPersistence().findByCompanyId_Last(companyId, obc);
137 }
138
139 public static com.liferay.portal.model.Address[] findByCompanyId_PrevAndNext(
140 long addressId, long companyId,
141 com.liferay.portal.kernel.util.OrderByComparator obc)
142 throws com.liferay.portal.NoSuchAddressException,
143 com.liferay.portal.SystemException {
144 return getPersistence()
145 .findByCompanyId_PrevAndNext(addressId, companyId, obc);
146 }
147
148 public static java.util.List<com.liferay.portal.model.Address> findByUserId(
149 long userId) throws com.liferay.portal.SystemException {
150 return getPersistence().findByUserId(userId);
151 }
152
153 public static java.util.List<com.liferay.portal.model.Address> findByUserId(
154 long userId, int start, int end)
155 throws com.liferay.portal.SystemException {
156 return getPersistence().findByUserId(userId, start, end);
157 }
158
159 public static java.util.List<com.liferay.portal.model.Address> findByUserId(
160 long userId, int start, int end,
161 com.liferay.portal.kernel.util.OrderByComparator obc)
162 throws com.liferay.portal.SystemException {
163 return getPersistence().findByUserId(userId, start, end, obc);
164 }
165
166 public static com.liferay.portal.model.Address findByUserId_First(
167 long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
168 throws com.liferay.portal.NoSuchAddressException,
169 com.liferay.portal.SystemException {
170 return getPersistence().findByUserId_First(userId, obc);
171 }
172
173 public static com.liferay.portal.model.Address findByUserId_Last(
174 long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
175 throws com.liferay.portal.NoSuchAddressException,
176 com.liferay.portal.SystemException {
177 return getPersistence().findByUserId_Last(userId, obc);
178 }
179
180 public static com.liferay.portal.model.Address[] findByUserId_PrevAndNext(
181 long addressId, long userId,
182 com.liferay.portal.kernel.util.OrderByComparator obc)
183 throws com.liferay.portal.NoSuchAddressException,
184 com.liferay.portal.SystemException {
185 return getPersistence().findByUserId_PrevAndNext(addressId, userId, obc);
186 }
187
188 public static java.util.List<com.liferay.portal.model.Address> findByC_C(
189 long companyId, long classNameId)
190 throws com.liferay.portal.SystemException {
191 return getPersistence().findByC_C(companyId, classNameId);
192 }
193
194 public static java.util.List<com.liferay.portal.model.Address> findByC_C(
195 long companyId, long classNameId, int start, int end)
196 throws com.liferay.portal.SystemException {
197 return getPersistence().findByC_C(companyId, classNameId, start, end);
198 }
199
200 public static java.util.List<com.liferay.portal.model.Address> findByC_C(
201 long companyId, long classNameId, int start, int end,
202 com.liferay.portal.kernel.util.OrderByComparator obc)
203 throws com.liferay.portal.SystemException {
204 return getPersistence()
205 .findByC_C(companyId, classNameId, start, end, obc);
206 }
207
208 public static com.liferay.portal.model.Address findByC_C_First(
209 long companyId, long classNameId,
210 com.liferay.portal.kernel.util.OrderByComparator obc)
211 throws com.liferay.portal.NoSuchAddressException,
212 com.liferay.portal.SystemException {
213 return getPersistence().findByC_C_First(companyId, classNameId, obc);
214 }
215
216 public static com.liferay.portal.model.Address findByC_C_Last(
217 long companyId, long classNameId,
218 com.liferay.portal.kernel.util.OrderByComparator obc)
219 throws com.liferay.portal.NoSuchAddressException,
220 com.liferay.portal.SystemException {
221 return getPersistence().findByC_C_Last(companyId, classNameId, obc);
222 }
223
224 public static com.liferay.portal.model.Address[] findByC_C_PrevAndNext(
225 long addressId, long companyId, long classNameId,
226 com.liferay.portal.kernel.util.OrderByComparator obc)
227 throws com.liferay.portal.NoSuchAddressException,
228 com.liferay.portal.SystemException {
229 return getPersistence()
230 .findByC_C_PrevAndNext(addressId, companyId, classNameId, obc);
231 }
232
233 public static java.util.List<com.liferay.portal.model.Address> findByC_C_C(
234 long companyId, long classNameId, long classPK)
235 throws com.liferay.portal.SystemException {
236 return getPersistence().findByC_C_C(companyId, classNameId, classPK);
237 }
238
239 public static java.util.List<com.liferay.portal.model.Address> findByC_C_C(
240 long companyId, long classNameId, long classPK, int start, int end)
241 throws com.liferay.portal.SystemException {
242 return getPersistence()
243 .findByC_C_C(companyId, classNameId, classPK, start, end);
244 }
245
246 public static java.util.List<com.liferay.portal.model.Address> findByC_C_C(
247 long companyId, long classNameId, long classPK, int start, int end,
248 com.liferay.portal.kernel.util.OrderByComparator obc)
249 throws com.liferay.portal.SystemException {
250 return getPersistence()
251 .findByC_C_C(companyId, classNameId, classPK, start, end, obc);
252 }
253
254 public static com.liferay.portal.model.Address findByC_C_C_First(
255 long companyId, long classNameId, long classPK,
256 com.liferay.portal.kernel.util.OrderByComparator obc)
257 throws com.liferay.portal.NoSuchAddressException,
258 com.liferay.portal.SystemException {
259 return getPersistence()
260 .findByC_C_C_First(companyId, classNameId, classPK, obc);
261 }
262
263 public static com.liferay.portal.model.Address findByC_C_C_Last(
264 long companyId, long classNameId, long classPK,
265 com.liferay.portal.kernel.util.OrderByComparator obc)
266 throws com.liferay.portal.NoSuchAddressException,
267 com.liferay.portal.SystemException {
268 return getPersistence()
269 .findByC_C_C_Last(companyId, classNameId, classPK, obc);
270 }
271
272 public static com.liferay.portal.model.Address[] findByC_C_C_PrevAndNext(
273 long addressId, long companyId, long classNameId, long classPK,
274 com.liferay.portal.kernel.util.OrderByComparator obc)
275 throws com.liferay.portal.NoSuchAddressException,
276 com.liferay.portal.SystemException {
277 return getPersistence()
278 .findByC_C_C_PrevAndNext(addressId, companyId, classNameId,
279 classPK, obc);
280 }
281
282 public static java.util.List<com.liferay.portal.model.Address> findByC_C_C_M(
283 long companyId, long classNameId, long classPK, boolean mailing)
284 throws com.liferay.portal.SystemException {
285 return getPersistence()
286 .findByC_C_C_M(companyId, classNameId, classPK, mailing);
287 }
288
289 public static java.util.List<com.liferay.portal.model.Address> findByC_C_C_M(
290 long companyId, long classNameId, long classPK, boolean mailing,
291 int start, int end) throws com.liferay.portal.SystemException {
292 return getPersistence()
293 .findByC_C_C_M(companyId, classNameId, classPK, mailing,
294 start, end);
295 }
296
297 public static java.util.List<com.liferay.portal.model.Address> findByC_C_C_M(
298 long companyId, long classNameId, long classPK, boolean mailing,
299 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
300 throws com.liferay.portal.SystemException {
301 return getPersistence()
302 .findByC_C_C_M(companyId, classNameId, classPK, mailing,
303 start, end, obc);
304 }
305
306 public static com.liferay.portal.model.Address findByC_C_C_M_First(
307 long companyId, long classNameId, long classPK, boolean mailing,
308 com.liferay.portal.kernel.util.OrderByComparator obc)
309 throws com.liferay.portal.NoSuchAddressException,
310 com.liferay.portal.SystemException {
311 return getPersistence()
312 .findByC_C_C_M_First(companyId, classNameId, classPK,
313 mailing, obc);
314 }
315
316 public static com.liferay.portal.model.Address findByC_C_C_M_Last(
317 long companyId, long classNameId, long classPK, boolean mailing,
318 com.liferay.portal.kernel.util.OrderByComparator obc)
319 throws com.liferay.portal.NoSuchAddressException,
320 com.liferay.portal.SystemException {
321 return getPersistence()
322 .findByC_C_C_M_Last(companyId, classNameId, classPK,
323 mailing, obc);
324 }
325
326 public static com.liferay.portal.model.Address[] findByC_C_C_M_PrevAndNext(
327 long addressId, long companyId, long classNameId, long classPK,
328 boolean mailing, com.liferay.portal.kernel.util.OrderByComparator obc)
329 throws com.liferay.portal.NoSuchAddressException,
330 com.liferay.portal.SystemException {
331 return getPersistence()
332 .findByC_C_C_M_PrevAndNext(addressId, companyId,
333 classNameId, classPK, mailing, obc);
334 }
335
336 public static java.util.List<com.liferay.portal.model.Address> findByC_C_C_P(
337 long companyId, long classNameId, long classPK, boolean primary)
338 throws com.liferay.portal.SystemException {
339 return getPersistence()
340 .findByC_C_C_P(companyId, classNameId, classPK, primary);
341 }
342
343 public static java.util.List<com.liferay.portal.model.Address> findByC_C_C_P(
344 long companyId, long classNameId, long classPK, boolean primary,
345 int start, int end) throws com.liferay.portal.SystemException {
346 return getPersistence()
347 .findByC_C_C_P(companyId, classNameId, classPK, primary,
348 start, end);
349 }
350
351 public static java.util.List<com.liferay.portal.model.Address> findByC_C_C_P(
352 long companyId, long classNameId, long classPK, boolean primary,
353 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
354 throws com.liferay.portal.SystemException {
355 return getPersistence()
356 .findByC_C_C_P(companyId, classNameId, classPK, primary,
357 start, end, obc);
358 }
359
360 public static com.liferay.portal.model.Address findByC_C_C_P_First(
361 long companyId, long classNameId, long classPK, boolean primary,
362 com.liferay.portal.kernel.util.OrderByComparator obc)
363 throws com.liferay.portal.NoSuchAddressException,
364 com.liferay.portal.SystemException {
365 return getPersistence()
366 .findByC_C_C_P_First(companyId, classNameId, classPK,
367 primary, obc);
368 }
369
370 public static com.liferay.portal.model.Address findByC_C_C_P_Last(
371 long companyId, long classNameId, long classPK, boolean primary,
372 com.liferay.portal.kernel.util.OrderByComparator obc)
373 throws com.liferay.portal.NoSuchAddressException,
374 com.liferay.portal.SystemException {
375 return getPersistence()
376 .findByC_C_C_P_Last(companyId, classNameId, classPK,
377 primary, obc);
378 }
379
380 public static com.liferay.portal.model.Address[] findByC_C_C_P_PrevAndNext(
381 long addressId, long companyId, long classNameId, long classPK,
382 boolean primary, com.liferay.portal.kernel.util.OrderByComparator obc)
383 throws com.liferay.portal.NoSuchAddressException,
384 com.liferay.portal.SystemException {
385 return getPersistence()
386 .findByC_C_C_P_PrevAndNext(addressId, companyId,
387 classNameId, classPK, primary, obc);
388 }
389
390 public static java.util.List<Object> findWithDynamicQuery(
391 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
392 throws com.liferay.portal.SystemException {
393 return getPersistence().findWithDynamicQuery(dynamicQuery);
394 }
395
396 public static java.util.List<Object> findWithDynamicQuery(
397 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
398 int end) throws com.liferay.portal.SystemException {
399 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
400 }
401
402 public static java.util.List<com.liferay.portal.model.Address> findAll()
403 throws com.liferay.portal.SystemException {
404 return getPersistence().findAll();
405 }
406
407 public static java.util.List<com.liferay.portal.model.Address> findAll(
408 int start, int end) throws com.liferay.portal.SystemException {
409 return getPersistence().findAll(start, end);
410 }
411
412 public static java.util.List<com.liferay.portal.model.Address> findAll(
413 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
414 throws com.liferay.portal.SystemException {
415 return getPersistence().findAll(start, end, obc);
416 }
417
418 public static void removeByCompanyId(long companyId)
419 throws com.liferay.portal.SystemException {
420 getPersistence().removeByCompanyId(companyId);
421 }
422
423 public static void removeByUserId(long userId)
424 throws com.liferay.portal.SystemException {
425 getPersistence().removeByUserId(userId);
426 }
427
428 public static void removeByC_C(long companyId, long classNameId)
429 throws com.liferay.portal.SystemException {
430 getPersistence().removeByC_C(companyId, classNameId);
431 }
432
433 public static void removeByC_C_C(long companyId, long classNameId,
434 long classPK) throws com.liferay.portal.SystemException {
435 getPersistence().removeByC_C_C(companyId, classNameId, classPK);
436 }
437
438 public static void removeByC_C_C_M(long companyId, long classNameId,
439 long classPK, boolean mailing)
440 throws com.liferay.portal.SystemException {
441 getPersistence()
442 .removeByC_C_C_M(companyId, classNameId, classPK, mailing);
443 }
444
445 public static void removeByC_C_C_P(long companyId, long classNameId,
446 long classPK, boolean primary)
447 throws com.liferay.portal.SystemException {
448 getPersistence()
449 .removeByC_C_C_P(companyId, classNameId, classPK, primary);
450 }
451
452 public static void removeAll() throws com.liferay.portal.SystemException {
453 getPersistence().removeAll();
454 }
455
456 public static int countByCompanyId(long companyId)
457 throws com.liferay.portal.SystemException {
458 return getPersistence().countByCompanyId(companyId);
459 }
460
461 public static int countByUserId(long userId)
462 throws com.liferay.portal.SystemException {
463 return getPersistence().countByUserId(userId);
464 }
465
466 public static int countByC_C(long companyId, long classNameId)
467 throws com.liferay.portal.SystemException {
468 return getPersistence().countByC_C(companyId, classNameId);
469 }
470
471 public static int countByC_C_C(long companyId, long classNameId,
472 long classPK) throws com.liferay.portal.SystemException {
473 return getPersistence().countByC_C_C(companyId, classNameId, classPK);
474 }
475
476 public static int countByC_C_C_M(long companyId, long classNameId,
477 long classPK, boolean mailing)
478 throws com.liferay.portal.SystemException {
479 return getPersistence()
480 .countByC_C_C_M(companyId, classNameId, classPK, mailing);
481 }
482
483 public static int countByC_C_C_P(long companyId, long classNameId,
484 long classPK, boolean primary)
485 throws com.liferay.portal.SystemException {
486 return getPersistence()
487 .countByC_C_C_P(companyId, classNameId, classPK, primary);
488 }
489
490 public static int countAll() throws com.liferay.portal.SystemException {
491 return getPersistence().countAll();
492 }
493
494 public static AddressPersistence getPersistence() {
495 return _persistence;
496 }
497
498 public void setPersistence(AddressPersistence persistence) {
499 _persistence = persistence;
500 }
501
502 private static AddressPersistence _persistence;
503 }