001    /**
002     * Copyright (c) 2000-present 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 com.liferay.portal.service.persistence.impl.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            */
047            public java.util.List<EmailAddress> findByUuid(java.lang.String uuid);
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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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            */
061            public java.util.List<EmailAddress> findByUuid(java.lang.String uuid,
062                    int start, int end);
063    
064            /**
065            * Returns an ordered range of all the email addresses where uuid = &#63;.
066            *
067            * <p>
068            * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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.
069            * </p>
070            *
071            * @param uuid the uuid
072            * @param start the lower bound of the range of email addresses
073            * @param end the upper bound of the range of email addresses (not inclusive)
074            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
075            * @return the ordered range of matching email addresses
076            */
077            public java.util.List<EmailAddress> findByUuid(java.lang.String uuid,
078                    int start, int end,
079                    com.liferay.portal.kernel.util.OrderByComparator<EmailAddress> orderByComparator);
080    
081            /**
082            * Returns the first email address in the ordered set where uuid = &#63;.
083            *
084            * @param uuid the uuid
085            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
086            * @return the first matching email address
087            * @throws NoSuchEmailAddressException if a matching email address could not be found
088            */
089            public EmailAddress findByUuid_First(java.lang.String uuid,
090                    com.liferay.portal.kernel.util.OrderByComparator<EmailAddress> orderByComparator)
091                    throws com.liferay.portal.NoSuchEmailAddressException;
092    
093            /**
094            * Returns the first email address in the ordered set where uuid = &#63;.
095            *
096            * @param uuid the uuid
097            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
098            * @return the first matching email address, or <code>null</code> if a matching email address could not be found
099            */
100            public EmailAddress fetchByUuid_First(java.lang.String uuid,
101                    com.liferay.portal.kernel.util.OrderByComparator<EmailAddress> orderByComparator);
102    
103            /**
104            * Returns the last 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 last matching email address
109            * @throws NoSuchEmailAddressException if a matching email address could not be found
110            */
111            public EmailAddress findByUuid_Last(java.lang.String uuid,
112                    com.liferay.portal.kernel.util.OrderByComparator<EmailAddress> orderByComparator)
113                    throws com.liferay.portal.NoSuchEmailAddressException;
114    
115            /**
116            * Returns the last email address in the ordered set where uuid = &#63;.
117            *
118            * @param uuid the uuid
119            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
120            * @return the last matching email address, or <code>null</code> if a matching email address could not be found
121            */
122            public EmailAddress fetchByUuid_Last(java.lang.String uuid,
123                    com.liferay.portal.kernel.util.OrderByComparator<EmailAddress> orderByComparator);
124    
125            /**
126            * Returns the email addresses before and after the current email address in the ordered set where uuid = &#63;.
127            *
128            * @param emailAddressId the primary key of the current email address
129            * @param uuid the uuid
130            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
131            * @return the previous, current, and next email address
132            * @throws NoSuchEmailAddressException if a email address with the primary key could not be found
133            */
134            public EmailAddress[] findByUuid_PrevAndNext(long emailAddressId,
135                    java.lang.String uuid,
136                    com.liferay.portal.kernel.util.OrderByComparator<EmailAddress> orderByComparator)
137                    throws com.liferay.portal.NoSuchEmailAddressException;
138    
139            /**
140            * Removes all the email addresses where uuid = &#63; from the database.
141            *
142            * @param uuid the uuid
143            */
144            public void removeByUuid(java.lang.String uuid);
145    
146            /**
147            * Returns the number of email addresses where uuid = &#63;.
148            *
149            * @param uuid the uuid
150            * @return the number of matching email addresses
151            */
152            public int countByUuid(java.lang.String uuid);
153    
154            /**
155            * Returns all the email addresses where uuid = &#63; and companyId = &#63;.
156            *
157            * @param uuid the uuid
158            * @param companyId the company ID
159            * @return the matching email addresses
160            */
161            public java.util.List<EmailAddress> findByUuid_C(java.lang.String uuid,
162                    long companyId);
163    
164            /**
165            * Returns a range of all the email addresses where uuid = &#63; and companyId = &#63;.
166            *
167            * <p>
168            * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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.
169            * </p>
170            *
171            * @param uuid the uuid
172            * @param companyId the company ID
173            * @param start the lower bound of the range of email addresses
174            * @param end the upper bound of the range of email addresses (not inclusive)
175            * @return the range of matching email addresses
176            */
177            public java.util.List<EmailAddress> findByUuid_C(java.lang.String uuid,
178                    long companyId, int start, int end);
179    
180            /**
181            * Returns an ordered range of all the email addresses where uuid = &#63; and companyId = &#63;.
182            *
183            * <p>
184            * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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.
185            * </p>
186            *
187            * @param uuid the uuid
188            * @param companyId the company ID
189            * @param start the lower bound of the range of email addresses
190            * @param end the upper bound of the range of email addresses (not inclusive)
191            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
192            * @return the ordered range of matching email addresses
193            */
194            public java.util.List<EmailAddress> findByUuid_C(java.lang.String uuid,
195                    long companyId, int start, int end,
196                    com.liferay.portal.kernel.util.OrderByComparator<EmailAddress> orderByComparator);
197    
198            /**
199            * Returns the first email address in the ordered set where uuid = &#63; and companyId = &#63;.
200            *
201            * @param uuid the uuid
202            * @param companyId the company ID
203            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
204            * @return the first matching email address
205            * @throws NoSuchEmailAddressException if a matching email address could not be found
206            */
207            public EmailAddress findByUuid_C_First(java.lang.String uuid,
208                    long companyId,
209                    com.liferay.portal.kernel.util.OrderByComparator<EmailAddress> orderByComparator)
210                    throws com.liferay.portal.NoSuchEmailAddressException;
211    
212            /**
213            * Returns the first email address in the ordered set where uuid = &#63; and companyId = &#63;.
214            *
215            * @param uuid the uuid
216            * @param companyId the company ID
217            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
218            * @return the first matching email address, or <code>null</code> if a matching email address could not be found
219            */
220            public EmailAddress fetchByUuid_C_First(java.lang.String uuid,
221                    long companyId,
222                    com.liferay.portal.kernel.util.OrderByComparator<EmailAddress> orderByComparator);
223    
224            /**
225            * Returns the last email address in the ordered set where uuid = &#63; and companyId = &#63;.
226            *
227            * @param uuid the uuid
228            * @param companyId the company ID
229            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
230            * @return the last matching email address
231            * @throws NoSuchEmailAddressException if a matching email address could not be found
232            */
233            public EmailAddress findByUuid_C_Last(java.lang.String uuid,
234                    long companyId,
235                    com.liferay.portal.kernel.util.OrderByComparator<EmailAddress> orderByComparator)
236                    throws com.liferay.portal.NoSuchEmailAddressException;
237    
238            /**
239            * Returns the last email address in the ordered set where uuid = &#63; and companyId = &#63;.
240            *
241            * @param uuid the uuid
242            * @param companyId the company ID
243            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
244            * @return the last matching email address, or <code>null</code> if a matching email address could not be found
245            */
246            public EmailAddress fetchByUuid_C_Last(java.lang.String uuid,
247                    long companyId,
248                    com.liferay.portal.kernel.util.OrderByComparator<EmailAddress> orderByComparator);
249    
250            /**
251            * Returns the email addresses before and after the current email address in the ordered set where uuid = &#63; and companyId = &#63;.
252            *
253            * @param emailAddressId the primary key of the current email address
254            * @param uuid the uuid
255            * @param companyId the company ID
256            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
257            * @return the previous, current, and next email address
258            * @throws NoSuchEmailAddressException if a email address with the primary key could not be found
259            */
260            public EmailAddress[] findByUuid_C_PrevAndNext(long emailAddressId,
261                    java.lang.String uuid, long companyId,
262                    com.liferay.portal.kernel.util.OrderByComparator<EmailAddress> orderByComparator)
263                    throws com.liferay.portal.NoSuchEmailAddressException;
264    
265            /**
266            * Removes all the email addresses where uuid = &#63; and companyId = &#63; from the database.
267            *
268            * @param uuid the uuid
269            * @param companyId the company ID
270            */
271            public void removeByUuid_C(java.lang.String uuid, long companyId);
272    
273            /**
274            * Returns the number of email addresses where uuid = &#63; and companyId = &#63;.
275            *
276            * @param uuid the uuid
277            * @param companyId the company ID
278            * @return the number of matching email addresses
279            */
280            public int countByUuid_C(java.lang.String uuid, long companyId);
281    
282            /**
283            * Returns all the email addresses where companyId = &#63;.
284            *
285            * @param companyId the company ID
286            * @return the matching email addresses
287            */
288            public java.util.List<EmailAddress> findByCompanyId(long companyId);
289    
290            /**
291            * Returns a range of all the email addresses where companyId = &#63;.
292            *
293            * <p>
294            * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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.
295            * </p>
296            *
297            * @param companyId the company ID
298            * @param start the lower bound of the range of email addresses
299            * @param end the upper bound of the range of email addresses (not inclusive)
300            * @return the range of matching email addresses
301            */
302            public java.util.List<EmailAddress> findByCompanyId(long companyId,
303                    int start, int end);
304    
305            /**
306            * Returns an ordered range of all the email addresses where companyId = &#63;.
307            *
308            * <p>
309            * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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.
310            * </p>
311            *
312            * @param companyId the company ID
313            * @param start the lower bound of the range of email addresses
314            * @param end the upper bound of the range of email addresses (not inclusive)
315            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
316            * @return the ordered range of matching email addresses
317            */
318            public java.util.List<EmailAddress> findByCompanyId(long companyId,
319                    int start, int end,
320                    com.liferay.portal.kernel.util.OrderByComparator<EmailAddress> orderByComparator);
321    
322            /**
323            * Returns the first email address in the ordered set where companyId = &#63;.
324            *
325            * @param companyId the company ID
326            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
327            * @return the first matching email address
328            * @throws NoSuchEmailAddressException if a matching email address could not be found
329            */
330            public EmailAddress findByCompanyId_First(long companyId,
331                    com.liferay.portal.kernel.util.OrderByComparator<EmailAddress> orderByComparator)
332                    throws com.liferay.portal.NoSuchEmailAddressException;
333    
334            /**
335            * Returns the first email address in the ordered set where companyId = &#63;.
336            *
337            * @param companyId the company ID
338            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
339            * @return the first matching email address, or <code>null</code> if a matching email address could not be found
340            */
341            public EmailAddress fetchByCompanyId_First(long companyId,
342                    com.liferay.portal.kernel.util.OrderByComparator<EmailAddress> orderByComparator);
343    
344            /**
345            * Returns the last email address in the ordered set where companyId = &#63;.
346            *
347            * @param companyId the company ID
348            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
349            * @return the last matching email address
350            * @throws NoSuchEmailAddressException if a matching email address could not be found
351            */
352            public EmailAddress findByCompanyId_Last(long companyId,
353                    com.liferay.portal.kernel.util.OrderByComparator<EmailAddress> orderByComparator)
354                    throws com.liferay.portal.NoSuchEmailAddressException;
355    
356            /**
357            * Returns the last email address in the ordered set where companyId = &#63;.
358            *
359            * @param companyId the company ID
360            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
361            * @return the last matching email address, or <code>null</code> if a matching email address could not be found
362            */
363            public EmailAddress fetchByCompanyId_Last(long companyId,
364                    com.liferay.portal.kernel.util.OrderByComparator<EmailAddress> orderByComparator);
365    
366            /**
367            * Returns the email addresses before and after the current email address in the ordered set where companyId = &#63;.
368            *
369            * @param emailAddressId the primary key of the current email address
370            * @param companyId the company ID
371            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
372            * @return the previous, current, and next email address
373            * @throws NoSuchEmailAddressException if a email address with the primary key could not be found
374            */
375            public EmailAddress[] findByCompanyId_PrevAndNext(long emailAddressId,
376                    long companyId,
377                    com.liferay.portal.kernel.util.OrderByComparator<EmailAddress> orderByComparator)
378                    throws com.liferay.portal.NoSuchEmailAddressException;
379    
380            /**
381            * Removes all the email addresses where companyId = &#63; from the database.
382            *
383            * @param companyId the company ID
384            */
385            public void removeByCompanyId(long companyId);
386    
387            /**
388            * Returns the number of email addresses where companyId = &#63;.
389            *
390            * @param companyId the company ID
391            * @return the number of matching email addresses
392            */
393            public int countByCompanyId(long companyId);
394    
395            /**
396            * Returns all the email addresses where userId = &#63;.
397            *
398            * @param userId the user ID
399            * @return the matching email addresses
400            */
401            public java.util.List<EmailAddress> findByUserId(long userId);
402    
403            /**
404            * Returns a range of all the email addresses where userId = &#63;.
405            *
406            * <p>
407            * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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.
408            * </p>
409            *
410            * @param userId the user ID
411            * @param start the lower bound of the range of email addresses
412            * @param end the upper bound of the range of email addresses (not inclusive)
413            * @return the range of matching email addresses
414            */
415            public java.util.List<EmailAddress> findByUserId(long userId, int start,
416                    int end);
417    
418            /**
419            * Returns an ordered range of all the email addresses where userId = &#63;.
420            *
421            * <p>
422            * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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.
423            * </p>
424            *
425            * @param userId the user ID
426            * @param start the lower bound of the range of email addresses
427            * @param end the upper bound of the range of email addresses (not inclusive)
428            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
429            * @return the ordered range of matching email addresses
430            */
431            public java.util.List<EmailAddress> findByUserId(long userId, int start,
432                    int end,
433                    com.liferay.portal.kernel.util.OrderByComparator<EmailAddress> orderByComparator);
434    
435            /**
436            * Returns the first email address in the ordered set where userId = &#63;.
437            *
438            * @param userId the user ID
439            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
440            * @return the first matching email address
441            * @throws NoSuchEmailAddressException if a matching email address could not be found
442            */
443            public EmailAddress findByUserId_First(long userId,
444                    com.liferay.portal.kernel.util.OrderByComparator<EmailAddress> orderByComparator)
445                    throws com.liferay.portal.NoSuchEmailAddressException;
446    
447            /**
448            * Returns the first email address in the ordered set where userId = &#63;.
449            *
450            * @param userId the user ID
451            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
452            * @return the first matching email address, or <code>null</code> if a matching email address could not be found
453            */
454            public EmailAddress fetchByUserId_First(long userId,
455                    com.liferay.portal.kernel.util.OrderByComparator<EmailAddress> orderByComparator);
456    
457            /**
458            * Returns the last email address in the ordered set where userId = &#63;.
459            *
460            * @param userId the user ID
461            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
462            * @return the last matching email address
463            * @throws NoSuchEmailAddressException if a matching email address could not be found
464            */
465            public EmailAddress findByUserId_Last(long userId,
466                    com.liferay.portal.kernel.util.OrderByComparator<EmailAddress> orderByComparator)
467                    throws com.liferay.portal.NoSuchEmailAddressException;
468    
469            /**
470            * Returns the last email address in the ordered set where userId = &#63;.
471            *
472            * @param userId the user ID
473            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
474            * @return the last matching email address, or <code>null</code> if a matching email address could not be found
475            */
476            public EmailAddress fetchByUserId_Last(long userId,
477                    com.liferay.portal.kernel.util.OrderByComparator<EmailAddress> orderByComparator);
478    
479            /**
480            * Returns the email addresses before and after the current email address in the ordered set where userId = &#63;.
481            *
482            * @param emailAddressId the primary key of the current email address
483            * @param userId the user ID
484            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
485            * @return the previous, current, and next email address
486            * @throws NoSuchEmailAddressException if a email address with the primary key could not be found
487            */
488            public EmailAddress[] findByUserId_PrevAndNext(long emailAddressId,
489                    long userId,
490                    com.liferay.portal.kernel.util.OrderByComparator<EmailAddress> orderByComparator)
491                    throws com.liferay.portal.NoSuchEmailAddressException;
492    
493            /**
494            * Removes all the email addresses where userId = &#63; from the database.
495            *
496            * @param userId the user ID
497            */
498            public void removeByUserId(long userId);
499    
500            /**
501            * Returns the number of email addresses where userId = &#63;.
502            *
503            * @param userId the user ID
504            * @return the number of matching email addresses
505            */
506            public int countByUserId(long userId);
507    
508            /**
509            * Returns all the email addresses where companyId = &#63; and classNameId = &#63;.
510            *
511            * @param companyId the company ID
512            * @param classNameId the class name ID
513            * @return the matching email addresses
514            */
515            public java.util.List<EmailAddress> findByC_C(long companyId,
516                    long classNameId);
517    
518            /**
519            * Returns a range of all the email addresses where companyId = &#63; and classNameId = &#63;.
520            *
521            * <p>
522            * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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.
523            * </p>
524            *
525            * @param companyId the company ID
526            * @param classNameId the class name ID
527            * @param start the lower bound of the range of email addresses
528            * @param end the upper bound of the range of email addresses (not inclusive)
529            * @return the range of matching email addresses
530            */
531            public java.util.List<EmailAddress> findByC_C(long companyId,
532                    long classNameId, int start, int end);
533    
534            /**
535            * Returns an ordered range of all the email addresses where companyId = &#63; and classNameId = &#63;.
536            *
537            * <p>
538            * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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.
539            * </p>
540            *
541            * @param companyId the company ID
542            * @param classNameId the class name ID
543            * @param start the lower bound of the range of email addresses
544            * @param end the upper bound of the range of email addresses (not inclusive)
545            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
546            * @return the ordered range of matching email addresses
547            */
548            public java.util.List<EmailAddress> findByC_C(long companyId,
549                    long classNameId, int start, int end,
550                    com.liferay.portal.kernel.util.OrderByComparator<EmailAddress> orderByComparator);
551    
552            /**
553            * Returns the first email address in the ordered set where companyId = &#63; and classNameId = &#63;.
554            *
555            * @param companyId the company ID
556            * @param classNameId the class name ID
557            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
558            * @return the first matching email address
559            * @throws NoSuchEmailAddressException if a matching email address could not be found
560            */
561            public EmailAddress findByC_C_First(long companyId, long classNameId,
562                    com.liferay.portal.kernel.util.OrderByComparator<EmailAddress> orderByComparator)
563                    throws com.liferay.portal.NoSuchEmailAddressException;
564    
565            /**
566            * Returns the first email address in the ordered set where companyId = &#63; and classNameId = &#63;.
567            *
568            * @param companyId the company ID
569            * @param classNameId the class name ID
570            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
571            * @return the first matching email address, or <code>null</code> if a matching email address could not be found
572            */
573            public EmailAddress fetchByC_C_First(long companyId, long classNameId,
574                    com.liferay.portal.kernel.util.OrderByComparator<EmailAddress> orderByComparator);
575    
576            /**
577            * Returns the last email address in the ordered set where companyId = &#63; and classNameId = &#63;.
578            *
579            * @param companyId the company ID
580            * @param classNameId the class name ID
581            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
582            * @return the last matching email address
583            * @throws NoSuchEmailAddressException if a matching email address could not be found
584            */
585            public EmailAddress findByC_C_Last(long companyId, long classNameId,
586                    com.liferay.portal.kernel.util.OrderByComparator<EmailAddress> orderByComparator)
587                    throws com.liferay.portal.NoSuchEmailAddressException;
588    
589            /**
590            * Returns the last email address in the ordered set where companyId = &#63; and classNameId = &#63;.
591            *
592            * @param companyId the company ID
593            * @param classNameId the class name ID
594            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
595            * @return the last matching email address, or <code>null</code> if a matching email address could not be found
596            */
597            public EmailAddress fetchByC_C_Last(long companyId, long classNameId,
598                    com.liferay.portal.kernel.util.OrderByComparator<EmailAddress> orderByComparator);
599    
600            /**
601            * Returns the email addresses before and after the current email address in the ordered set where companyId = &#63; and classNameId = &#63;.
602            *
603            * @param emailAddressId the primary key of the current email address
604            * @param companyId the company ID
605            * @param classNameId the class name ID
606            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
607            * @return the previous, current, and next email address
608            * @throws NoSuchEmailAddressException if a email address with the primary key could not be found
609            */
610            public EmailAddress[] findByC_C_PrevAndNext(long emailAddressId,
611                    long companyId, long classNameId,
612                    com.liferay.portal.kernel.util.OrderByComparator<EmailAddress> orderByComparator)
613                    throws com.liferay.portal.NoSuchEmailAddressException;
614    
615            /**
616            * Removes all the email addresses where companyId = &#63; and classNameId = &#63; from the database.
617            *
618            * @param companyId the company ID
619            * @param classNameId the class name ID
620            */
621            public void removeByC_C(long companyId, long classNameId);
622    
623            /**
624            * Returns the number of email addresses where companyId = &#63; and classNameId = &#63;.
625            *
626            * @param companyId the company ID
627            * @param classNameId the class name ID
628            * @return the number of matching email addresses
629            */
630            public int countByC_C(long companyId, long classNameId);
631    
632            /**
633            * Returns all the email addresses where companyId = &#63; and classNameId = &#63; and classPK = &#63;.
634            *
635            * @param companyId the company ID
636            * @param classNameId the class name ID
637            * @param classPK the class p k
638            * @return the matching email addresses
639            */
640            public java.util.List<EmailAddress> findByC_C_C(long companyId,
641                    long classNameId, long classPK);
642    
643            /**
644            * Returns a range of all the email addresses where companyId = &#63; and classNameId = &#63; and classPK = &#63;.
645            *
646            * <p>
647            * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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.
648            * </p>
649            *
650            * @param companyId the company ID
651            * @param classNameId the class name ID
652            * @param classPK the class p k
653            * @param start the lower bound of the range of email addresses
654            * @param end the upper bound of the range of email addresses (not inclusive)
655            * @return the range of matching email addresses
656            */
657            public java.util.List<EmailAddress> findByC_C_C(long companyId,
658                    long classNameId, long classPK, int start, int end);
659    
660            /**
661            * Returns an ordered range of all the email addresses where companyId = &#63; and classNameId = &#63; and classPK = &#63;.
662            *
663            * <p>
664            * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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.
665            * </p>
666            *
667            * @param companyId the company ID
668            * @param classNameId the class name ID
669            * @param classPK the class p k
670            * @param start the lower bound of the range of email addresses
671            * @param end the upper bound of the range of email addresses (not inclusive)
672            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
673            * @return the ordered range of matching email addresses
674            */
675            public java.util.List<EmailAddress> findByC_C_C(long companyId,
676                    long classNameId, long classPK, int start, int end,
677                    com.liferay.portal.kernel.util.OrderByComparator<EmailAddress> orderByComparator);
678    
679            /**
680            * Returns the first email address in the ordered set where companyId = &#63; and classNameId = &#63; and classPK = &#63;.
681            *
682            * @param companyId the company ID
683            * @param classNameId the class name ID
684            * @param classPK the class p k
685            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
686            * @return the first matching email address
687            * @throws NoSuchEmailAddressException if a matching email address could not be found
688            */
689            public EmailAddress findByC_C_C_First(long companyId, long classNameId,
690                    long classPK,
691                    com.liferay.portal.kernel.util.OrderByComparator<EmailAddress> orderByComparator)
692                    throws com.liferay.portal.NoSuchEmailAddressException;
693    
694            /**
695            * Returns the first email address in the ordered set where companyId = &#63; and classNameId = &#63; and classPK = &#63;.
696            *
697            * @param companyId the company ID
698            * @param classNameId the class name ID
699            * @param classPK the class p k
700            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
701            * @return the first matching email address, or <code>null</code> if a matching email address could not be found
702            */
703            public EmailAddress fetchByC_C_C_First(long companyId, long classNameId,
704                    long classPK,
705                    com.liferay.portal.kernel.util.OrderByComparator<EmailAddress> orderByComparator);
706    
707            /**
708            * Returns the last email address in the ordered set where companyId = &#63; and classNameId = &#63; and classPK = &#63;.
709            *
710            * @param companyId the company ID
711            * @param classNameId the class name ID
712            * @param classPK the class p k
713            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
714            * @return the last matching email address
715            * @throws NoSuchEmailAddressException if a matching email address could not be found
716            */
717            public EmailAddress findByC_C_C_Last(long companyId, long classNameId,
718                    long classPK,
719                    com.liferay.portal.kernel.util.OrderByComparator<EmailAddress> orderByComparator)
720                    throws com.liferay.portal.NoSuchEmailAddressException;
721    
722            /**
723            * Returns the last email address in the ordered set where companyId = &#63; and classNameId = &#63; and classPK = &#63;.
724            *
725            * @param companyId the company ID
726            * @param classNameId the class name ID
727            * @param classPK the class p k
728            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
729            * @return the last matching email address, or <code>null</code> if a matching email address could not be found
730            */
731            public EmailAddress fetchByC_C_C_Last(long companyId, long classNameId,
732                    long classPK,
733                    com.liferay.portal.kernel.util.OrderByComparator<EmailAddress> orderByComparator);
734    
735            /**
736            * Returns the email addresses before and after the current email address in the ordered set where companyId = &#63; and classNameId = &#63; and classPK = &#63;.
737            *
738            * @param emailAddressId the primary key of the current email address
739            * @param companyId the company ID
740            * @param classNameId the class name ID
741            * @param classPK the class p k
742            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
743            * @return the previous, current, and next email address
744            * @throws NoSuchEmailAddressException if a email address with the primary key could not be found
745            */
746            public EmailAddress[] findByC_C_C_PrevAndNext(long emailAddressId,
747                    long companyId, long classNameId, long classPK,
748                    com.liferay.portal.kernel.util.OrderByComparator<EmailAddress> orderByComparator)
749                    throws com.liferay.portal.NoSuchEmailAddressException;
750    
751            /**
752            * Removes all the email addresses where companyId = &#63; and classNameId = &#63; and classPK = &#63; from the database.
753            *
754            * @param companyId the company ID
755            * @param classNameId the class name ID
756            * @param classPK the class p k
757            */
758            public void removeByC_C_C(long companyId, long classNameId, long classPK);
759    
760            /**
761            * Returns the number of email addresses where companyId = &#63; and classNameId = &#63; and classPK = &#63;.
762            *
763            * @param companyId the company ID
764            * @param classNameId the class name ID
765            * @param classPK the class p k
766            * @return the number of matching email addresses
767            */
768            public int countByC_C_C(long companyId, long classNameId, long classPK);
769    
770            /**
771            * Returns all the email addresses where companyId = &#63; and classNameId = &#63; and classPK = &#63; and primary = &#63;.
772            *
773            * @param companyId the company ID
774            * @param classNameId the class name ID
775            * @param classPK the class p k
776            * @param primary the primary
777            * @return the matching email addresses
778            */
779            public java.util.List<EmailAddress> findByC_C_C_P(long companyId,
780                    long classNameId, long classPK, boolean primary);
781    
782            /**
783            * Returns a range of all the email addresses where companyId = &#63; and classNameId = &#63; and classPK = &#63; and primary = &#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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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 primary the primary
793            * @param start the lower bound of the range of email addresses
794            * @param end the upper bound of the range of email addresses (not inclusive)
795            * @return the range of matching email addresses
796            */
797            public java.util.List<EmailAddress> findByC_C_C_P(long companyId,
798                    long classNameId, long classPK, boolean primary, int start, int end);
799    
800            /**
801            * Returns an ordered range of all the email addresses where companyId = &#63; and classNameId = &#63; and classPK = &#63; and primary = &#63;.
802            *
803            * <p>
804            * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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.
805            * </p>
806            *
807            * @param companyId the company ID
808            * @param classNameId the class name ID
809            * @param classPK the class p k
810            * @param primary the primary
811            * @param start the lower bound of the range of email addresses
812            * @param end the upper bound of the range of email addresses (not inclusive)
813            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
814            * @return the ordered range of matching email addresses
815            */
816            public java.util.List<EmailAddress> findByC_C_C_P(long companyId,
817                    long classNameId, long classPK, boolean primary, int start, int end,
818                    com.liferay.portal.kernel.util.OrderByComparator<EmailAddress> orderByComparator);
819    
820            /**
821            * Returns the first email address in the ordered set where companyId = &#63; and classNameId = &#63; and classPK = &#63; and primary = &#63;.
822            *
823            * @param companyId the company ID
824            * @param classNameId the class name ID
825            * @param classPK the class p k
826            * @param primary the primary
827            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
828            * @return the first matching email address
829            * @throws NoSuchEmailAddressException if a matching email address could not be found
830            */
831            public EmailAddress findByC_C_C_P_First(long companyId, long classNameId,
832                    long classPK, boolean primary,
833                    com.liferay.portal.kernel.util.OrderByComparator<EmailAddress> orderByComparator)
834                    throws com.liferay.portal.NoSuchEmailAddressException;
835    
836            /**
837            * Returns the first email address in the ordered set where companyId = &#63; and classNameId = &#63; and classPK = &#63; and primary = &#63;.
838            *
839            * @param companyId the company ID
840            * @param classNameId the class name ID
841            * @param classPK the class p k
842            * @param primary the primary
843            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
844            * @return the first matching email address, or <code>null</code> if a matching email address could not be found
845            */
846            public EmailAddress fetchByC_C_C_P_First(long companyId, long classNameId,
847                    long classPK, boolean primary,
848                    com.liferay.portal.kernel.util.OrderByComparator<EmailAddress> orderByComparator);
849    
850            /**
851            * Returns the last email address in the ordered set where companyId = &#63; and classNameId = &#63; and classPK = &#63; and primary = &#63;.
852            *
853            * @param companyId the company ID
854            * @param classNameId the class name ID
855            * @param classPK the class p k
856            * @param primary the primary
857            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
858            * @return the last matching email address
859            * @throws NoSuchEmailAddressException if a matching email address could not be found
860            */
861            public EmailAddress findByC_C_C_P_Last(long companyId, long classNameId,
862                    long classPK, boolean primary,
863                    com.liferay.portal.kernel.util.OrderByComparator<EmailAddress> orderByComparator)
864                    throws com.liferay.portal.NoSuchEmailAddressException;
865    
866            /**
867            * Returns the last email address in the ordered set where companyId = &#63; and classNameId = &#63; and classPK = &#63; and primary = &#63;.
868            *
869            * @param companyId the company ID
870            * @param classNameId the class name ID
871            * @param classPK the class p k
872            * @param primary the primary
873            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
874            * @return the last matching email address, or <code>null</code> if a matching email address could not be found
875            */
876            public EmailAddress fetchByC_C_C_P_Last(long companyId, long classNameId,
877                    long classPK, boolean primary,
878                    com.liferay.portal.kernel.util.OrderByComparator<EmailAddress> orderByComparator);
879    
880            /**
881            * 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;.
882            *
883            * @param emailAddressId the primary key of the current email address
884            * @param companyId the company ID
885            * @param classNameId the class name ID
886            * @param classPK the class p k
887            * @param primary the primary
888            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
889            * @return the previous, current, and next email address
890            * @throws NoSuchEmailAddressException if a email address with the primary key could not be found
891            */
892            public EmailAddress[] findByC_C_C_P_PrevAndNext(long emailAddressId,
893                    long companyId, long classNameId, long classPK, boolean primary,
894                    com.liferay.portal.kernel.util.OrderByComparator<EmailAddress> orderByComparator)
895                    throws com.liferay.portal.NoSuchEmailAddressException;
896    
897            /**
898            * Removes all the email addresses where companyId = &#63; and classNameId = &#63; and classPK = &#63; and primary = &#63; from the database.
899            *
900            * @param companyId the company ID
901            * @param classNameId the class name ID
902            * @param classPK the class p k
903            * @param primary the primary
904            */
905            public void removeByC_C_C_P(long companyId, long classNameId, long classPK,
906                    boolean primary);
907    
908            /**
909            * Returns the number of 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 number of matching email addresses
916            */
917            public int countByC_C_C_P(long companyId, long classNameId, long classPK,
918                    boolean primary);
919    
920            /**
921            * Caches the email address in the entity cache if it is enabled.
922            *
923            * @param emailAddress the email address
924            */
925            public void cacheResult(EmailAddress emailAddress);
926    
927            /**
928            * Caches the email addresses in the entity cache if it is enabled.
929            *
930            * @param emailAddresses the email addresses
931            */
932            public void cacheResult(java.util.List<EmailAddress> emailAddresses);
933    
934            /**
935            * Creates a new email address with the primary key. Does not add the email address to the database.
936            *
937            * @param emailAddressId the primary key for the new email address
938            * @return the new email address
939            */
940            public EmailAddress create(long emailAddressId);
941    
942            /**
943            * Removes the email address with the primary key from the database. Also notifies the appropriate model listeners.
944            *
945            * @param emailAddressId the primary key of the email address
946            * @return the email address that was removed
947            * @throws NoSuchEmailAddressException if a email address with the primary key could not be found
948            */
949            public EmailAddress remove(long emailAddressId)
950                    throws com.liferay.portal.NoSuchEmailAddressException;
951    
952            public EmailAddress updateImpl(EmailAddress emailAddress);
953    
954            /**
955            * Returns the email address with the primary key or throws a {@link NoSuchEmailAddressException} if it could not be found.
956            *
957            * @param emailAddressId the primary key of the email address
958            * @return the email address
959            * @throws NoSuchEmailAddressException if a email address with the primary key could not be found
960            */
961            public EmailAddress findByPrimaryKey(long emailAddressId)
962                    throws com.liferay.portal.NoSuchEmailAddressException;
963    
964            /**
965            * Returns the email address with the primary key or returns <code>null</code> if it could not be found.
966            *
967            * @param emailAddressId the primary key of the email address
968            * @return the email address, or <code>null</code> if a email address with the primary key could not be found
969            */
970            public EmailAddress fetchByPrimaryKey(long emailAddressId);
971    
972            @Override
973            public java.util.Map<java.io.Serializable, EmailAddress> fetchByPrimaryKeys(
974                    java.util.Set<java.io.Serializable> primaryKeys);
975    
976            /**
977            * Returns all the email addresses.
978            *
979            * @return the email addresses
980            */
981            public java.util.List<EmailAddress> findAll();
982    
983            /**
984            * Returns a range of all the email addresses.
985            *
986            * <p>
987            * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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.
988            * </p>
989            *
990            * @param start the lower bound of the range of email addresses
991            * @param end the upper bound of the range of email addresses (not inclusive)
992            * @return the range of email addresses
993            */
994            public java.util.List<EmailAddress> findAll(int start, int end);
995    
996            /**
997            * Returns an ordered range of all the email addresses.
998            *
999            * <p>
1000            * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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.
1001            * </p>
1002            *
1003            * @param start the lower bound of the range of email addresses
1004            * @param end the upper bound of the range of email addresses (not inclusive)
1005            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1006            * @return the ordered range of email addresses
1007            */
1008            public java.util.List<EmailAddress> findAll(int start, int end,
1009                    com.liferay.portal.kernel.util.OrderByComparator<EmailAddress> orderByComparator);
1010    
1011            /**
1012            * Removes all the email addresses from the database.
1013            */
1014            public void removeAll();
1015    
1016            /**
1017            * Returns the number of email addresses.
1018            *
1019            * @return the number of email addresses
1020            */
1021            public int countAll();
1022    }