001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.service.persistence;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.model.EmailAddress;
020    
021    /**
022     * The persistence interface for the email address service.
023     *
024     * <p>
025     * Caching information and settings can be found in <code>portal.properties</code>
026     * </p>
027     *
028     * @author Brian Wing Shun Chan
029     * @see EmailAddressPersistenceImpl
030     * @see EmailAddressUtil
031     * @generated
032     */
033    @ProviderType
034    public interface EmailAddressPersistence extends BasePersistence<EmailAddress> {
035            /*
036             * NOTE FOR DEVELOPERS:
037             *
038             * Never modify or reference this interface directly. Always use {@link EmailAddressUtil} to access the email address persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.
039             */
040    
041            /**
042            * Returns all the email addresses where uuid = &#63;.
043            *
044            * @param uuid the uuid
045            * @return the matching email addresses
046            * @throws SystemException if a system exception occurred
047            */
048            public java.util.List<com.liferay.portal.model.EmailAddress> findByUuid(
049                    java.lang.String uuid)
050                    throws com.liferay.portal.kernel.exception.SystemException;
051    
052            /**
053            * Returns a range of all the email addresses where uuid = &#63;.
054            *
055            * <p>
056            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.EmailAddressModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
057            * </p>
058            *
059            * @param uuid the uuid
060            * @param start the lower bound of the range of email addresses
061            * @param end the upper bound of the range of email addresses (not inclusive)
062            * @return the range of matching email addresses
063            * @throws SystemException if a system exception occurred
064            */
065            public java.util.List<com.liferay.portal.model.EmailAddress> findByUuid(
066                    java.lang.String uuid, int start, int end)
067                    throws com.liferay.portal.kernel.exception.SystemException;
068    
069            /**
070            * Returns an ordered range of all the email addresses where uuid = &#63;.
071            *
072            * <p>
073            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.EmailAddressModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
074            * </p>
075            *
076            * @param uuid the uuid
077            * @param start the lower bound of the range of email addresses
078            * @param end the upper bound of the range of email addresses (not inclusive)
079            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
080            * @return the ordered range of matching email addresses
081            * @throws SystemException if a system exception occurred
082            */
083            public java.util.List<com.liferay.portal.model.EmailAddress> findByUuid(
084                    java.lang.String uuid, int start, int end,
085                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
086                    throws com.liferay.portal.kernel.exception.SystemException;
087    
088            /**
089            * Returns the first email address in the ordered set where uuid = &#63;.
090            *
091            * @param uuid the uuid
092            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
093            * @return the first matching email address
094            * @throws com.liferay.portal.NoSuchEmailAddressException if a matching email address could not be found
095            * @throws SystemException if a system exception occurred
096            */
097            public com.liferay.portal.model.EmailAddress findByUuid_First(
098                    java.lang.String uuid,
099                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
100                    throws com.liferay.portal.NoSuchEmailAddressException,
101                            com.liferay.portal.kernel.exception.SystemException;
102    
103            /**
104            * Returns the first email address in the ordered set where uuid = &#63;.
105            *
106            * @param uuid the uuid
107            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
108            * @return the first matching email address, or <code>null</code> if a matching email address could not be found
109            * @throws SystemException if a system exception occurred
110            */
111            public com.liferay.portal.model.EmailAddress fetchByUuid_First(
112                    java.lang.String uuid,
113                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
114                    throws com.liferay.portal.kernel.exception.SystemException;
115    
116            /**
117            * Returns the last email address in the ordered set where uuid = &#63;.
118            *
119            * @param uuid the uuid
120            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
121            * @return the last matching email address
122            * @throws com.liferay.portal.NoSuchEmailAddressException if a matching email address could not be found
123            * @throws SystemException if a system exception occurred
124            */
125            public com.liferay.portal.model.EmailAddress findByUuid_Last(
126                    java.lang.String uuid,
127                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
128                    throws com.liferay.portal.NoSuchEmailAddressException,
129                            com.liferay.portal.kernel.exception.SystemException;
130    
131            /**
132            * Returns the last email address in the ordered set where uuid = &#63;.
133            *
134            * @param uuid the uuid
135            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
136            * @return the last matching email address, or <code>null</code> if a matching email address could not be found
137            * @throws SystemException if a system exception occurred
138            */
139            public com.liferay.portal.model.EmailAddress fetchByUuid_Last(
140                    java.lang.String uuid,
141                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
142                    throws com.liferay.portal.kernel.exception.SystemException;
143    
144            /**
145            * Returns the email addresses before and after the current email address in the ordered set where uuid = &#63;.
146            *
147            * @param emailAddressId the primary key of the current email address
148            * @param uuid the uuid
149            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
150            * @return the previous, current, and next email address
151            * @throws com.liferay.portal.NoSuchEmailAddressException if a email address with the primary key could not be found
152            * @throws SystemException if a system exception occurred
153            */
154            public com.liferay.portal.model.EmailAddress[] findByUuid_PrevAndNext(
155                    long emailAddressId, java.lang.String uuid,
156                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
157                    throws com.liferay.portal.NoSuchEmailAddressException,
158                            com.liferay.portal.kernel.exception.SystemException;
159    
160            /**
161            * Removes all the email addresses where uuid = &#63; from the database.
162            *
163            * @param uuid the uuid
164            * @throws SystemException if a system exception occurred
165            */
166            public void removeByUuid(java.lang.String uuid)
167                    throws com.liferay.portal.kernel.exception.SystemException;
168    
169            /**
170            * Returns the number of email addresses where uuid = &#63;.
171            *
172            * @param uuid the uuid
173            * @return the number of matching email addresses
174            * @throws SystemException if a system exception occurred
175            */
176            public int countByUuid(java.lang.String uuid)
177                    throws com.liferay.portal.kernel.exception.SystemException;
178    
179            /**
180            * Returns all the email addresses where uuid = &#63; and companyId = &#63;.
181            *
182            * @param uuid the uuid
183            * @param companyId the company ID
184            * @return the matching email addresses
185            * @throws SystemException if a system exception occurred
186            */
187            public java.util.List<com.liferay.portal.model.EmailAddress> findByUuid_C(
188                    java.lang.String uuid, long companyId)
189                    throws com.liferay.portal.kernel.exception.SystemException;
190    
191            /**
192            * Returns a range of all the email addresses where uuid = &#63; and companyId = &#63;.
193            *
194            * <p>
195            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.EmailAddressModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
196            * </p>
197            *
198            * @param uuid the uuid
199            * @param companyId the company ID
200            * @param start the lower bound of the range of email addresses
201            * @param end the upper bound of the range of email addresses (not inclusive)
202            * @return the range of matching email addresses
203            * @throws SystemException if a system exception occurred
204            */
205            public java.util.List<com.liferay.portal.model.EmailAddress> findByUuid_C(
206                    java.lang.String uuid, long companyId, int start, int end)
207                    throws com.liferay.portal.kernel.exception.SystemException;
208    
209            /**
210            * Returns an ordered range of all the email addresses where uuid = &#63; and companyId = &#63;.
211            *
212            * <p>
213            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.EmailAddressModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
214            * </p>
215            *
216            * @param uuid the uuid
217            * @param companyId the company ID
218            * @param start the lower bound of the range of email addresses
219            * @param end the upper bound of the range of email addresses (not inclusive)
220            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
221            * @return the ordered range of matching email addresses
222            * @throws SystemException if a system exception occurred
223            */
224            public java.util.List<com.liferay.portal.model.EmailAddress> findByUuid_C(
225                    java.lang.String uuid, long companyId, int start, int end,
226                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
227                    throws com.liferay.portal.kernel.exception.SystemException;
228    
229            /**
230            * Returns the first email address in the ordered set where uuid = &#63; and companyId = &#63;.
231            *
232            * @param uuid the uuid
233            * @param companyId the company ID
234            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
235            * @return the first matching email address
236            * @throws com.liferay.portal.NoSuchEmailAddressException if a matching email address could not be found
237            * @throws SystemException if a system exception occurred
238            */
239            public com.liferay.portal.model.EmailAddress findByUuid_C_First(
240                    java.lang.String uuid, long companyId,
241                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
242                    throws com.liferay.portal.NoSuchEmailAddressException,
243                            com.liferay.portal.kernel.exception.SystemException;
244    
245            /**
246            * Returns the first email address in the ordered set where uuid = &#63; and companyId = &#63;.
247            *
248            * @param uuid the uuid
249            * @param companyId the company ID
250            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
251            * @return the first matching email address, or <code>null</code> if a matching email address could not be found
252            * @throws SystemException if a system exception occurred
253            */
254            public com.liferay.portal.model.EmailAddress fetchByUuid_C_First(
255                    java.lang.String uuid, long companyId,
256                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
257                    throws com.liferay.portal.kernel.exception.SystemException;
258    
259            /**
260            * Returns the last email address in the ordered set where uuid = &#63; and companyId = &#63;.
261            *
262            * @param uuid the uuid
263            * @param companyId the company ID
264            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
265            * @return the last matching email address
266            * @throws com.liferay.portal.NoSuchEmailAddressException if a matching email address could not be found
267            * @throws SystemException if a system exception occurred
268            */
269            public com.liferay.portal.model.EmailAddress findByUuid_C_Last(
270                    java.lang.String uuid, long companyId,
271                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
272                    throws com.liferay.portal.NoSuchEmailAddressException,
273                            com.liferay.portal.kernel.exception.SystemException;
274    
275            /**
276            * Returns the last email address in the ordered set where uuid = &#63; and companyId = &#63;.
277            *
278            * @param uuid the uuid
279            * @param companyId the company ID
280            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
281            * @return the last matching email address, or <code>null</code> if a matching email address could not be found
282            * @throws SystemException if a system exception occurred
283            */
284            public com.liferay.portal.model.EmailAddress fetchByUuid_C_Last(
285                    java.lang.String uuid, long companyId,
286                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
287                    throws com.liferay.portal.kernel.exception.SystemException;
288    
289            /**
290            * Returns the email addresses before and after the current email address in the ordered set where uuid = &#63; and companyId = &#63;.
291            *
292            * @param emailAddressId the primary key of the current email address
293            * @param uuid the uuid
294            * @param companyId the company ID
295            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
296            * @return the previous, current, and next email address
297            * @throws com.liferay.portal.NoSuchEmailAddressException if a email address with the primary key could not be found
298            * @throws SystemException if a system exception occurred
299            */
300            public com.liferay.portal.model.EmailAddress[] findByUuid_C_PrevAndNext(
301                    long emailAddressId, java.lang.String uuid, long companyId,
302                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
303                    throws com.liferay.portal.NoSuchEmailAddressException,
304                            com.liferay.portal.kernel.exception.SystemException;
305    
306            /**
307            * Removes all the email addresses where uuid = &#63; and companyId = &#63; from the database.
308            *
309            * @param uuid the uuid
310            * @param companyId the company ID
311            * @throws SystemException if a system exception occurred
312            */
313            public void removeByUuid_C(java.lang.String uuid, long companyId)
314                    throws com.liferay.portal.kernel.exception.SystemException;
315    
316            /**
317            * Returns the number of email addresses where uuid = &#63; and companyId = &#63;.
318            *
319            * @param uuid the uuid
320            * @param companyId the company ID
321            * @return the number of matching email addresses
322            * @throws SystemException if a system exception occurred
323            */
324            public int countByUuid_C(java.lang.String uuid, long companyId)
325                    throws com.liferay.portal.kernel.exception.SystemException;
326    
327            /**
328            * Returns all the email addresses where companyId = &#63;.
329            *
330            * @param companyId the company ID
331            * @return the matching email addresses
332            * @throws SystemException if a system exception occurred
333            */
334            public java.util.List<com.liferay.portal.model.EmailAddress> findByCompanyId(
335                    long companyId)
336                    throws com.liferay.portal.kernel.exception.SystemException;
337    
338            /**
339            * Returns a range of all the email addresses where companyId = &#63;.
340            *
341            * <p>
342            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.EmailAddressModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
343            * </p>
344            *
345            * @param companyId the company ID
346            * @param start the lower bound of the range of email addresses
347            * @param end the upper bound of the range of email addresses (not inclusive)
348            * @return the range of matching email addresses
349            * @throws SystemException if a system exception occurred
350            */
351            public java.util.List<com.liferay.portal.model.EmailAddress> findByCompanyId(
352                    long companyId, int start, int end)
353                    throws com.liferay.portal.kernel.exception.SystemException;
354    
355            /**
356            * Returns an ordered range of all the email addresses where companyId = &#63;.
357            *
358            * <p>
359            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.EmailAddressModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
360            * </p>
361            *
362            * @param companyId the company ID
363            * @param start the lower bound of the range of email addresses
364            * @param end the upper bound of the range of email addresses (not inclusive)
365            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
366            * @return the ordered range of matching email addresses
367            * @throws SystemException if a system exception occurred
368            */
369            public java.util.List<com.liferay.portal.model.EmailAddress> findByCompanyId(
370                    long companyId, int start, int end,
371                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
372                    throws com.liferay.portal.kernel.exception.SystemException;
373    
374            /**
375            * Returns the first email address in the ordered set where companyId = &#63;.
376            *
377            * @param companyId the company ID
378            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
379            * @return the first matching email address
380            * @throws com.liferay.portal.NoSuchEmailAddressException if a matching email address could not be found
381            * @throws SystemException if a system exception occurred
382            */
383            public com.liferay.portal.model.EmailAddress findByCompanyId_First(
384                    long companyId,
385                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
386                    throws com.liferay.portal.NoSuchEmailAddressException,
387                            com.liferay.portal.kernel.exception.SystemException;
388    
389            /**
390            * Returns the first email address in the ordered set where companyId = &#63;.
391            *
392            * @param companyId the company ID
393            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
394            * @return the first matching email address, or <code>null</code> if a matching email address could not be found
395            * @throws SystemException if a system exception occurred
396            */
397            public com.liferay.portal.model.EmailAddress fetchByCompanyId_First(
398                    long companyId,
399                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
400                    throws com.liferay.portal.kernel.exception.SystemException;
401    
402            /**
403            * Returns the last email address in the ordered set where companyId = &#63;.
404            *
405            * @param companyId the company ID
406            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
407            * @return the last matching email address
408            * @throws com.liferay.portal.NoSuchEmailAddressException if a matching email address could not be found
409            * @throws SystemException if a system exception occurred
410            */
411            public com.liferay.portal.model.EmailAddress findByCompanyId_Last(
412                    long companyId,
413                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
414                    throws com.liferay.portal.NoSuchEmailAddressException,
415                            com.liferay.portal.kernel.exception.SystemException;
416    
417            /**
418            * Returns the last email address in the ordered set where companyId = &#63;.
419            *
420            * @param companyId the company ID
421            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
422            * @return the last matching email address, or <code>null</code> if a matching email address could not be found
423            * @throws SystemException if a system exception occurred
424            */
425            public com.liferay.portal.model.EmailAddress fetchByCompanyId_Last(
426                    long companyId,
427                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
428                    throws com.liferay.portal.kernel.exception.SystemException;
429    
430            /**
431            * Returns the email addresses before and after the current email address in the ordered set where companyId = &#63;.
432            *
433            * @param emailAddressId the primary key of the current email address
434            * @param companyId the company ID
435            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
436            * @return the previous, current, and next email address
437            * @throws com.liferay.portal.NoSuchEmailAddressException if a email address with the primary key could not be found
438            * @throws SystemException if a system exception occurred
439            */
440            public com.liferay.portal.model.EmailAddress[] findByCompanyId_PrevAndNext(
441                    long emailAddressId, long companyId,
442                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
443                    throws com.liferay.portal.NoSuchEmailAddressException,
444                            com.liferay.portal.kernel.exception.SystemException;
445    
446            /**
447            * Removes all the email addresses where companyId = &#63; from the database.
448            *
449            * @param companyId the company ID
450            * @throws SystemException if a system exception occurred
451            */
452            public void removeByCompanyId(long companyId)
453                    throws com.liferay.portal.kernel.exception.SystemException;
454    
455            /**
456            * Returns the number of email addresses where companyId = &#63;.
457            *
458            * @param companyId the company ID
459            * @return the number of matching email addresses
460            * @throws SystemException if a system exception occurred
461            */
462            public int countByCompanyId(long companyId)
463                    throws com.liferay.portal.kernel.exception.SystemException;
464    
465            /**
466            * Returns all the email addresses where userId = &#63;.
467            *
468            * @param userId the user ID
469            * @return the matching email addresses
470            * @throws SystemException if a system exception occurred
471            */
472            public java.util.List<com.liferay.portal.model.EmailAddress> findByUserId(
473                    long userId) throws com.liferay.portal.kernel.exception.SystemException;
474    
475            /**
476            * Returns a range of all the email addresses where userId = &#63;.
477            *
478            * <p>
479            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.EmailAddressModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
480            * </p>
481            *
482            * @param userId the user ID
483            * @param start the lower bound of the range of email addresses
484            * @param end the upper bound of the range of email addresses (not inclusive)
485            * @return the range of matching email addresses
486            * @throws SystemException if a system exception occurred
487            */
488            public java.util.List<com.liferay.portal.model.EmailAddress> findByUserId(
489                    long userId, int start, int end)
490                    throws com.liferay.portal.kernel.exception.SystemException;
491    
492            /**
493            * Returns an ordered range of all the email addresses where userId = &#63;.
494            *
495            * <p>
496            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.EmailAddressModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
497            * </p>
498            *
499            * @param userId the user ID
500            * @param start the lower bound of the range of email addresses
501            * @param end the upper bound of the range of email addresses (not inclusive)
502            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
503            * @return the ordered range of matching email addresses
504            * @throws SystemException if a system exception occurred
505            */
506            public java.util.List<com.liferay.portal.model.EmailAddress> findByUserId(
507                    long userId, int start, int end,
508                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
509                    throws com.liferay.portal.kernel.exception.SystemException;
510    
511            /**
512            * Returns the first email address in the ordered set where userId = &#63;.
513            *
514            * @param userId the user ID
515            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
516            * @return the first matching email address
517            * @throws com.liferay.portal.NoSuchEmailAddressException if a matching email address could not be found
518            * @throws SystemException if a system exception occurred
519            */
520            public com.liferay.portal.model.EmailAddress findByUserId_First(
521                    long userId,
522                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
523                    throws com.liferay.portal.NoSuchEmailAddressException,
524                            com.liferay.portal.kernel.exception.SystemException;
525    
526            /**
527            * Returns the first email address in the ordered set where userId = &#63;.
528            *
529            * @param userId the user ID
530            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
531            * @return the first matching email address, or <code>null</code> if a matching email address could not be found
532            * @throws SystemException if a system exception occurred
533            */
534            public com.liferay.portal.model.EmailAddress fetchByUserId_First(
535                    long userId,
536                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
537                    throws com.liferay.portal.kernel.exception.SystemException;
538    
539            /**
540            * Returns the last email address in the ordered set where userId = &#63;.
541            *
542            * @param userId the user ID
543            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
544            * @return the last matching email address
545            * @throws com.liferay.portal.NoSuchEmailAddressException if a matching email address could not be found
546            * @throws SystemException if a system exception occurred
547            */
548            public com.liferay.portal.model.EmailAddress findByUserId_Last(
549                    long userId,
550                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
551                    throws com.liferay.portal.NoSuchEmailAddressException,
552                            com.liferay.portal.kernel.exception.SystemException;
553    
554            /**
555            * Returns the last email address in the ordered set where userId = &#63;.
556            *
557            * @param userId the user ID
558            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
559            * @return the last matching email address, or <code>null</code> if a matching email address could not be found
560            * @throws SystemException if a system exception occurred
561            */
562            public com.liferay.portal.model.EmailAddress fetchByUserId_Last(
563                    long userId,
564                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
565                    throws com.liferay.portal.kernel.exception.SystemException;
566    
567            /**
568            * Returns the email addresses before and after the current email address in the ordered set where userId = &#63;.
569            *
570            * @param emailAddressId the primary key of the current email address
571            * @param userId the user ID
572            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
573            * @return the previous, current, and next email address
574            * @throws com.liferay.portal.NoSuchEmailAddressException if a email address with the primary key could not be found
575            * @throws SystemException if a system exception occurred
576            */
577            public com.liferay.portal.model.EmailAddress[] findByUserId_PrevAndNext(
578                    long emailAddressId, long userId,
579                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
580                    throws com.liferay.portal.NoSuchEmailAddressException,
581                            com.liferay.portal.kernel.exception.SystemException;
582    
583            /**
584            * Removes all the email addresses where userId = &#63; from the database.
585            *
586            * @param userId the user ID
587            * @throws SystemException if a system exception occurred
588            */
589            public void removeByUserId(long userId)
590                    throws com.liferay.portal.kernel.exception.SystemException;
591    
592            /**
593            * Returns the number of email addresses where userId = &#63;.
594            *
595            * @param userId the user ID
596            * @return the number of matching email addresses
597            * @throws SystemException if a system exception occurred
598            */
599            public int countByUserId(long userId)
600                    throws com.liferay.portal.kernel.exception.SystemException;
601    
602            /**
603            * Returns all the email addresses where companyId = &#63; and classNameId = &#63;.
604            *
605            * @param companyId the company ID
606            * @param classNameId the class name ID
607            * @return the matching email addresses
608            * @throws SystemException if a system exception occurred
609            */
610            public java.util.List<com.liferay.portal.model.EmailAddress> findByC_C(
611                    long companyId, long classNameId)
612                    throws com.liferay.portal.kernel.exception.SystemException;
613    
614            /**
615            * Returns a range of all the email addresses where companyId = &#63; and classNameId = &#63;.
616            *
617            * <p>
618            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.EmailAddressModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
619            * </p>
620            *
621            * @param companyId the company ID
622            * @param classNameId the class name ID
623            * @param start the lower bound of the range of email addresses
624            * @param end the upper bound of the range of email addresses (not inclusive)
625            * @return the range of matching email addresses
626            * @throws SystemException if a system exception occurred
627            */
628            public java.util.List<com.liferay.portal.model.EmailAddress> findByC_C(
629                    long companyId, long classNameId, int start, int end)
630                    throws com.liferay.portal.kernel.exception.SystemException;
631    
632            /**
633            * Returns an ordered range of all the email addresses where companyId = &#63; and classNameId = &#63;.
634            *
635            * <p>
636            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.EmailAddressModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
637            * </p>
638            *
639            * @param companyId the company ID
640            * @param classNameId the class name ID
641            * @param start the lower bound of the range of email addresses
642            * @param end the upper bound of the range of email addresses (not inclusive)
643            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
644            * @return the ordered range of matching email addresses
645            * @throws SystemException if a system exception occurred
646            */
647            public java.util.List<com.liferay.portal.model.EmailAddress> findByC_C(
648                    long companyId, long classNameId, int start, int end,
649                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
650                    throws com.liferay.portal.kernel.exception.SystemException;
651    
652            /**
653            * Returns the first email address in the ordered set where companyId = &#63; and classNameId = &#63;.
654            *
655            * @param companyId the company ID
656            * @param classNameId the class name ID
657            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
658            * @return the first matching email address
659            * @throws com.liferay.portal.NoSuchEmailAddressException if a matching email address could not be found
660            * @throws SystemException if a system exception occurred
661            */
662            public com.liferay.portal.model.EmailAddress findByC_C_First(
663                    long companyId, long classNameId,
664                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
665                    throws com.liferay.portal.NoSuchEmailAddressException,
666                            com.liferay.portal.kernel.exception.SystemException;
667    
668            /**
669            * Returns the first email address in the ordered set where companyId = &#63; and classNameId = &#63;.
670            *
671            * @param companyId the company ID
672            * @param classNameId the class name ID
673            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
674            * @return the first matching email address, or <code>null</code> if a matching email address could not be found
675            * @throws SystemException if a system exception occurred
676            */
677            public com.liferay.portal.model.EmailAddress fetchByC_C_First(
678                    long companyId, long classNameId,
679                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
680                    throws com.liferay.portal.kernel.exception.SystemException;
681    
682            /**
683            * Returns the last email address in the ordered set where companyId = &#63; and classNameId = &#63;.
684            *
685            * @param companyId the company ID
686            * @param classNameId the class name ID
687            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
688            * @return the last matching email address
689            * @throws com.liferay.portal.NoSuchEmailAddressException if a matching email address could not be found
690            * @throws SystemException if a system exception occurred
691            */
692            public com.liferay.portal.model.EmailAddress findByC_C_Last(
693                    long companyId, long classNameId,
694                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
695                    throws com.liferay.portal.NoSuchEmailAddressException,
696                            com.liferay.portal.kernel.exception.SystemException;
697    
698            /**
699            * Returns the last email address in the ordered set where companyId = &#63; and classNameId = &#63;.
700            *
701            * @param companyId the company ID
702            * @param classNameId the class name ID
703            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
704            * @return the last matching email address, or <code>null</code> if a matching email address could not be found
705            * @throws SystemException if a system exception occurred
706            */
707            public com.liferay.portal.model.EmailAddress fetchByC_C_Last(
708                    long companyId, long classNameId,
709                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
710                    throws com.liferay.portal.kernel.exception.SystemException;
711    
712            /**
713            * Returns the email addresses before and after the current email address in the ordered set where companyId = &#63; and classNameId = &#63;.
714            *
715            * @param emailAddressId the primary key of the current email address
716            * @param companyId the company ID
717            * @param classNameId the class name ID
718            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
719            * @return the previous, current, and next email address
720            * @throws com.liferay.portal.NoSuchEmailAddressException if a email address with the primary key could not be found
721            * @throws SystemException if a system exception occurred
722            */
723            public com.liferay.portal.model.EmailAddress[] findByC_C_PrevAndNext(
724                    long emailAddressId, long companyId, long classNameId,
725                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
726                    throws com.liferay.portal.NoSuchEmailAddressException,
727                            com.liferay.portal.kernel.exception.SystemException;
728    
729            /**
730            * Removes all the email addresses where companyId = &#63; and classNameId = &#63; from the database.
731            *
732            * @param companyId the company ID
733            * @param classNameId the class name ID
734            * @throws SystemException if a system exception occurred
735            */
736            public void removeByC_C(long companyId, long classNameId)
737                    throws com.liferay.portal.kernel.exception.SystemException;
738    
739            /**
740            * Returns the number of email addresses where companyId = &#63; and classNameId = &#63;.
741            *
742            * @param companyId the company ID
743            * @param classNameId the class name ID
744            * @return the number of matching email addresses
745            * @throws SystemException if a system exception occurred
746            */
747            public int countByC_C(long companyId, long classNameId)
748                    throws com.liferay.portal.kernel.exception.SystemException;
749    
750            /**
751            * Returns all the email addresses where companyId = &#63; and classNameId = &#63; and classPK = &#63;.
752            *
753            * @param companyId the company ID
754            * @param classNameId the class name ID
755            * @param classPK the class p k
756            * @return the matching email addresses
757            * @throws SystemException if a system exception occurred
758            */
759            public java.util.List<com.liferay.portal.model.EmailAddress> findByC_C_C(
760                    long companyId, long classNameId, long classPK)
761                    throws com.liferay.portal.kernel.exception.SystemException;
762    
763            /**
764            * Returns a range of all the email addresses where companyId = &#63; and classNameId = &#63; and classPK = &#63;.
765            *
766            * <p>
767            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.EmailAddressModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
768            * </p>
769            *
770            * @param companyId the company ID
771            * @param classNameId the class name ID
772            * @param classPK the class p k
773            * @param start the lower bound of the range of email addresses
774            * @param end the upper bound of the range of email addresses (not inclusive)
775            * @return the range of matching email addresses
776            * @throws SystemException if a system exception occurred
777            */
778            public java.util.List<com.liferay.portal.model.EmailAddress> findByC_C_C(
779                    long companyId, long classNameId, long classPK, int start, int end)
780                    throws com.liferay.portal.kernel.exception.SystemException;
781    
782            /**
783            * Returns an ordered range of all the email addresses where companyId = &#63; and classNameId = &#63; and classPK = &#63;.
784            *
785            * <p>
786            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.EmailAddressModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
787            * </p>
788            *
789            * @param companyId the company ID
790            * @param classNameId the class name ID
791            * @param classPK the class p k
792            * @param start the lower bound of the range of email addresses
793            * @param end the upper bound of the range of email addresses (not inclusive)
794            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
795            * @return the ordered range of matching email addresses
796            * @throws SystemException if a system exception occurred
797            */
798            public java.util.List<com.liferay.portal.model.EmailAddress> findByC_C_C(
799                    long companyId, long classNameId, long classPK, int start, int end,
800                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
801                    throws com.liferay.portal.kernel.exception.SystemException;
802    
803            /**
804            * Returns the first email address in the ordered set where companyId = &#63; and classNameId = &#63; and classPK = &#63;.
805            *
806            * @param companyId the company ID
807            * @param classNameId the class name ID
808            * @param classPK the class p k
809            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
810            * @return the first matching email address
811            * @throws com.liferay.portal.NoSuchEmailAddressException if a matching email address could not be found
812            * @throws SystemException if a system exception occurred
813            */
814            public com.liferay.portal.model.EmailAddress findByC_C_C_First(
815                    long companyId, long classNameId, long classPK,
816                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
817                    throws com.liferay.portal.NoSuchEmailAddressException,
818                            com.liferay.portal.kernel.exception.SystemException;
819    
820            /**
821            * Returns the first email address in the ordered set where companyId = &#63; and classNameId = &#63; and classPK = &#63;.
822            *
823            * @param companyId the company ID
824            * @param classNameId the class name ID
825            * @param classPK the class p k
826            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
827            * @return the first matching email address, or <code>null</code> if a matching email address could not be found
828            * @throws SystemException if a system exception occurred
829            */
830            public com.liferay.portal.model.EmailAddress fetchByC_C_C_First(
831                    long companyId, long classNameId, long classPK,
832                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
833                    throws com.liferay.portal.kernel.exception.SystemException;
834    
835            /**
836            * Returns the last email address in the ordered set where companyId = &#63; and classNameId = &#63; and classPK = &#63;.
837            *
838            * @param companyId the company ID
839            * @param classNameId the class name ID
840            * @param classPK the class p k
841            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
842            * @return the last matching email address
843            * @throws com.liferay.portal.NoSuchEmailAddressException if a matching email address could not be found
844            * @throws SystemException if a system exception occurred
845            */
846            public com.liferay.portal.model.EmailAddress findByC_C_C_Last(
847                    long companyId, long classNameId, long classPK,
848                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
849                    throws com.liferay.portal.NoSuchEmailAddressException,
850                            com.liferay.portal.kernel.exception.SystemException;
851    
852            /**
853            * Returns the last email address in the ordered set where companyId = &#63; and classNameId = &#63; and classPK = &#63;.
854            *
855            * @param companyId the company ID
856            * @param classNameId the class name ID
857            * @param classPK the class p k
858            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
859            * @return the last matching email address, or <code>null</code> if a matching email address could not be found
860            * @throws SystemException if a system exception occurred
861            */
862            public com.liferay.portal.model.EmailAddress fetchByC_C_C_Last(
863                    long companyId, long classNameId, long classPK,
864                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
865                    throws com.liferay.portal.kernel.exception.SystemException;
866    
867            /**
868            * Returns the email addresses before and after the current email address in the ordered set where companyId = &#63; and classNameId = &#63; and classPK = &#63;.
869            *
870            * @param emailAddressId the primary key of the current email address
871            * @param companyId the company ID
872            * @param classNameId the class name ID
873            * @param classPK the class p k
874            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
875            * @return the previous, current, and next email address
876            * @throws com.liferay.portal.NoSuchEmailAddressException if a email address with the primary key could not be found
877            * @throws SystemException if a system exception occurred
878            */
879            public com.liferay.portal.model.EmailAddress[] findByC_C_C_PrevAndNext(
880                    long emailAddressId, long companyId, long classNameId, long classPK,
881                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
882                    throws com.liferay.portal.NoSuchEmailAddressException,
883                            com.liferay.portal.kernel.exception.SystemException;
884    
885            /**
886            * Removes all the email addresses where companyId = &#63; and classNameId = &#63; and classPK = &#63; from the database.
887            *
888            * @param companyId the company ID
889            * @param classNameId the class name ID
890            * @param classPK the class p k
891            * @throws SystemException if a system exception occurred
892            */
893            public void removeByC_C_C(long companyId, long classNameId, long classPK)
894                    throws com.liferay.portal.kernel.exception.SystemException;
895    
896            /**
897            * Returns the number of email addresses where companyId = &#63; and classNameId = &#63; and classPK = &#63;.
898            *
899            * @param companyId the company ID
900            * @param classNameId the class name ID
901            * @param classPK the class p k
902            * @return the number of matching email addresses
903            * @throws SystemException if a system exception occurred
904            */
905            public int countByC_C_C(long companyId, long classNameId, long classPK)
906                    throws com.liferay.portal.kernel.exception.SystemException;
907    
908            /**
909            * Returns all the email addresses where companyId = &#63; and classNameId = &#63; and classPK = &#63; and primary = &#63;.
910            *
911            * @param companyId the company ID
912            * @param classNameId the class name ID
913            * @param classPK the class p k
914            * @param primary the primary
915            * @return the matching email addresses
916            * @throws SystemException if a system exception occurred
917            */
918            public java.util.List<com.liferay.portal.model.EmailAddress> findByC_C_C_P(
919                    long companyId, long classNameId, long classPK, boolean primary)
920                    throws com.liferay.portal.kernel.exception.SystemException;
921    
922            /**
923            * Returns a range of all the email addresses where companyId = &#63; and classNameId = &#63; and classPK = &#63; and primary = &#63;.
924            *
925            * <p>
926            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.EmailAddressModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
927            * </p>
928            *
929            * @param companyId the company ID
930            * @param classNameId the class name ID
931            * @param classPK the class p k
932            * @param primary the primary
933            * @param start the lower bound of the range of email addresses
934            * @param end the upper bound of the range of email addresses (not inclusive)
935            * @return the range of matching email addresses
936            * @throws SystemException if a system exception occurred
937            */
938            public java.util.List<com.liferay.portal.model.EmailAddress> findByC_C_C_P(
939                    long companyId, long classNameId, long classPK, boolean primary,
940                    int start, int end)
941                    throws com.liferay.portal.kernel.exception.SystemException;
942    
943            /**
944            * Returns an ordered range of all the email addresses where companyId = &#63; and classNameId = &#63; and classPK = &#63; and primary = &#63;.
945            *
946            * <p>
947            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.EmailAddressModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
948            * </p>
949            *
950            * @param companyId the company ID
951            * @param classNameId the class name ID
952            * @param classPK the class p k
953            * @param primary the primary
954            * @param start the lower bound of the range of email addresses
955            * @param end the upper bound of the range of email addresses (not inclusive)
956            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
957            * @return the ordered range of matching email addresses
958            * @throws SystemException if a system exception occurred
959            */
960            public java.util.List<com.liferay.portal.model.EmailAddress> findByC_C_C_P(
961                    long companyId, long classNameId, long classPK, boolean primary,
962                    int start, int end,
963                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
964                    throws com.liferay.portal.kernel.exception.SystemException;
965    
966            /**
967            * Returns the first email address in the ordered set where companyId = &#63; and classNameId = &#63; and classPK = &#63; and primary = &#63;.
968            *
969            * @param companyId the company ID
970            * @param classNameId the class name ID
971            * @param classPK the class p k
972            * @param primary the primary
973            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
974            * @return the first matching email address
975            * @throws com.liferay.portal.NoSuchEmailAddressException if a matching email address could not be found
976            * @throws SystemException if a system exception occurred
977            */
978            public com.liferay.portal.model.EmailAddress findByC_C_C_P_First(
979                    long companyId, long classNameId, long classPK, boolean primary,
980                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
981                    throws com.liferay.portal.NoSuchEmailAddressException,
982                            com.liferay.portal.kernel.exception.SystemException;
983    
984            /**
985            * Returns the first email address in the ordered set where companyId = &#63; and classNameId = &#63; and classPK = &#63; and primary = &#63;.
986            *
987            * @param companyId the company ID
988            * @param classNameId the class name ID
989            * @param classPK the class p k
990            * @param primary the primary
991            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
992            * @return the first matching email address, or <code>null</code> if a matching email address could not be found
993            * @throws SystemException if a system exception occurred
994            */
995            public com.liferay.portal.model.EmailAddress fetchByC_C_C_P_First(
996                    long companyId, long classNameId, long classPK, boolean primary,
997                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
998                    throws com.liferay.portal.kernel.exception.SystemException;
999    
1000            /**
1001            * Returns the last email address in the ordered set where companyId = &#63; and classNameId = &#63; and classPK = &#63; and primary = &#63;.
1002            *
1003            * @param companyId the company ID
1004            * @param classNameId the class name ID
1005            * @param classPK the class p k
1006            * @param primary the primary
1007            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1008            * @return the last matching email address
1009            * @throws com.liferay.portal.NoSuchEmailAddressException if a matching email address could not be found
1010            * @throws SystemException if a system exception occurred
1011            */
1012            public com.liferay.portal.model.EmailAddress findByC_C_C_P_Last(
1013                    long companyId, long classNameId, long classPK, boolean primary,
1014                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1015                    throws com.liferay.portal.NoSuchEmailAddressException,
1016                            com.liferay.portal.kernel.exception.SystemException;
1017    
1018            /**
1019            * Returns the last email address in the ordered set where companyId = &#63; and classNameId = &#63; and classPK = &#63; and primary = &#63;.
1020            *
1021            * @param companyId the company ID
1022            * @param classNameId the class name ID
1023            * @param classPK the class p k
1024            * @param primary the primary
1025            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1026            * @return the last matching email address, or <code>null</code> if a matching email address could not be found
1027            * @throws SystemException if a system exception occurred
1028            */
1029            public com.liferay.portal.model.EmailAddress fetchByC_C_C_P_Last(
1030                    long companyId, long classNameId, long classPK, boolean primary,
1031                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1032                    throws com.liferay.portal.kernel.exception.SystemException;
1033    
1034            /**
1035            * Returns the email addresses before and after the current email address in the ordered set where companyId = &#63; and classNameId = &#63; and classPK = &#63; and primary = &#63;.
1036            *
1037            * @param emailAddressId the primary key of the current email address
1038            * @param companyId the company ID
1039            * @param classNameId the class name ID
1040            * @param classPK the class p k
1041            * @param primary the primary
1042            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1043            * @return the previous, current, and next email address
1044            * @throws com.liferay.portal.NoSuchEmailAddressException if a email address with the primary key could not be found
1045            * @throws SystemException if a system exception occurred
1046            */
1047            public com.liferay.portal.model.EmailAddress[] findByC_C_C_P_PrevAndNext(
1048                    long emailAddressId, long companyId, long classNameId, long classPK,
1049                    boolean primary,
1050                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1051                    throws com.liferay.portal.NoSuchEmailAddressException,
1052                            com.liferay.portal.kernel.exception.SystemException;
1053    
1054            /**
1055            * Removes all the email addresses where companyId = &#63; and classNameId = &#63; and classPK = &#63; and primary = &#63; from the database.
1056            *
1057            * @param companyId the company ID
1058            * @param classNameId the class name ID
1059            * @param classPK the class p k
1060            * @param primary the primary
1061            * @throws SystemException if a system exception occurred
1062            */
1063            public void removeByC_C_C_P(long companyId, long classNameId, long classPK,
1064                    boolean primary)
1065                    throws com.liferay.portal.kernel.exception.SystemException;
1066    
1067            /**
1068            * Returns the number of email addresses where companyId = &#63; and classNameId = &#63; and classPK = &#63; and primary = &#63;.
1069            *
1070            * @param companyId the company ID
1071            * @param classNameId the class name ID
1072            * @param classPK the class p k
1073            * @param primary the primary
1074            * @return the number of matching email addresses
1075            * @throws SystemException if a system exception occurred
1076            */
1077            public int countByC_C_C_P(long companyId, long classNameId, long classPK,
1078                    boolean primary)
1079                    throws com.liferay.portal.kernel.exception.SystemException;
1080    
1081            /**
1082            * Caches the email address in the entity cache if it is enabled.
1083            *
1084            * @param emailAddress the email address
1085            */
1086            public void cacheResult(com.liferay.portal.model.EmailAddress emailAddress);
1087    
1088            /**
1089            * Caches the email addresses in the entity cache if it is enabled.
1090            *
1091            * @param emailAddresses the email addresses
1092            */
1093            public void cacheResult(
1094                    java.util.List<com.liferay.portal.model.EmailAddress> emailAddresses);
1095    
1096            /**
1097            * Creates a new email address with the primary key. Does not add the email address to the database.
1098            *
1099            * @param emailAddressId the primary key for the new email address
1100            * @return the new email address
1101            */
1102            public com.liferay.portal.model.EmailAddress create(long emailAddressId);
1103    
1104            /**
1105            * Removes the email address with the primary key from the database. Also notifies the appropriate model listeners.
1106            *
1107            * @param emailAddressId the primary key of the email address
1108            * @return the email address that was removed
1109            * @throws com.liferay.portal.NoSuchEmailAddressException if a email address with the primary key could not be found
1110            * @throws SystemException if a system exception occurred
1111            */
1112            public com.liferay.portal.model.EmailAddress remove(long emailAddressId)
1113                    throws com.liferay.portal.NoSuchEmailAddressException,
1114                            com.liferay.portal.kernel.exception.SystemException;
1115    
1116            public com.liferay.portal.model.EmailAddress updateImpl(
1117                    com.liferay.portal.model.EmailAddress emailAddress)
1118                    throws com.liferay.portal.kernel.exception.SystemException;
1119    
1120            /**
1121            * Returns the email address with the primary key or throws a {@link com.liferay.portal.NoSuchEmailAddressException} if it could not be found.
1122            *
1123            * @param emailAddressId the primary key of the email address
1124            * @return the email address
1125            * @throws com.liferay.portal.NoSuchEmailAddressException if a email address with the primary key could not be found
1126            * @throws SystemException if a system exception occurred
1127            */
1128            public com.liferay.portal.model.EmailAddress findByPrimaryKey(
1129                    long emailAddressId)
1130                    throws com.liferay.portal.NoSuchEmailAddressException,
1131                            com.liferay.portal.kernel.exception.SystemException;
1132    
1133            /**
1134            * Returns the email address with the primary key or returns <code>null</code> if it could not be found.
1135            *
1136            * @param emailAddressId the primary key of the email address
1137            * @return the email address, or <code>null</code> if a email address with the primary key could not be found
1138            * @throws SystemException if a system exception occurred
1139            */
1140            public com.liferay.portal.model.EmailAddress fetchByPrimaryKey(
1141                    long emailAddressId)
1142                    throws com.liferay.portal.kernel.exception.SystemException;
1143    
1144            /**
1145            * Returns all the email addresses.
1146            *
1147            * @return the email addresses
1148            * @throws SystemException if a system exception occurred
1149            */
1150            public java.util.List<com.liferay.portal.model.EmailAddress> findAll()
1151                    throws com.liferay.portal.kernel.exception.SystemException;
1152    
1153            /**
1154            * Returns a range of all the email addresses.
1155            *
1156            * <p>
1157            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.EmailAddressModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
1158            * </p>
1159            *
1160            * @param start the lower bound of the range of email addresses
1161            * @param end the upper bound of the range of email addresses (not inclusive)
1162            * @return the range of email addresses
1163            * @throws SystemException if a system exception occurred
1164            */
1165            public java.util.List<com.liferay.portal.model.EmailAddress> findAll(
1166                    int start, int end)
1167                    throws com.liferay.portal.kernel.exception.SystemException;
1168    
1169            /**
1170            * Returns an ordered range of all the email addresses.
1171            *
1172            * <p>
1173            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.EmailAddressModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
1174            * </p>
1175            *
1176            * @param start the lower bound of the range of email addresses
1177            * @param end the upper bound of the range of email addresses (not inclusive)
1178            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1179            * @return the ordered range of email addresses
1180            * @throws SystemException if a system exception occurred
1181            */
1182            public java.util.List<com.liferay.portal.model.EmailAddress> findAll(
1183                    int start, int end,
1184                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1185                    throws com.liferay.portal.kernel.exception.SystemException;
1186    
1187            /**
1188            * Removes all the email addresses from the database.
1189            *
1190            * @throws SystemException if a system exception occurred
1191            */
1192            public void removeAll()
1193                    throws com.liferay.portal.kernel.exception.SystemException;
1194    
1195            /**
1196            * Returns the number of email addresses.
1197            *
1198            * @return the number of email addresses
1199            * @throws SystemException if a system exception occurred
1200            */
1201            public int countAll()
1202                    throws com.liferay.portal.kernel.exception.SystemException;
1203    }