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