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 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 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 java.util.List<com.liferay.portlet.expando.model.ExpandoRow> findByTableId(
119                    long tableId) {
120                    return getPersistence().findByTableId(tableId);
121            }
122    
123            /**
124            * Returns a range of all the expando rows where tableId = &#63;.
125            *
126            * <p>
127            * 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.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.
128            * </p>
129            *
130            * @param tableId the table ID
131            * @param start the lower bound of the range of expando rows
132            * @param end the upper bound of the range of expando rows (not inclusive)
133            * @return the range of matching expando rows
134            */
135            public static java.util.List<com.liferay.portlet.expando.model.ExpandoRow> findByTableId(
136                    long tableId, int start, int end) {
137                    return getPersistence().findByTableId(tableId, start, end);
138            }
139    
140            /**
141            * Returns an ordered range of all the expando rows where tableId = &#63;.
142            *
143            * <p>
144            * 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.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.
145            * </p>
146            *
147            * @param tableId the table ID
148            * @param start the lower bound of the range of expando rows
149            * @param end the upper bound of the range of expando rows (not inclusive)
150            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
151            * @return the ordered range of matching expando rows
152            */
153            public static java.util.List<com.liferay.portlet.expando.model.ExpandoRow> findByTableId(
154                    long tableId, int start, int end,
155                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.expando.model.ExpandoRow> orderByComparator) {
156                    return getPersistence()
157                                       .findByTableId(tableId, start, end, orderByComparator);
158            }
159    
160            /**
161            * Returns the first expando row in the ordered set where tableId = &#63;.
162            *
163            * @param tableId the table ID
164            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
165            * @return the first matching expando row
166            * @throws com.liferay.portlet.expando.NoSuchRowException if a matching expando row could not be found
167            */
168            public static com.liferay.portlet.expando.model.ExpandoRow findByTableId_First(
169                    long tableId,
170                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.expando.model.ExpandoRow> orderByComparator)
171                    throws com.liferay.portlet.expando.NoSuchRowException {
172                    return getPersistence().findByTableId_First(tableId, orderByComparator);
173            }
174    
175            /**
176            * Returns the first expando row in the ordered set where tableId = &#63;.
177            *
178            * @param tableId the table ID
179            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
180            * @return the first matching expando row, or <code>null</code> if a matching expando row could not be found
181            */
182            public static com.liferay.portlet.expando.model.ExpandoRow fetchByTableId_First(
183                    long tableId,
184                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.expando.model.ExpandoRow> orderByComparator) {
185                    return getPersistence().fetchByTableId_First(tableId, orderByComparator);
186            }
187    
188            /**
189            * Returns the last expando row in the ordered set where tableId = &#63;.
190            *
191            * @param tableId the table ID
192            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
193            * @return the last matching expando row
194            * @throws com.liferay.portlet.expando.NoSuchRowException if a matching expando row could not be found
195            */
196            public static com.liferay.portlet.expando.model.ExpandoRow findByTableId_Last(
197                    long tableId,
198                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.expando.model.ExpandoRow> orderByComparator)
199                    throws com.liferay.portlet.expando.NoSuchRowException {
200                    return getPersistence().findByTableId_Last(tableId, orderByComparator);
201            }
202    
203            /**
204            * Returns the last expando row in the ordered set where tableId = &#63;.
205            *
206            * @param tableId the table ID
207            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
208            * @return the last matching expando row, or <code>null</code> if a matching expando row could not be found
209            */
210            public static com.liferay.portlet.expando.model.ExpandoRow fetchByTableId_Last(
211                    long tableId,
212                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.expando.model.ExpandoRow> orderByComparator) {
213                    return getPersistence().fetchByTableId_Last(tableId, orderByComparator);
214            }
215    
216            /**
217            * Returns the expando rows before and after the current expando row in the ordered set where tableId = &#63;.
218            *
219            * @param rowId the primary key of the current expando row
220            * @param tableId the table ID
221            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
222            * @return the previous, current, and next expando row
223            * @throws com.liferay.portlet.expando.NoSuchRowException if a expando row with the primary key could not be found
224            */
225            public static com.liferay.portlet.expando.model.ExpandoRow[] findByTableId_PrevAndNext(
226                    long rowId, long tableId,
227                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.expando.model.ExpandoRow> orderByComparator)
228                    throws com.liferay.portlet.expando.NoSuchRowException {
229                    return getPersistence()
230                                       .findByTableId_PrevAndNext(rowId, tableId, orderByComparator);
231            }
232    
233            /**
234            * Removes all the expando rows where tableId = &#63; from the database.
235            *
236            * @param tableId the table ID
237            */
238            public static void removeByTableId(long tableId) {
239                    getPersistence().removeByTableId(tableId);
240            }
241    
242            /**
243            * Returns the number of expando rows where tableId = &#63;.
244            *
245            * @param tableId the table ID
246            * @return the number of matching expando rows
247            */
248            public static int countByTableId(long tableId) {
249                    return getPersistence().countByTableId(tableId);
250            }
251    
252            /**
253            * Returns all the expando rows where classPK = &#63;.
254            *
255            * @param classPK the class p k
256            * @return the matching expando rows
257            */
258            public static java.util.List<com.liferay.portlet.expando.model.ExpandoRow> findByClassPK(
259                    long classPK) {
260                    return getPersistence().findByClassPK(classPK);
261            }
262    
263            /**
264            * Returns a range of all the expando rows where classPK = &#63;.
265            *
266            * <p>
267            * 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.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.
268            * </p>
269            *
270            * @param classPK the class p k
271            * @param start the lower bound of the range of expando rows
272            * @param end the upper bound of the range of expando rows (not inclusive)
273            * @return the range of matching expando rows
274            */
275            public static java.util.List<com.liferay.portlet.expando.model.ExpandoRow> findByClassPK(
276                    long classPK, int start, int end) {
277                    return getPersistence().findByClassPK(classPK, start, end);
278            }
279    
280            /**
281            * Returns an ordered range of all the expando rows where classPK = &#63;.
282            *
283            * <p>
284            * 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.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.
285            * </p>
286            *
287            * @param classPK the class p k
288            * @param start the lower bound of the range of expando rows
289            * @param end the upper bound of the range of expando rows (not inclusive)
290            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
291            * @return the ordered range of matching expando rows
292            */
293            public static java.util.List<com.liferay.portlet.expando.model.ExpandoRow> findByClassPK(
294                    long classPK, int start, int end,
295                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.expando.model.ExpandoRow> orderByComparator) {
296                    return getPersistence()
297                                       .findByClassPK(classPK, start, end, orderByComparator);
298            }
299    
300            /**
301            * Returns the first expando row in the ordered set where classPK = &#63;.
302            *
303            * @param classPK the class p k
304            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
305            * @return the first matching expando row
306            * @throws com.liferay.portlet.expando.NoSuchRowException if a matching expando row could not be found
307            */
308            public static com.liferay.portlet.expando.model.ExpandoRow findByClassPK_First(
309                    long classPK,
310                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.expando.model.ExpandoRow> orderByComparator)
311                    throws com.liferay.portlet.expando.NoSuchRowException {
312                    return getPersistence().findByClassPK_First(classPK, orderByComparator);
313            }
314    
315            /**
316            * Returns the first expando row in the ordered set where classPK = &#63;.
317            *
318            * @param classPK the class p k
319            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
320            * @return the first matching expando row, or <code>null</code> if a matching expando row could not be found
321            */
322            public static com.liferay.portlet.expando.model.ExpandoRow fetchByClassPK_First(
323                    long classPK,
324                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.expando.model.ExpandoRow> orderByComparator) {
325                    return getPersistence().fetchByClassPK_First(classPK, orderByComparator);
326            }
327    
328            /**
329            * Returns the last expando row in the ordered set where classPK = &#63;.
330            *
331            * @param classPK the class p k
332            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
333            * @return the last matching expando row
334            * @throws com.liferay.portlet.expando.NoSuchRowException if a matching expando row could not be found
335            */
336            public static com.liferay.portlet.expando.model.ExpandoRow findByClassPK_Last(
337                    long classPK,
338                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.expando.model.ExpandoRow> orderByComparator)
339                    throws com.liferay.portlet.expando.NoSuchRowException {
340                    return getPersistence().findByClassPK_Last(classPK, orderByComparator);
341            }
342    
343            /**
344            * Returns the last expando row in the ordered set where classPK = &#63;.
345            *
346            * @param classPK the class p k
347            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
348            * @return the last matching expando row, or <code>null</code> if a matching expando row could not be found
349            */
350            public static com.liferay.portlet.expando.model.ExpandoRow fetchByClassPK_Last(
351                    long classPK,
352                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.expando.model.ExpandoRow> orderByComparator) {
353                    return getPersistence().fetchByClassPK_Last(classPK, orderByComparator);
354            }
355    
356            /**
357            * Returns the expando rows before and after the current expando row in the ordered set where classPK = &#63;.
358            *
359            * @param rowId the primary key of the current expando row
360            * @param classPK the class p k
361            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
362            * @return the previous, current, and next expando row
363            * @throws com.liferay.portlet.expando.NoSuchRowException if a expando row with the primary key could not be found
364            */
365            public static com.liferay.portlet.expando.model.ExpandoRow[] findByClassPK_PrevAndNext(
366                    long rowId, long classPK,
367                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.expando.model.ExpandoRow> orderByComparator)
368                    throws com.liferay.portlet.expando.NoSuchRowException {
369                    return getPersistence()
370                                       .findByClassPK_PrevAndNext(rowId, classPK, orderByComparator);
371            }
372    
373            /**
374            * Removes all the expando rows where classPK = &#63; from the database.
375            *
376            * @param classPK the class p k
377            */
378            public static void removeByClassPK(long classPK) {
379                    getPersistence().removeByClassPK(classPK);
380            }
381    
382            /**
383            * Returns the number of expando rows where classPK = &#63;.
384            *
385            * @param classPK the class p k
386            * @return the number of matching expando rows
387            */
388            public static int countByClassPK(long classPK) {
389                    return getPersistence().countByClassPK(classPK);
390            }
391    
392            /**
393            * Returns the expando row where tableId = &#63; and classPK = &#63; or throws a {@link com.liferay.portlet.expando.NoSuchRowException} if it could not be found.
394            *
395            * @param tableId the table ID
396            * @param classPK the class p k
397            * @return the matching expando row
398            * @throws com.liferay.portlet.expando.NoSuchRowException if a matching expando row could not be found
399            */
400            public static com.liferay.portlet.expando.model.ExpandoRow findByT_C(
401                    long tableId, long classPK)
402                    throws com.liferay.portlet.expando.NoSuchRowException {
403                    return getPersistence().findByT_C(tableId, classPK);
404            }
405    
406            /**
407            * 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.
408            *
409            * @param tableId the table ID
410            * @param classPK the class p k
411            * @return the matching expando row, or <code>null</code> if a matching expando row could not be found
412            */
413            public static com.liferay.portlet.expando.model.ExpandoRow fetchByT_C(
414                    long tableId, long classPK) {
415                    return getPersistence().fetchByT_C(tableId, classPK);
416            }
417    
418            /**
419            * 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.
420            *
421            * @param tableId the table ID
422            * @param classPK the class p k
423            * @param retrieveFromCache whether to use the finder cache
424            * @return the matching expando row, or <code>null</code> if a matching expando row could not be found
425            */
426            public static com.liferay.portlet.expando.model.ExpandoRow fetchByT_C(
427                    long tableId, long classPK, boolean retrieveFromCache) {
428                    return getPersistence().fetchByT_C(tableId, classPK, retrieveFromCache);
429            }
430    
431            /**
432            * Removes the expando row where tableId = &#63; and classPK = &#63; from the database.
433            *
434            * @param tableId the table ID
435            * @param classPK the class p k
436            * @return the expando row that was removed
437            */
438            public static com.liferay.portlet.expando.model.ExpandoRow removeByT_C(
439                    long tableId, long classPK)
440                    throws com.liferay.portlet.expando.NoSuchRowException {
441                    return getPersistence().removeByT_C(tableId, classPK);
442            }
443    
444            /**
445            * Returns the number of expando rows where tableId = &#63; and classPK = &#63;.
446            *
447            * @param tableId the table ID
448            * @param classPK the class p k
449            * @return the number of matching expando rows
450            */
451            public static int countByT_C(long tableId, long classPK) {
452                    return getPersistence().countByT_C(tableId, classPK);
453            }
454    
455            /**
456            * Caches the expando row in the entity cache if it is enabled.
457            *
458            * @param expandoRow the expando row
459            */
460            public static void cacheResult(
461                    com.liferay.portlet.expando.model.ExpandoRow expandoRow) {
462                    getPersistence().cacheResult(expandoRow);
463            }
464    
465            /**
466            * Caches the expando rows in the entity cache if it is enabled.
467            *
468            * @param expandoRows the expando rows
469            */
470            public static void cacheResult(
471                    java.util.List<com.liferay.portlet.expando.model.ExpandoRow> expandoRows) {
472                    getPersistence().cacheResult(expandoRows);
473            }
474    
475            /**
476            * Creates a new expando row with the primary key. Does not add the expando row to the database.
477            *
478            * @param rowId the primary key for the new expando row
479            * @return the new expando row
480            */
481            public static com.liferay.portlet.expando.model.ExpandoRow create(
482                    long rowId) {
483                    return getPersistence().create(rowId);
484            }
485    
486            /**
487            * Removes the expando row with the primary key from the database. Also notifies the appropriate model listeners.
488            *
489            * @param rowId the primary key of the expando row
490            * @return the expando row that was removed
491            * @throws com.liferay.portlet.expando.NoSuchRowException if a expando row with the primary key could not be found
492            */
493            public static com.liferay.portlet.expando.model.ExpandoRow remove(
494                    long rowId) throws com.liferay.portlet.expando.NoSuchRowException {
495                    return getPersistence().remove(rowId);
496            }
497    
498            public static com.liferay.portlet.expando.model.ExpandoRow updateImpl(
499                    com.liferay.portlet.expando.model.ExpandoRow expandoRow) {
500                    return getPersistence().updateImpl(expandoRow);
501            }
502    
503            /**
504            * Returns the expando row with the primary key or throws a {@link com.liferay.portlet.expando.NoSuchRowException} if it could not be found.
505            *
506            * @param rowId the primary key of the expando row
507            * @return the expando row
508            * @throws com.liferay.portlet.expando.NoSuchRowException if a expando row with the primary key could not be found
509            */
510            public static com.liferay.portlet.expando.model.ExpandoRow findByPrimaryKey(
511                    long rowId) throws com.liferay.portlet.expando.NoSuchRowException {
512                    return getPersistence().findByPrimaryKey(rowId);
513            }
514    
515            /**
516            * Returns the expando row with the primary key or returns <code>null</code> if it could not be found.
517            *
518            * @param rowId the primary key of the expando row
519            * @return the expando row, or <code>null</code> if a expando row with the primary key could not be found
520            */
521            public static com.liferay.portlet.expando.model.ExpandoRow fetchByPrimaryKey(
522                    long rowId) {
523                    return getPersistence().fetchByPrimaryKey(rowId);
524            }
525    
526            public static java.util.Map<java.io.Serializable, com.liferay.portlet.expando.model.ExpandoRow> fetchByPrimaryKeys(
527                    java.util.Set<java.io.Serializable> primaryKeys) {
528                    return getPersistence().fetchByPrimaryKeys(primaryKeys);
529            }
530    
531            /**
532            * Returns all the expando rows.
533            *
534            * @return the expando rows
535            */
536            public static java.util.List<com.liferay.portlet.expando.model.ExpandoRow> findAll() {
537                    return getPersistence().findAll();
538            }
539    
540            /**
541            * Returns a range of all the expando rows.
542            *
543            * <p>
544            * 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.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.
545            * </p>
546            *
547            * @param start the lower bound of the range of expando rows
548            * @param end the upper bound of the range of expando rows (not inclusive)
549            * @return the range of expando rows
550            */
551            public static java.util.List<com.liferay.portlet.expando.model.ExpandoRow> findAll(
552                    int start, int end) {
553                    return getPersistence().findAll(start, end);
554            }
555    
556            /**
557            * Returns an ordered range of all the expando rows.
558            *
559            * <p>
560            * 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.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.
561            * </p>
562            *
563            * @param start the lower bound of the range of expando rows
564            * @param end the upper bound of the range of expando rows (not inclusive)
565            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
566            * @return the ordered range of expando rows
567            */
568            public static java.util.List<com.liferay.portlet.expando.model.ExpandoRow> findAll(
569                    int start, int end,
570                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.expando.model.ExpandoRow> orderByComparator) {
571                    return getPersistence().findAll(start, end, orderByComparator);
572            }
573    
574            /**
575            * Removes all the expando rows from the database.
576            */
577            public static void removeAll() {
578                    getPersistence().removeAll();
579            }
580    
581            /**
582            * Returns the number of expando rows.
583            *
584            * @return the number of expando rows
585            */
586            public static int countAll() {
587                    return getPersistence().countAll();
588            }
589    
590            public static ExpandoRowPersistence getPersistence() {
591                    if (_persistence == null) {
592                            _persistence = (ExpandoRowPersistence)PortalBeanLocatorUtil.locate(ExpandoRowPersistence.class.getName());
593    
594                            ReferenceRegistry.registerReference(ExpandoRowUtil.class,
595                                    "_persistence");
596                    }
597    
598                    return _persistence;
599            }
600    
601            /**
602             * @deprecated As of 6.2.0
603             */
604            @Deprecated
605            public void setPersistence(ExpandoRowPersistence persistence) {
606            }
607    
608            private static ExpandoRowPersistence _persistence;
609    }