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