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