001    /**
002     * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
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.Company;
023    import com.liferay.portal.service.ServiceContext;
024    
025    import java.util.List;
026    
027    /**
028     * The persistence utility for the company service. This utility wraps {@link CompanyPersistenceImpl} 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 CompanyPersistence
036     * @see CompanyPersistenceImpl
037     * @generated
038     */
039    public class CompanyUtil {
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(Company company) {
057                    getPersistence().clearCache(company);
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<Company> 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<Company> findWithDynamicQuery(
080                    DynamicQuery dynamicQuery, int start, int end)
081                    throws SystemException {
082                    return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
083            }
084    
085            /**
086             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
087             */
088            public static List<Company> findWithDynamicQuery(
089                    DynamicQuery dynamicQuery, int start, int end,
090                    OrderByComparator orderByComparator) throws SystemException {
091                    return getPersistence()
092                                       .findWithDynamicQuery(dynamicQuery, start, end,
093                            orderByComparator);
094            }
095    
096            /**
097             * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel)
098             */
099            public static Company remove(Company company) throws SystemException {
100                    return getPersistence().remove(company);
101            }
102    
103            /**
104             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
105             */
106            public static Company update(Company company, boolean merge)
107                    throws SystemException {
108                    return getPersistence().update(company, merge);
109            }
110    
111            /**
112             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)
113             */
114            public static Company update(Company company, boolean merge,
115                    ServiceContext serviceContext) throws SystemException {
116                    return getPersistence().update(company, merge, serviceContext);
117            }
118    
119            /**
120            * Caches the company in the entity cache if it is enabled.
121            *
122            * @param company the company
123            */
124            public static void cacheResult(com.liferay.portal.model.Company company) {
125                    getPersistence().cacheResult(company);
126            }
127    
128            /**
129            * Caches the companies in the entity cache if it is enabled.
130            *
131            * @param companies the companies
132            */
133            public static void cacheResult(
134                    java.util.List<com.liferay.portal.model.Company> companies) {
135                    getPersistence().cacheResult(companies);
136            }
137    
138            /**
139            * Creates a new company with the primary key. Does not add the company to the database.
140            *
141            * @param companyId the primary key for the new company
142            * @return the new company
143            */
144            public static com.liferay.portal.model.Company create(long companyId) {
145                    return getPersistence().create(companyId);
146            }
147    
148            /**
149            * Removes the company with the primary key from the database. Also notifies the appropriate model listeners.
150            *
151            * @param companyId the primary key of the company
152            * @return the company that was removed
153            * @throws com.liferay.portal.NoSuchCompanyException if a company with the primary key could not be found
154            * @throws SystemException if a system exception occurred
155            */
156            public static com.liferay.portal.model.Company remove(long companyId)
157                    throws com.liferay.portal.NoSuchCompanyException,
158                            com.liferay.portal.kernel.exception.SystemException {
159                    return getPersistence().remove(companyId);
160            }
161    
162            public static com.liferay.portal.model.Company updateImpl(
163                    com.liferay.portal.model.Company company, boolean merge)
164                    throws com.liferay.portal.kernel.exception.SystemException {
165                    return getPersistence().updateImpl(company, merge);
166            }
167    
168            /**
169            * Returns the company with the primary key or throws a {@link com.liferay.portal.NoSuchCompanyException} if it could not be found.
170            *
171            * @param companyId the primary key of the company
172            * @return the company
173            * @throws com.liferay.portal.NoSuchCompanyException if a company with the primary key could not be found
174            * @throws SystemException if a system exception occurred
175            */
176            public static com.liferay.portal.model.Company findByPrimaryKey(
177                    long companyId)
178                    throws com.liferay.portal.NoSuchCompanyException,
179                            com.liferay.portal.kernel.exception.SystemException {
180                    return getPersistence().findByPrimaryKey(companyId);
181            }
182    
183            /**
184            * Returns the company with the primary key or returns <code>null</code> if it could not be found.
185            *
186            * @param companyId the primary key of the company
187            * @return the company, or <code>null</code> if a company with the primary key could not be found
188            * @throws SystemException if a system exception occurred
189            */
190            public static com.liferay.portal.model.Company fetchByPrimaryKey(
191                    long companyId)
192                    throws com.liferay.portal.kernel.exception.SystemException {
193                    return getPersistence().fetchByPrimaryKey(companyId);
194            }
195    
196            /**
197            * Returns the company where webId = &#63; or throws a {@link com.liferay.portal.NoSuchCompanyException} if it could not be found.
198            *
199            * @param webId the web ID
200            * @return the matching company
201            * @throws com.liferay.portal.NoSuchCompanyException if a matching company could not be found
202            * @throws SystemException if a system exception occurred
203            */
204            public static com.liferay.portal.model.Company findByWebId(
205                    java.lang.String webId)
206                    throws com.liferay.portal.NoSuchCompanyException,
207                            com.liferay.portal.kernel.exception.SystemException {
208                    return getPersistence().findByWebId(webId);
209            }
210    
211            /**
212            * Returns the company where webId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
213            *
214            * @param webId the web ID
215            * @return the matching company, or <code>null</code> if a matching company could not be found
216            * @throws SystemException if a system exception occurred
217            */
218            public static com.liferay.portal.model.Company fetchByWebId(
219                    java.lang.String webId)
220                    throws com.liferay.portal.kernel.exception.SystemException {
221                    return getPersistence().fetchByWebId(webId);
222            }
223    
224            /**
225            * Returns the company where webId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
226            *
227            * @param webId the web ID
228            * @param retrieveFromCache whether to use the finder cache
229            * @return the matching company, or <code>null</code> if a matching company could not be found
230            * @throws SystemException if a system exception occurred
231            */
232            public static com.liferay.portal.model.Company fetchByWebId(
233                    java.lang.String webId, boolean retrieveFromCache)
234                    throws com.liferay.portal.kernel.exception.SystemException {
235                    return getPersistence().fetchByWebId(webId, retrieveFromCache);
236            }
237    
238            /**
239            * Returns the company where mx = &#63; or throws a {@link com.liferay.portal.NoSuchCompanyException} if it could not be found.
240            *
241            * @param mx the mx
242            * @return the matching company
243            * @throws com.liferay.portal.NoSuchCompanyException if a matching company could not be found
244            * @throws SystemException if a system exception occurred
245            */
246            public static com.liferay.portal.model.Company findByMx(java.lang.String mx)
247                    throws com.liferay.portal.NoSuchCompanyException,
248                            com.liferay.portal.kernel.exception.SystemException {
249                    return getPersistence().findByMx(mx);
250            }
251    
252            /**
253            * Returns the company where mx = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
254            *
255            * @param mx the mx
256            * @return the matching company, or <code>null</code> if a matching company could not be found
257            * @throws SystemException if a system exception occurred
258            */
259            public static com.liferay.portal.model.Company fetchByMx(
260                    java.lang.String mx)
261                    throws com.liferay.portal.kernel.exception.SystemException {
262                    return getPersistence().fetchByMx(mx);
263            }
264    
265            /**
266            * Returns the company where mx = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
267            *
268            * @param mx the mx
269            * @param retrieveFromCache whether to use the finder cache
270            * @return the matching company, or <code>null</code> if a matching company could not be found
271            * @throws SystemException if a system exception occurred
272            */
273            public static com.liferay.portal.model.Company fetchByMx(
274                    java.lang.String mx, boolean retrieveFromCache)
275                    throws com.liferay.portal.kernel.exception.SystemException {
276                    return getPersistence().fetchByMx(mx, retrieveFromCache);
277            }
278    
279            /**
280            * Returns the company where logoId = &#63; or throws a {@link com.liferay.portal.NoSuchCompanyException} if it could not be found.
281            *
282            * @param logoId the logo ID
283            * @return the matching company
284            * @throws com.liferay.portal.NoSuchCompanyException if a matching company could not be found
285            * @throws SystemException if a system exception occurred
286            */
287            public static com.liferay.portal.model.Company findByLogoId(long logoId)
288                    throws com.liferay.portal.NoSuchCompanyException,
289                            com.liferay.portal.kernel.exception.SystemException {
290                    return getPersistence().findByLogoId(logoId);
291            }
292    
293            /**
294            * Returns the company where logoId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
295            *
296            * @param logoId the logo ID
297            * @return the matching company, or <code>null</code> if a matching company could not be found
298            * @throws SystemException if a system exception occurred
299            */
300            public static com.liferay.portal.model.Company fetchByLogoId(long logoId)
301                    throws com.liferay.portal.kernel.exception.SystemException {
302                    return getPersistence().fetchByLogoId(logoId);
303            }
304    
305            /**
306            * Returns the company where logoId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
307            *
308            * @param logoId the logo ID
309            * @param retrieveFromCache whether to use the finder cache
310            * @return the matching company, or <code>null</code> if a matching company could not be found
311            * @throws SystemException if a system exception occurred
312            */
313            public static com.liferay.portal.model.Company fetchByLogoId(long logoId,
314                    boolean retrieveFromCache)
315                    throws com.liferay.portal.kernel.exception.SystemException {
316                    return getPersistence().fetchByLogoId(logoId, retrieveFromCache);
317            }
318    
319            /**
320            * Returns all the companies where system = &#63;.
321            *
322            * @param system the system
323            * @return the matching companies
324            * @throws SystemException if a system exception occurred
325            */
326            public static java.util.List<com.liferay.portal.model.Company> findBySystem(
327                    boolean system)
328                    throws com.liferay.portal.kernel.exception.SystemException {
329                    return getPersistence().findBySystem(system);
330            }
331    
332            /**
333            * Returns a range of all the companies where system = &#63;.
334            *
335            * <p>
336            * 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.
337            * </p>
338            *
339            * @param system the system
340            * @param start the lower bound of the range of companies
341            * @param end the upper bound of the range of companies (not inclusive)
342            * @return the range of matching companies
343            * @throws SystemException if a system exception occurred
344            */
345            public static java.util.List<com.liferay.portal.model.Company> findBySystem(
346                    boolean system, int start, int end)
347                    throws com.liferay.portal.kernel.exception.SystemException {
348                    return getPersistence().findBySystem(system, start, end);
349            }
350    
351            /**
352            * Returns an ordered range of all the companies where system = &#63;.
353            *
354            * <p>
355            * 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.
356            * </p>
357            *
358            * @param system the system
359            * @param start the lower bound of the range of companies
360            * @param end the upper bound of the range of companies (not inclusive)
361            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
362            * @return the ordered range of matching companies
363            * @throws SystemException if a system exception occurred
364            */
365            public static java.util.List<com.liferay.portal.model.Company> findBySystem(
366                    boolean system, int start, int end,
367                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
368                    throws com.liferay.portal.kernel.exception.SystemException {
369                    return getPersistence()
370                                       .findBySystem(system, start, end, orderByComparator);
371            }
372    
373            /**
374            * Returns the first company in the ordered set where system = &#63;.
375            *
376            * <p>
377            * 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.
378            * </p>
379            *
380            * @param system the system
381            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
382            * @return the first matching company
383            * @throws com.liferay.portal.NoSuchCompanyException if a matching company could not be found
384            * @throws SystemException if a system exception occurred
385            */
386            public static com.liferay.portal.model.Company findBySystem_First(
387                    boolean system,
388                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
389                    throws com.liferay.portal.NoSuchCompanyException,
390                            com.liferay.portal.kernel.exception.SystemException {
391                    return getPersistence().findBySystem_First(system, orderByComparator);
392            }
393    
394            /**
395            * Returns the last company in the ordered set where system = &#63;.
396            *
397            * <p>
398            * 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.
399            * </p>
400            *
401            * @param system the system
402            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
403            * @return the last matching company
404            * @throws com.liferay.portal.NoSuchCompanyException if a matching company could not be found
405            * @throws SystemException if a system exception occurred
406            */
407            public static com.liferay.portal.model.Company findBySystem_Last(
408                    boolean system,
409                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
410                    throws com.liferay.portal.NoSuchCompanyException,
411                            com.liferay.portal.kernel.exception.SystemException {
412                    return getPersistence().findBySystem_Last(system, orderByComparator);
413            }
414    
415            /**
416            * Returns the companies before and after the current company in the ordered set where system = &#63;.
417            *
418            * <p>
419            * 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.
420            * </p>
421            *
422            * @param companyId the primary key of the current company
423            * @param system the system
424            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
425            * @return the previous, current, and next company
426            * @throws com.liferay.portal.NoSuchCompanyException if a company with the primary key could not be found
427            * @throws SystemException if a system exception occurred
428            */
429            public static com.liferay.portal.model.Company[] findBySystem_PrevAndNext(
430                    long companyId, boolean system,
431                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
432                    throws com.liferay.portal.NoSuchCompanyException,
433                            com.liferay.portal.kernel.exception.SystemException {
434                    return getPersistence()
435                                       .findBySystem_PrevAndNext(companyId, system,
436                            orderByComparator);
437            }
438    
439            /**
440            * Returns all the companies.
441            *
442            * @return the companies
443            * @throws SystemException if a system exception occurred
444            */
445            public static java.util.List<com.liferay.portal.model.Company> findAll()
446                    throws com.liferay.portal.kernel.exception.SystemException {
447                    return getPersistence().findAll();
448            }
449    
450            /**
451            * Returns a range of all the companies.
452            *
453            * <p>
454            * 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.
455            * </p>
456            *
457            * @param start the lower bound of the range of companies
458            * @param end the upper bound of the range of companies (not inclusive)
459            * @return the range of companies
460            * @throws SystemException if a system exception occurred
461            */
462            public static java.util.List<com.liferay.portal.model.Company> findAll(
463                    int start, int end)
464                    throws com.liferay.portal.kernel.exception.SystemException {
465                    return getPersistence().findAll(start, end);
466            }
467    
468            /**
469            * Returns an ordered range of all the companies.
470            *
471            * <p>
472            * 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.
473            * </p>
474            *
475            * @param start the lower bound of the range of companies
476            * @param end the upper bound of the range of companies (not inclusive)
477            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
478            * @return the ordered range of companies
479            * @throws SystemException if a system exception occurred
480            */
481            public static java.util.List<com.liferay.portal.model.Company> findAll(
482                    int start, int end,
483                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
484                    throws com.liferay.portal.kernel.exception.SystemException {
485                    return getPersistence().findAll(start, end, orderByComparator);
486            }
487    
488            /**
489            * Removes the company where webId = &#63; from the database.
490            *
491            * @param webId the web ID
492            * @throws SystemException if a system exception occurred
493            */
494            public static void removeByWebId(java.lang.String webId)
495                    throws com.liferay.portal.NoSuchCompanyException,
496                            com.liferay.portal.kernel.exception.SystemException {
497                    getPersistence().removeByWebId(webId);
498            }
499    
500            /**
501            * Removes the company where mx = &#63; from the database.
502            *
503            * @param mx the mx
504            * @throws SystemException if a system exception occurred
505            */
506            public static void removeByMx(java.lang.String mx)
507                    throws com.liferay.portal.NoSuchCompanyException,
508                            com.liferay.portal.kernel.exception.SystemException {
509                    getPersistence().removeByMx(mx);
510            }
511    
512            /**
513            * Removes the company where logoId = &#63; from the database.
514            *
515            * @param logoId the logo ID
516            * @throws SystemException if a system exception occurred
517            */
518            public static void removeByLogoId(long logoId)
519                    throws com.liferay.portal.NoSuchCompanyException,
520                            com.liferay.portal.kernel.exception.SystemException {
521                    getPersistence().removeByLogoId(logoId);
522            }
523    
524            /**
525            * Removes all the companies where system = &#63; from the database.
526            *
527            * @param system the system
528            * @throws SystemException if a system exception occurred
529            */
530            public static void removeBySystem(boolean system)
531                    throws com.liferay.portal.kernel.exception.SystemException {
532                    getPersistence().removeBySystem(system);
533            }
534    
535            /**
536            * Removes all the companies from the database.
537            *
538            * @throws SystemException if a system exception occurred
539            */
540            public static void removeAll()
541                    throws com.liferay.portal.kernel.exception.SystemException {
542                    getPersistence().removeAll();
543            }
544    
545            /**
546            * Returns the number of companies where webId = &#63;.
547            *
548            * @param webId the web ID
549            * @return the number of matching companies
550            * @throws SystemException if a system exception occurred
551            */
552            public static int countByWebId(java.lang.String webId)
553                    throws com.liferay.portal.kernel.exception.SystemException {
554                    return getPersistence().countByWebId(webId);
555            }
556    
557            /**
558            * Returns the number of companies where mx = &#63;.
559            *
560            * @param mx the mx
561            * @return the number of matching companies
562            * @throws SystemException if a system exception occurred
563            */
564            public static int countByMx(java.lang.String mx)
565                    throws com.liferay.portal.kernel.exception.SystemException {
566                    return getPersistence().countByMx(mx);
567            }
568    
569            /**
570            * Returns the number of companies where logoId = &#63;.
571            *
572            * @param logoId the logo ID
573            * @return the number of matching companies
574            * @throws SystemException if a system exception occurred
575            */
576            public static int countByLogoId(long logoId)
577                    throws com.liferay.portal.kernel.exception.SystemException {
578                    return getPersistence().countByLogoId(logoId);
579            }
580    
581            /**
582            * Returns the number of companies where system = &#63;.
583            *
584            * @param system the system
585            * @return the number of matching companies
586            * @throws SystemException if a system exception occurred
587            */
588            public static int countBySystem(boolean system)
589                    throws com.liferay.portal.kernel.exception.SystemException {
590                    return getPersistence().countBySystem(system);
591            }
592    
593            /**
594            * Returns the number of companies.
595            *
596            * @return the number of companies
597            * @throws SystemException if a system exception occurred
598            */
599            public static int countAll()
600                    throws com.liferay.portal.kernel.exception.SystemException {
601                    return getPersistence().countAll();
602            }
603    
604            public static CompanyPersistence getPersistence() {
605                    if (_persistence == null) {
606                            _persistence = (CompanyPersistence)PortalBeanLocatorUtil.locate(CompanyPersistence.class.getName());
607    
608                            ReferenceRegistry.registerReference(CompanyUtil.class,
609                                    "_persistence");
610                    }
611    
612                    return _persistence;
613            }
614    
615            public void setPersistence(CompanyPersistence persistence) {
616                    _persistence = persistence;
617    
618                    ReferenceRegistry.registerReference(CompanyUtil.class, "_persistence");
619            }
620    
621            private static CompanyPersistence _persistence;
622    }