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