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, 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            * <p>
250            * 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.
251            * </p>
252            *
253            * @param tagId the tag ID
254            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
255            * @return the first matching asset tag stats
256            * @throws com.liferay.portlet.asset.NoSuchTagStatsException if a matching asset tag stats could not be found
257            * @throws SystemException if a system exception occurred
258            */
259            public static com.liferay.portlet.asset.model.AssetTagStats findByTagId_First(
260                    long tagId,
261                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
262                    throws com.liferay.portal.kernel.exception.SystemException,
263                            com.liferay.portlet.asset.NoSuchTagStatsException {
264                    return getPersistence().findByTagId_First(tagId, orderByComparator);
265            }
266    
267            /**
268            * Returns the last asset tag stats in the ordered set where tagId = &#63;.
269            *
270            * <p>
271            * 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.
272            * </p>
273            *
274            * @param tagId the tag ID
275            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
276            * @return the last matching asset tag stats
277            * @throws com.liferay.portlet.asset.NoSuchTagStatsException if a matching asset tag stats could not be found
278            * @throws SystemException if a system exception occurred
279            */
280            public static com.liferay.portlet.asset.model.AssetTagStats findByTagId_Last(
281                    long tagId,
282                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
283                    throws com.liferay.portal.kernel.exception.SystemException,
284                            com.liferay.portlet.asset.NoSuchTagStatsException {
285                    return getPersistence().findByTagId_Last(tagId, orderByComparator);
286            }
287    
288            /**
289            * Returns the asset tag statses before and after the current asset tag stats in the ordered set where tagId = &#63;.
290            *
291            * <p>
292            * 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.
293            * </p>
294            *
295            * @param tagStatsId the primary key of the current asset tag stats
296            * @param tagId the tag ID
297            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
298            * @return the previous, current, and next asset tag stats
299            * @throws com.liferay.portlet.asset.NoSuchTagStatsException if a asset tag stats with the primary key could not be found
300            * @throws SystemException if a system exception occurred
301            */
302            public static com.liferay.portlet.asset.model.AssetTagStats[] findByTagId_PrevAndNext(
303                    long tagStatsId, long tagId,
304                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
305                    throws com.liferay.portal.kernel.exception.SystemException,
306                            com.liferay.portlet.asset.NoSuchTagStatsException {
307                    return getPersistence()
308                                       .findByTagId_PrevAndNext(tagStatsId, tagId, orderByComparator);
309            }
310    
311            /**
312            * Returns all the asset tag statses where classNameId = &#63;.
313            *
314            * @param classNameId the class name ID
315            * @return the matching asset tag statses
316            * @throws SystemException if a system exception occurred
317            */
318            public static java.util.List<com.liferay.portlet.asset.model.AssetTagStats> findByClassNameId(
319                    long classNameId)
320                    throws com.liferay.portal.kernel.exception.SystemException {
321                    return getPersistence().findByClassNameId(classNameId);
322            }
323    
324            /**
325            * Returns a range of all the asset tag statses where classNameId = &#63;.
326            *
327            * <p>
328            * 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.
329            * </p>
330            *
331            * @param classNameId the class name ID
332            * @param start the lower bound of the range of asset tag statses
333            * @param end the upper bound of the range of asset tag statses (not inclusive)
334            * @return the range of matching asset tag statses
335            * @throws SystemException if a system exception occurred
336            */
337            public static java.util.List<com.liferay.portlet.asset.model.AssetTagStats> findByClassNameId(
338                    long classNameId, int start, int end)
339                    throws com.liferay.portal.kernel.exception.SystemException {
340                    return getPersistence().findByClassNameId(classNameId, start, end);
341            }
342    
343            /**
344            * Returns an ordered range of all the asset tag statses where classNameId = &#63;.
345            *
346            * <p>
347            * 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.
348            * </p>
349            *
350            * @param classNameId the class name ID
351            * @param start the lower bound of the range of asset tag statses
352            * @param end the upper bound of the range of asset tag statses (not inclusive)
353            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
354            * @return the ordered range of matching asset tag statses
355            * @throws SystemException if a system exception occurred
356            */
357            public static java.util.List<com.liferay.portlet.asset.model.AssetTagStats> findByClassNameId(
358                    long classNameId, int start, int end,
359                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
360                    throws com.liferay.portal.kernel.exception.SystemException {
361                    return getPersistence()
362                                       .findByClassNameId(classNameId, start, end, orderByComparator);
363            }
364    
365            /**
366            * Returns the first asset tag stats in the ordered set where classNameId = &#63;.
367            *
368            * <p>
369            * 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.
370            * </p>
371            *
372            * @param classNameId the class name ID
373            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
374            * @return the first matching asset tag stats
375            * @throws com.liferay.portlet.asset.NoSuchTagStatsException if a matching asset tag stats could not be found
376            * @throws SystemException if a system exception occurred
377            */
378            public static com.liferay.portlet.asset.model.AssetTagStats findByClassNameId_First(
379                    long classNameId,
380                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
381                    throws com.liferay.portal.kernel.exception.SystemException,
382                            com.liferay.portlet.asset.NoSuchTagStatsException {
383                    return getPersistence()
384                                       .findByClassNameId_First(classNameId, orderByComparator);
385            }
386    
387            /**
388            * Returns the last asset tag stats in the ordered set where classNameId = &#63;.
389            *
390            * <p>
391            * 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.
392            * </p>
393            *
394            * @param classNameId the class name ID
395            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
396            * @return the last matching asset tag stats
397            * @throws com.liferay.portlet.asset.NoSuchTagStatsException if a matching asset tag stats could not be found
398            * @throws SystemException if a system exception occurred
399            */
400            public static com.liferay.portlet.asset.model.AssetTagStats findByClassNameId_Last(
401                    long classNameId,
402                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
403                    throws com.liferay.portal.kernel.exception.SystemException,
404                            com.liferay.portlet.asset.NoSuchTagStatsException {
405                    return getPersistence()
406                                       .findByClassNameId_Last(classNameId, orderByComparator);
407            }
408    
409            /**
410            * Returns the asset tag statses before and after the current asset tag stats in the ordered set where classNameId = &#63;.
411            *
412            * <p>
413            * 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.
414            * </p>
415            *
416            * @param tagStatsId the primary key of the current asset tag stats
417            * @param classNameId the class name ID
418            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
419            * @return the previous, current, and next asset tag stats
420            * @throws com.liferay.portlet.asset.NoSuchTagStatsException if a asset tag stats with the primary key could not be found
421            * @throws SystemException if a system exception occurred
422            */
423            public static com.liferay.portlet.asset.model.AssetTagStats[] findByClassNameId_PrevAndNext(
424                    long tagStatsId, long classNameId,
425                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
426                    throws com.liferay.portal.kernel.exception.SystemException,
427                            com.liferay.portlet.asset.NoSuchTagStatsException {
428                    return getPersistence()
429                                       .findByClassNameId_PrevAndNext(tagStatsId, classNameId,
430                            orderByComparator);
431            }
432    
433            /**
434            * 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.
435            *
436            * @param tagId the tag ID
437            * @param classNameId the class name ID
438            * @return the matching asset tag stats
439            * @throws com.liferay.portlet.asset.NoSuchTagStatsException 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 findByT_C(
443                    long tagId, long classNameId)
444                    throws com.liferay.portal.kernel.exception.SystemException,
445                            com.liferay.portlet.asset.NoSuchTagStatsException {
446                    return getPersistence().findByT_C(tagId, classNameId);
447            }
448    
449            /**
450            * 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.
451            *
452            * @param tagId the tag ID
453            * @param classNameId the class name ID
454            * @return the matching asset tag stats, or <code>null</code> if a matching asset tag stats could not be found
455            * @throws SystemException if a system exception occurred
456            */
457            public static com.liferay.portlet.asset.model.AssetTagStats fetchByT_C(
458                    long tagId, long classNameId)
459                    throws com.liferay.portal.kernel.exception.SystemException {
460                    return getPersistence().fetchByT_C(tagId, classNameId);
461            }
462    
463            /**
464            * 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.
465            *
466            * @param tagId the tag ID
467            * @param classNameId the class name ID
468            * @param retrieveFromCache whether to use the finder cache
469            * @return the matching asset tag stats, or <code>null</code> if a matching asset tag stats could not be found
470            * @throws SystemException if a system exception occurred
471            */
472            public static com.liferay.portlet.asset.model.AssetTagStats fetchByT_C(
473                    long tagId, long classNameId, boolean retrieveFromCache)
474                    throws com.liferay.portal.kernel.exception.SystemException {
475                    return getPersistence().fetchByT_C(tagId, classNameId, retrieveFromCache);
476            }
477    
478            /**
479            * Returns all the asset tag statses.
480            *
481            * @return the asset tag statses
482            * @throws SystemException if a system exception occurred
483            */
484            public static java.util.List<com.liferay.portlet.asset.model.AssetTagStats> findAll()
485                    throws com.liferay.portal.kernel.exception.SystemException {
486                    return getPersistence().findAll();
487            }
488    
489            /**
490            * Returns a range of all the asset tag statses.
491            *
492            * <p>
493            * 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.
494            * </p>
495            *
496            * @param start the lower bound of the range of asset tag statses
497            * @param end the upper bound of the range of asset tag statses (not inclusive)
498            * @return the range of asset tag statses
499            * @throws SystemException if a system exception occurred
500            */
501            public static java.util.List<com.liferay.portlet.asset.model.AssetTagStats> findAll(
502                    int start, int end)
503                    throws com.liferay.portal.kernel.exception.SystemException {
504                    return getPersistence().findAll(start, end);
505            }
506    
507            /**
508            * Returns an ordered range of all the asset tag statses.
509            *
510            * <p>
511            * 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.
512            * </p>
513            *
514            * @param start the lower bound of the range of asset tag statses
515            * @param end the upper bound of the range of asset tag statses (not inclusive)
516            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
517            * @return the ordered range of asset tag statses
518            * @throws SystemException if a system exception occurred
519            */
520            public static java.util.List<com.liferay.portlet.asset.model.AssetTagStats> findAll(
521                    int start, int end,
522                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
523                    throws com.liferay.portal.kernel.exception.SystemException {
524                    return getPersistence().findAll(start, end, orderByComparator);
525            }
526    
527            /**
528            * Removes all the asset tag statses where tagId = &#63; from the database.
529            *
530            * @param tagId the tag ID
531            * @throws SystemException if a system exception occurred
532            */
533            public static void removeByTagId(long tagId)
534                    throws com.liferay.portal.kernel.exception.SystemException {
535                    getPersistence().removeByTagId(tagId);
536            }
537    
538            /**
539            * Removes all the asset tag statses where classNameId = &#63; from the database.
540            *
541            * @param classNameId the class name ID
542            * @throws SystemException if a system exception occurred
543            */
544            public static void removeByClassNameId(long classNameId)
545                    throws com.liferay.portal.kernel.exception.SystemException {
546                    getPersistence().removeByClassNameId(classNameId);
547            }
548    
549            /**
550            * Removes the asset tag stats where tagId = &#63; and classNameId = &#63; from the database.
551            *
552            * @param tagId the tag ID
553            * @param classNameId the class name ID
554            * @throws SystemException if a system exception occurred
555            */
556            public static void removeByT_C(long tagId, long classNameId)
557                    throws com.liferay.portal.kernel.exception.SystemException,
558                            com.liferay.portlet.asset.NoSuchTagStatsException {
559                    getPersistence().removeByT_C(tagId, classNameId);
560            }
561    
562            /**
563            * Removes all the asset tag statses from the database.
564            *
565            * @throws SystemException if a system exception occurred
566            */
567            public static void removeAll()
568                    throws com.liferay.portal.kernel.exception.SystemException {
569                    getPersistence().removeAll();
570            }
571    
572            /**
573            * Returns the number of asset tag statses where tagId = &#63;.
574            *
575            * @param tagId the tag ID
576            * @return the number of matching asset tag statses
577            * @throws SystemException if a system exception occurred
578            */
579            public static int countByTagId(long tagId)
580                    throws com.liferay.portal.kernel.exception.SystemException {
581                    return getPersistence().countByTagId(tagId);
582            }
583    
584            /**
585            * Returns the number of asset tag statses where classNameId = &#63;.
586            *
587            * @param classNameId the class name ID
588            * @return the number of matching asset tag statses
589            * @throws SystemException if a system exception occurred
590            */
591            public static int countByClassNameId(long classNameId)
592                    throws com.liferay.portal.kernel.exception.SystemException {
593                    return getPersistence().countByClassNameId(classNameId);
594            }
595    
596            /**
597            * Returns the number of asset tag statses where tagId = &#63; and classNameId = &#63;.
598            *
599            * @param tagId the tag ID
600            * @param classNameId the class name ID
601            * @return the number of matching asset tag statses
602            * @throws SystemException if a system exception occurred
603            */
604            public static int countByT_C(long tagId, long classNameId)
605                    throws com.liferay.portal.kernel.exception.SystemException {
606                    return getPersistence().countByT_C(tagId, classNameId);
607            }
608    
609            /**
610            * Returns the number of asset tag statses.
611            *
612            * @return the number of asset tag statses
613            * @throws SystemException if a system exception occurred
614            */
615            public static int countAll()
616                    throws com.liferay.portal.kernel.exception.SystemException {
617                    return getPersistence().countAll();
618            }
619    
620            public static AssetTagStatsPersistence getPersistence() {
621                    if (_persistence == null) {
622                            _persistence = (AssetTagStatsPersistence)PortalBeanLocatorUtil.locate(AssetTagStatsPersistence.class.getName());
623    
624                            ReferenceRegistry.registerReference(AssetTagStatsUtil.class,
625                                    "_persistence");
626                    }
627    
628                    return _persistence;
629            }
630    
631            public void setPersistence(AssetTagStatsPersistence persistence) {
632                    _persistence = persistence;
633    
634                    ReferenceRegistry.registerReference(AssetTagStatsUtil.class,
635                            "_persistence");
636            }
637    
638            private static AssetTagStatsPersistence _persistence;
639    }