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