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