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