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