1
19
20 package com.liferay.portal.service.persistence;
21
22
28 public class EmailAddressUtil {
29 public static void cacheResult(
30 com.liferay.portal.model.EmailAddress emailAddress) {
31 getPersistence().cacheResult(emailAddress);
32 }
33
34 public static void cacheResult(
35 java.util.List<com.liferay.portal.model.EmailAddress> emailAddresses) {
36 getPersistence().cacheResult(emailAddresses);
37 }
38
39 public static void clearCache() {
40 getPersistence().clearCache();
41 }
42
43 public static com.liferay.portal.model.EmailAddress create(
44 long emailAddressId) {
45 return getPersistence().create(emailAddressId);
46 }
47
48 public static com.liferay.portal.model.EmailAddress remove(
49 long emailAddressId)
50 throws com.liferay.portal.NoSuchEmailAddressException,
51 com.liferay.portal.SystemException {
52 return getPersistence().remove(emailAddressId);
53 }
54
55 public static com.liferay.portal.model.EmailAddress remove(
56 com.liferay.portal.model.EmailAddress emailAddress)
57 throws com.liferay.portal.SystemException {
58 return getPersistence().remove(emailAddress);
59 }
60
61
64 public static com.liferay.portal.model.EmailAddress update(
65 com.liferay.portal.model.EmailAddress emailAddress)
66 throws com.liferay.portal.SystemException {
67 return getPersistence().update(emailAddress);
68 }
69
70
83 public static com.liferay.portal.model.EmailAddress update(
84 com.liferay.portal.model.EmailAddress emailAddress, boolean merge)
85 throws com.liferay.portal.SystemException {
86 return getPersistence().update(emailAddress, merge);
87 }
88
89 public static com.liferay.portal.model.EmailAddress updateImpl(
90 com.liferay.portal.model.EmailAddress emailAddress, boolean merge)
91 throws com.liferay.portal.SystemException {
92 return getPersistence().updateImpl(emailAddress, merge);
93 }
94
95 public static com.liferay.portal.model.EmailAddress findByPrimaryKey(
96 long emailAddressId)
97 throws com.liferay.portal.NoSuchEmailAddressException,
98 com.liferay.portal.SystemException {
99 return getPersistence().findByPrimaryKey(emailAddressId);
100 }
101
102 public static com.liferay.portal.model.EmailAddress fetchByPrimaryKey(
103 long emailAddressId) throws com.liferay.portal.SystemException {
104 return getPersistence().fetchByPrimaryKey(emailAddressId);
105 }
106
107 public static java.util.List<com.liferay.portal.model.EmailAddress> 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.EmailAddress> 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.EmailAddress> 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.EmailAddress findByCompanyId_First(
126 long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
127 throws com.liferay.portal.NoSuchEmailAddressException,
128 com.liferay.portal.SystemException {
129 return getPersistence().findByCompanyId_First(companyId, obc);
130 }
131
132 public static com.liferay.portal.model.EmailAddress findByCompanyId_Last(
133 long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
134 throws com.liferay.portal.NoSuchEmailAddressException,
135 com.liferay.portal.SystemException {
136 return getPersistence().findByCompanyId_Last(companyId, obc);
137 }
138
139 public static com.liferay.portal.model.EmailAddress[] findByCompanyId_PrevAndNext(
140 long emailAddressId, long companyId,
141 com.liferay.portal.kernel.util.OrderByComparator obc)
142 throws com.liferay.portal.NoSuchEmailAddressException,
143 com.liferay.portal.SystemException {
144 return getPersistence()
145 .findByCompanyId_PrevAndNext(emailAddressId, companyId, obc);
146 }
147
148 public static java.util.List<com.liferay.portal.model.EmailAddress> 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.EmailAddress> 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.EmailAddress> 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.EmailAddress findByUserId_First(
167 long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
168 throws com.liferay.portal.NoSuchEmailAddressException,
169 com.liferay.portal.SystemException {
170 return getPersistence().findByUserId_First(userId, obc);
171 }
172
173 public static com.liferay.portal.model.EmailAddress findByUserId_Last(
174 long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
175 throws com.liferay.portal.NoSuchEmailAddressException,
176 com.liferay.portal.SystemException {
177 return getPersistence().findByUserId_Last(userId, obc);
178 }
179
180 public static com.liferay.portal.model.EmailAddress[] findByUserId_PrevAndNext(
181 long emailAddressId, long userId,
182 com.liferay.portal.kernel.util.OrderByComparator obc)
183 throws com.liferay.portal.NoSuchEmailAddressException,
184 com.liferay.portal.SystemException {
185 return getPersistence()
186 .findByUserId_PrevAndNext(emailAddressId, userId, obc);
187 }
188
189 public static java.util.List<com.liferay.portal.model.EmailAddress> findByC_C(
190 long companyId, long classNameId)
191 throws com.liferay.portal.SystemException {
192 return getPersistence().findByC_C(companyId, classNameId);
193 }
194
195 public static java.util.List<com.liferay.portal.model.EmailAddress> findByC_C(
196 long companyId, long classNameId, int start, int end)
197 throws com.liferay.portal.SystemException {
198 return getPersistence().findByC_C(companyId, classNameId, start, end);
199 }
200
201 public static java.util.List<com.liferay.portal.model.EmailAddress> findByC_C(
202 long companyId, long classNameId, int start, int end,
203 com.liferay.portal.kernel.util.OrderByComparator obc)
204 throws com.liferay.portal.SystemException {
205 return getPersistence()
206 .findByC_C(companyId, classNameId, start, end, obc);
207 }
208
209 public static com.liferay.portal.model.EmailAddress findByC_C_First(
210 long companyId, long classNameId,
211 com.liferay.portal.kernel.util.OrderByComparator obc)
212 throws com.liferay.portal.NoSuchEmailAddressException,
213 com.liferay.portal.SystemException {
214 return getPersistence().findByC_C_First(companyId, classNameId, obc);
215 }
216
217 public static com.liferay.portal.model.EmailAddress findByC_C_Last(
218 long companyId, long classNameId,
219 com.liferay.portal.kernel.util.OrderByComparator obc)
220 throws com.liferay.portal.NoSuchEmailAddressException,
221 com.liferay.portal.SystemException {
222 return getPersistence().findByC_C_Last(companyId, classNameId, obc);
223 }
224
225 public static com.liferay.portal.model.EmailAddress[] findByC_C_PrevAndNext(
226 long emailAddressId, long companyId, long classNameId,
227 com.liferay.portal.kernel.util.OrderByComparator obc)
228 throws com.liferay.portal.NoSuchEmailAddressException,
229 com.liferay.portal.SystemException {
230 return getPersistence()
231 .findByC_C_PrevAndNext(emailAddressId, companyId,
232 classNameId, obc);
233 }
234
235 public static java.util.List<com.liferay.portal.model.EmailAddress> findByC_C_C(
236 long companyId, long classNameId, long classPK)
237 throws com.liferay.portal.SystemException {
238 return getPersistence().findByC_C_C(companyId, classNameId, classPK);
239 }
240
241 public static java.util.List<com.liferay.portal.model.EmailAddress> findByC_C_C(
242 long companyId, long classNameId, long classPK, int start, int end)
243 throws com.liferay.portal.SystemException {
244 return getPersistence()
245 .findByC_C_C(companyId, classNameId, classPK, start, end);
246 }
247
248 public static java.util.List<com.liferay.portal.model.EmailAddress> findByC_C_C(
249 long companyId, long classNameId, long classPK, int start, int end,
250 com.liferay.portal.kernel.util.OrderByComparator obc)
251 throws com.liferay.portal.SystemException {
252 return getPersistence()
253 .findByC_C_C(companyId, classNameId, classPK, start, end, obc);
254 }
255
256 public static com.liferay.portal.model.EmailAddress findByC_C_C_First(
257 long companyId, long classNameId, long classPK,
258 com.liferay.portal.kernel.util.OrderByComparator obc)
259 throws com.liferay.portal.NoSuchEmailAddressException,
260 com.liferay.portal.SystemException {
261 return getPersistence()
262 .findByC_C_C_First(companyId, classNameId, classPK, obc);
263 }
264
265 public static com.liferay.portal.model.EmailAddress findByC_C_C_Last(
266 long companyId, long classNameId, long classPK,
267 com.liferay.portal.kernel.util.OrderByComparator obc)
268 throws com.liferay.portal.NoSuchEmailAddressException,
269 com.liferay.portal.SystemException {
270 return getPersistence()
271 .findByC_C_C_Last(companyId, classNameId, classPK, obc);
272 }
273
274 public static com.liferay.portal.model.EmailAddress[] findByC_C_C_PrevAndNext(
275 long emailAddressId, long companyId, long classNameId, long classPK,
276 com.liferay.portal.kernel.util.OrderByComparator obc)
277 throws com.liferay.portal.NoSuchEmailAddressException,
278 com.liferay.portal.SystemException {
279 return getPersistence()
280 .findByC_C_C_PrevAndNext(emailAddressId, companyId,
281 classNameId, classPK, obc);
282 }
283
284 public static java.util.List<com.liferay.portal.model.EmailAddress> findByC_C_C_P(
285 long companyId, long classNameId, long classPK, boolean primary)
286 throws com.liferay.portal.SystemException {
287 return getPersistence()
288 .findByC_C_C_P(companyId, classNameId, classPK, primary);
289 }
290
291 public static java.util.List<com.liferay.portal.model.EmailAddress> findByC_C_C_P(
292 long companyId, long classNameId, long classPK, boolean primary,
293 int start, int end) throws com.liferay.portal.SystemException {
294 return getPersistence()
295 .findByC_C_C_P(companyId, classNameId, classPK, primary,
296 start, end);
297 }
298
299 public static java.util.List<com.liferay.portal.model.EmailAddress> findByC_C_C_P(
300 long companyId, long classNameId, long classPK, boolean primary,
301 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
302 throws com.liferay.portal.SystemException {
303 return getPersistence()
304 .findByC_C_C_P(companyId, classNameId, classPK, primary,
305 start, end, obc);
306 }
307
308 public static com.liferay.portal.model.EmailAddress findByC_C_C_P_First(
309 long companyId, long classNameId, long classPK, boolean primary,
310 com.liferay.portal.kernel.util.OrderByComparator obc)
311 throws com.liferay.portal.NoSuchEmailAddressException,
312 com.liferay.portal.SystemException {
313 return getPersistence()
314 .findByC_C_C_P_First(companyId, classNameId, classPK,
315 primary, obc);
316 }
317
318 public static com.liferay.portal.model.EmailAddress findByC_C_C_P_Last(
319 long companyId, long classNameId, long classPK, boolean primary,
320 com.liferay.portal.kernel.util.OrderByComparator obc)
321 throws com.liferay.portal.NoSuchEmailAddressException,
322 com.liferay.portal.SystemException {
323 return getPersistence()
324 .findByC_C_C_P_Last(companyId, classNameId, classPK,
325 primary, obc);
326 }
327
328 public static com.liferay.portal.model.EmailAddress[] findByC_C_C_P_PrevAndNext(
329 long emailAddressId, long companyId, long classNameId, long classPK,
330 boolean primary, com.liferay.portal.kernel.util.OrderByComparator obc)
331 throws com.liferay.portal.NoSuchEmailAddressException,
332 com.liferay.portal.SystemException {
333 return getPersistence()
334 .findByC_C_C_P_PrevAndNext(emailAddressId, companyId,
335 classNameId, classPK, primary, obc);
336 }
337
338 public static java.util.List<Object> findWithDynamicQuery(
339 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
340 throws com.liferay.portal.SystemException {
341 return getPersistence().findWithDynamicQuery(dynamicQuery);
342 }
343
344 public static java.util.List<Object> findWithDynamicQuery(
345 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
346 int end) throws com.liferay.portal.SystemException {
347 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
348 }
349
350 public static java.util.List<com.liferay.portal.model.EmailAddress> findAll()
351 throws com.liferay.portal.SystemException {
352 return getPersistence().findAll();
353 }
354
355 public static java.util.List<com.liferay.portal.model.EmailAddress> findAll(
356 int start, int end) throws com.liferay.portal.SystemException {
357 return getPersistence().findAll(start, end);
358 }
359
360 public static java.util.List<com.liferay.portal.model.EmailAddress> findAll(
361 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
362 throws com.liferay.portal.SystemException {
363 return getPersistence().findAll(start, end, obc);
364 }
365
366 public static void removeByCompanyId(long companyId)
367 throws com.liferay.portal.SystemException {
368 getPersistence().removeByCompanyId(companyId);
369 }
370
371 public static void removeByUserId(long userId)
372 throws com.liferay.portal.SystemException {
373 getPersistence().removeByUserId(userId);
374 }
375
376 public static void removeByC_C(long companyId, long classNameId)
377 throws com.liferay.portal.SystemException {
378 getPersistence().removeByC_C(companyId, classNameId);
379 }
380
381 public static void removeByC_C_C(long companyId, long classNameId,
382 long classPK) throws com.liferay.portal.SystemException {
383 getPersistence().removeByC_C_C(companyId, classNameId, classPK);
384 }
385
386 public static void removeByC_C_C_P(long companyId, long classNameId,
387 long classPK, boolean primary)
388 throws com.liferay.portal.SystemException {
389 getPersistence()
390 .removeByC_C_C_P(companyId, classNameId, classPK, primary);
391 }
392
393 public static void removeAll() throws com.liferay.portal.SystemException {
394 getPersistence().removeAll();
395 }
396
397 public static int countByCompanyId(long companyId)
398 throws com.liferay.portal.SystemException {
399 return getPersistence().countByCompanyId(companyId);
400 }
401
402 public static int countByUserId(long userId)
403 throws com.liferay.portal.SystemException {
404 return getPersistence().countByUserId(userId);
405 }
406
407 public static int countByC_C(long companyId, long classNameId)
408 throws com.liferay.portal.SystemException {
409 return getPersistence().countByC_C(companyId, classNameId);
410 }
411
412 public static int countByC_C_C(long companyId, long classNameId,
413 long classPK) throws com.liferay.portal.SystemException {
414 return getPersistence().countByC_C_C(companyId, classNameId, classPK);
415 }
416
417 public static int countByC_C_C_P(long companyId, long classNameId,
418 long classPK, boolean primary)
419 throws com.liferay.portal.SystemException {
420 return getPersistence()
421 .countByC_C_C_P(companyId, classNameId, classPK, primary);
422 }
423
424 public static int countAll() throws com.liferay.portal.SystemException {
425 return getPersistence().countAll();
426 }
427
428 public static EmailAddressPersistence getPersistence() {
429 return _persistence;
430 }
431
432 public void setPersistence(EmailAddressPersistence persistence) {
433 _persistence = persistence;
434 }
435
436 private static EmailAddressPersistence _persistence;
437 }