001    /**
002     * Copyright (c) 2000-present 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 aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
020    import com.liferay.portal.kernel.dao.orm.DynamicQuery;
021    import com.liferay.portal.kernel.util.OrderByComparator;
022    import com.liferay.portal.kernel.util.ReferenceRegistry;
023    import com.liferay.portal.service.ServiceContext;
024    
025    import com.liferay.portlet.asset.model.AssetTagStats;
026    
027    import java.util.List;
028    
029    /**
030     * 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.
031     *
032     * <p>
033     * Caching information and settings can be found in <code>portal.properties</code>
034     * </p>
035     *
036     * @author Brian Wing Shun Chan
037     * @see AssetTagStatsPersistence
038     * @see AssetTagStatsPersistenceImpl
039     * @generated
040     */
041    @ProviderType
042    public class AssetTagStatsUtil {
043            /*
044             * NOTE FOR DEVELOPERS:
045             *
046             * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class.
047             */
048    
049            /**
050             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
051             */
052            public static void clearCache() {
053                    getPersistence().clearCache();
054            }
055    
056            /**
057             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel)
058             */
059            public static void clearCache(AssetTagStats assetTagStats) {
060                    getPersistence().clearCache(assetTagStats);
061            }
062    
063            /**
064             * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
065             */
066            public static long countWithDynamicQuery(DynamicQuery dynamicQuery) {
067                    return getPersistence().countWithDynamicQuery(dynamicQuery);
068            }
069    
070            /**
071             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
072             */
073            public static List<AssetTagStats> findWithDynamicQuery(
074                    DynamicQuery dynamicQuery) {
075                    return getPersistence().findWithDynamicQuery(dynamicQuery);
076            }
077    
078            /**
079             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
080             */
081            public static List<AssetTagStats> findWithDynamicQuery(
082                    DynamicQuery dynamicQuery, int start, int end) {
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<AssetTagStats> orderByComparator) {
092                    return getPersistence()
093                                       .findWithDynamicQuery(dynamicQuery, start, end,
094                            orderByComparator);
095            }
096    
097            /**
098             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel)
099             */
100            public static AssetTagStats update(AssetTagStats assetTagStats) {
101                    return getPersistence().update(assetTagStats);
102            }
103    
104            /**
105             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, ServiceContext)
106             */
107            public static AssetTagStats update(AssetTagStats assetTagStats,
108                    ServiceContext serviceContext) {
109                    return getPersistence().update(assetTagStats, serviceContext);
110            }
111    
112            /**
113            * Returns all the asset tag statses where tagId = &#63;.
114            *
115            * @param tagId the tag ID
116            * @return the matching asset tag statses
117            */
118            public static java.util.List<com.liferay.portlet.asset.model.AssetTagStats> findByTagId(
119                    long tagId) {
120                    return getPersistence().findByTagId(tagId);
121            }
122    
123            /**
124            * Returns a range of all the asset tag statses where tagId = &#63;.
125            *
126            * <p>
127            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.asset.model.impl.AssetTagStatsModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
128            * </p>
129            *
130            * @param tagId the tag ID
131            * @param start the lower bound of the range of asset tag statses
132            * @param end the upper bound of the range of asset tag statses (not inclusive)
133            * @return the range of matching asset tag statses
134            */
135            public static java.util.List<com.liferay.portlet.asset.model.AssetTagStats> findByTagId(
136                    long tagId, int start, int end) {
137                    return getPersistence().findByTagId(tagId, start, end);
138            }
139    
140            /**
141            * Returns an ordered range of all the asset tag statses where tagId = &#63;.
142            *
143            * <p>
144            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.asset.model.impl.AssetTagStatsModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
145            * </p>
146            *
147            * @param tagId the tag ID
148            * @param start the lower bound of the range of asset tag statses
149            * @param end the upper bound of the range of asset tag statses (not inclusive)
150            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
151            * @return the ordered range of matching asset tag statses
152            */
153            public static java.util.List<com.liferay.portlet.asset.model.AssetTagStats> findByTagId(
154                    long tagId, int start, int end,
155                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetTagStats> orderByComparator) {
156                    return getPersistence().findByTagId(tagId, start, end, orderByComparator);
157            }
158    
159            /**
160            * Returns the first asset tag stats in the ordered set where tagId = &#63;.
161            *
162            * @param tagId the tag ID
163            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
164            * @return the first matching asset tag stats
165            * @throws com.liferay.portlet.asset.NoSuchTagStatsException if a matching asset tag stats could not be found
166            */
167            public static com.liferay.portlet.asset.model.AssetTagStats findByTagId_First(
168                    long tagId,
169                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetTagStats> orderByComparator)
170                    throws com.liferay.portlet.asset.NoSuchTagStatsException {
171                    return getPersistence().findByTagId_First(tagId, orderByComparator);
172            }
173    
174            /**
175            * Returns the first asset tag stats in the ordered set where tagId = &#63;.
176            *
177            * @param tagId the tag ID
178            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
179            * @return the first matching asset tag stats, or <code>null</code> if a matching asset tag stats could not be found
180            */
181            public static com.liferay.portlet.asset.model.AssetTagStats fetchByTagId_First(
182                    long tagId,
183                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetTagStats> orderByComparator) {
184                    return getPersistence().fetchByTagId_First(tagId, orderByComparator);
185            }
186    
187            /**
188            * Returns the last asset tag stats in the ordered set where tagId = &#63;.
189            *
190            * @param tagId the tag ID
191            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
192            * @return the last matching asset tag stats
193            * @throws com.liferay.portlet.asset.NoSuchTagStatsException if a matching asset tag stats could not be found
194            */
195            public static com.liferay.portlet.asset.model.AssetTagStats findByTagId_Last(
196                    long tagId,
197                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetTagStats> orderByComparator)
198                    throws com.liferay.portlet.asset.NoSuchTagStatsException {
199                    return getPersistence().findByTagId_Last(tagId, orderByComparator);
200            }
201    
202            /**
203            * Returns the last asset tag stats in the ordered set where tagId = &#63;.
204            *
205            * @param tagId the tag ID
206            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
207            * @return the last matching asset tag stats, or <code>null</code> if a matching asset tag stats could not be found
208            */
209            public static com.liferay.portlet.asset.model.AssetTagStats fetchByTagId_Last(
210                    long tagId,
211                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetTagStats> orderByComparator) {
212                    return getPersistence().fetchByTagId_Last(tagId, orderByComparator);
213            }
214    
215            /**
216            * Returns the asset tag statses before and after the current asset tag stats in the ordered set where tagId = &#63;.
217            *
218            * @param tagStatsId the primary key of the current asset tag stats
219            * @param tagId the tag ID
220            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
221            * @return the previous, current, and next asset tag stats
222            * @throws com.liferay.portlet.asset.NoSuchTagStatsException if a asset tag stats with the primary key could not be found
223            */
224            public static com.liferay.portlet.asset.model.AssetTagStats[] findByTagId_PrevAndNext(
225                    long tagStatsId, long tagId,
226                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetTagStats> orderByComparator)
227                    throws com.liferay.portlet.asset.NoSuchTagStatsException {
228                    return getPersistence()
229                                       .findByTagId_PrevAndNext(tagStatsId, tagId, orderByComparator);
230            }
231    
232            /**
233            * Removes all the asset tag statses where tagId = &#63; from the database.
234            *
235            * @param tagId the tag ID
236            */
237            public static void removeByTagId(long tagId) {
238                    getPersistence().removeByTagId(tagId);
239            }
240    
241            /**
242            * Returns the number of asset tag statses where tagId = &#63;.
243            *
244            * @param tagId the tag ID
245            * @return the number of matching asset tag statses
246            */
247            public static int countByTagId(long tagId) {
248                    return getPersistence().countByTagId(tagId);
249            }
250    
251            /**
252            * Returns all the asset tag statses where classNameId = &#63;.
253            *
254            * @param classNameId the class name ID
255            * @return the matching asset tag statses
256            */
257            public static java.util.List<com.liferay.portlet.asset.model.AssetTagStats> findByClassNameId(
258                    long classNameId) {
259                    return getPersistence().findByClassNameId(classNameId);
260            }
261    
262            /**
263            * Returns a range of all the asset tag statses where classNameId = &#63;.
264            *
265            * <p>
266            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.asset.model.impl.AssetTagStatsModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
267            * </p>
268            *
269            * @param classNameId the class name ID
270            * @param start the lower bound of the range of asset tag statses
271            * @param end the upper bound of the range of asset tag statses (not inclusive)
272            * @return the range of matching asset tag statses
273            */
274            public static java.util.List<com.liferay.portlet.asset.model.AssetTagStats> findByClassNameId(
275                    long classNameId, int start, int end) {
276                    return getPersistence().findByClassNameId(classNameId, start, end);
277            }
278    
279            /**
280            * Returns an ordered range of all the asset tag statses where classNameId = &#63;.
281            *
282            * <p>
283            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.asset.model.impl.AssetTagStatsModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
284            * </p>
285            *
286            * @param classNameId the class name ID
287            * @param start the lower bound of the range of asset tag statses
288            * @param end the upper bound of the range of asset tag statses (not inclusive)
289            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
290            * @return the ordered range of matching asset tag statses
291            */
292            public static java.util.List<com.liferay.portlet.asset.model.AssetTagStats> findByClassNameId(
293                    long classNameId, int start, int end,
294                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetTagStats> orderByComparator) {
295                    return getPersistence()
296                                       .findByClassNameId(classNameId, start, end, orderByComparator);
297            }
298    
299            /**
300            * Returns the first asset tag stats in the ordered set where classNameId = &#63;.
301            *
302            * @param classNameId the class name ID
303            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
304            * @return the first matching asset tag stats
305            * @throws com.liferay.portlet.asset.NoSuchTagStatsException if a matching asset tag stats could not be found
306            */
307            public static com.liferay.portlet.asset.model.AssetTagStats findByClassNameId_First(
308                    long classNameId,
309                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetTagStats> orderByComparator)
310                    throws com.liferay.portlet.asset.NoSuchTagStatsException {
311                    return getPersistence()
312                                       .findByClassNameId_First(classNameId, orderByComparator);
313            }
314    
315            /**
316            * Returns the first asset tag stats in the ordered set where classNameId = &#63;.
317            *
318            * @param classNameId the class name ID
319            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
320            * @return the first matching asset tag stats, or <code>null</code> if a matching asset tag stats could not be found
321            */
322            public static com.liferay.portlet.asset.model.AssetTagStats fetchByClassNameId_First(
323                    long classNameId,
324                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetTagStats> orderByComparator) {
325                    return getPersistence()
326                                       .fetchByClassNameId_First(classNameId, orderByComparator);
327            }
328    
329            /**
330            * Returns the last asset tag stats in the ordered set where classNameId = &#63;.
331            *
332            * @param classNameId the class name ID
333            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
334            * @return the last matching asset tag stats
335            * @throws com.liferay.portlet.asset.NoSuchTagStatsException if a matching asset tag stats could not be found
336            */
337            public static com.liferay.portlet.asset.model.AssetTagStats findByClassNameId_Last(
338                    long classNameId,
339                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetTagStats> orderByComparator)
340                    throws com.liferay.portlet.asset.NoSuchTagStatsException {
341                    return getPersistence()
342                                       .findByClassNameId_Last(classNameId, orderByComparator);
343            }
344    
345            /**
346            * Returns the last asset tag stats in the ordered set where classNameId = &#63;.
347            *
348            * @param classNameId the class name ID
349            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
350            * @return the last matching asset tag stats, or <code>null</code> if a matching asset tag stats could not be found
351            */
352            public static com.liferay.portlet.asset.model.AssetTagStats fetchByClassNameId_Last(
353                    long classNameId,
354                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetTagStats> orderByComparator) {
355                    return getPersistence()
356                                       .fetchByClassNameId_Last(classNameId, orderByComparator);
357            }
358    
359            /**
360            * Returns the asset tag statses before and after the current asset tag stats in the ordered set where classNameId = &#63;.
361            *
362            * @param tagStatsId the primary key of the current asset tag stats
363            * @param classNameId the class name ID
364            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
365            * @return the previous, current, and next asset tag stats
366            * @throws com.liferay.portlet.asset.NoSuchTagStatsException if a asset tag stats with the primary key could not be found
367            */
368            public static com.liferay.portlet.asset.model.AssetTagStats[] findByClassNameId_PrevAndNext(
369                    long tagStatsId, long classNameId,
370                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetTagStats> orderByComparator)
371                    throws com.liferay.portlet.asset.NoSuchTagStatsException {
372                    return getPersistence()
373                                       .findByClassNameId_PrevAndNext(tagStatsId, classNameId,
374                            orderByComparator);
375            }
376    
377            /**
378            * Removes all the asset tag statses where classNameId = &#63; from the database.
379            *
380            * @param classNameId the class name ID
381            */
382            public static void removeByClassNameId(long classNameId) {
383                    getPersistence().removeByClassNameId(classNameId);
384            }
385    
386            /**
387            * Returns the number of asset tag statses where classNameId = &#63;.
388            *
389            * @param classNameId the class name ID
390            * @return the number of matching asset tag statses
391            */
392            public static int countByClassNameId(long classNameId) {
393                    return getPersistence().countByClassNameId(classNameId);
394            }
395    
396            /**
397            * 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.
398            *
399            * @param tagId the tag ID
400            * @param classNameId the class name ID
401            * @return the matching asset tag stats
402            * @throws com.liferay.portlet.asset.NoSuchTagStatsException if a matching asset tag stats could not be found
403            */
404            public static com.liferay.portlet.asset.model.AssetTagStats findByT_C(
405                    long tagId, long classNameId)
406                    throws com.liferay.portlet.asset.NoSuchTagStatsException {
407                    return getPersistence().findByT_C(tagId, classNameId);
408            }
409    
410            /**
411            * 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.
412            *
413            * @param tagId the tag ID
414            * @param classNameId the class name ID
415            * @return the matching asset tag stats, or <code>null</code> if a matching asset tag stats could not be found
416            */
417            public static com.liferay.portlet.asset.model.AssetTagStats fetchByT_C(
418                    long tagId, long classNameId) {
419                    return getPersistence().fetchByT_C(tagId, classNameId);
420            }
421    
422            /**
423            * 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.
424            *
425            * @param tagId the tag ID
426            * @param classNameId the class name ID
427            * @param retrieveFromCache whether to use the finder cache
428            * @return the matching asset tag stats, or <code>null</code> if a matching asset tag stats could not be found
429            */
430            public static com.liferay.portlet.asset.model.AssetTagStats fetchByT_C(
431                    long tagId, long classNameId, boolean retrieveFromCache) {
432                    return getPersistence().fetchByT_C(tagId, classNameId, retrieveFromCache);
433            }
434    
435            /**
436            * Removes the asset tag stats where tagId = &#63; and classNameId = &#63; from the database.
437            *
438            * @param tagId the tag ID
439            * @param classNameId the class name ID
440            * @return the asset tag stats that was removed
441            */
442            public static com.liferay.portlet.asset.model.AssetTagStats removeByT_C(
443                    long tagId, long classNameId)
444                    throws com.liferay.portlet.asset.NoSuchTagStatsException {
445                    return getPersistence().removeByT_C(tagId, classNameId);
446            }
447    
448            /**
449            * Returns the number of asset tag statses where tagId = &#63; and classNameId = &#63;.
450            *
451            * @param tagId the tag ID
452            * @param classNameId the class name ID
453            * @return the number of matching asset tag statses
454            */
455            public static int countByT_C(long tagId, long classNameId) {
456                    return getPersistence().countByT_C(tagId, classNameId);
457            }
458    
459            /**
460            * Caches the asset tag stats in the entity cache if it is enabled.
461            *
462            * @param assetTagStats the asset tag stats
463            */
464            public static void cacheResult(
465                    com.liferay.portlet.asset.model.AssetTagStats assetTagStats) {
466                    getPersistence().cacheResult(assetTagStats);
467            }
468    
469            /**
470            * Caches the asset tag statses in the entity cache if it is enabled.
471            *
472            * @param assetTagStatses the asset tag statses
473            */
474            public static void cacheResult(
475                    java.util.List<com.liferay.portlet.asset.model.AssetTagStats> assetTagStatses) {
476                    getPersistence().cacheResult(assetTagStatses);
477            }
478    
479            /**
480            * Creates a new asset tag stats with the primary key. Does not add the asset tag stats to the database.
481            *
482            * @param tagStatsId the primary key for the new asset tag stats
483            * @return the new asset tag stats
484            */
485            public static com.liferay.portlet.asset.model.AssetTagStats create(
486                    long tagStatsId) {
487                    return getPersistence().create(tagStatsId);
488            }
489    
490            /**
491            * Removes the asset tag stats with the primary key from the database. Also notifies the appropriate model listeners.
492            *
493            * @param tagStatsId the primary key of the asset tag stats
494            * @return the asset tag stats that was removed
495            * @throws com.liferay.portlet.asset.NoSuchTagStatsException if a asset tag stats with the primary key could not be found
496            */
497            public static com.liferay.portlet.asset.model.AssetTagStats remove(
498                    long tagStatsId)
499                    throws com.liferay.portlet.asset.NoSuchTagStatsException {
500                    return getPersistence().remove(tagStatsId);
501            }
502    
503            public static com.liferay.portlet.asset.model.AssetTagStats updateImpl(
504                    com.liferay.portlet.asset.model.AssetTagStats assetTagStats) {
505                    return getPersistence().updateImpl(assetTagStats);
506            }
507    
508            /**
509            * Returns the asset tag stats with the primary key or throws a {@link com.liferay.portlet.asset.NoSuchTagStatsException} if it could not be found.
510            *
511            * @param tagStatsId the primary key of the asset tag stats
512            * @return the asset tag stats
513            * @throws com.liferay.portlet.asset.NoSuchTagStatsException if a asset tag stats with the primary key could not be found
514            */
515            public static com.liferay.portlet.asset.model.AssetTagStats findByPrimaryKey(
516                    long tagStatsId)
517                    throws com.liferay.portlet.asset.NoSuchTagStatsException {
518                    return getPersistence().findByPrimaryKey(tagStatsId);
519            }
520    
521            /**
522            * Returns the asset tag stats with the primary key or returns <code>null</code> if it could not be found.
523            *
524            * @param tagStatsId the primary key of the asset tag stats
525            * @return the asset tag stats, or <code>null</code> if a asset tag stats with the primary key could not be found
526            */
527            public static com.liferay.portlet.asset.model.AssetTagStats fetchByPrimaryKey(
528                    long tagStatsId) {
529                    return getPersistence().fetchByPrimaryKey(tagStatsId);
530            }
531    
532            public static java.util.Map<java.io.Serializable, com.liferay.portlet.asset.model.AssetTagStats> fetchByPrimaryKeys(
533                    java.util.Set<java.io.Serializable> primaryKeys) {
534                    return getPersistence().fetchByPrimaryKeys(primaryKeys);
535            }
536    
537            /**
538            * Returns all the asset tag statses.
539            *
540            * @return the asset tag statses
541            */
542            public static java.util.List<com.liferay.portlet.asset.model.AssetTagStats> findAll() {
543                    return getPersistence().findAll();
544            }
545    
546            /**
547            * Returns a range of all the asset tag statses.
548            *
549            * <p>
550            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.asset.model.impl.AssetTagStatsModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
551            * </p>
552            *
553            * @param start the lower bound of the range of asset tag statses
554            * @param end the upper bound of the range of asset tag statses (not inclusive)
555            * @return the range of asset tag statses
556            */
557            public static java.util.List<com.liferay.portlet.asset.model.AssetTagStats> findAll(
558                    int start, int end) {
559                    return getPersistence().findAll(start, end);
560            }
561    
562            /**
563            * Returns an ordered range of all the asset tag statses.
564            *
565            * <p>
566            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.asset.model.impl.AssetTagStatsModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
567            * </p>
568            *
569            * @param start the lower bound of the range of asset tag statses
570            * @param end the upper bound of the range of asset tag statses (not inclusive)
571            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
572            * @return the ordered range of asset tag statses
573            */
574            public static java.util.List<com.liferay.portlet.asset.model.AssetTagStats> findAll(
575                    int start, int end,
576                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetTagStats> orderByComparator) {
577                    return getPersistence().findAll(start, end, orderByComparator);
578            }
579    
580            /**
581            * Removes all the asset tag statses from the database.
582            */
583            public static void removeAll() {
584                    getPersistence().removeAll();
585            }
586    
587            /**
588            * Returns the number of asset tag statses.
589            *
590            * @return the number of asset tag statses
591            */
592            public static int countAll() {
593                    return getPersistence().countAll();
594            }
595    
596            public static AssetTagStatsPersistence getPersistence() {
597                    if (_persistence == null) {
598                            _persistence = (AssetTagStatsPersistence)PortalBeanLocatorUtil.locate(AssetTagStatsPersistence.class.getName());
599    
600                            ReferenceRegistry.registerReference(AssetTagStatsUtil.class,
601                                    "_persistence");
602                    }
603    
604                    return _persistence;
605            }
606    
607            /**
608             * @deprecated As of 6.2.0
609             */
610            @Deprecated
611            public void setPersistence(AssetTagStatsPersistence persistence) {
612            }
613    
614            private static AssetTagStatsPersistence _persistence;
615    }