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