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