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