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