001    /**
002     * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
013     */
014    
015    package com.liferay.portlet.expando.service.persistence;
016    
017    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018    import com.liferay.portal.kernel.dao.orm.DynamicQuery;
019    import com.liferay.portal.kernel.exception.SystemException;
020    import com.liferay.portal.kernel.util.OrderByComparator;
021    import com.liferay.portal.kernel.util.ReferenceRegistry;
022    import com.liferay.portal.service.ServiceContext;
023    
024    import com.liferay.portlet.expando.model.ExpandoValue;
025    
026    import java.util.List;
027    
028    /**
029     * The persistence utility for the expando value service. This utility wraps {@link ExpandoValuePersistenceImpl} 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.
030     *
031     * <p>
032     * Caching information and settings can be found in <code>portal.properties</code>
033     * </p>
034     *
035     * @author Brian Wing Shun Chan
036     * @see ExpandoValuePersistence
037     * @see ExpandoValuePersistenceImpl
038     * @generated
039     */
040    public class ExpandoValueUtil {
041            /*
042             * NOTE FOR DEVELOPERS:
043             *
044             * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class.
045             */
046    
047            /**
048             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
049             */
050            public static void clearCache() {
051                    getPersistence().clearCache();
052            }
053    
054            /**
055             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel)
056             */
057            public static void clearCache(ExpandoValue expandoValue) {
058                    getPersistence().clearCache(expandoValue);
059            }
060    
061            /**
062             * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
063             */
064            public long countWithDynamicQuery(DynamicQuery dynamicQuery)
065                    throws SystemException {
066                    return getPersistence().countWithDynamicQuery(dynamicQuery);
067            }
068    
069            /**
070             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
071             */
072            public static List<ExpandoValue> findWithDynamicQuery(
073                    DynamicQuery dynamicQuery) throws SystemException {
074                    return getPersistence().findWithDynamicQuery(dynamicQuery);
075            }
076    
077            /**
078             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
079             */
080            public static List<ExpandoValue> findWithDynamicQuery(
081                    DynamicQuery dynamicQuery, int start, int end)
082                    throws SystemException {
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<ExpandoValue> findWithDynamicQuery(
090                    DynamicQuery dynamicQuery, int start, int end,
091                    OrderByComparator orderByComparator) throws SystemException {
092                    return getPersistence()
093                                       .findWithDynamicQuery(dynamicQuery, start, end,
094                            orderByComparator);
095            }
096    
097            /**
098             * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel)
099             */
100            public static ExpandoValue remove(ExpandoValue expandoValue)
101                    throws SystemException {
102                    return getPersistence().remove(expandoValue);
103            }
104    
105            /**
106             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
107             */
108            public static ExpandoValue update(ExpandoValue expandoValue, boolean merge)
109                    throws SystemException {
110                    return getPersistence().update(expandoValue, merge);
111            }
112    
113            /**
114             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)
115             */
116            public static ExpandoValue update(ExpandoValue expandoValue, boolean merge,
117                    ServiceContext serviceContext) throws SystemException {
118                    return getPersistence().update(expandoValue, merge, serviceContext);
119            }
120    
121            /**
122            * Caches the expando value in the entity cache if it is enabled.
123            *
124            * @param expandoValue the expando value to cache
125            */
126            public static void cacheResult(
127                    com.liferay.portlet.expando.model.ExpandoValue expandoValue) {
128                    getPersistence().cacheResult(expandoValue);
129            }
130    
131            /**
132            * Caches the expando values in the entity cache if it is enabled.
133            *
134            * @param expandoValues the expando values to cache
135            */
136            public static void cacheResult(
137                    java.util.List<com.liferay.portlet.expando.model.ExpandoValue> expandoValues) {
138                    getPersistence().cacheResult(expandoValues);
139            }
140    
141            /**
142            * Creates a new expando value with the primary key. Does not add the expando value to the database.
143            *
144            * @param valueId the primary key for the new expando value
145            * @return the new expando value
146            */
147            public static com.liferay.portlet.expando.model.ExpandoValue create(
148                    long valueId) {
149                    return getPersistence().create(valueId);
150            }
151    
152            /**
153            * Removes the expando value with the primary key from the database. Also notifies the appropriate model listeners.
154            *
155            * @param valueId the primary key of the expando value to remove
156            * @return the expando value that was removed
157            * @throws com.liferay.portlet.expando.NoSuchValueException if a expando value with the primary key could not be found
158            * @throws SystemException if a system exception occurred
159            */
160            public static com.liferay.portlet.expando.model.ExpandoValue remove(
161                    long valueId)
162                    throws com.liferay.portal.kernel.exception.SystemException,
163                            com.liferay.portlet.expando.NoSuchValueException {
164                    return getPersistence().remove(valueId);
165            }
166    
167            public static com.liferay.portlet.expando.model.ExpandoValue updateImpl(
168                    com.liferay.portlet.expando.model.ExpandoValue expandoValue,
169                    boolean merge)
170                    throws com.liferay.portal.kernel.exception.SystemException {
171                    return getPersistence().updateImpl(expandoValue, merge);
172            }
173    
174            /**
175            * Finds the expando value with the primary key or throws a {@link com.liferay.portlet.expando.NoSuchValueException} if it could not be found.
176            *
177            * @param valueId the primary key of the expando value to find
178            * @return the expando value
179            * @throws com.liferay.portlet.expando.NoSuchValueException if a expando value with the primary key could not be found
180            * @throws SystemException if a system exception occurred
181            */
182            public static com.liferay.portlet.expando.model.ExpandoValue findByPrimaryKey(
183                    long valueId)
184                    throws com.liferay.portal.kernel.exception.SystemException,
185                            com.liferay.portlet.expando.NoSuchValueException {
186                    return getPersistence().findByPrimaryKey(valueId);
187            }
188    
189            /**
190            * Finds the expando value with the primary key or returns <code>null</code> if it could not be found.
191            *
192            * @param valueId the primary key of the expando value to find
193            * @return the expando value, or <code>null</code> if a expando value with the primary key could not be found
194            * @throws SystemException if a system exception occurred
195            */
196            public static com.liferay.portlet.expando.model.ExpandoValue fetchByPrimaryKey(
197                    long valueId)
198                    throws com.liferay.portal.kernel.exception.SystemException {
199                    return getPersistence().fetchByPrimaryKey(valueId);
200            }
201    
202            /**
203            * Finds all the expando values where tableId = &#63;.
204            *
205            * @param tableId the table ID to search with
206            * @return the matching expando values
207            * @throws SystemException if a system exception occurred
208            */
209            public static java.util.List<com.liferay.portlet.expando.model.ExpandoValue> findByTableId(
210                    long tableId)
211                    throws com.liferay.portal.kernel.exception.SystemException {
212                    return getPersistence().findByTableId(tableId);
213            }
214    
215            /**
216            * Finds a range of all the expando values where tableId = &#63;.
217            *
218            * <p>
219            * 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.
220            * </p>
221            *
222            * @param tableId the table ID to search with
223            * @param start the lower bound of the range of expando values to return
224            * @param end the upper bound of the range of expando values to return (not inclusive)
225            * @return the range of matching expando values
226            * @throws SystemException if a system exception occurred
227            */
228            public static java.util.List<com.liferay.portlet.expando.model.ExpandoValue> findByTableId(
229                    long tableId, int start, int end)
230                    throws com.liferay.portal.kernel.exception.SystemException {
231                    return getPersistence().findByTableId(tableId, start, end);
232            }
233    
234            /**
235            * Finds an ordered range of all the expando values where tableId = &#63;.
236            *
237            * <p>
238            * 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.
239            * </p>
240            *
241            * @param tableId the table ID to search with
242            * @param start the lower bound of the range of expando values to return
243            * @param end the upper bound of the range of expando values to return (not inclusive)
244            * @param orderByComparator the comparator to order the results by
245            * @return the ordered range of matching expando values
246            * @throws SystemException if a system exception occurred
247            */
248            public static java.util.List<com.liferay.portlet.expando.model.ExpandoValue> findByTableId(
249                    long tableId, int start, int end,
250                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
251                    throws com.liferay.portal.kernel.exception.SystemException {
252                    return getPersistence()
253                                       .findByTableId(tableId, start, end, orderByComparator);
254            }
255    
256            /**
257            * Finds the first expando value in the ordered set where tableId = &#63;.
258            *
259            * <p>
260            * 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.
261            * </p>
262            *
263            * @param tableId the table ID to search with
264            * @param orderByComparator the comparator to order the set by
265            * @return the first matching expando value
266            * @throws com.liferay.portlet.expando.NoSuchValueException if a matching expando value could not be found
267            * @throws SystemException if a system exception occurred
268            */
269            public static com.liferay.portlet.expando.model.ExpandoValue findByTableId_First(
270                    long tableId,
271                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
272                    throws com.liferay.portal.kernel.exception.SystemException,
273                            com.liferay.portlet.expando.NoSuchValueException {
274                    return getPersistence().findByTableId_First(tableId, orderByComparator);
275            }
276    
277            /**
278            * Finds the last expando value in the ordered set where tableId = &#63;.
279            *
280            * <p>
281            * 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.
282            * </p>
283            *
284            * @param tableId the table ID to search with
285            * @param orderByComparator the comparator to order the set by
286            * @return the last matching expando value
287            * @throws com.liferay.portlet.expando.NoSuchValueException if a matching expando value could not be found
288            * @throws SystemException if a system exception occurred
289            */
290            public static com.liferay.portlet.expando.model.ExpandoValue findByTableId_Last(
291                    long tableId,
292                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
293                    throws com.liferay.portal.kernel.exception.SystemException,
294                            com.liferay.portlet.expando.NoSuchValueException {
295                    return getPersistence().findByTableId_Last(tableId, orderByComparator);
296            }
297    
298            /**
299            * Finds the expando values before and after the current expando value in the ordered set where tableId = &#63;.
300            *
301            * <p>
302            * 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.
303            * </p>
304            *
305            * @param valueId the primary key of the current expando value
306            * @param tableId the table ID to search with
307            * @param orderByComparator the comparator to order the set by
308            * @return the previous, current, and next expando value
309            * @throws com.liferay.portlet.expando.NoSuchValueException if a expando value with the primary key could not be found
310            * @throws SystemException if a system exception occurred
311            */
312            public static com.liferay.portlet.expando.model.ExpandoValue[] findByTableId_PrevAndNext(
313                    long valueId, long tableId,
314                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
315                    throws com.liferay.portal.kernel.exception.SystemException,
316                            com.liferay.portlet.expando.NoSuchValueException {
317                    return getPersistence()
318                                       .findByTableId_PrevAndNext(valueId, tableId,
319                            orderByComparator);
320            }
321    
322            /**
323            * Finds all the expando values where columnId = &#63;.
324            *
325            * @param columnId the column ID to search with
326            * @return the matching expando values
327            * @throws SystemException if a system exception occurred
328            */
329            public static java.util.List<com.liferay.portlet.expando.model.ExpandoValue> findByColumnId(
330                    long columnId)
331                    throws com.liferay.portal.kernel.exception.SystemException {
332                    return getPersistence().findByColumnId(columnId);
333            }
334    
335            /**
336            * Finds a range of all the expando values where columnId = &#63;.
337            *
338            * <p>
339            * 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.
340            * </p>
341            *
342            * @param columnId the column ID to search with
343            * @param start the lower bound of the range of expando values to return
344            * @param end the upper bound of the range of expando values to return (not inclusive)
345            * @return the range of matching expando values
346            * @throws SystemException if a system exception occurred
347            */
348            public static java.util.List<com.liferay.portlet.expando.model.ExpandoValue> findByColumnId(
349                    long columnId, int start, int end)
350                    throws com.liferay.portal.kernel.exception.SystemException {
351                    return getPersistence().findByColumnId(columnId, start, end);
352            }
353    
354            /**
355            * Finds an ordered range of all the expando values where columnId = &#63;.
356            *
357            * <p>
358            * 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.
359            * </p>
360            *
361            * @param columnId the column ID to search with
362            * @param start the lower bound of the range of expando values to return
363            * @param end the upper bound of the range of expando values to return (not inclusive)
364            * @param orderByComparator the comparator to order the results by
365            * @return the ordered range of matching expando values
366            * @throws SystemException if a system exception occurred
367            */
368            public static java.util.List<com.liferay.portlet.expando.model.ExpandoValue> findByColumnId(
369                    long columnId, int start, int end,
370                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
371                    throws com.liferay.portal.kernel.exception.SystemException {
372                    return getPersistence()
373                                       .findByColumnId(columnId, start, end, orderByComparator);
374            }
375    
376            /**
377            * Finds the first expando value in the ordered set where columnId = &#63;.
378            *
379            * <p>
380            * 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.
381            * </p>
382            *
383            * @param columnId the column ID to search with
384            * @param orderByComparator the comparator to order the set by
385            * @return the first matching expando value
386            * @throws com.liferay.portlet.expando.NoSuchValueException if a matching expando value could not be found
387            * @throws SystemException if a system exception occurred
388            */
389            public static com.liferay.portlet.expando.model.ExpandoValue findByColumnId_First(
390                    long columnId,
391                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
392                    throws com.liferay.portal.kernel.exception.SystemException,
393                            com.liferay.portlet.expando.NoSuchValueException {
394                    return getPersistence().findByColumnId_First(columnId, orderByComparator);
395            }
396    
397            /**
398            * Finds the last expando value in the ordered set where columnId = &#63;.
399            *
400            * <p>
401            * 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.
402            * </p>
403            *
404            * @param columnId the column ID to search with
405            * @param orderByComparator the comparator to order the set by
406            * @return the last matching expando value
407            * @throws com.liferay.portlet.expando.NoSuchValueException if a matching expando value could not be found
408            * @throws SystemException if a system exception occurred
409            */
410            public static com.liferay.portlet.expando.model.ExpandoValue findByColumnId_Last(
411                    long columnId,
412                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
413                    throws com.liferay.portal.kernel.exception.SystemException,
414                            com.liferay.portlet.expando.NoSuchValueException {
415                    return getPersistence().findByColumnId_Last(columnId, orderByComparator);
416            }
417    
418            /**
419            * Finds the expando values before and after the current expando value in the ordered set where columnId = &#63;.
420            *
421            * <p>
422            * 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.
423            * </p>
424            *
425            * @param valueId the primary key of the current expando value
426            * @param columnId the column ID to search with
427            * @param orderByComparator the comparator to order the set by
428            * @return the previous, current, and next expando value
429            * @throws com.liferay.portlet.expando.NoSuchValueException if a expando value with the primary key could not be found
430            * @throws SystemException if a system exception occurred
431            */
432            public static com.liferay.portlet.expando.model.ExpandoValue[] findByColumnId_PrevAndNext(
433                    long valueId, long columnId,
434                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
435                    throws com.liferay.portal.kernel.exception.SystemException,
436                            com.liferay.portlet.expando.NoSuchValueException {
437                    return getPersistence()
438                                       .findByColumnId_PrevAndNext(valueId, columnId,
439                            orderByComparator);
440            }
441    
442            /**
443            * Finds all the expando values where rowId = &#63;.
444            *
445            * @param rowId the row ID to search with
446            * @return the matching expando values
447            * @throws SystemException if a system exception occurred
448            */
449            public static java.util.List<com.liferay.portlet.expando.model.ExpandoValue> findByRowId(
450                    long rowId) throws com.liferay.portal.kernel.exception.SystemException {
451                    return getPersistence().findByRowId(rowId);
452            }
453    
454            /**
455            * Finds a range of all the expando values where rowId = &#63;.
456            *
457            * <p>
458            * 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.
459            * </p>
460            *
461            * @param rowId the row ID to search with
462            * @param start the lower bound of the range of expando values to return
463            * @param end the upper bound of the range of expando values to return (not inclusive)
464            * @return the range of matching expando values
465            * @throws SystemException if a system exception occurred
466            */
467            public static java.util.List<com.liferay.portlet.expando.model.ExpandoValue> findByRowId(
468                    long rowId, int start, int end)
469                    throws com.liferay.portal.kernel.exception.SystemException {
470                    return getPersistence().findByRowId(rowId, start, end);
471            }
472    
473            /**
474            * Finds an ordered range of all the expando values where rowId = &#63;.
475            *
476            * <p>
477            * 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.
478            * </p>
479            *
480            * @param rowId the row ID to search with
481            * @param start the lower bound of the range of expando values to return
482            * @param end the upper bound of the range of expando values to return (not inclusive)
483            * @param orderByComparator the comparator to order the results by
484            * @return the ordered range of matching expando values
485            * @throws SystemException if a system exception occurred
486            */
487            public static java.util.List<com.liferay.portlet.expando.model.ExpandoValue> findByRowId(
488                    long rowId, int start, int end,
489                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
490                    throws com.liferay.portal.kernel.exception.SystemException {
491                    return getPersistence().findByRowId(rowId, start, end, orderByComparator);
492            }
493    
494            /**
495            * Finds the first expando value in the ordered set where rowId = &#63;.
496            *
497            * <p>
498            * 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.
499            * </p>
500            *
501            * @param rowId the row ID to search with
502            * @param orderByComparator the comparator to order the set by
503            * @return the first matching expando value
504            * @throws com.liferay.portlet.expando.NoSuchValueException if a matching expando value could not be found
505            * @throws SystemException if a system exception occurred
506            */
507            public static com.liferay.portlet.expando.model.ExpandoValue findByRowId_First(
508                    long rowId,
509                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
510                    throws com.liferay.portal.kernel.exception.SystemException,
511                            com.liferay.portlet.expando.NoSuchValueException {
512                    return getPersistence().findByRowId_First(rowId, orderByComparator);
513            }
514    
515            /**
516            * Finds the last expando value in the ordered set where rowId = &#63;.
517            *
518            * <p>
519            * 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.
520            * </p>
521            *
522            * @param rowId the row ID to search with
523            * @param orderByComparator the comparator to order the set by
524            * @return the last matching expando value
525            * @throws com.liferay.portlet.expando.NoSuchValueException if a matching expando value could not be found
526            * @throws SystemException if a system exception occurred
527            */
528            public static com.liferay.portlet.expando.model.ExpandoValue findByRowId_Last(
529                    long rowId,
530                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
531                    throws com.liferay.portal.kernel.exception.SystemException,
532                            com.liferay.portlet.expando.NoSuchValueException {
533                    return getPersistence().findByRowId_Last(rowId, orderByComparator);
534            }
535    
536            /**
537            * Finds the expando values before and after the current expando value in the ordered set where rowId = &#63;.
538            *
539            * <p>
540            * 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.
541            * </p>
542            *
543            * @param valueId the primary key of the current expando value
544            * @param rowId the row ID to search with
545            * @param orderByComparator the comparator to order the set by
546            * @return the previous, current, and next expando value
547            * @throws com.liferay.portlet.expando.NoSuchValueException if a expando value with the primary key could not be found
548            * @throws SystemException if a system exception occurred
549            */
550            public static com.liferay.portlet.expando.model.ExpandoValue[] findByRowId_PrevAndNext(
551                    long valueId, long rowId,
552                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
553                    throws com.liferay.portal.kernel.exception.SystemException,
554                            com.liferay.portlet.expando.NoSuchValueException {
555                    return getPersistence()
556                                       .findByRowId_PrevAndNext(valueId, rowId, orderByComparator);
557            }
558    
559            /**
560            * Finds all the expando values where tableId = &#63; and columnId = &#63;.
561            *
562            * @param tableId the table ID to search with
563            * @param columnId the column ID to search with
564            * @return the matching expando values
565            * @throws SystemException if a system exception occurred
566            */
567            public static java.util.List<com.liferay.portlet.expando.model.ExpandoValue> findByT_C(
568                    long tableId, long columnId)
569                    throws com.liferay.portal.kernel.exception.SystemException {
570                    return getPersistence().findByT_C(tableId, columnId);
571            }
572    
573            /**
574            * Finds a range of all the expando values where tableId = &#63; and columnId = &#63;.
575            *
576            * <p>
577            * 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.
578            * </p>
579            *
580            * @param tableId the table ID to search with
581            * @param columnId the column ID to search with
582            * @param start the lower bound of the range of expando values to return
583            * @param end the upper bound of the range of expando values to return (not inclusive)
584            * @return the range of matching expando values
585            * @throws SystemException if a system exception occurred
586            */
587            public static java.util.List<com.liferay.portlet.expando.model.ExpandoValue> findByT_C(
588                    long tableId, long columnId, int start, int end)
589                    throws com.liferay.portal.kernel.exception.SystemException {
590                    return getPersistence().findByT_C(tableId, columnId, start, end);
591            }
592    
593            /**
594            * Finds an ordered range of all the expando values where tableId = &#63; and columnId = &#63;.
595            *
596            * <p>
597            * 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.
598            * </p>
599            *
600            * @param tableId the table ID to search with
601            * @param columnId the column ID to search with
602            * @param start the lower bound of the range of expando values to return
603            * @param end the upper bound of the range of expando values to return (not inclusive)
604            * @param orderByComparator the comparator to order the results by
605            * @return the ordered range of matching expando values
606            * @throws SystemException if a system exception occurred
607            */
608            public static java.util.List<com.liferay.portlet.expando.model.ExpandoValue> findByT_C(
609                    long tableId, long columnId, int start, int end,
610                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
611                    throws com.liferay.portal.kernel.exception.SystemException {
612                    return getPersistence()
613                                       .findByT_C(tableId, columnId, start, end, orderByComparator);
614            }
615    
616            /**
617            * Finds the first expando value in the ordered set where tableId = &#63; and columnId = &#63;.
618            *
619            * <p>
620            * 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.
621            * </p>
622            *
623            * @param tableId the table ID to search with
624            * @param columnId the column ID to search with
625            * @param orderByComparator the comparator to order the set by
626            * @return the first matching expando value
627            * @throws com.liferay.portlet.expando.NoSuchValueException if a matching expando value could not be found
628            * @throws SystemException if a system exception occurred
629            */
630            public static com.liferay.portlet.expando.model.ExpandoValue findByT_C_First(
631                    long tableId, long columnId,
632                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
633                    throws com.liferay.portal.kernel.exception.SystemException,
634                            com.liferay.portlet.expando.NoSuchValueException {
635                    return getPersistence()
636                                       .findByT_C_First(tableId, columnId, orderByComparator);
637            }
638    
639            /**
640            * Finds the last expando value in the ordered set where tableId = &#63; and columnId = &#63;.
641            *
642            * <p>
643            * 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.
644            * </p>
645            *
646            * @param tableId the table ID to search with
647            * @param columnId the column ID to search with
648            * @param orderByComparator the comparator to order the set by
649            * @return the last matching expando value
650            * @throws com.liferay.portlet.expando.NoSuchValueException if a matching expando value could not be found
651            * @throws SystemException if a system exception occurred
652            */
653            public static com.liferay.portlet.expando.model.ExpandoValue findByT_C_Last(
654                    long tableId, long columnId,
655                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
656                    throws com.liferay.portal.kernel.exception.SystemException,
657                            com.liferay.portlet.expando.NoSuchValueException {
658                    return getPersistence()
659                                       .findByT_C_Last(tableId, columnId, orderByComparator);
660            }
661    
662            /**
663            * Finds the expando values before and after the current expando value in the ordered set where tableId = &#63; and columnId = &#63;.
664            *
665            * <p>
666            * 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.
667            * </p>
668            *
669            * @param valueId the primary key of the current expando value
670            * @param tableId the table ID to search with
671            * @param columnId the column ID to search with
672            * @param orderByComparator the comparator to order the set by
673            * @return the previous, current, and next expando value
674            * @throws com.liferay.portlet.expando.NoSuchValueException if a expando value with the primary key could not be found
675            * @throws SystemException if a system exception occurred
676            */
677            public static com.liferay.portlet.expando.model.ExpandoValue[] findByT_C_PrevAndNext(
678                    long valueId, long tableId, long columnId,
679                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
680                    throws com.liferay.portal.kernel.exception.SystemException,
681                            com.liferay.portlet.expando.NoSuchValueException {
682                    return getPersistence()
683                                       .findByT_C_PrevAndNext(valueId, tableId, columnId,
684                            orderByComparator);
685            }
686    
687            /**
688            * Finds all the expando values where tableId = &#63; and classPK = &#63;.
689            *
690            * @param tableId the table ID to search with
691            * @param classPK the class p k to search with
692            * @return the matching expando values
693            * @throws SystemException if a system exception occurred
694            */
695            public static java.util.List<com.liferay.portlet.expando.model.ExpandoValue> findByT_CPK(
696                    long tableId, long classPK)
697                    throws com.liferay.portal.kernel.exception.SystemException {
698                    return getPersistence().findByT_CPK(tableId, classPK);
699            }
700    
701            /**
702            * Finds a range of all the expando values where tableId = &#63; and classPK = &#63;.
703            *
704            * <p>
705            * 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.
706            * </p>
707            *
708            * @param tableId the table ID to search with
709            * @param classPK the class p k to search with
710            * @param start the lower bound of the range of expando values to return
711            * @param end the upper bound of the range of expando values to return (not inclusive)
712            * @return the range of matching expando values
713            * @throws SystemException if a system exception occurred
714            */
715            public static java.util.List<com.liferay.portlet.expando.model.ExpandoValue> findByT_CPK(
716                    long tableId, long classPK, int start, int end)
717                    throws com.liferay.portal.kernel.exception.SystemException {
718                    return getPersistence().findByT_CPK(tableId, classPK, start, end);
719            }
720    
721            /**
722            * Finds an ordered range of all the expando values where tableId = &#63; and classPK = &#63;.
723            *
724            * <p>
725            * 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.
726            * </p>
727            *
728            * @param tableId the table ID to search with
729            * @param classPK the class p k to search with
730            * @param start the lower bound of the range of expando values to return
731            * @param end the upper bound of the range of expando values to return (not inclusive)
732            * @param orderByComparator the comparator to order the results by
733            * @return the ordered range of matching expando values
734            * @throws SystemException if a system exception occurred
735            */
736            public static java.util.List<com.liferay.portlet.expando.model.ExpandoValue> findByT_CPK(
737                    long tableId, long classPK, int start, int end,
738                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
739                    throws com.liferay.portal.kernel.exception.SystemException {
740                    return getPersistence()
741                                       .findByT_CPK(tableId, classPK, start, end, orderByComparator);
742            }
743    
744            /**
745            * Finds the first expando value in the ordered set where tableId = &#63; and classPK = &#63;.
746            *
747            * <p>
748            * 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.
749            * </p>
750            *
751            * @param tableId the table ID to search with
752            * @param classPK the class p k to search with
753            * @param orderByComparator the comparator to order the set by
754            * @return the first matching expando value
755            * @throws com.liferay.portlet.expando.NoSuchValueException if a matching expando value could not be found
756            * @throws SystemException if a system exception occurred
757            */
758            public static com.liferay.portlet.expando.model.ExpandoValue findByT_CPK_First(
759                    long tableId, long classPK,
760                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
761                    throws com.liferay.portal.kernel.exception.SystemException,
762                            com.liferay.portlet.expando.NoSuchValueException {
763                    return getPersistence()
764                                       .findByT_CPK_First(tableId, classPK, orderByComparator);
765            }
766    
767            /**
768            * Finds the last expando value in the ordered set where tableId = &#63; and classPK = &#63;.
769            *
770            * <p>
771            * 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.
772            * </p>
773            *
774            * @param tableId the table ID to search with
775            * @param classPK the class p k to search with
776            * @param orderByComparator the comparator to order the set by
777            * @return the last matching expando value
778            * @throws com.liferay.portlet.expando.NoSuchValueException if a matching expando value could not be found
779            * @throws SystemException if a system exception occurred
780            */
781            public static com.liferay.portlet.expando.model.ExpandoValue findByT_CPK_Last(
782                    long tableId, long classPK,
783                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
784                    throws com.liferay.portal.kernel.exception.SystemException,
785                            com.liferay.portlet.expando.NoSuchValueException {
786                    return getPersistence()
787                                       .findByT_CPK_Last(tableId, classPK, orderByComparator);
788            }
789    
790            /**
791            * Finds the expando values before and after the current expando value in the ordered set where tableId = &#63; and classPK = &#63;.
792            *
793            * <p>
794            * 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.
795            * </p>
796            *
797            * @param valueId the primary key of the current expando value
798            * @param tableId the table ID to search with
799            * @param classPK the class p k to search with
800            * @param orderByComparator the comparator to order the set by
801            * @return the previous, current, and next expando value
802            * @throws com.liferay.portlet.expando.NoSuchValueException if a expando value with the primary key could not be found
803            * @throws SystemException if a system exception occurred
804            */
805            public static com.liferay.portlet.expando.model.ExpandoValue[] findByT_CPK_PrevAndNext(
806                    long valueId, long tableId, long classPK,
807                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
808                    throws com.liferay.portal.kernel.exception.SystemException,
809                            com.liferay.portlet.expando.NoSuchValueException {
810                    return getPersistence()
811                                       .findByT_CPK_PrevAndNext(valueId, tableId, classPK,
812                            orderByComparator);
813            }
814    
815            /**
816            * Finds all the expando values where tableId = &#63; and rowId = &#63;.
817            *
818            * @param tableId the table ID to search with
819            * @param rowId the row ID to search with
820            * @return the matching expando values
821            * @throws SystemException if a system exception occurred
822            */
823            public static java.util.List<com.liferay.portlet.expando.model.ExpandoValue> findByT_R(
824                    long tableId, long rowId)
825                    throws com.liferay.portal.kernel.exception.SystemException {
826                    return getPersistence().findByT_R(tableId, rowId);
827            }
828    
829            /**
830            * Finds a range of all the expando values where tableId = &#63; and rowId = &#63;.
831            *
832            * <p>
833            * 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.
834            * </p>
835            *
836            * @param tableId the table ID to search with
837            * @param rowId the row ID to search with
838            * @param start the lower bound of the range of expando values to return
839            * @param end the upper bound of the range of expando values to return (not inclusive)
840            * @return the range of matching expando values
841            * @throws SystemException if a system exception occurred
842            */
843            public static java.util.List<com.liferay.portlet.expando.model.ExpandoValue> findByT_R(
844                    long tableId, long rowId, int start, int end)
845                    throws com.liferay.portal.kernel.exception.SystemException {
846                    return getPersistence().findByT_R(tableId, rowId, start, end);
847            }
848    
849            /**
850            * Finds an ordered range of all the expando values where tableId = &#63; and rowId = &#63;.
851            *
852            * <p>
853            * 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.
854            * </p>
855            *
856            * @param tableId the table ID to search with
857            * @param rowId the row ID to search with
858            * @param start the lower bound of the range of expando values to return
859            * @param end the upper bound of the range of expando values to return (not inclusive)
860            * @param orderByComparator the comparator to order the results by
861            * @return the ordered range of matching expando values
862            * @throws SystemException if a system exception occurred
863            */
864            public static java.util.List<com.liferay.portlet.expando.model.ExpandoValue> findByT_R(
865                    long tableId, long rowId, int start, int end,
866                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
867                    throws com.liferay.portal.kernel.exception.SystemException {
868                    return getPersistence()
869                                       .findByT_R(tableId, rowId, start, end, orderByComparator);
870            }
871    
872            /**
873            * Finds the first expando value in the ordered set where tableId = &#63; and rowId = &#63;.
874            *
875            * <p>
876            * 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.
877            * </p>
878            *
879            * @param tableId the table ID to search with
880            * @param rowId the row ID to search with
881            * @param orderByComparator the comparator to order the set by
882            * @return the first matching expando value
883            * @throws com.liferay.portlet.expando.NoSuchValueException if a matching expando value could not be found
884            * @throws SystemException if a system exception occurred
885            */
886            public static com.liferay.portlet.expando.model.ExpandoValue findByT_R_First(
887                    long tableId, long rowId,
888                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
889                    throws com.liferay.portal.kernel.exception.SystemException,
890                            com.liferay.portlet.expando.NoSuchValueException {
891                    return getPersistence()
892                                       .findByT_R_First(tableId, rowId, orderByComparator);
893            }
894    
895            /**
896            * Finds the last expando value in the ordered set where tableId = &#63; and rowId = &#63;.
897            *
898            * <p>
899            * 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.
900            * </p>
901            *
902            * @param tableId the table ID to search with
903            * @param rowId the row ID to search with
904            * @param orderByComparator the comparator to order the set by
905            * @return the last matching expando value
906            * @throws com.liferay.portlet.expando.NoSuchValueException if a matching expando value could not be found
907            * @throws SystemException if a system exception occurred
908            */
909            public static com.liferay.portlet.expando.model.ExpandoValue findByT_R_Last(
910                    long tableId, long rowId,
911                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
912                    throws com.liferay.portal.kernel.exception.SystemException,
913                            com.liferay.portlet.expando.NoSuchValueException {
914                    return getPersistence().findByT_R_Last(tableId, rowId, orderByComparator);
915            }
916    
917            /**
918            * Finds the expando values before and after the current expando value in the ordered set where tableId = &#63; and rowId = &#63;.
919            *
920            * <p>
921            * 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.
922            * </p>
923            *
924            * @param valueId the primary key of the current expando value
925            * @param tableId the table ID to search with
926            * @param rowId the row ID to search with
927            * @param orderByComparator the comparator to order the set by
928            * @return the previous, current, and next expando value
929            * @throws com.liferay.portlet.expando.NoSuchValueException if a expando value with the primary key could not be found
930            * @throws SystemException if a system exception occurred
931            */
932            public static com.liferay.portlet.expando.model.ExpandoValue[] findByT_R_PrevAndNext(
933                    long valueId, long tableId, long rowId,
934                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
935                    throws com.liferay.portal.kernel.exception.SystemException,
936                            com.liferay.portlet.expando.NoSuchValueException {
937                    return getPersistence()
938                                       .findByT_R_PrevAndNext(valueId, tableId, rowId,
939                            orderByComparator);
940            }
941    
942            /**
943            * Finds the expando value where columnId = &#63; and rowId = &#63; or throws a {@link com.liferay.portlet.expando.NoSuchValueException} if it could not be found.
944            *
945            * @param columnId the column ID to search with
946            * @param rowId the row ID to search with
947            * @return the matching expando value
948            * @throws com.liferay.portlet.expando.NoSuchValueException if a matching expando value could not be found
949            * @throws SystemException if a system exception occurred
950            */
951            public static com.liferay.portlet.expando.model.ExpandoValue findByC_R(
952                    long columnId, long rowId)
953                    throws com.liferay.portal.kernel.exception.SystemException,
954                            com.liferay.portlet.expando.NoSuchValueException {
955                    return getPersistence().findByC_R(columnId, rowId);
956            }
957    
958            /**
959            * Finds the expando value where columnId = &#63; and rowId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
960            *
961            * @param columnId the column ID to search with
962            * @param rowId the row ID to search with
963            * @return the matching expando value, or <code>null</code> if a matching expando value could not be found
964            * @throws SystemException if a system exception occurred
965            */
966            public static com.liferay.portlet.expando.model.ExpandoValue fetchByC_R(
967                    long columnId, long rowId)
968                    throws com.liferay.portal.kernel.exception.SystemException {
969                    return getPersistence().fetchByC_R(columnId, rowId);
970            }
971    
972            /**
973            * Finds the expando value where columnId = &#63; and rowId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
974            *
975            * @param columnId the column ID to search with
976            * @param rowId the row ID to search with
977            * @return the matching expando value, or <code>null</code> if a matching expando value could not be found
978            * @throws SystemException if a system exception occurred
979            */
980            public static com.liferay.portlet.expando.model.ExpandoValue fetchByC_R(
981                    long columnId, long rowId, boolean retrieveFromCache)
982                    throws com.liferay.portal.kernel.exception.SystemException {
983                    return getPersistence().fetchByC_R(columnId, rowId, retrieveFromCache);
984            }
985    
986            /**
987            * Finds all the expando values where classNameId = &#63; and classPK = &#63;.
988            *
989            * @param classNameId the class name ID to search with
990            * @param classPK the class p k to search with
991            * @return the matching expando values
992            * @throws SystemException if a system exception occurred
993            */
994            public static java.util.List<com.liferay.portlet.expando.model.ExpandoValue> findByC_C(
995                    long classNameId, long classPK)
996                    throws com.liferay.portal.kernel.exception.SystemException {
997                    return getPersistence().findByC_C(classNameId, classPK);
998            }
999    
1000            /**
1001            * Finds a range of all the expando values where classNameId = &#63; and classPK = &#63;.
1002            *
1003            * <p>
1004            * 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.
1005            * </p>
1006            *
1007            * @param classNameId the class name ID to search with
1008            * @param classPK the class p k to search with
1009            * @param start the lower bound of the range of expando values to return
1010            * @param end the upper bound of the range of expando values to return (not inclusive)
1011            * @return the range of matching expando values
1012            * @throws SystemException if a system exception occurred
1013            */
1014            public static java.util.List<com.liferay.portlet.expando.model.ExpandoValue> findByC_C(
1015                    long classNameId, long classPK, int start, int end)
1016                    throws com.liferay.portal.kernel.exception.SystemException {
1017                    return getPersistence().findByC_C(classNameId, classPK, start, end);
1018            }
1019    
1020            /**
1021            * Finds an ordered range of all the expando values where classNameId = &#63; and classPK = &#63;.
1022            *
1023            * <p>
1024            * 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.
1025            * </p>
1026            *
1027            * @param classNameId the class name ID to search with
1028            * @param classPK the class p k to search with
1029            * @param start the lower bound of the range of expando values to return
1030            * @param end the upper bound of the range of expando values to return (not inclusive)
1031            * @param orderByComparator the comparator to order the results by
1032            * @return the ordered range of matching expando values
1033            * @throws SystemException if a system exception occurred
1034            */
1035            public static java.util.List<com.liferay.portlet.expando.model.ExpandoValue> findByC_C(
1036                    long classNameId, long classPK, int start, int end,
1037                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1038                    throws com.liferay.portal.kernel.exception.SystemException {
1039                    return getPersistence()
1040                                       .findByC_C(classNameId, classPK, start, end,
1041                            orderByComparator);
1042            }
1043    
1044            /**
1045            * Finds the first expando value in the ordered set where classNameId = &#63; and classPK = &#63;.
1046            *
1047            * <p>
1048            * 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.
1049            * </p>
1050            *
1051            * @param classNameId the class name ID to search with
1052            * @param classPK the class p k to search with
1053            * @param orderByComparator the comparator to order the set by
1054            * @return the first matching expando value
1055            * @throws com.liferay.portlet.expando.NoSuchValueException if a matching expando value could not be found
1056            * @throws SystemException if a system exception occurred
1057            */
1058            public static com.liferay.portlet.expando.model.ExpandoValue findByC_C_First(
1059                    long classNameId, long classPK,
1060                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1061                    throws com.liferay.portal.kernel.exception.SystemException,
1062                            com.liferay.portlet.expando.NoSuchValueException {
1063                    return getPersistence()
1064                                       .findByC_C_First(classNameId, classPK, orderByComparator);
1065            }
1066    
1067            /**
1068            * Finds the last expando value in the ordered set where classNameId = &#63; and classPK = &#63;.
1069            *
1070            * <p>
1071            * 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.
1072            * </p>
1073            *
1074            * @param classNameId the class name ID to search with
1075            * @param classPK the class p k to search with
1076            * @param orderByComparator the comparator to order the set by
1077            * @return the last matching expando value
1078            * @throws com.liferay.portlet.expando.NoSuchValueException if a matching expando value could not be found
1079            * @throws SystemException if a system exception occurred
1080            */
1081            public static com.liferay.portlet.expando.model.ExpandoValue findByC_C_Last(
1082                    long classNameId, long classPK,
1083                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1084                    throws com.liferay.portal.kernel.exception.SystemException,
1085                            com.liferay.portlet.expando.NoSuchValueException {
1086                    return getPersistence()
1087                                       .findByC_C_Last(classNameId, classPK, orderByComparator);
1088            }
1089    
1090            /**
1091            * Finds the expando values before and after the current expando value in the ordered set where classNameId = &#63; and classPK = &#63;.
1092            *
1093            * <p>
1094            * 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.
1095            * </p>
1096            *
1097            * @param valueId the primary key of the current expando value
1098            * @param classNameId the class name ID to search with
1099            * @param classPK the class p k to search with
1100            * @param orderByComparator the comparator to order the set by
1101            * @return the previous, current, and next expando value
1102            * @throws com.liferay.portlet.expando.NoSuchValueException if a expando value with the primary key could not be found
1103            * @throws SystemException if a system exception occurred
1104            */
1105            public static com.liferay.portlet.expando.model.ExpandoValue[] findByC_C_PrevAndNext(
1106                    long valueId, long classNameId, long classPK,
1107                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1108                    throws com.liferay.portal.kernel.exception.SystemException,
1109                            com.liferay.portlet.expando.NoSuchValueException {
1110                    return getPersistence()
1111                                       .findByC_C_PrevAndNext(valueId, classNameId, classPK,
1112                            orderByComparator);
1113            }
1114    
1115            /**
1116            * Finds the expando value where tableId = &#63; and columnId = &#63; and classPK = &#63; or throws a {@link com.liferay.portlet.expando.NoSuchValueException} if it could not be found.
1117            *
1118            * @param tableId the table ID to search with
1119            * @param columnId the column ID to search with
1120            * @param classPK the class p k to search with
1121            * @return the matching expando value
1122            * @throws com.liferay.portlet.expando.NoSuchValueException if a matching expando value could not be found
1123            * @throws SystemException if a system exception occurred
1124            */
1125            public static com.liferay.portlet.expando.model.ExpandoValue findByT_C_C(
1126                    long tableId, long columnId, long classPK)
1127                    throws com.liferay.portal.kernel.exception.SystemException,
1128                            com.liferay.portlet.expando.NoSuchValueException {
1129                    return getPersistence().findByT_C_C(tableId, columnId, classPK);
1130            }
1131    
1132            /**
1133            * Finds the expando value where tableId = &#63; and columnId = &#63; and classPK = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
1134            *
1135            * @param tableId the table ID to search with
1136            * @param columnId the column ID to search with
1137            * @param classPK the class p k to search with
1138            * @return the matching expando value, or <code>null</code> if a matching expando value could not be found
1139            * @throws SystemException if a system exception occurred
1140            */
1141            public static com.liferay.portlet.expando.model.ExpandoValue fetchByT_C_C(
1142                    long tableId, long columnId, long classPK)
1143                    throws com.liferay.portal.kernel.exception.SystemException {
1144                    return getPersistence().fetchByT_C_C(tableId, columnId, classPK);
1145            }
1146    
1147            /**
1148            * Finds the expando value where tableId = &#63; and columnId = &#63; and classPK = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
1149            *
1150            * @param tableId the table ID to search with
1151            * @param columnId the column ID to search with
1152            * @param classPK the class p k to search with
1153            * @return the matching expando value, or <code>null</code> if a matching expando value could not be found
1154            * @throws SystemException if a system exception occurred
1155            */
1156            public static com.liferay.portlet.expando.model.ExpandoValue fetchByT_C_C(
1157                    long tableId, long columnId, long classPK, boolean retrieveFromCache)
1158                    throws com.liferay.portal.kernel.exception.SystemException {
1159                    return getPersistence()
1160                                       .fetchByT_C_C(tableId, columnId, classPK, retrieveFromCache);
1161            }
1162    
1163            /**
1164            * Finds all the expando values where tableId = &#63; and columnId = &#63; and data = &#63;.
1165            *
1166            * @param tableId the table ID to search with
1167            * @param columnId the column ID to search with
1168            * @param data the data to search with
1169            * @return the matching expando values
1170            * @throws SystemException if a system exception occurred
1171            */
1172            public static java.util.List<com.liferay.portlet.expando.model.ExpandoValue> findByT_C_D(
1173                    long tableId, long columnId, java.lang.String data)
1174                    throws com.liferay.portal.kernel.exception.SystemException {
1175                    return getPersistence().findByT_C_D(tableId, columnId, data);
1176            }
1177    
1178            /**
1179            * Finds a range of all the expando values where tableId = &#63; and columnId = &#63; and data = &#63;.
1180            *
1181            * <p>
1182            * 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.
1183            * </p>
1184            *
1185            * @param tableId the table ID to search with
1186            * @param columnId the column ID to search with
1187            * @param data the data to search with
1188            * @param start the lower bound of the range of expando values to return
1189            * @param end the upper bound of the range of expando values to return (not inclusive)
1190            * @return the range of matching expando values
1191            * @throws SystemException if a system exception occurred
1192            */
1193            public static java.util.List<com.liferay.portlet.expando.model.ExpandoValue> findByT_C_D(
1194                    long tableId, long columnId, java.lang.String data, int start, int end)
1195                    throws com.liferay.portal.kernel.exception.SystemException {
1196                    return getPersistence().findByT_C_D(tableId, columnId, data, start, end);
1197            }
1198    
1199            /**
1200            * Finds an ordered range of all the expando values where tableId = &#63; and columnId = &#63; and data = &#63;.
1201            *
1202            * <p>
1203            * 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.
1204            * </p>
1205            *
1206            * @param tableId the table ID to search with
1207            * @param columnId the column ID to search with
1208            * @param data the data to search with
1209            * @param start the lower bound of the range of expando values to return
1210            * @param end the upper bound of the range of expando values to return (not inclusive)
1211            * @param orderByComparator the comparator to order the results by
1212            * @return the ordered range of matching expando values
1213            * @throws SystemException if a system exception occurred
1214            */
1215            public static java.util.List<com.liferay.portlet.expando.model.ExpandoValue> findByT_C_D(
1216                    long tableId, long columnId, java.lang.String data, int start, int end,
1217                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1218                    throws com.liferay.portal.kernel.exception.SystemException {
1219                    return getPersistence()
1220                                       .findByT_C_D(tableId, columnId, data, start, end,
1221                            orderByComparator);
1222            }
1223    
1224            /**
1225            * Finds the first expando value in the ordered set where tableId = &#63; and columnId = &#63; and data = &#63;.
1226            *
1227            * <p>
1228            * 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.
1229            * </p>
1230            *
1231            * @param tableId the table ID to search with
1232            * @param columnId the column ID to search with
1233            * @param data the data to search with
1234            * @param orderByComparator the comparator to order the set by
1235            * @return the first matching expando value
1236            * @throws com.liferay.portlet.expando.NoSuchValueException if a matching expando value could not be found
1237            * @throws SystemException if a system exception occurred
1238            */
1239            public static com.liferay.portlet.expando.model.ExpandoValue findByT_C_D_First(
1240                    long tableId, long columnId, java.lang.String data,
1241                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1242                    throws com.liferay.portal.kernel.exception.SystemException,
1243                            com.liferay.portlet.expando.NoSuchValueException {
1244                    return getPersistence()
1245                                       .findByT_C_D_First(tableId, columnId, data, orderByComparator);
1246            }
1247    
1248            /**
1249            * Finds the last expando value in the ordered set where tableId = &#63; and columnId = &#63; and data = &#63;.
1250            *
1251            * <p>
1252            * 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.
1253            * </p>
1254            *
1255            * @param tableId the table ID to search with
1256            * @param columnId the column ID to search with
1257            * @param data the data to search with
1258            * @param orderByComparator the comparator to order the set by
1259            * @return the last matching expando value
1260            * @throws com.liferay.portlet.expando.NoSuchValueException if a matching expando value could not be found
1261            * @throws SystemException if a system exception occurred
1262            */
1263            public static com.liferay.portlet.expando.model.ExpandoValue findByT_C_D_Last(
1264                    long tableId, long columnId, java.lang.String data,
1265                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1266                    throws com.liferay.portal.kernel.exception.SystemException,
1267                            com.liferay.portlet.expando.NoSuchValueException {
1268                    return getPersistence()
1269                                       .findByT_C_D_Last(tableId, columnId, data, orderByComparator);
1270            }
1271    
1272            /**
1273            * Finds the expando values before and after the current expando value in the ordered set where tableId = &#63; and columnId = &#63; and data = &#63;.
1274            *
1275            * <p>
1276            * 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.
1277            * </p>
1278            *
1279            * @param valueId the primary key of the current expando value
1280            * @param tableId the table ID to search with
1281            * @param columnId the column ID to search with
1282            * @param data the data to search with
1283            * @param orderByComparator the comparator to order the set by
1284            * @return the previous, current, and next expando value
1285            * @throws com.liferay.portlet.expando.NoSuchValueException if a expando value with the primary key could not be found
1286            * @throws SystemException if a system exception occurred
1287            */
1288            public static com.liferay.portlet.expando.model.ExpandoValue[] findByT_C_D_PrevAndNext(
1289                    long valueId, long tableId, long columnId, java.lang.String data,
1290                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1291                    throws com.liferay.portal.kernel.exception.SystemException,
1292                            com.liferay.portlet.expando.NoSuchValueException {
1293                    return getPersistence()
1294                                       .findByT_C_D_PrevAndNext(valueId, tableId, columnId, data,
1295                            orderByComparator);
1296            }
1297    
1298            /**
1299            * Finds all the expando values.
1300            *
1301            * @return the expando values
1302            * @throws SystemException if a system exception occurred
1303            */
1304            public static java.util.List<com.liferay.portlet.expando.model.ExpandoValue> findAll()
1305                    throws com.liferay.portal.kernel.exception.SystemException {
1306                    return getPersistence().findAll();
1307            }
1308    
1309            /**
1310            * Finds a range of all the expando values.
1311            *
1312            * <p>
1313            * 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.
1314            * </p>
1315            *
1316            * @param start the lower bound of the range of expando values to return
1317            * @param end the upper bound of the range of expando values to return (not inclusive)
1318            * @return the range of expando values
1319            * @throws SystemException if a system exception occurred
1320            */
1321            public static java.util.List<com.liferay.portlet.expando.model.ExpandoValue> findAll(
1322                    int start, int end)
1323                    throws com.liferay.portal.kernel.exception.SystemException {
1324                    return getPersistence().findAll(start, end);
1325            }
1326    
1327            /**
1328            * Finds an ordered range of all the expando values.
1329            *
1330            * <p>
1331            * 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.
1332            * </p>
1333            *
1334            * @param start the lower bound of the range of expando values to return
1335            * @param end the upper bound of the range of expando values to return (not inclusive)
1336            * @param orderByComparator the comparator to order the results by
1337            * @return the ordered range of expando values
1338            * @throws SystemException if a system exception occurred
1339            */
1340            public static java.util.List<com.liferay.portlet.expando.model.ExpandoValue> findAll(
1341                    int start, int end,
1342                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1343                    throws com.liferay.portal.kernel.exception.SystemException {
1344                    return getPersistence().findAll(start, end, orderByComparator);
1345            }
1346    
1347            /**
1348            * Removes all the expando values where tableId = &#63; from the database.
1349            *
1350            * @param tableId the table ID to search with
1351            * @throws SystemException if a system exception occurred
1352            */
1353            public static void removeByTableId(long tableId)
1354                    throws com.liferay.portal.kernel.exception.SystemException {
1355                    getPersistence().removeByTableId(tableId);
1356            }
1357    
1358            /**
1359            * Removes all the expando values where columnId = &#63; from the database.
1360            *
1361            * @param columnId the column ID to search with
1362            * @throws SystemException if a system exception occurred
1363            */
1364            public static void removeByColumnId(long columnId)
1365                    throws com.liferay.portal.kernel.exception.SystemException {
1366                    getPersistence().removeByColumnId(columnId);
1367            }
1368    
1369            /**
1370            * Removes all the expando values where rowId = &#63; from the database.
1371            *
1372            * @param rowId the row ID to search with
1373            * @throws SystemException if a system exception occurred
1374            */
1375            public static void removeByRowId(long rowId)
1376                    throws com.liferay.portal.kernel.exception.SystemException {
1377                    getPersistence().removeByRowId(rowId);
1378            }
1379    
1380            /**
1381            * Removes all the expando values where tableId = &#63; and columnId = &#63; from the database.
1382            *
1383            * @param tableId the table ID to search with
1384            * @param columnId the column ID to search with
1385            * @throws SystemException if a system exception occurred
1386            */
1387            public static void removeByT_C(long tableId, long columnId)
1388                    throws com.liferay.portal.kernel.exception.SystemException {
1389                    getPersistence().removeByT_C(tableId, columnId);
1390            }
1391    
1392            /**
1393            * Removes all the expando values where tableId = &#63; and classPK = &#63; from the database.
1394            *
1395            * @param tableId the table ID to search with
1396            * @param classPK the class p k to search with
1397            * @throws SystemException if a system exception occurred
1398            */
1399            public static void removeByT_CPK(long tableId, long classPK)
1400                    throws com.liferay.portal.kernel.exception.SystemException {
1401                    getPersistence().removeByT_CPK(tableId, classPK);
1402            }
1403    
1404            /**
1405            * Removes all the expando values where tableId = &#63; and rowId = &#63; from the database.
1406            *
1407            * @param tableId the table ID to search with
1408            * @param rowId the row ID to search with
1409            * @throws SystemException if a system exception occurred
1410            */
1411            public static void removeByT_R(long tableId, long rowId)
1412                    throws com.liferay.portal.kernel.exception.SystemException {
1413                    getPersistence().removeByT_R(tableId, rowId);
1414            }
1415    
1416            /**
1417            * Removes the expando value where columnId = &#63; and rowId = &#63; from the database.
1418            *
1419            * @param columnId the column ID to search with
1420            * @param rowId the row ID to search with
1421            * @throws SystemException if a system exception occurred
1422            */
1423            public static void removeByC_R(long columnId, long rowId)
1424                    throws com.liferay.portal.kernel.exception.SystemException,
1425                            com.liferay.portlet.expando.NoSuchValueException {
1426                    getPersistence().removeByC_R(columnId, rowId);
1427            }
1428    
1429            /**
1430            * Removes all the expando values where classNameId = &#63; and classPK = &#63; from the database.
1431            *
1432            * @param classNameId the class name ID to search with
1433            * @param classPK the class p k to search with
1434            * @throws SystemException if a system exception occurred
1435            */
1436            public static void removeByC_C(long classNameId, long classPK)
1437                    throws com.liferay.portal.kernel.exception.SystemException {
1438                    getPersistence().removeByC_C(classNameId, classPK);
1439            }
1440    
1441            /**
1442            * Removes the expando value where tableId = &#63; and columnId = &#63; and classPK = &#63; from the database.
1443            *
1444            * @param tableId the table ID to search with
1445            * @param columnId the column ID to search with
1446            * @param classPK the class p k to search with
1447            * @throws SystemException if a system exception occurred
1448            */
1449            public static void removeByT_C_C(long tableId, long columnId, long classPK)
1450                    throws com.liferay.portal.kernel.exception.SystemException,
1451                            com.liferay.portlet.expando.NoSuchValueException {
1452                    getPersistence().removeByT_C_C(tableId, columnId, classPK);
1453            }
1454    
1455            /**
1456            * Removes all the expando values where tableId = &#63; and columnId = &#63; and data = &#63; from the database.
1457            *
1458            * @param tableId the table ID to search with
1459            * @param columnId the column ID to search with
1460            * @param data the data to search with
1461            * @throws SystemException if a system exception occurred
1462            */
1463            public static void removeByT_C_D(long tableId, long columnId,
1464                    java.lang.String data)
1465                    throws com.liferay.portal.kernel.exception.SystemException {
1466                    getPersistence().removeByT_C_D(tableId, columnId, data);
1467            }
1468    
1469            /**
1470            * Removes all the expando values from the database.
1471            *
1472            * @throws SystemException if a system exception occurred
1473            */
1474            public static void removeAll()
1475                    throws com.liferay.portal.kernel.exception.SystemException {
1476                    getPersistence().removeAll();
1477            }
1478    
1479            /**
1480            * Counts all the expando values where tableId = &#63;.
1481            *
1482            * @param tableId the table ID to search with
1483            * @return the number of matching expando values
1484            * @throws SystemException if a system exception occurred
1485            */
1486            public static int countByTableId(long tableId)
1487                    throws com.liferay.portal.kernel.exception.SystemException {
1488                    return getPersistence().countByTableId(tableId);
1489            }
1490    
1491            /**
1492            * Counts all the expando values where columnId = &#63;.
1493            *
1494            * @param columnId the column ID to search with
1495            * @return the number of matching expando values
1496            * @throws SystemException if a system exception occurred
1497            */
1498            public static int countByColumnId(long columnId)
1499                    throws com.liferay.portal.kernel.exception.SystemException {
1500                    return getPersistence().countByColumnId(columnId);
1501            }
1502    
1503            /**
1504            * Counts all the expando values where rowId = &#63;.
1505            *
1506            * @param rowId the row ID to search with
1507            * @return the number of matching expando values
1508            * @throws SystemException if a system exception occurred
1509            */
1510            public static int countByRowId(long rowId)
1511                    throws com.liferay.portal.kernel.exception.SystemException {
1512                    return getPersistence().countByRowId(rowId);
1513            }
1514    
1515            /**
1516            * Counts all the expando values where tableId = &#63; and columnId = &#63;.
1517            *
1518            * @param tableId the table ID to search with
1519            * @param columnId the column ID to search with
1520            * @return the number of matching expando values
1521            * @throws SystemException if a system exception occurred
1522            */
1523            public static int countByT_C(long tableId, long columnId)
1524                    throws com.liferay.portal.kernel.exception.SystemException {
1525                    return getPersistence().countByT_C(tableId, columnId);
1526            }
1527    
1528            /**
1529            * Counts all the expando values where tableId = &#63; and classPK = &#63;.
1530            *
1531            * @param tableId the table ID to search with
1532            * @param classPK the class p k to search with
1533            * @return the number of matching expando values
1534            * @throws SystemException if a system exception occurred
1535            */
1536            public static int countByT_CPK(long tableId, long classPK)
1537                    throws com.liferay.portal.kernel.exception.SystemException {
1538                    return getPersistence().countByT_CPK(tableId, classPK);
1539            }
1540    
1541            /**
1542            * Counts all the expando values where tableId = &#63; and rowId = &#63;.
1543            *
1544            * @param tableId the table ID to search with
1545            * @param rowId the row ID to search with
1546            * @return the number of matching expando values
1547            * @throws SystemException if a system exception occurred
1548            */
1549            public static int countByT_R(long tableId, long rowId)
1550                    throws com.liferay.portal.kernel.exception.SystemException {
1551                    return getPersistence().countByT_R(tableId, rowId);
1552            }
1553    
1554            /**
1555            * Counts all the expando values where columnId = &#63; and rowId = &#63;.
1556            *
1557            * @param columnId the column ID to search with
1558            * @param rowId the row ID to search with
1559            * @return the number of matching expando values
1560            * @throws SystemException if a system exception occurred
1561            */
1562            public static int countByC_R(long columnId, long rowId)
1563                    throws com.liferay.portal.kernel.exception.SystemException {
1564                    return getPersistence().countByC_R(columnId, rowId);
1565            }
1566    
1567            /**
1568            * Counts all the expando values where classNameId = &#63; and classPK = &#63;.
1569            *
1570            * @param classNameId the class name ID to search with
1571            * @param classPK the class p k to search with
1572            * @return the number of matching expando values
1573            * @throws SystemException if a system exception occurred
1574            */
1575            public static int countByC_C(long classNameId, long classPK)
1576                    throws com.liferay.portal.kernel.exception.SystemException {
1577                    return getPersistence().countByC_C(classNameId, classPK);
1578            }
1579    
1580            /**
1581            * Counts all the expando values where tableId = &#63; and columnId = &#63; and classPK = &#63;.
1582            *
1583            * @param tableId the table ID to search with
1584            * @param columnId the column ID to search with
1585            * @param classPK the class p k to search with
1586            * @return the number of matching expando values
1587            * @throws SystemException if a system exception occurred
1588            */
1589            public static int countByT_C_C(long tableId, long columnId, long classPK)
1590                    throws com.liferay.portal.kernel.exception.SystemException {
1591                    return getPersistence().countByT_C_C(tableId, columnId, classPK);
1592            }
1593    
1594            /**
1595            * Counts all the expando values where tableId = &#63; and columnId = &#63; and data = &#63;.
1596            *
1597            * @param tableId the table ID to search with
1598            * @param columnId the column ID to search with
1599            * @param data the data to search with
1600            * @return the number of matching expando values
1601            * @throws SystemException if a system exception occurred
1602            */
1603            public static int countByT_C_D(long tableId, long columnId,
1604                    java.lang.String data)
1605                    throws com.liferay.portal.kernel.exception.SystemException {
1606                    return getPersistence().countByT_C_D(tableId, columnId, data);
1607            }
1608    
1609            /**
1610            * Counts all the expando values.
1611            *
1612            * @return the number of expando values
1613            * @throws SystemException if a system exception occurred
1614            */
1615            public static int countAll()
1616                    throws com.liferay.portal.kernel.exception.SystemException {
1617                    return getPersistence().countAll();
1618            }
1619    
1620            public static ExpandoValuePersistence getPersistence() {
1621                    if (_persistence == null) {
1622                            _persistence = (ExpandoValuePersistence)PortalBeanLocatorUtil.locate(ExpandoValuePersistence.class.getName());
1623    
1624                            ReferenceRegistry.registerReference(ExpandoValueUtil.class,
1625                                    "_persistence");
1626                    }
1627    
1628                    return _persistence;
1629            }
1630    
1631            public void setPersistence(ExpandoValuePersistence persistence) {
1632                    _persistence = persistence;
1633    
1634                    ReferenceRegistry.registerReference(ExpandoValueUtil.class,
1635                            "_persistence");
1636            }
1637    
1638            private static ExpandoValuePersistence _persistence;
1639    }