001    /**
002     * Copyright (c) 2000-present 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.util.OrderByComparator;
022    import com.liferay.portal.kernel.util.ReferenceRegistry;
023    import com.liferay.portal.service.ServiceContext;
024    
025    import com.liferay.portlet.expando.model.ExpandoRow;
026    
027    import java.util.List;
028    
029    /**
030     * The persistence utility for the expando row service. This utility wraps {@link com.liferay.portlet.expando.service.persistence.impl.ExpandoRowPersistenceImpl} 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.
031     *
032     * <p>
033     * Caching information and settings can be found in <code>portal.properties</code>
034     * </p>
035     *
036     * @author Brian Wing Shun Chan
037     * @see ExpandoRowPersistence
038     * @see com.liferay.portlet.expando.service.persistence.impl.ExpandoRowPersistenceImpl
039     * @generated
040     */
041    @ProviderType
042    public class ExpandoRowUtil {
043            /*
044             * NOTE FOR DEVELOPERS:
045             *
046             * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class.
047             */
048    
049            /**
050             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
051             */
052            public static void clearCache() {
053                    getPersistence().clearCache();
054            }
055    
056            /**
057             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel)
058             */
059            public static void clearCache(ExpandoRow expandoRow) {
060                    getPersistence().clearCache(expandoRow);
061            }
062    
063            /**
064             * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
065             */
066            public static long countWithDynamicQuery(DynamicQuery dynamicQuery) {
067                    return getPersistence().countWithDynamicQuery(dynamicQuery);
068            }
069    
070            /**
071             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
072             */
073            public static List<ExpandoRow> findWithDynamicQuery(
074                    DynamicQuery dynamicQuery) {
075                    return getPersistence().findWithDynamicQuery(dynamicQuery);
076            }
077    
078            /**
079             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
080             */
081            public static List<ExpandoRow> findWithDynamicQuery(
082                    DynamicQuery dynamicQuery, int start, int end) {
083                    return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
084            }
085    
086            /**
087             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
088             */
089            public static List<ExpandoRow> findWithDynamicQuery(
090                    DynamicQuery dynamicQuery, int start, int end,
091                    OrderByComparator<ExpandoRow> orderByComparator) {
092                    return getPersistence()
093                                       .findWithDynamicQuery(dynamicQuery, start, end,
094                            orderByComparator);
095            }
096    
097            /**
098             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel)
099             */
100            public static ExpandoRow update(ExpandoRow expandoRow) {
101                    return getPersistence().update(expandoRow);
102            }
103    
104            /**
105             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, ServiceContext)
106             */
107            public static ExpandoRow update(ExpandoRow expandoRow,
108                    ServiceContext serviceContext) {
109                    return getPersistence().update(expandoRow, serviceContext);
110            }
111    
112            /**
113            * Returns all the expando rows where tableId = &#63;.
114            *
115            * @param tableId the table ID
116            * @return the matching expando rows
117            */
118            public static List<ExpandoRow> findByTableId(long tableId) {
119                    return getPersistence().findByTableId(tableId);
120            }
121    
122            /**
123            * Returns a range of all the expando rows where tableId = &#63;.
124            *
125            * <p>
126            * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link ExpandoRowModelImpl}. 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.
127            * </p>
128            *
129            * @param tableId the table ID
130            * @param start the lower bound of the range of expando rows
131            * @param end the upper bound of the range of expando rows (not inclusive)
132            * @return the range of matching expando rows
133            */
134            public static List<ExpandoRow> findByTableId(long tableId, int start,
135                    int end) {
136                    return getPersistence().findByTableId(tableId, start, end);
137            }
138    
139            /**
140            * Returns an ordered range of all the expando rows where tableId = &#63;.
141            *
142            * <p>
143            * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link ExpandoRowModelImpl}. 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.
144            * </p>
145            *
146            * @param tableId the table ID
147            * @param start the lower bound of the range of expando rows
148            * @param end the upper bound of the range of expando rows (not inclusive)
149            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
150            * @return the ordered range of matching expando rows
151            */
152            public static List<ExpandoRow> findByTableId(long tableId, int start,
153                    int end, OrderByComparator<ExpandoRow> orderByComparator) {
154                    return getPersistence()
155                                       .findByTableId(tableId, start, end, orderByComparator);
156            }
157    
158            /**
159            * Returns the first expando row in the ordered set where tableId = &#63;.
160            *
161            * @param tableId the table ID
162            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
163            * @return the first matching expando row
164            * @throws NoSuchRowException if a matching expando row could not be found
165            */
166            public static ExpandoRow findByTableId_First(long tableId,
167                    OrderByComparator<ExpandoRow> orderByComparator)
168                    throws com.liferay.portlet.expando.NoSuchRowException {
169                    return getPersistence().findByTableId_First(tableId, orderByComparator);
170            }
171    
172            /**
173            * Returns the first expando row in the ordered set where tableId = &#63;.
174            *
175            * @param tableId the table ID
176            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
177            * @return the first matching expando row, or <code>null</code> if a matching expando row could not be found
178            */
179            public static ExpandoRow fetchByTableId_First(long tableId,
180                    OrderByComparator<ExpandoRow> orderByComparator) {
181                    return getPersistence().fetchByTableId_First(tableId, orderByComparator);
182            }
183    
184            /**
185            * Returns the last expando row in the ordered set where tableId = &#63;.
186            *
187            * @param tableId the table ID
188            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
189            * @return the last matching expando row
190            * @throws NoSuchRowException if a matching expando row could not be found
191            */
192            public static ExpandoRow findByTableId_Last(long tableId,
193                    OrderByComparator<ExpandoRow> orderByComparator)
194                    throws com.liferay.portlet.expando.NoSuchRowException {
195                    return getPersistence().findByTableId_Last(tableId, orderByComparator);
196            }
197    
198            /**
199            * Returns the last expando row in the ordered set where tableId = &#63;.
200            *
201            * @param tableId the table ID
202            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
203            * @return the last matching expando row, or <code>null</code> if a matching expando row could not be found
204            */
205            public static ExpandoRow fetchByTableId_Last(long tableId,
206                    OrderByComparator<ExpandoRow> orderByComparator) {
207                    return getPersistence().fetchByTableId_Last(tableId, orderByComparator);
208            }
209    
210            /**
211            * Returns the expando rows before and after the current expando row in the ordered set where tableId = &#63;.
212            *
213            * @param rowId the primary key of the current expando row
214            * @param tableId the table ID
215            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
216            * @return the previous, current, and next expando row
217            * @throws NoSuchRowException if a expando row with the primary key could not be found
218            */
219            public static ExpandoRow[] findByTableId_PrevAndNext(long rowId,
220                    long tableId, OrderByComparator<ExpandoRow> orderByComparator)
221                    throws com.liferay.portlet.expando.NoSuchRowException {
222                    return getPersistence()
223                                       .findByTableId_PrevAndNext(rowId, tableId, orderByComparator);
224            }
225    
226            /**
227            * Removes all the expando rows where tableId = &#63; from the database.
228            *
229            * @param tableId the table ID
230            */
231            public static void removeByTableId(long tableId) {
232                    getPersistence().removeByTableId(tableId);
233            }
234    
235            /**
236            * Returns the number of expando rows where tableId = &#63;.
237            *
238            * @param tableId the table ID
239            * @return the number of matching expando rows
240            */
241            public static int countByTableId(long tableId) {
242                    return getPersistence().countByTableId(tableId);
243            }
244    
245            /**
246            * Returns all the expando rows where classPK = &#63;.
247            *
248            * @param classPK the class p k
249            * @return the matching expando rows
250            */
251            public static List<ExpandoRow> findByClassPK(long classPK) {
252                    return getPersistence().findByClassPK(classPK);
253            }
254    
255            /**
256            * Returns a range of all the expando rows where classPK = &#63;.
257            *
258            * <p>
259            * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link ExpandoRowModelImpl}. 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.
260            * </p>
261            *
262            * @param classPK the class p k
263            * @param start the lower bound of the range of expando rows
264            * @param end the upper bound of the range of expando rows (not inclusive)
265            * @return the range of matching expando rows
266            */
267            public static List<ExpandoRow> findByClassPK(long classPK, int start,
268                    int end) {
269                    return getPersistence().findByClassPK(classPK, start, end);
270            }
271    
272            /**
273            * Returns an ordered range of all the expando rows where classPK = &#63;.
274            *
275            * <p>
276            * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link ExpandoRowModelImpl}. 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.
277            * </p>
278            *
279            * @param classPK the class p k
280            * @param start the lower bound of the range of expando rows
281            * @param end the upper bound of the range of expando rows (not inclusive)
282            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
283            * @return the ordered range of matching expando rows
284            */
285            public static List<ExpandoRow> findByClassPK(long classPK, int start,
286                    int end, OrderByComparator<ExpandoRow> orderByComparator) {
287                    return getPersistence()
288                                       .findByClassPK(classPK, start, end, orderByComparator);
289            }
290    
291            /**
292            * Returns the first expando row in the ordered set where classPK = &#63;.
293            *
294            * @param classPK the class p k
295            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
296            * @return the first matching expando row
297            * @throws NoSuchRowException if a matching expando row could not be found
298            */
299            public static ExpandoRow findByClassPK_First(long classPK,
300                    OrderByComparator<ExpandoRow> orderByComparator)
301                    throws com.liferay.portlet.expando.NoSuchRowException {
302                    return getPersistence().findByClassPK_First(classPK, orderByComparator);
303            }
304    
305            /**
306            * Returns the first expando row in the ordered set where classPK = &#63;.
307            *
308            * @param classPK the class p k
309            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
310            * @return the first matching expando row, or <code>null</code> if a matching expando row could not be found
311            */
312            public static ExpandoRow fetchByClassPK_First(long classPK,
313                    OrderByComparator<ExpandoRow> orderByComparator) {
314                    return getPersistence().fetchByClassPK_First(classPK, orderByComparator);
315            }
316    
317            /**
318            * Returns the last expando row in the ordered set where classPK = &#63;.
319            *
320            * @param classPK the class p k
321            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
322            * @return the last matching expando row
323            * @throws NoSuchRowException if a matching expando row could not be found
324            */
325            public static ExpandoRow findByClassPK_Last(long classPK,
326                    OrderByComparator<ExpandoRow> orderByComparator)
327                    throws com.liferay.portlet.expando.NoSuchRowException {
328                    return getPersistence().findByClassPK_Last(classPK, orderByComparator);
329            }
330    
331            /**
332            * Returns the last expando row in the ordered set where classPK = &#63;.
333            *
334            * @param classPK the class p k
335            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
336            * @return the last matching expando row, or <code>null</code> if a matching expando row could not be found
337            */
338            public static ExpandoRow fetchByClassPK_Last(long classPK,
339                    OrderByComparator<ExpandoRow> orderByComparator) {
340                    return getPersistence().fetchByClassPK_Last(classPK, orderByComparator);
341            }
342    
343            /**
344            * Returns the expando rows before and after the current expando row in the ordered set where classPK = &#63;.
345            *
346            * @param rowId the primary key of the current expando row
347            * @param classPK the class p k
348            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
349            * @return the previous, current, and next expando row
350            * @throws NoSuchRowException if a expando row with the primary key could not be found
351            */
352            public static ExpandoRow[] findByClassPK_PrevAndNext(long rowId,
353                    long classPK, OrderByComparator<ExpandoRow> orderByComparator)
354                    throws com.liferay.portlet.expando.NoSuchRowException {
355                    return getPersistence()
356                                       .findByClassPK_PrevAndNext(rowId, classPK, orderByComparator);
357            }
358    
359            /**
360            * Removes all the expando rows where classPK = &#63; from the database.
361            *
362            * @param classPK the class p k
363            */
364            public static void removeByClassPK(long classPK) {
365                    getPersistence().removeByClassPK(classPK);
366            }
367    
368            /**
369            * Returns the number of expando rows where classPK = &#63;.
370            *
371            * @param classPK the class p k
372            * @return the number of matching expando rows
373            */
374            public static int countByClassPK(long classPK) {
375                    return getPersistence().countByClassPK(classPK);
376            }
377    
378            /**
379            * Returns the expando row where tableId = &#63; and classPK = &#63; or throws a {@link NoSuchRowException} if it could not be found.
380            *
381            * @param tableId the table ID
382            * @param classPK the class p k
383            * @return the matching expando row
384            * @throws NoSuchRowException if a matching expando row could not be found
385            */
386            public static ExpandoRow findByT_C(long tableId, long classPK)
387                    throws com.liferay.portlet.expando.NoSuchRowException {
388                    return getPersistence().findByT_C(tableId, classPK);
389            }
390    
391            /**
392            * Returns the expando row where tableId = &#63; and classPK = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
393            *
394            * @param tableId the table ID
395            * @param classPK the class p k
396            * @return the matching expando row, or <code>null</code> if a matching expando row could not be found
397            */
398            public static ExpandoRow fetchByT_C(long tableId, long classPK) {
399                    return getPersistence().fetchByT_C(tableId, classPK);
400            }
401    
402            /**
403            * Returns the expando row where tableId = &#63; and classPK = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
404            *
405            * @param tableId the table ID
406            * @param classPK the class p k
407            * @param retrieveFromCache whether to use the finder cache
408            * @return the matching expando row, or <code>null</code> if a matching expando row could not be found
409            */
410            public static ExpandoRow fetchByT_C(long tableId, long classPK,
411                    boolean retrieveFromCache) {
412                    return getPersistence().fetchByT_C(tableId, classPK, retrieveFromCache);
413            }
414    
415            /**
416            * Removes the expando row where tableId = &#63; and classPK = &#63; from the database.
417            *
418            * @param tableId the table ID
419            * @param classPK the class p k
420            * @return the expando row that was removed
421            */
422            public static ExpandoRow removeByT_C(long tableId, long classPK)
423                    throws com.liferay.portlet.expando.NoSuchRowException {
424                    return getPersistence().removeByT_C(tableId, classPK);
425            }
426    
427            /**
428            * Returns the number of expando rows where tableId = &#63; and classPK = &#63;.
429            *
430            * @param tableId the table ID
431            * @param classPK the class p k
432            * @return the number of matching expando rows
433            */
434            public static int countByT_C(long tableId, long classPK) {
435                    return getPersistence().countByT_C(tableId, classPK);
436            }
437    
438            /**
439            * Caches the expando row in the entity cache if it is enabled.
440            *
441            * @param expandoRow the expando row
442            */
443            public static void cacheResult(ExpandoRow expandoRow) {
444                    getPersistence().cacheResult(expandoRow);
445            }
446    
447            /**
448            * Caches the expando rows in the entity cache if it is enabled.
449            *
450            * @param expandoRows the expando rows
451            */
452            public static void cacheResult(List<ExpandoRow> expandoRows) {
453                    getPersistence().cacheResult(expandoRows);
454            }
455    
456            /**
457            * Creates a new expando row with the primary key. Does not add the expando row to the database.
458            *
459            * @param rowId the primary key for the new expando row
460            * @return the new expando row
461            */
462            public static ExpandoRow create(long rowId) {
463                    return getPersistence().create(rowId);
464            }
465    
466            /**
467            * Removes the expando row with the primary key from the database. Also notifies the appropriate model listeners.
468            *
469            * @param rowId the primary key of the expando row
470            * @return the expando row that was removed
471            * @throws NoSuchRowException if a expando row with the primary key could not be found
472            */
473            public static ExpandoRow remove(long rowId)
474                    throws com.liferay.portlet.expando.NoSuchRowException {
475                    return getPersistence().remove(rowId);
476            }
477    
478            public static ExpandoRow updateImpl(ExpandoRow expandoRow) {
479                    return getPersistence().updateImpl(expandoRow);
480            }
481    
482            /**
483            * Returns the expando row with the primary key or throws a {@link NoSuchRowException} if it could not be found.
484            *
485            * @param rowId the primary key of the expando row
486            * @return the expando row
487            * @throws NoSuchRowException if a expando row with the primary key could not be found
488            */
489            public static ExpandoRow findByPrimaryKey(long rowId)
490                    throws com.liferay.portlet.expando.NoSuchRowException {
491                    return getPersistence().findByPrimaryKey(rowId);
492            }
493    
494            /**
495            * Returns the expando row with the primary key or returns <code>null</code> if it could not be found.
496            *
497            * @param rowId the primary key of the expando row
498            * @return the expando row, or <code>null</code> if a expando row with the primary key could not be found
499            */
500            public static ExpandoRow fetchByPrimaryKey(long rowId) {
501                    return getPersistence().fetchByPrimaryKey(rowId);
502            }
503    
504            public static java.util.Map<java.io.Serializable, ExpandoRow> fetchByPrimaryKeys(
505                    java.util.Set<java.io.Serializable> primaryKeys) {
506                    return getPersistence().fetchByPrimaryKeys(primaryKeys);
507            }
508    
509            /**
510            * Returns all the expando rows.
511            *
512            * @return the expando rows
513            */
514            public static List<ExpandoRow> findAll() {
515                    return getPersistence().findAll();
516            }
517    
518            /**
519            * Returns a range of all the expando rows.
520            *
521            * <p>
522            * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link ExpandoRowModelImpl}. 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.
523            * </p>
524            *
525            * @param start the lower bound of the range of expando rows
526            * @param end the upper bound of the range of expando rows (not inclusive)
527            * @return the range of expando rows
528            */
529            public static List<ExpandoRow> findAll(int start, int end) {
530                    return getPersistence().findAll(start, end);
531            }
532    
533            /**
534            * Returns an ordered range of all the expando rows.
535            *
536            * <p>
537            * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link ExpandoRowModelImpl}. 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.
538            * </p>
539            *
540            * @param start the lower bound of the range of expando rows
541            * @param end the upper bound of the range of expando rows (not inclusive)
542            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
543            * @return the ordered range of expando rows
544            */
545            public static List<ExpandoRow> findAll(int start, int end,
546                    OrderByComparator<ExpandoRow> orderByComparator) {
547                    return getPersistence().findAll(start, end, orderByComparator);
548            }
549    
550            /**
551            * Removes all the expando rows from the database.
552            */
553            public static void removeAll() {
554                    getPersistence().removeAll();
555            }
556    
557            /**
558            * Returns the number of expando rows.
559            *
560            * @return the number of expando rows
561            */
562            public static int countAll() {
563                    return getPersistence().countAll();
564            }
565    
566            public static ExpandoRowPersistence getPersistence() {
567                    if (_persistence == null) {
568                            _persistence = (ExpandoRowPersistence)PortalBeanLocatorUtil.locate(ExpandoRowPersistence.class.getName());
569    
570                            ReferenceRegistry.registerReference(ExpandoRowUtil.class,
571                                    "_persistence");
572                    }
573    
574                    return _persistence;
575            }
576    
577            /**
578             * @deprecated As of 6.2.0
579             */
580            @Deprecated
581            public void setPersistence(ExpandoRowPersistence persistence) {
582            }
583    
584            private static ExpandoRowPersistence _persistence;
585    }