001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.service.persistence;
016    
017    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018    import com.liferay.portal.kernel.dao.orm.DynamicQuery;
019    import com.liferay.portal.kernel.exception.SystemException;
020    import com.liferay.portal.kernel.util.OrderByComparator;
021    import com.liferay.portal.kernel.util.ReferenceRegistry;
022    import com.liferay.portal.model.Phone;
023    import com.liferay.portal.service.ServiceContext;
024    
025    import java.util.List;
026    
027    /**
028     * The persistence utility for the phone service. This utility wraps {@link PhonePersistenceImpl} and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
029     *
030     * <p>
031     * Caching information and settings can be found in <code>portal.properties</code>
032     * </p>
033     *
034     * @author Brian Wing Shun Chan
035     * @see PhonePersistence
036     * @see PhonePersistenceImpl
037     * @generated
038     */
039    public class PhoneUtil {
040            /*
041             * NOTE FOR DEVELOPERS:
042             *
043             * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class.
044             */
045    
046            /**
047             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
048             */
049            public static void clearCache() {
050                    getPersistence().clearCache();
051            }
052    
053            /**
054             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel)
055             */
056            public static void clearCache(Phone phone) {
057                    getPersistence().clearCache(phone);
058            }
059    
060            /**
061             * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
062             */
063            public static long countWithDynamicQuery(DynamicQuery dynamicQuery)
064                    throws SystemException {
065                    return getPersistence().countWithDynamicQuery(dynamicQuery);
066            }
067    
068            /**
069             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
070             */
071            public static List<Phone> findWithDynamicQuery(DynamicQuery dynamicQuery)
072                    throws SystemException {
073                    return getPersistence().findWithDynamicQuery(dynamicQuery);
074            }
075    
076            /**
077             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
078             */
079            public static List<Phone> findWithDynamicQuery(DynamicQuery dynamicQuery,
080                    int start, int end) throws SystemException {
081                    return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
082            }
083    
084            /**
085             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
086             */
087            public static List<Phone> findWithDynamicQuery(DynamicQuery dynamicQuery,
088                    int start, int end, OrderByComparator orderByComparator)
089                    throws SystemException {
090                    return getPersistence()
091                                       .findWithDynamicQuery(dynamicQuery, start, end,
092                            orderByComparator);
093            }
094    
095            /**
096             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel)
097             */
098            public static Phone update(Phone phone) throws SystemException {
099                    return getPersistence().update(phone);
100            }
101    
102            /**
103             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, ServiceContext)
104             */
105            public static Phone update(Phone phone, ServiceContext serviceContext)
106                    throws SystemException {
107                    return getPersistence().update(phone, serviceContext);
108            }
109    
110            /**
111            * Returns all the phones where uuid = &#63;.
112            *
113            * @param uuid the uuid
114            * @return the matching phones
115            * @throws SystemException if a system exception occurred
116            */
117            public static java.util.List<com.liferay.portal.model.Phone> findByUuid(
118                    java.lang.String uuid)
119                    throws com.liferay.portal.kernel.exception.SystemException {
120                    return getPersistence().findByUuid(uuid);
121            }
122    
123            /**
124            * Returns a range of all the phones where uuid = &#63;.
125            *
126            * <p>
127            * 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.
128            * </p>
129            *
130            * @param uuid the uuid
131            * @param start the lower bound of the range of phones
132            * @param end the upper bound of the range of phones (not inclusive)
133            * @return the range of matching phones
134            * @throws SystemException if a system exception occurred
135            */
136            public static java.util.List<com.liferay.portal.model.Phone> findByUuid(
137                    java.lang.String uuid, int start, int end)
138                    throws com.liferay.portal.kernel.exception.SystemException {
139                    return getPersistence().findByUuid(uuid, start, end);
140            }
141    
142            /**
143            * Returns an ordered range of all the phones where uuid = &#63;.
144            *
145            * <p>
146            * 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.
147            * </p>
148            *
149            * @param uuid the uuid
150            * @param start the lower bound of the range of phones
151            * @param end the upper bound of the range of phones (not inclusive)
152            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
153            * @return the ordered range of matching phones
154            * @throws SystemException if a system exception occurred
155            */
156            public static java.util.List<com.liferay.portal.model.Phone> findByUuid(
157                    java.lang.String uuid, int start, int end,
158                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
159                    throws com.liferay.portal.kernel.exception.SystemException {
160                    return getPersistence().findByUuid(uuid, start, end, orderByComparator);
161            }
162    
163            /**
164            * Returns the first phone in the ordered set where uuid = &#63;.
165            *
166            * @param uuid the uuid
167            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
168            * @return the first matching phone
169            * @throws com.liferay.portal.NoSuchPhoneException if a matching phone could not be found
170            * @throws SystemException if a system exception occurred
171            */
172            public static com.liferay.portal.model.Phone findByUuid_First(
173                    java.lang.String uuid,
174                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
175                    throws com.liferay.portal.NoSuchPhoneException,
176                            com.liferay.portal.kernel.exception.SystemException {
177                    return getPersistence().findByUuid_First(uuid, orderByComparator);
178            }
179    
180            /**
181            * Returns the first phone in the ordered set where uuid = &#63;.
182            *
183            * @param uuid the uuid
184            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
185            * @return the first matching phone, or <code>null</code> if a matching phone could not be found
186            * @throws SystemException if a system exception occurred
187            */
188            public static com.liferay.portal.model.Phone fetchByUuid_First(
189                    java.lang.String uuid,
190                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
191                    throws com.liferay.portal.kernel.exception.SystemException {
192                    return getPersistence().fetchByUuid_First(uuid, orderByComparator);
193            }
194    
195            /**
196            * Returns the last phone in the ordered set where uuid = &#63;.
197            *
198            * @param uuid the uuid
199            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
200            * @return the last matching phone
201            * @throws com.liferay.portal.NoSuchPhoneException if a matching phone could not be found
202            * @throws SystemException if a system exception occurred
203            */
204            public static com.liferay.portal.model.Phone findByUuid_Last(
205                    java.lang.String uuid,
206                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
207                    throws com.liferay.portal.NoSuchPhoneException,
208                            com.liferay.portal.kernel.exception.SystemException {
209                    return getPersistence().findByUuid_Last(uuid, orderByComparator);
210            }
211    
212            /**
213            * Returns the last phone in the ordered set where uuid = &#63;.
214            *
215            * @param uuid the uuid
216            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
217            * @return the last matching phone, or <code>null</code> if a matching phone could not be found
218            * @throws SystemException if a system exception occurred
219            */
220            public static com.liferay.portal.model.Phone fetchByUuid_Last(
221                    java.lang.String uuid,
222                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
223                    throws com.liferay.portal.kernel.exception.SystemException {
224                    return getPersistence().fetchByUuid_Last(uuid, orderByComparator);
225            }
226    
227            /**
228            * Returns the phones before and after the current phone in the ordered set where uuid = &#63;.
229            *
230            * @param phoneId the primary key of the current phone
231            * @param uuid the uuid
232            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
233            * @return the previous, current, and next phone
234            * @throws com.liferay.portal.NoSuchPhoneException if a phone with the primary key could not be found
235            * @throws SystemException if a system exception occurred
236            */
237            public static com.liferay.portal.model.Phone[] findByUuid_PrevAndNext(
238                    long phoneId, java.lang.String uuid,
239                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
240                    throws com.liferay.portal.NoSuchPhoneException,
241                            com.liferay.portal.kernel.exception.SystemException {
242                    return getPersistence()
243                                       .findByUuid_PrevAndNext(phoneId, uuid, orderByComparator);
244            }
245    
246            /**
247            * Removes all the phones where uuid = &#63; from the database.
248            *
249            * @param uuid the uuid
250            * @throws SystemException if a system exception occurred
251            */
252            public static void removeByUuid(java.lang.String uuid)
253                    throws com.liferay.portal.kernel.exception.SystemException {
254                    getPersistence().removeByUuid(uuid);
255            }
256    
257            /**
258            * Returns the number of phones where uuid = &#63;.
259            *
260            * @param uuid the uuid
261            * @return the number of matching phones
262            * @throws SystemException if a system exception occurred
263            */
264            public static int countByUuid(java.lang.String uuid)
265                    throws com.liferay.portal.kernel.exception.SystemException {
266                    return getPersistence().countByUuid(uuid);
267            }
268    
269            /**
270            * Returns all the phones where uuid = &#63; and companyId = &#63;.
271            *
272            * @param uuid the uuid
273            * @param companyId the company ID
274            * @return the matching phones
275            * @throws SystemException if a system exception occurred
276            */
277            public static java.util.List<com.liferay.portal.model.Phone> findByUuid_C(
278                    java.lang.String uuid, long companyId)
279                    throws com.liferay.portal.kernel.exception.SystemException {
280                    return getPersistence().findByUuid_C(uuid, companyId);
281            }
282    
283            /**
284            * Returns a range of all the phones where uuid = &#63; and companyId = &#63;.
285            *
286            * <p>
287            * 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.
288            * </p>
289            *
290            * @param uuid the uuid
291            * @param companyId the company ID
292            * @param start the lower bound of the range of phones
293            * @param end the upper bound of the range of phones (not inclusive)
294            * @return the range of matching phones
295            * @throws SystemException if a system exception occurred
296            */
297            public static java.util.List<com.liferay.portal.model.Phone> findByUuid_C(
298                    java.lang.String uuid, long companyId, int start, int end)
299                    throws com.liferay.portal.kernel.exception.SystemException {
300                    return getPersistence().findByUuid_C(uuid, companyId, start, end);
301            }
302    
303            /**
304            * Returns an ordered range of all the phones where uuid = &#63; and companyId = &#63;.
305            *
306            * <p>
307            * 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.
308            * </p>
309            *
310            * @param uuid the uuid
311            * @param companyId the company ID
312            * @param start the lower bound of the range of phones
313            * @param end the upper bound of the range of phones (not inclusive)
314            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
315            * @return the ordered range of matching phones
316            * @throws SystemException if a system exception occurred
317            */
318            public static java.util.List<com.liferay.portal.model.Phone> findByUuid_C(
319                    java.lang.String uuid, long companyId, int start, int end,
320                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
321                    throws com.liferay.portal.kernel.exception.SystemException {
322                    return getPersistence()
323                                       .findByUuid_C(uuid, companyId, start, end, orderByComparator);
324            }
325    
326            /**
327            * Returns the first phone in the ordered set where uuid = &#63; and companyId = &#63;.
328            *
329            * @param uuid the uuid
330            * @param companyId the company ID
331            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
332            * @return the first matching phone
333            * @throws com.liferay.portal.NoSuchPhoneException if a matching phone could not be found
334            * @throws SystemException if a system exception occurred
335            */
336            public static com.liferay.portal.model.Phone findByUuid_C_First(
337                    java.lang.String uuid, long companyId,
338                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
339                    throws com.liferay.portal.NoSuchPhoneException,
340                            com.liferay.portal.kernel.exception.SystemException {
341                    return getPersistence()
342                                       .findByUuid_C_First(uuid, companyId, orderByComparator);
343            }
344    
345            /**
346            * Returns the first phone in the ordered set where uuid = &#63; and companyId = &#63;.
347            *
348            * @param uuid the uuid
349            * @param companyId the company ID
350            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
351            * @return the first matching phone, or <code>null</code> if a matching phone could not be found
352            * @throws SystemException if a system exception occurred
353            */
354            public static com.liferay.portal.model.Phone fetchByUuid_C_First(
355                    java.lang.String uuid, long companyId,
356                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
357                    throws com.liferay.portal.kernel.exception.SystemException {
358                    return getPersistence()
359                                       .fetchByUuid_C_First(uuid, companyId, orderByComparator);
360            }
361    
362            /**
363            * Returns the last phone in the ordered set where uuid = &#63; and companyId = &#63;.
364            *
365            * @param uuid the uuid
366            * @param companyId the company ID
367            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
368            * @return the last matching phone
369            * @throws com.liferay.portal.NoSuchPhoneException if a matching phone could not be found
370            * @throws SystemException if a system exception occurred
371            */
372            public static com.liferay.portal.model.Phone findByUuid_C_Last(
373                    java.lang.String uuid, long companyId,
374                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
375                    throws com.liferay.portal.NoSuchPhoneException,
376                            com.liferay.portal.kernel.exception.SystemException {
377                    return getPersistence()
378                                       .findByUuid_C_Last(uuid, companyId, orderByComparator);
379            }
380    
381            /**
382            * Returns the last phone in the ordered set where uuid = &#63; and companyId = &#63;.
383            *
384            * @param uuid the uuid
385            * @param companyId the company ID
386            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
387            * @return the last matching phone, or <code>null</code> if a matching phone could not be found
388            * @throws SystemException if a system exception occurred
389            */
390            public static com.liferay.portal.model.Phone fetchByUuid_C_Last(
391                    java.lang.String uuid, long companyId,
392                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
393                    throws com.liferay.portal.kernel.exception.SystemException {
394                    return getPersistence()
395                                       .fetchByUuid_C_Last(uuid, companyId, orderByComparator);
396            }
397    
398            /**
399            * Returns the phones before and after the current phone in the ordered set where uuid = &#63; and companyId = &#63;.
400            *
401            * @param phoneId the primary key of the current phone
402            * @param uuid the uuid
403            * @param companyId the company ID
404            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
405            * @return the previous, current, and next phone
406            * @throws com.liferay.portal.NoSuchPhoneException if a phone with the primary key could not be found
407            * @throws SystemException if a system exception occurred
408            */
409            public static com.liferay.portal.model.Phone[] findByUuid_C_PrevAndNext(
410                    long phoneId, java.lang.String uuid, long companyId,
411                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
412                    throws com.liferay.portal.NoSuchPhoneException,
413                            com.liferay.portal.kernel.exception.SystemException {
414                    return getPersistence()
415                                       .findByUuid_C_PrevAndNext(phoneId, uuid, companyId,
416                            orderByComparator);
417            }
418    
419            /**
420            * Removes all the phones where uuid = &#63; and companyId = &#63; from the database.
421            *
422            * @param uuid the uuid
423            * @param companyId the company ID
424            * @throws SystemException if a system exception occurred
425            */
426            public static void removeByUuid_C(java.lang.String uuid, long companyId)
427                    throws com.liferay.portal.kernel.exception.SystemException {
428                    getPersistence().removeByUuid_C(uuid, companyId);
429            }
430    
431            /**
432            * Returns the number of phones where uuid = &#63; and companyId = &#63;.
433            *
434            * @param uuid the uuid
435            * @param companyId the company ID
436            * @return the number of matching phones
437            * @throws SystemException if a system exception occurred
438            */
439            public static int countByUuid_C(java.lang.String uuid, long companyId)
440                    throws com.liferay.portal.kernel.exception.SystemException {
441                    return getPersistence().countByUuid_C(uuid, companyId);
442            }
443    
444            /**
445            * Returns all the phones where companyId = &#63;.
446            *
447            * @param companyId the company ID
448            * @return the matching phones
449            * @throws SystemException if a system exception occurred
450            */
451            public static java.util.List<com.liferay.portal.model.Phone> findByCompanyId(
452                    long companyId)
453                    throws com.liferay.portal.kernel.exception.SystemException {
454                    return getPersistence().findByCompanyId(companyId);
455            }
456    
457            /**
458            * Returns a range of all the phones where companyId = &#63;.
459            *
460            * <p>
461            * 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.
462            * </p>
463            *
464            * @param companyId the company ID
465            * @param start the lower bound of the range of phones
466            * @param end the upper bound of the range of phones (not inclusive)
467            * @return the range of matching phones
468            * @throws SystemException if a system exception occurred
469            */
470            public static java.util.List<com.liferay.portal.model.Phone> findByCompanyId(
471                    long companyId, int start, int end)
472                    throws com.liferay.portal.kernel.exception.SystemException {
473                    return getPersistence().findByCompanyId(companyId, start, end);
474            }
475    
476            /**
477            * Returns an ordered range of all the phones where companyId = &#63;.
478            *
479            * <p>
480            * 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.
481            * </p>
482            *
483            * @param companyId the company ID
484            * @param start the lower bound of the range of phones
485            * @param end the upper bound of the range of phones (not inclusive)
486            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
487            * @return the ordered range of matching phones
488            * @throws SystemException if a system exception occurred
489            */
490            public static java.util.List<com.liferay.portal.model.Phone> findByCompanyId(
491                    long companyId, int start, int end,
492                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
493                    throws com.liferay.portal.kernel.exception.SystemException {
494                    return getPersistence()
495                                       .findByCompanyId(companyId, start, end, orderByComparator);
496            }
497    
498            /**
499            * Returns the first phone in the ordered set where companyId = &#63;.
500            *
501            * @param companyId the company ID
502            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
503            * @return the first matching phone
504            * @throws com.liferay.portal.NoSuchPhoneException if a matching phone could not be found
505            * @throws SystemException if a system exception occurred
506            */
507            public static com.liferay.portal.model.Phone findByCompanyId_First(
508                    long companyId,
509                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
510                    throws com.liferay.portal.NoSuchPhoneException,
511                            com.liferay.portal.kernel.exception.SystemException {
512                    return getPersistence()
513                                       .findByCompanyId_First(companyId, orderByComparator);
514            }
515    
516            /**
517            * Returns the first phone in the ordered set where companyId = &#63;.
518            *
519            * @param companyId the company ID
520            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
521            * @return the first matching phone, or <code>null</code> if a matching phone could not be found
522            * @throws SystemException if a system exception occurred
523            */
524            public static com.liferay.portal.model.Phone fetchByCompanyId_First(
525                    long companyId,
526                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
527                    throws com.liferay.portal.kernel.exception.SystemException {
528                    return getPersistence()
529                                       .fetchByCompanyId_First(companyId, orderByComparator);
530            }
531    
532            /**
533            * Returns the last phone in the ordered set where companyId = &#63;.
534            *
535            * @param companyId the company ID
536            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
537            * @return the last matching phone
538            * @throws com.liferay.portal.NoSuchPhoneException if a matching phone could not be found
539            * @throws SystemException if a system exception occurred
540            */
541            public static com.liferay.portal.model.Phone findByCompanyId_Last(
542                    long companyId,
543                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
544                    throws com.liferay.portal.NoSuchPhoneException,
545                            com.liferay.portal.kernel.exception.SystemException {
546                    return getPersistence()
547                                       .findByCompanyId_Last(companyId, orderByComparator);
548            }
549    
550            /**
551            * Returns the last phone in the ordered set where companyId = &#63;.
552            *
553            * @param companyId the company 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 static com.liferay.portal.model.Phone fetchByCompanyId_Last(
559                    long companyId,
560                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
561                    throws com.liferay.portal.kernel.exception.SystemException {
562                    return getPersistence()
563                                       .fetchByCompanyId_Last(companyId, orderByComparator);
564            }
565    
566            /**
567            * Returns the phones before and after the current phone in the ordered set where companyId = &#63;.
568            *
569            * @param phoneId the primary key of the current phone
570            * @param companyId the company ID
571            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
572            * @return the previous, current, and next phone
573            * @throws com.liferay.portal.NoSuchPhoneException if a phone with the primary key could not be found
574            * @throws SystemException if a system exception occurred
575            */
576            public static com.liferay.portal.model.Phone[] findByCompanyId_PrevAndNext(
577                    long phoneId, long companyId,
578                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
579                    throws com.liferay.portal.NoSuchPhoneException,
580                            com.liferay.portal.kernel.exception.SystemException {
581                    return getPersistence()
582                                       .findByCompanyId_PrevAndNext(phoneId, companyId,
583                            orderByComparator);
584            }
585    
586            /**
587            * Removes all the phones where companyId = &#63; from the database.
588            *
589            * @param companyId the company ID
590            * @throws SystemException if a system exception occurred
591            */
592            public static void removeByCompanyId(long companyId)
593                    throws com.liferay.portal.kernel.exception.SystemException {
594                    getPersistence().removeByCompanyId(companyId);
595            }
596    
597            /**
598            * Returns the number of phones where companyId = &#63;.
599            *
600            * @param companyId the company ID
601            * @return the number of matching phones
602            * @throws SystemException if a system exception occurred
603            */
604            public static int countByCompanyId(long companyId)
605                    throws com.liferay.portal.kernel.exception.SystemException {
606                    return getPersistence().countByCompanyId(companyId);
607            }
608    
609            /**
610            * Returns all the phones where userId = &#63;.
611            *
612            * @param userId the user ID
613            * @return the matching phones
614            * @throws SystemException if a system exception occurred
615            */
616            public static java.util.List<com.liferay.portal.model.Phone> findByUserId(
617                    long userId) throws com.liferay.portal.kernel.exception.SystemException {
618                    return getPersistence().findByUserId(userId);
619            }
620    
621            /**
622            * Returns a range of all the phones where userId = &#63;.
623            *
624            * <p>
625            * 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.
626            * </p>
627            *
628            * @param userId the user ID
629            * @param start the lower bound of the range of phones
630            * @param end the upper bound of the range of phones (not inclusive)
631            * @return the range of matching phones
632            * @throws SystemException if a system exception occurred
633            */
634            public static java.util.List<com.liferay.portal.model.Phone> findByUserId(
635                    long userId, int start, int end)
636                    throws com.liferay.portal.kernel.exception.SystemException {
637                    return getPersistence().findByUserId(userId, start, end);
638            }
639    
640            /**
641            * Returns an ordered range of all the phones where userId = &#63;.
642            *
643            * <p>
644            * 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.
645            * </p>
646            *
647            * @param userId the user ID
648            * @param start the lower bound of the range of phones
649            * @param end the upper bound of the range of phones (not inclusive)
650            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
651            * @return the ordered range of matching phones
652            * @throws SystemException if a system exception occurred
653            */
654            public static java.util.List<com.liferay.portal.model.Phone> findByUserId(
655                    long userId, int start, int end,
656                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
657                    throws com.liferay.portal.kernel.exception.SystemException {
658                    return getPersistence()
659                                       .findByUserId(userId, start, end, orderByComparator);
660            }
661    
662            /**
663            * Returns the first phone in the ordered set where userId = &#63;.
664            *
665            * @param userId the user ID
666            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
667            * @return the first matching phone
668            * @throws com.liferay.portal.NoSuchPhoneException if a matching phone could not be found
669            * @throws SystemException if a system exception occurred
670            */
671            public static com.liferay.portal.model.Phone findByUserId_First(
672                    long userId,
673                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
674                    throws com.liferay.portal.NoSuchPhoneException,
675                            com.liferay.portal.kernel.exception.SystemException {
676                    return getPersistence().findByUserId_First(userId, orderByComparator);
677            }
678    
679            /**
680            * Returns the first phone in the ordered set where userId = &#63;.
681            *
682            * @param userId the user ID
683            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
684            * @return the first matching phone, or <code>null</code> if a matching phone could not be found
685            * @throws SystemException if a system exception occurred
686            */
687            public static com.liferay.portal.model.Phone fetchByUserId_First(
688                    long userId,
689                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
690                    throws com.liferay.portal.kernel.exception.SystemException {
691                    return getPersistence().fetchByUserId_First(userId, orderByComparator);
692            }
693    
694            /**
695            * Returns the last phone in the ordered set where userId = &#63;.
696            *
697            * @param userId the user ID
698            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
699            * @return the last matching phone
700            * @throws com.liferay.portal.NoSuchPhoneException if a matching phone could not be found
701            * @throws SystemException if a system exception occurred
702            */
703            public static com.liferay.portal.model.Phone findByUserId_Last(
704                    long userId,
705                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
706                    throws com.liferay.portal.NoSuchPhoneException,
707                            com.liferay.portal.kernel.exception.SystemException {
708                    return getPersistence().findByUserId_Last(userId, orderByComparator);
709            }
710    
711            /**
712            * Returns the last phone in the ordered set where userId = &#63;.
713            *
714            * @param userId the user ID
715            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
716            * @return the last matching phone, or <code>null</code> if a matching phone could not be found
717            * @throws SystemException if a system exception occurred
718            */
719            public static com.liferay.portal.model.Phone fetchByUserId_Last(
720                    long userId,
721                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
722                    throws com.liferay.portal.kernel.exception.SystemException {
723                    return getPersistence().fetchByUserId_Last(userId, orderByComparator);
724            }
725    
726            /**
727            * Returns the phones before and after the current phone in the ordered set where userId = &#63;.
728            *
729            * @param phoneId the primary key of the current phone
730            * @param userId the user ID
731            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
732            * @return the previous, current, and next phone
733            * @throws com.liferay.portal.NoSuchPhoneException if a phone with the primary key could not be found
734            * @throws SystemException if a system exception occurred
735            */
736            public static com.liferay.portal.model.Phone[] findByUserId_PrevAndNext(
737                    long phoneId, long userId,
738                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
739                    throws com.liferay.portal.NoSuchPhoneException,
740                            com.liferay.portal.kernel.exception.SystemException {
741                    return getPersistence()
742                                       .findByUserId_PrevAndNext(phoneId, userId, orderByComparator);
743            }
744    
745            /**
746            * Removes all the phones where userId = &#63; from the database.
747            *
748            * @param userId the user ID
749            * @throws SystemException if a system exception occurred
750            */
751            public static void removeByUserId(long userId)
752                    throws com.liferay.portal.kernel.exception.SystemException {
753                    getPersistence().removeByUserId(userId);
754            }
755    
756            /**
757            * Returns the number of phones where userId = &#63;.
758            *
759            * @param userId the user ID
760            * @return the number of matching phones
761            * @throws SystemException if a system exception occurred
762            */
763            public static int countByUserId(long userId)
764                    throws com.liferay.portal.kernel.exception.SystemException {
765                    return getPersistence().countByUserId(userId);
766            }
767    
768            /**
769            * Returns all the phones where companyId = &#63; and classNameId = &#63;.
770            *
771            * @param companyId the company ID
772            * @param classNameId the class name ID
773            * @return the matching phones
774            * @throws SystemException if a system exception occurred
775            */
776            public static java.util.List<com.liferay.portal.model.Phone> findByC_C(
777                    long companyId, long classNameId)
778                    throws com.liferay.portal.kernel.exception.SystemException {
779                    return getPersistence().findByC_C(companyId, classNameId);
780            }
781    
782            /**
783            * Returns a range of all the phones where companyId = &#63; and classNameId = &#63;.
784            *
785            * <p>
786            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.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.
787            * </p>
788            *
789            * @param companyId the company ID
790            * @param classNameId the class name ID
791            * @param start the lower bound of the range of phones
792            * @param end the upper bound of the range of phones (not inclusive)
793            * @return the range of matching phones
794            * @throws SystemException if a system exception occurred
795            */
796            public static java.util.List<com.liferay.portal.model.Phone> findByC_C(
797                    long companyId, long classNameId, int start, int end)
798                    throws com.liferay.portal.kernel.exception.SystemException {
799                    return getPersistence().findByC_C(companyId, classNameId, start, end);
800            }
801    
802            /**
803            * Returns an ordered range of all the phones where companyId = &#63; and classNameId = &#63;.
804            *
805            * <p>
806            * 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.
807            * </p>
808            *
809            * @param companyId the company ID
810            * @param classNameId the class name ID
811            * @param start the lower bound of the range of phones
812            * @param end the upper bound of the range of phones (not inclusive)
813            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
814            * @return the ordered range of matching phones
815            * @throws SystemException if a system exception occurred
816            */
817            public static java.util.List<com.liferay.portal.model.Phone> findByC_C(
818                    long companyId, long classNameId, int start, int end,
819                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
820                    throws com.liferay.portal.kernel.exception.SystemException {
821                    return getPersistence()
822                                       .findByC_C(companyId, classNameId, start, end,
823                            orderByComparator);
824            }
825    
826            /**
827            * Returns the first phone in the ordered set where companyId = &#63; and classNameId = &#63;.
828            *
829            * @param companyId the company ID
830            * @param classNameId the class name ID
831            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
832            * @return the first matching phone
833            * @throws com.liferay.portal.NoSuchPhoneException if a matching phone could not be found
834            * @throws SystemException if a system exception occurred
835            */
836            public static com.liferay.portal.model.Phone findByC_C_First(
837                    long companyId, long classNameId,
838                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
839                    throws com.liferay.portal.NoSuchPhoneException,
840                            com.liferay.portal.kernel.exception.SystemException {
841                    return getPersistence()
842                                       .findByC_C_First(companyId, classNameId, orderByComparator);
843            }
844    
845            /**
846            * Returns the first phone in the ordered set where companyId = &#63; and classNameId = &#63;.
847            *
848            * @param companyId the company ID
849            * @param classNameId the class name ID
850            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
851            * @return the first matching phone, or <code>null</code> if a matching phone could not be found
852            * @throws SystemException if a system exception occurred
853            */
854            public static com.liferay.portal.model.Phone fetchByC_C_First(
855                    long companyId, long classNameId,
856                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
857                    throws com.liferay.portal.kernel.exception.SystemException {
858                    return getPersistence()
859                                       .fetchByC_C_First(companyId, classNameId, orderByComparator);
860            }
861    
862            /**
863            * Returns the last phone in the ordered set where companyId = &#63; and classNameId = &#63;.
864            *
865            * @param companyId the company ID
866            * @param classNameId the class name ID
867            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
868            * @return the last matching phone
869            * @throws com.liferay.portal.NoSuchPhoneException if a matching phone could not be found
870            * @throws SystemException if a system exception occurred
871            */
872            public static com.liferay.portal.model.Phone findByC_C_Last(
873                    long companyId, long classNameId,
874                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
875                    throws com.liferay.portal.NoSuchPhoneException,
876                            com.liferay.portal.kernel.exception.SystemException {
877                    return getPersistence()
878                                       .findByC_C_Last(companyId, classNameId, orderByComparator);
879            }
880    
881            /**
882            * Returns the last phone in the ordered set where companyId = &#63; and classNameId = &#63;.
883            *
884            * @param companyId the company ID
885            * @param classNameId the class name ID
886            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
887            * @return the last matching phone, or <code>null</code> if a matching phone could not be found
888            * @throws SystemException if a system exception occurred
889            */
890            public static com.liferay.portal.model.Phone fetchByC_C_Last(
891                    long companyId, long classNameId,
892                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
893                    throws com.liferay.portal.kernel.exception.SystemException {
894                    return getPersistence()
895                                       .fetchByC_C_Last(companyId, classNameId, orderByComparator);
896            }
897    
898            /**
899            * Returns the phones before and after the current phone in the ordered set where companyId = &#63; and classNameId = &#63;.
900            *
901            * @param phoneId the primary key of the current phone
902            * @param companyId the company ID
903            * @param classNameId the class name ID
904            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
905            * @return the previous, current, and next phone
906            * @throws com.liferay.portal.NoSuchPhoneException if a phone with the primary key could not be found
907            * @throws SystemException if a system exception occurred
908            */
909            public static com.liferay.portal.model.Phone[] findByC_C_PrevAndNext(
910                    long phoneId, long companyId, long classNameId,
911                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
912                    throws com.liferay.portal.NoSuchPhoneException,
913                            com.liferay.portal.kernel.exception.SystemException {
914                    return getPersistence()
915                                       .findByC_C_PrevAndNext(phoneId, companyId, classNameId,
916                            orderByComparator);
917            }
918    
919            /**
920            * Removes all the phones where companyId = &#63; and classNameId = &#63; from the database.
921            *
922            * @param companyId the company ID
923            * @param classNameId the class name ID
924            * @throws SystemException if a system exception occurred
925            */
926            public static void removeByC_C(long companyId, long classNameId)
927                    throws com.liferay.portal.kernel.exception.SystemException {
928                    getPersistence().removeByC_C(companyId, classNameId);
929            }
930    
931            /**
932            * Returns the number of phones where companyId = &#63; and classNameId = &#63;.
933            *
934            * @param companyId the company ID
935            * @param classNameId the class name ID
936            * @return the number of matching phones
937            * @throws SystemException if a system exception occurred
938            */
939            public static int countByC_C(long companyId, long classNameId)
940                    throws com.liferay.portal.kernel.exception.SystemException {
941                    return getPersistence().countByC_C(companyId, classNameId);
942            }
943    
944            /**
945            * Returns all the phones where companyId = &#63; and classNameId = &#63; and classPK = &#63;.
946            *
947            * @param companyId the company ID
948            * @param classNameId the class name ID
949            * @param classPK the class p k
950            * @return the matching phones
951            * @throws SystemException if a system exception occurred
952            */
953            public static java.util.List<com.liferay.portal.model.Phone> findByC_C_C(
954                    long companyId, long classNameId, long classPK)
955                    throws com.liferay.portal.kernel.exception.SystemException {
956                    return getPersistence().findByC_C_C(companyId, classNameId, classPK);
957            }
958    
959            /**
960            * Returns a range of all the phones where companyId = &#63; and classNameId = &#63; and classPK = &#63;.
961            *
962            * <p>
963            * 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.
964            * </p>
965            *
966            * @param companyId the company ID
967            * @param classNameId the class name ID
968            * @param classPK the class p k
969            * @param start the lower bound of the range of phones
970            * @param end the upper bound of the range of phones (not inclusive)
971            * @return the range of matching phones
972            * @throws SystemException if a system exception occurred
973            */
974            public static java.util.List<com.liferay.portal.model.Phone> findByC_C_C(
975                    long companyId, long classNameId, long classPK, int start, int end)
976                    throws com.liferay.portal.kernel.exception.SystemException {
977                    return getPersistence()
978                                       .findByC_C_C(companyId, classNameId, classPK, start, end);
979            }
980    
981            /**
982            * Returns an ordered range of all the phones where companyId = &#63; and classNameId = &#63; and classPK = &#63;.
983            *
984            * <p>
985            * 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.
986            * </p>
987            *
988            * @param companyId the company ID
989            * @param classNameId the class name ID
990            * @param classPK the class p k
991            * @param start the lower bound of the range of phones
992            * @param end the upper bound of the range of phones (not inclusive)
993            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
994            * @return the ordered range of matching phones
995            * @throws SystemException if a system exception occurred
996            */
997            public static java.util.List<com.liferay.portal.model.Phone> findByC_C_C(
998                    long companyId, long classNameId, long classPK, int start, int end,
999                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1000                    throws com.liferay.portal.kernel.exception.SystemException {
1001                    return getPersistence()
1002                                       .findByC_C_C(companyId, classNameId, classPK, start, end,
1003                            orderByComparator);
1004            }
1005    
1006            /**
1007            * Returns the first phone in the ordered set where companyId = &#63; and classNameId = &#63; and classPK = &#63;.
1008            *
1009            * @param companyId the company ID
1010            * @param classNameId the class name ID
1011            * @param classPK the class p k
1012            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1013            * @return the first matching phone
1014            * @throws com.liferay.portal.NoSuchPhoneException if a matching phone could not be found
1015            * @throws SystemException if a system exception occurred
1016            */
1017            public static com.liferay.portal.model.Phone findByC_C_C_First(
1018                    long companyId, long classNameId, long classPK,
1019                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1020                    throws com.liferay.portal.NoSuchPhoneException,
1021                            com.liferay.portal.kernel.exception.SystemException {
1022                    return getPersistence()
1023                                       .findByC_C_C_First(companyId, classNameId, classPK,
1024                            orderByComparator);
1025            }
1026    
1027            /**
1028            * Returns the first phone in the ordered set where companyId = &#63; and classNameId = &#63; and classPK = &#63;.
1029            *
1030            * @param companyId the company ID
1031            * @param classNameId the class name ID
1032            * @param classPK the class p k
1033            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1034            * @return the first matching phone, or <code>null</code> if a matching phone could not be found
1035            * @throws SystemException if a system exception occurred
1036            */
1037            public static com.liferay.portal.model.Phone fetchByC_C_C_First(
1038                    long companyId, long classNameId, long classPK,
1039                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1040                    throws com.liferay.portal.kernel.exception.SystemException {
1041                    return getPersistence()
1042                                       .fetchByC_C_C_First(companyId, classNameId, classPK,
1043                            orderByComparator);
1044            }
1045    
1046            /**
1047            * Returns the last phone in the ordered set where companyId = &#63; and classNameId = &#63; and classPK = &#63;.
1048            *
1049            * @param companyId the company ID
1050            * @param classNameId the class name ID
1051            * @param classPK the class p k
1052            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1053            * @return the last matching phone
1054            * @throws com.liferay.portal.NoSuchPhoneException if a matching phone could not be found
1055            * @throws SystemException if a system exception occurred
1056            */
1057            public static com.liferay.portal.model.Phone findByC_C_C_Last(
1058                    long companyId, long classNameId, long classPK,
1059                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1060                    throws com.liferay.portal.NoSuchPhoneException,
1061                            com.liferay.portal.kernel.exception.SystemException {
1062                    return getPersistence()
1063                                       .findByC_C_C_Last(companyId, classNameId, classPK,
1064                            orderByComparator);
1065            }
1066    
1067            /**
1068            * Returns the last phone in the ordered set where companyId = &#63; and classNameId = &#63; and classPK = &#63;.
1069            *
1070            * @param companyId the company ID
1071            * @param classNameId the class name ID
1072            * @param classPK the class p k
1073            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1074            * @return the last matching phone, or <code>null</code> if a matching phone could not be found
1075            * @throws SystemException if a system exception occurred
1076            */
1077            public static com.liferay.portal.model.Phone fetchByC_C_C_Last(
1078                    long companyId, long classNameId, long classPK,
1079                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1080                    throws com.liferay.portal.kernel.exception.SystemException {
1081                    return getPersistence()
1082                                       .fetchByC_C_C_Last(companyId, classNameId, classPK,
1083                            orderByComparator);
1084            }
1085    
1086            /**
1087            * Returns the phones before and after the current phone in the ordered set where companyId = &#63; and classNameId = &#63; and classPK = &#63;.
1088            *
1089            * @param phoneId the primary key of the current phone
1090            * @param companyId the company ID
1091            * @param classNameId the class name ID
1092            * @param classPK the class p k
1093            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1094            * @return the previous, current, and next phone
1095            * @throws com.liferay.portal.NoSuchPhoneException if a phone with the primary key could not be found
1096            * @throws SystemException if a system exception occurred
1097            */
1098            public static com.liferay.portal.model.Phone[] findByC_C_C_PrevAndNext(
1099                    long phoneId, long companyId, long classNameId, long classPK,
1100                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1101                    throws com.liferay.portal.NoSuchPhoneException,
1102                            com.liferay.portal.kernel.exception.SystemException {
1103                    return getPersistence()
1104                                       .findByC_C_C_PrevAndNext(phoneId, companyId, classNameId,
1105                            classPK, orderByComparator);
1106            }
1107    
1108            /**
1109            * Removes all the phones where companyId = &#63; and classNameId = &#63; and classPK = &#63; from the database.
1110            *
1111            * @param companyId the company ID
1112            * @param classNameId the class name ID
1113            * @param classPK the class p k
1114            * @throws SystemException if a system exception occurred
1115            */
1116            public static void removeByC_C_C(long companyId, long classNameId,
1117                    long classPK)
1118                    throws com.liferay.portal.kernel.exception.SystemException {
1119                    getPersistence().removeByC_C_C(companyId, classNameId, classPK);
1120            }
1121    
1122            /**
1123            * Returns the number of phones where companyId = &#63; and classNameId = &#63; and classPK = &#63;.
1124            *
1125            * @param companyId the company ID
1126            * @param classNameId the class name ID
1127            * @param classPK the class p k
1128            * @return the number of matching phones
1129            * @throws SystemException if a system exception occurred
1130            */
1131            public static int countByC_C_C(long companyId, long classNameId,
1132                    long classPK)
1133                    throws com.liferay.portal.kernel.exception.SystemException {
1134                    return getPersistence().countByC_C_C(companyId, classNameId, classPK);
1135            }
1136    
1137            /**
1138            * Returns all the phones where companyId = &#63; and classNameId = &#63; and classPK = &#63; and primary = &#63;.
1139            *
1140            * @param companyId the company ID
1141            * @param classNameId the class name ID
1142            * @param classPK the class p k
1143            * @param primary the primary
1144            * @return the matching phones
1145            * @throws SystemException if a system exception occurred
1146            */
1147            public static java.util.List<com.liferay.portal.model.Phone> findByC_C_C_P(
1148                    long companyId, long classNameId, long classPK, boolean primary)
1149                    throws com.liferay.portal.kernel.exception.SystemException {
1150                    return getPersistence()
1151                                       .findByC_C_C_P(companyId, classNameId, classPK, primary);
1152            }
1153    
1154            /**
1155            * Returns a range of all the phones where companyId = &#63; and classNameId = &#63; and classPK = &#63; and primary = &#63;.
1156            *
1157            * <p>
1158            * 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.
1159            * </p>
1160            *
1161            * @param companyId the company ID
1162            * @param classNameId the class name ID
1163            * @param classPK the class p k
1164            * @param primary the primary
1165            * @param start the lower bound of the range of phones
1166            * @param end the upper bound of the range of phones (not inclusive)
1167            * @return the range of matching phones
1168            * @throws SystemException if a system exception occurred
1169            */
1170            public static java.util.List<com.liferay.portal.model.Phone> findByC_C_C_P(
1171                    long companyId, long classNameId, long classPK, boolean primary,
1172                    int start, int end)
1173                    throws com.liferay.portal.kernel.exception.SystemException {
1174                    return getPersistence()
1175                                       .findByC_C_C_P(companyId, classNameId, classPK, primary,
1176                            start, end);
1177            }
1178    
1179            /**
1180            * Returns an ordered range of all the phones where companyId = &#63; and classNameId = &#63; and classPK = &#63; and primary = &#63;.
1181            *
1182            * <p>
1183            * 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.
1184            * </p>
1185            *
1186            * @param companyId the company ID
1187            * @param classNameId the class name ID
1188            * @param classPK the class p k
1189            * @param primary the primary
1190            * @param start the lower bound of the range of phones
1191            * @param end the upper bound of the range of phones (not inclusive)
1192            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1193            * @return the ordered range of matching phones
1194            * @throws SystemException if a system exception occurred
1195            */
1196            public static java.util.List<com.liferay.portal.model.Phone> findByC_C_C_P(
1197                    long companyId, long classNameId, long classPK, boolean primary,
1198                    int start, int end,
1199                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1200                    throws com.liferay.portal.kernel.exception.SystemException {
1201                    return getPersistence()
1202                                       .findByC_C_C_P(companyId, classNameId, classPK, primary,
1203                            start, end, orderByComparator);
1204            }
1205    
1206            /**
1207            * Returns the first phone in the ordered set where companyId = &#63; and classNameId = &#63; and classPK = &#63; and primary = &#63;.
1208            *
1209            * @param companyId the company ID
1210            * @param classNameId the class name ID
1211            * @param classPK the class p k
1212            * @param primary the primary
1213            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1214            * @return the first matching phone
1215            * @throws com.liferay.portal.NoSuchPhoneException if a matching phone could not be found
1216            * @throws SystemException if a system exception occurred
1217            */
1218            public static com.liferay.portal.model.Phone findByC_C_C_P_First(
1219                    long companyId, long classNameId, long classPK, boolean primary,
1220                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1221                    throws com.liferay.portal.NoSuchPhoneException,
1222                            com.liferay.portal.kernel.exception.SystemException {
1223                    return getPersistence()
1224                                       .findByC_C_C_P_First(companyId, classNameId, classPK,
1225                            primary, orderByComparator);
1226            }
1227    
1228            /**
1229            * Returns the first phone in the ordered set where companyId = &#63; and classNameId = &#63; and classPK = &#63; and primary = &#63;.
1230            *
1231            * @param companyId the company ID
1232            * @param classNameId the class name ID
1233            * @param classPK the class p k
1234            * @param primary the primary
1235            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1236            * @return the first matching phone, or <code>null</code> if a matching phone could not be found
1237            * @throws SystemException if a system exception occurred
1238            */
1239            public static com.liferay.portal.model.Phone fetchByC_C_C_P_First(
1240                    long companyId, long classNameId, long classPK, boolean primary,
1241                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1242                    throws com.liferay.portal.kernel.exception.SystemException {
1243                    return getPersistence()
1244                                       .fetchByC_C_C_P_First(companyId, classNameId, classPK,
1245                            primary, orderByComparator);
1246            }
1247    
1248            /**
1249            * Returns the last phone in the ordered set where companyId = &#63; and classNameId = &#63; and classPK = &#63; and primary = &#63;.
1250            *
1251            * @param companyId the company ID
1252            * @param classNameId the class name ID
1253            * @param classPK the class p k
1254            * @param primary the primary
1255            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1256            * @return the last matching phone
1257            * @throws com.liferay.portal.NoSuchPhoneException if a matching phone could not be found
1258            * @throws SystemException if a system exception occurred
1259            */
1260            public static com.liferay.portal.model.Phone findByC_C_C_P_Last(
1261                    long companyId, long classNameId, long classPK, boolean primary,
1262                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1263                    throws com.liferay.portal.NoSuchPhoneException,
1264                            com.liferay.portal.kernel.exception.SystemException {
1265                    return getPersistence()
1266                                       .findByC_C_C_P_Last(companyId, classNameId, classPK,
1267                            primary, orderByComparator);
1268            }
1269    
1270            /**
1271            * Returns the last phone in the ordered set where companyId = &#63; and classNameId = &#63; and classPK = &#63; and primary = &#63;.
1272            *
1273            * @param companyId the company ID
1274            * @param classNameId the class name ID
1275            * @param classPK the class p k
1276            * @param primary the primary
1277            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1278            * @return the last matching phone, or <code>null</code> if a matching phone could not be found
1279            * @throws SystemException if a system exception occurred
1280            */
1281            public static com.liferay.portal.model.Phone fetchByC_C_C_P_Last(
1282                    long companyId, long classNameId, long classPK, boolean primary,
1283                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1284                    throws com.liferay.portal.kernel.exception.SystemException {
1285                    return getPersistence()
1286                                       .fetchByC_C_C_P_Last(companyId, classNameId, classPK,
1287                            primary, orderByComparator);
1288            }
1289    
1290            /**
1291            * 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;.
1292            *
1293            * @param phoneId the primary key of the current phone
1294            * @param companyId the company ID
1295            * @param classNameId the class name ID
1296            * @param classPK the class p k
1297            * @param primary the primary
1298            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1299            * @return the previous, current, and next phone
1300            * @throws com.liferay.portal.NoSuchPhoneException if a phone with the primary key could not be found
1301            * @throws SystemException if a system exception occurred
1302            */
1303            public static com.liferay.portal.model.Phone[] findByC_C_C_P_PrevAndNext(
1304                    long phoneId, long companyId, long classNameId, long classPK,
1305                    boolean primary,
1306                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1307                    throws com.liferay.portal.NoSuchPhoneException,
1308                            com.liferay.portal.kernel.exception.SystemException {
1309                    return getPersistence()
1310                                       .findByC_C_C_P_PrevAndNext(phoneId, companyId, classNameId,
1311                            classPK, primary, orderByComparator);
1312            }
1313    
1314            /**
1315            * Removes all the phones where companyId = &#63; and classNameId = &#63; and classPK = &#63; and primary = &#63; from the database.
1316            *
1317            * @param companyId the company ID
1318            * @param classNameId the class name ID
1319            * @param classPK the class p k
1320            * @param primary the primary
1321            * @throws SystemException if a system exception occurred
1322            */
1323            public static void removeByC_C_C_P(long companyId, long classNameId,
1324                    long classPK, boolean primary)
1325                    throws com.liferay.portal.kernel.exception.SystemException {
1326                    getPersistence()
1327                            .removeByC_C_C_P(companyId, classNameId, classPK, primary);
1328            }
1329    
1330            /**
1331            * Returns the number of phones where companyId = &#63; and classNameId = &#63; and classPK = &#63; and primary = &#63;.
1332            *
1333            * @param companyId the company ID
1334            * @param classNameId the class name ID
1335            * @param classPK the class p k
1336            * @param primary the primary
1337            * @return the number of matching phones
1338            * @throws SystemException if a system exception occurred
1339            */
1340            public static int countByC_C_C_P(long companyId, long classNameId,
1341                    long classPK, boolean primary)
1342                    throws com.liferay.portal.kernel.exception.SystemException {
1343                    return getPersistence()
1344                                       .countByC_C_C_P(companyId, classNameId, classPK, primary);
1345            }
1346    
1347            /**
1348            * Caches the phone in the entity cache if it is enabled.
1349            *
1350            * @param phone the phone
1351            */
1352            public static void cacheResult(com.liferay.portal.model.Phone phone) {
1353                    getPersistence().cacheResult(phone);
1354            }
1355    
1356            /**
1357            * Caches the phones in the entity cache if it is enabled.
1358            *
1359            * @param phones the phones
1360            */
1361            public static void cacheResult(
1362                    java.util.List<com.liferay.portal.model.Phone> phones) {
1363                    getPersistence().cacheResult(phones);
1364            }
1365    
1366            /**
1367            * Creates a new phone with the primary key. Does not add the phone to the database.
1368            *
1369            * @param phoneId the primary key for the new phone
1370            * @return the new phone
1371            */
1372            public static com.liferay.portal.model.Phone create(long phoneId) {
1373                    return getPersistence().create(phoneId);
1374            }
1375    
1376            /**
1377            * Removes the phone with the primary key from the database. Also notifies the appropriate model listeners.
1378            *
1379            * @param phoneId the primary key of the phone
1380            * @return the phone that was removed
1381            * @throws com.liferay.portal.NoSuchPhoneException if a phone with the primary key could not be found
1382            * @throws SystemException if a system exception occurred
1383            */
1384            public static com.liferay.portal.model.Phone remove(long phoneId)
1385                    throws com.liferay.portal.NoSuchPhoneException,
1386                            com.liferay.portal.kernel.exception.SystemException {
1387                    return getPersistence().remove(phoneId);
1388            }
1389    
1390            public static com.liferay.portal.model.Phone updateImpl(
1391                    com.liferay.portal.model.Phone phone)
1392                    throws com.liferay.portal.kernel.exception.SystemException {
1393                    return getPersistence().updateImpl(phone);
1394            }
1395    
1396            /**
1397            * Returns the phone with the primary key or throws a {@link com.liferay.portal.NoSuchPhoneException} if it could not be found.
1398            *
1399            * @param phoneId the primary key of the phone
1400            * @return the phone
1401            * @throws com.liferay.portal.NoSuchPhoneException if a phone with the primary key could not be found
1402            * @throws SystemException if a system exception occurred
1403            */
1404            public static com.liferay.portal.model.Phone findByPrimaryKey(long phoneId)
1405                    throws com.liferay.portal.NoSuchPhoneException,
1406                            com.liferay.portal.kernel.exception.SystemException {
1407                    return getPersistence().findByPrimaryKey(phoneId);
1408            }
1409    
1410            /**
1411            * Returns the phone with the primary key or returns <code>null</code> if it could not be found.
1412            *
1413            * @param phoneId the primary key of the phone
1414            * @return the phone, or <code>null</code> if a phone with the primary key could not be found
1415            * @throws SystemException if a system exception occurred
1416            */
1417            public static com.liferay.portal.model.Phone fetchByPrimaryKey(long phoneId)
1418                    throws com.liferay.portal.kernel.exception.SystemException {
1419                    return getPersistence().fetchByPrimaryKey(phoneId);
1420            }
1421    
1422            /**
1423            * Returns all the phones.
1424            *
1425            * @return the phones
1426            * @throws SystemException if a system exception occurred
1427            */
1428            public static java.util.List<com.liferay.portal.model.Phone> findAll()
1429                    throws com.liferay.portal.kernel.exception.SystemException {
1430                    return getPersistence().findAll();
1431            }
1432    
1433            /**
1434            * Returns a range of all the phones.
1435            *
1436            * <p>
1437            * 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.
1438            * </p>
1439            *
1440            * @param start the lower bound of the range of phones
1441            * @param end the upper bound of the range of phones (not inclusive)
1442            * @return the range of phones
1443            * @throws SystemException if a system exception occurred
1444            */
1445            public static java.util.List<com.liferay.portal.model.Phone> findAll(
1446                    int start, int end)
1447                    throws com.liferay.portal.kernel.exception.SystemException {
1448                    return getPersistence().findAll(start, end);
1449            }
1450    
1451            /**
1452            * Returns an ordered range of all the phones.
1453            *
1454            * <p>
1455            * 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.
1456            * </p>
1457            *
1458            * @param start the lower bound of the range of phones
1459            * @param end the upper bound of the range of phones (not inclusive)
1460            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1461            * @return the ordered range of phones
1462            * @throws SystemException if a system exception occurred
1463            */
1464            public static java.util.List<com.liferay.portal.model.Phone> findAll(
1465                    int start, int end,
1466                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1467                    throws com.liferay.portal.kernel.exception.SystemException {
1468                    return getPersistence().findAll(start, end, orderByComparator);
1469            }
1470    
1471            /**
1472            * Removes all the phones from the database.
1473            *
1474            * @throws SystemException if a system exception occurred
1475            */
1476            public static void removeAll()
1477                    throws com.liferay.portal.kernel.exception.SystemException {
1478                    getPersistence().removeAll();
1479            }
1480    
1481            /**
1482            * Returns the number of phones.
1483            *
1484            * @return the number of phones
1485            * @throws SystemException if a system exception occurred
1486            */
1487            public static int countAll()
1488                    throws com.liferay.portal.kernel.exception.SystemException {
1489                    return getPersistence().countAll();
1490            }
1491    
1492            public static PhonePersistence getPersistence() {
1493                    if (_persistence == null) {
1494                            _persistence = (PhonePersistence)PortalBeanLocatorUtil.locate(PhonePersistence.class.getName());
1495    
1496                            ReferenceRegistry.registerReference(PhoneUtil.class, "_persistence");
1497                    }
1498    
1499                    return _persistence;
1500            }
1501    
1502            /**
1503             * @deprecated As of 6.2.0
1504             */
1505            public void setPersistence(PhonePersistence persistence) {
1506            }
1507    
1508            private static PhonePersistence _persistence;
1509    }