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