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