001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.expando.service.persistence;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
020    import com.liferay.portal.kernel.dao.orm.DynamicQuery;
021    import com.liferay.portal.kernel.exception.SystemException;
022    import com.liferay.portal.kernel.util.OrderByComparator;
023    import com.liferay.portal.kernel.util.ReferenceRegistry;
024    import com.liferay.portal.service.ServiceContext;
025    
026    import com.liferay.portlet.expando.model.ExpandoTable;
027    
028    import java.util.List;
029    
030    /**
031     * The persistence utility for the expando table service. This utility wraps {@link ExpandoTablePersistenceImpl} 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.
032     *
033     * <p>
034     * Caching information and settings can be found in <code>portal.properties</code>
035     * </p>
036     *
037     * @author Brian Wing Shun Chan
038     * @see ExpandoTablePersistence
039     * @see ExpandoTablePersistenceImpl
040     * @generated
041     */
042    @ProviderType
043    public class ExpandoTableUtil {
044            /*
045             * NOTE FOR DEVELOPERS:
046             *
047             * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class.
048             */
049    
050            /**
051             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
052             */
053            public static void clearCache() {
054                    getPersistence().clearCache();
055            }
056    
057            /**
058             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel)
059             */
060            public static void clearCache(ExpandoTable expandoTable) {
061                    getPersistence().clearCache(expandoTable);
062            }
063    
064            /**
065             * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
066             */
067            public static long countWithDynamicQuery(DynamicQuery dynamicQuery)
068                    throws SystemException {
069                    return getPersistence().countWithDynamicQuery(dynamicQuery);
070            }
071    
072            /**
073             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
074             */
075            public static List<ExpandoTable> findWithDynamicQuery(
076                    DynamicQuery dynamicQuery) throws SystemException {
077                    return getPersistence().findWithDynamicQuery(dynamicQuery);
078            }
079    
080            /**
081             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
082             */
083            public static List<ExpandoTable> findWithDynamicQuery(
084                    DynamicQuery dynamicQuery, int start, int end)
085                    throws SystemException {
086                    return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
087            }
088    
089            /**
090             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
091             */
092            public static List<ExpandoTable> findWithDynamicQuery(
093                    DynamicQuery dynamicQuery, int start, int end,
094                    OrderByComparator orderByComparator) throws SystemException {
095                    return getPersistence()
096                                       .findWithDynamicQuery(dynamicQuery, start, end,
097                            orderByComparator);
098            }
099    
100            /**
101             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel)
102             */
103            public static ExpandoTable update(ExpandoTable expandoTable)
104                    throws SystemException {
105                    return getPersistence().update(expandoTable);
106            }
107    
108            /**
109             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, ServiceContext)
110             */
111            public static ExpandoTable update(ExpandoTable expandoTable,
112                    ServiceContext serviceContext) throws SystemException {
113                    return getPersistence().update(expandoTable, serviceContext);
114            }
115    
116            /**
117            * Returns all the expando tables where companyId = &#63; and classNameId = &#63;.
118            *
119            * @param companyId the company ID
120            * @param classNameId the class name ID
121            * @return the matching expando tables
122            * @throws SystemException if a system exception occurred
123            */
124            public static java.util.List<com.liferay.portlet.expando.model.ExpandoTable> findByC_C(
125                    long companyId, long classNameId)
126                    throws com.liferay.portal.kernel.exception.SystemException {
127                    return getPersistence().findByC_C(companyId, classNameId);
128            }
129    
130            /**
131            * Returns a range of all the expando tables where companyId = &#63; and classNameId = &#63;.
132            *
133            * <p>
134            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.expando.model.impl.ExpandoTableModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
135            * </p>
136            *
137            * @param companyId the company ID
138            * @param classNameId the class name ID
139            * @param start the lower bound of the range of expando tables
140            * @param end the upper bound of the range of expando tables (not inclusive)
141            * @return the range of matching expando tables
142            * @throws SystemException if a system exception occurred
143            */
144            public static java.util.List<com.liferay.portlet.expando.model.ExpandoTable> findByC_C(
145                    long companyId, long classNameId, int start, int end)
146                    throws com.liferay.portal.kernel.exception.SystemException {
147                    return getPersistence().findByC_C(companyId, classNameId, start, end);
148            }
149    
150            /**
151            * Returns an ordered range of all the expando tables where companyId = &#63; and classNameId = &#63;.
152            *
153            * <p>
154            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.expando.model.impl.ExpandoTableModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
155            * </p>
156            *
157            * @param companyId the company ID
158            * @param classNameId the class name ID
159            * @param start the lower bound of the range of expando tables
160            * @param end the upper bound of the range of expando tables (not inclusive)
161            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
162            * @return the ordered range of matching expando tables
163            * @throws SystemException if a system exception occurred
164            */
165            public static java.util.List<com.liferay.portlet.expando.model.ExpandoTable> findByC_C(
166                    long companyId, long classNameId, int start, int end,
167                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
168                    throws com.liferay.portal.kernel.exception.SystemException {
169                    return getPersistence()
170                                       .findByC_C(companyId, classNameId, start, end,
171                            orderByComparator);
172            }
173    
174            /**
175            * Returns the first expando table in the ordered set where companyId = &#63; and classNameId = &#63;.
176            *
177            * @param companyId the company ID
178            * @param classNameId the class name ID
179            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
180            * @return the first matching expando table
181            * @throws com.liferay.portlet.expando.NoSuchTableException if a matching expando table could not be found
182            * @throws SystemException if a system exception occurred
183            */
184            public static com.liferay.portlet.expando.model.ExpandoTable findByC_C_First(
185                    long companyId, long classNameId,
186                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
187                    throws com.liferay.portal.kernel.exception.SystemException,
188                            com.liferay.portlet.expando.NoSuchTableException {
189                    return getPersistence()
190                                       .findByC_C_First(companyId, classNameId, orderByComparator);
191            }
192    
193            /**
194            * Returns the first expando table in the ordered set where companyId = &#63; and classNameId = &#63;.
195            *
196            * @param companyId the company ID
197            * @param classNameId the class name ID
198            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
199            * @return the first matching expando table, or <code>null</code> if a matching expando table could not be found
200            * @throws SystemException if a system exception occurred
201            */
202            public static com.liferay.portlet.expando.model.ExpandoTable fetchByC_C_First(
203                    long companyId, long classNameId,
204                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
205                    throws com.liferay.portal.kernel.exception.SystemException {
206                    return getPersistence()
207                                       .fetchByC_C_First(companyId, classNameId, orderByComparator);
208            }
209    
210            /**
211            * Returns the last expando table in the ordered set where companyId = &#63; and classNameId = &#63;.
212            *
213            * @param companyId the company ID
214            * @param classNameId the class name ID
215            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
216            * @return the last matching expando table
217            * @throws com.liferay.portlet.expando.NoSuchTableException if a matching expando table could not be found
218            * @throws SystemException if a system exception occurred
219            */
220            public static com.liferay.portlet.expando.model.ExpandoTable findByC_C_Last(
221                    long companyId, long classNameId,
222                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
223                    throws com.liferay.portal.kernel.exception.SystemException,
224                            com.liferay.portlet.expando.NoSuchTableException {
225                    return getPersistence()
226                                       .findByC_C_Last(companyId, classNameId, orderByComparator);
227            }
228    
229            /**
230            * Returns the last expando table in the ordered set where companyId = &#63; and classNameId = &#63;.
231            *
232            * @param companyId the company ID
233            * @param classNameId the class name ID
234            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
235            * @return the last matching expando table, or <code>null</code> if a matching expando table could not be found
236            * @throws SystemException if a system exception occurred
237            */
238            public static com.liferay.portlet.expando.model.ExpandoTable fetchByC_C_Last(
239                    long companyId, long classNameId,
240                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
241                    throws com.liferay.portal.kernel.exception.SystemException {
242                    return getPersistence()
243                                       .fetchByC_C_Last(companyId, classNameId, orderByComparator);
244            }
245    
246            /**
247            * Returns the expando tables before and after the current expando table in the ordered set where companyId = &#63; and classNameId = &#63;.
248            *
249            * @param tableId the primary key of the current expando table
250            * @param companyId the company ID
251            * @param classNameId the class name ID
252            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
253            * @return the previous, current, and next expando table
254            * @throws com.liferay.portlet.expando.NoSuchTableException if a expando table with the primary key could not be found
255            * @throws SystemException if a system exception occurred
256            */
257            public static com.liferay.portlet.expando.model.ExpandoTable[] findByC_C_PrevAndNext(
258                    long tableId, long companyId, long classNameId,
259                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
260                    throws com.liferay.portal.kernel.exception.SystemException,
261                            com.liferay.portlet.expando.NoSuchTableException {
262                    return getPersistence()
263                                       .findByC_C_PrevAndNext(tableId, companyId, classNameId,
264                            orderByComparator);
265            }
266    
267            /**
268            * Removes all the expando tables where companyId = &#63; and classNameId = &#63; from the database.
269            *
270            * @param companyId the company ID
271            * @param classNameId the class name ID
272            * @throws SystemException if a system exception occurred
273            */
274            public static void removeByC_C(long companyId, long classNameId)
275                    throws com.liferay.portal.kernel.exception.SystemException {
276                    getPersistence().removeByC_C(companyId, classNameId);
277            }
278    
279            /**
280            * Returns the number of expando tables where companyId = &#63; and classNameId = &#63;.
281            *
282            * @param companyId the company ID
283            * @param classNameId the class name ID
284            * @return the number of matching expando tables
285            * @throws SystemException if a system exception occurred
286            */
287            public static int countByC_C(long companyId, long classNameId)
288                    throws com.liferay.portal.kernel.exception.SystemException {
289                    return getPersistence().countByC_C(companyId, classNameId);
290            }
291    
292            /**
293            * Returns the expando table where companyId = &#63; and classNameId = &#63; and name = &#63; or throws a {@link com.liferay.portlet.expando.NoSuchTableException} if it could not be found.
294            *
295            * @param companyId the company ID
296            * @param classNameId the class name ID
297            * @param name the name
298            * @return the matching expando table
299            * @throws com.liferay.portlet.expando.NoSuchTableException if a matching expando table could not be found
300            * @throws SystemException if a system exception occurred
301            */
302            public static com.liferay.portlet.expando.model.ExpandoTable findByC_C_N(
303                    long companyId, long classNameId, java.lang.String name)
304                    throws com.liferay.portal.kernel.exception.SystemException,
305                            com.liferay.portlet.expando.NoSuchTableException {
306                    return getPersistence().findByC_C_N(companyId, classNameId, name);
307            }
308    
309            /**
310            * Returns the expando table where companyId = &#63; and classNameId = &#63; and name = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
311            *
312            * @param companyId the company ID
313            * @param classNameId the class name ID
314            * @param name the name
315            * @return the matching expando table, or <code>null</code> if a matching expando table could not be found
316            * @throws SystemException if a system exception occurred
317            */
318            public static com.liferay.portlet.expando.model.ExpandoTable fetchByC_C_N(
319                    long companyId, long classNameId, java.lang.String name)
320                    throws com.liferay.portal.kernel.exception.SystemException {
321                    return getPersistence().fetchByC_C_N(companyId, classNameId, name);
322            }
323    
324            /**
325            * Returns the expando table where companyId = &#63; and classNameId = &#63; and name = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
326            *
327            * @param companyId the company ID
328            * @param classNameId the class name ID
329            * @param name the name
330            * @param retrieveFromCache whether to use the finder cache
331            * @return the matching expando table, or <code>null</code> if a matching expando table could not be found
332            * @throws SystemException if a system exception occurred
333            */
334            public static com.liferay.portlet.expando.model.ExpandoTable fetchByC_C_N(
335                    long companyId, long classNameId, java.lang.String name,
336                    boolean retrieveFromCache)
337                    throws com.liferay.portal.kernel.exception.SystemException {
338                    return getPersistence()
339                                       .fetchByC_C_N(companyId, classNameId, name, retrieveFromCache);
340            }
341    
342            /**
343            * Removes the expando table where companyId = &#63; and classNameId = &#63; and name = &#63; from the database.
344            *
345            * @param companyId the company ID
346            * @param classNameId the class name ID
347            * @param name the name
348            * @return the expando table that was removed
349            * @throws SystemException if a system exception occurred
350            */
351            public static com.liferay.portlet.expando.model.ExpandoTable removeByC_C_N(
352                    long companyId, long classNameId, java.lang.String name)
353                    throws com.liferay.portal.kernel.exception.SystemException,
354                            com.liferay.portlet.expando.NoSuchTableException {
355                    return getPersistence().removeByC_C_N(companyId, classNameId, name);
356            }
357    
358            /**
359            * Returns the number of expando tables where companyId = &#63; and classNameId = &#63; and name = &#63;.
360            *
361            * @param companyId the company ID
362            * @param classNameId the class name ID
363            * @param name the name
364            * @return the number of matching expando tables
365            * @throws SystemException if a system exception occurred
366            */
367            public static int countByC_C_N(long companyId, long classNameId,
368                    java.lang.String name)
369                    throws com.liferay.portal.kernel.exception.SystemException {
370                    return getPersistence().countByC_C_N(companyId, classNameId, name);
371            }
372    
373            /**
374            * Caches the expando table in the entity cache if it is enabled.
375            *
376            * @param expandoTable the expando table
377            */
378            public static void cacheResult(
379                    com.liferay.portlet.expando.model.ExpandoTable expandoTable) {
380                    getPersistence().cacheResult(expandoTable);
381            }
382    
383            /**
384            * Caches the expando tables in the entity cache if it is enabled.
385            *
386            * @param expandoTables the expando tables
387            */
388            public static void cacheResult(
389                    java.util.List<com.liferay.portlet.expando.model.ExpandoTable> expandoTables) {
390                    getPersistence().cacheResult(expandoTables);
391            }
392    
393            /**
394            * Creates a new expando table with the primary key. Does not add the expando table to the database.
395            *
396            * @param tableId the primary key for the new expando table
397            * @return the new expando table
398            */
399            public static com.liferay.portlet.expando.model.ExpandoTable create(
400                    long tableId) {
401                    return getPersistence().create(tableId);
402            }
403    
404            /**
405            * Removes the expando table with the primary key from the database. Also notifies the appropriate model listeners.
406            *
407            * @param tableId the primary key of the expando table
408            * @return the expando table that was removed
409            * @throws com.liferay.portlet.expando.NoSuchTableException if a expando table with the primary key could not be found
410            * @throws SystemException if a system exception occurred
411            */
412            public static com.liferay.portlet.expando.model.ExpandoTable remove(
413                    long tableId)
414                    throws com.liferay.portal.kernel.exception.SystemException,
415                            com.liferay.portlet.expando.NoSuchTableException {
416                    return getPersistence().remove(tableId);
417            }
418    
419            public static com.liferay.portlet.expando.model.ExpandoTable updateImpl(
420                    com.liferay.portlet.expando.model.ExpandoTable expandoTable)
421                    throws com.liferay.portal.kernel.exception.SystemException {
422                    return getPersistence().updateImpl(expandoTable);
423            }
424    
425            /**
426            * Returns the expando table with the primary key or throws a {@link com.liferay.portlet.expando.NoSuchTableException} if it could not be found.
427            *
428            * @param tableId the primary key of the expando table
429            * @return the expando table
430            * @throws com.liferay.portlet.expando.NoSuchTableException if a expando table with the primary key could not be found
431            * @throws SystemException if a system exception occurred
432            */
433            public static com.liferay.portlet.expando.model.ExpandoTable findByPrimaryKey(
434                    long tableId)
435                    throws com.liferay.portal.kernel.exception.SystemException,
436                            com.liferay.portlet.expando.NoSuchTableException {
437                    return getPersistence().findByPrimaryKey(tableId);
438            }
439    
440            /**
441            * Returns the expando table with the primary key or returns <code>null</code> if it could not be found.
442            *
443            * @param tableId the primary key of the expando table
444            * @return the expando table, or <code>null</code> if a expando table with the primary key could not be found
445            * @throws SystemException if a system exception occurred
446            */
447            public static com.liferay.portlet.expando.model.ExpandoTable fetchByPrimaryKey(
448                    long tableId)
449                    throws com.liferay.portal.kernel.exception.SystemException {
450                    return getPersistence().fetchByPrimaryKey(tableId);
451            }
452    
453            /**
454            * Returns all the expando tables.
455            *
456            * @return the expando tables
457            * @throws SystemException if a system exception occurred
458            */
459            public static java.util.List<com.liferay.portlet.expando.model.ExpandoTable> findAll()
460                    throws com.liferay.portal.kernel.exception.SystemException {
461                    return getPersistence().findAll();
462            }
463    
464            /**
465            * Returns a range of all the expando tables.
466            *
467            * <p>
468            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.expando.model.impl.ExpandoTableModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
469            * </p>
470            *
471            * @param start the lower bound of the range of expando tables
472            * @param end the upper bound of the range of expando tables (not inclusive)
473            * @return the range of expando tables
474            * @throws SystemException if a system exception occurred
475            */
476            public static java.util.List<com.liferay.portlet.expando.model.ExpandoTable> findAll(
477                    int start, int end)
478                    throws com.liferay.portal.kernel.exception.SystemException {
479                    return getPersistence().findAll(start, end);
480            }
481    
482            /**
483            * Returns an ordered range of all the expando tables.
484            *
485            * <p>
486            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.expando.model.impl.ExpandoTableModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
487            * </p>
488            *
489            * @param start the lower bound of the range of expando tables
490            * @param end the upper bound of the range of expando tables (not inclusive)
491            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
492            * @return the ordered range of expando tables
493            * @throws SystemException if a system exception occurred
494            */
495            public static java.util.List<com.liferay.portlet.expando.model.ExpandoTable> findAll(
496                    int start, int end,
497                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
498                    throws com.liferay.portal.kernel.exception.SystemException {
499                    return getPersistence().findAll(start, end, orderByComparator);
500            }
501    
502            /**
503            * Removes all the expando tables from the database.
504            *
505            * @throws SystemException if a system exception occurred
506            */
507            public static void removeAll()
508                    throws com.liferay.portal.kernel.exception.SystemException {
509                    getPersistence().removeAll();
510            }
511    
512            /**
513            * Returns the number of expando tables.
514            *
515            * @return the number of expando tables
516            * @throws SystemException if a system exception occurred
517            */
518            public static int countAll()
519                    throws com.liferay.portal.kernel.exception.SystemException {
520                    return getPersistence().countAll();
521            }
522    
523            public static ExpandoTablePersistence getPersistence() {
524                    if (_persistence == null) {
525                            _persistence = (ExpandoTablePersistence)PortalBeanLocatorUtil.locate(ExpandoTablePersistence.class.getName());
526    
527                            ReferenceRegistry.registerReference(ExpandoTableUtil.class,
528                                    "_persistence");
529                    }
530    
531                    return _persistence;
532            }
533    
534            /**
535             * @deprecated As of 6.2.0
536             */
537            public void setPersistence(ExpandoTablePersistence persistence) {
538            }
539    
540            private static ExpandoTablePersistence _persistence;
541    }