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