001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.asset.service.persistence;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.service.persistence.BasePersistence;
020    
021    import com.liferay.portlet.asset.model.AssetTagStats;
022    
023    /**
024     * The persistence interface for the asset tag stats service.
025     *
026     * <p>
027     * Caching information and settings can be found in <code>portal.properties</code>
028     * </p>
029     *
030     * @author Brian Wing Shun Chan
031     * @see AssetTagStatsPersistenceImpl
032     * @see AssetTagStatsUtil
033     * @generated
034     */
035    @ProviderType
036    public interface AssetTagStatsPersistence extends BasePersistence<AssetTagStats> {
037            /*
038             * NOTE FOR DEVELOPERS:
039             *
040             * Never modify or reference this interface directly. Always use {@link AssetTagStatsUtil} to access the asset tag stats persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.
041             */
042    
043            /**
044            * Returns all the asset tag statses where tagId = &#63;.
045            *
046            * @param tagId the tag ID
047            * @return the matching asset tag statses
048            * @throws SystemException if a system exception occurred
049            */
050            public java.util.List<com.liferay.portlet.asset.model.AssetTagStats> findByTagId(
051                    long tagId) throws com.liferay.portal.kernel.exception.SystemException;
052    
053            /**
054            * Returns a range of all the asset tag statses where tagId = &#63;.
055            *
056            * <p>
057            * 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.
058            * </p>
059            *
060            * @param tagId the tag ID
061            * @param start the lower bound of the range of asset tag statses
062            * @param end the upper bound of the range of asset tag statses (not inclusive)
063            * @return the range of matching asset tag statses
064            * @throws SystemException if a system exception occurred
065            */
066            public java.util.List<com.liferay.portlet.asset.model.AssetTagStats> findByTagId(
067                    long tagId, int start, int end)
068                    throws com.liferay.portal.kernel.exception.SystemException;
069    
070            /**
071            * Returns an ordered range of all the asset tag statses where tagId = &#63;.
072            *
073            * <p>
074            * 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.
075            * </p>
076            *
077            * @param tagId the tag ID
078            * @param start the lower bound of the range of asset tag statses
079            * @param end the upper bound of the range of asset tag statses (not inclusive)
080            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
081            * @return the ordered range of matching asset tag statses
082            * @throws SystemException if a system exception occurred
083            */
084            public java.util.List<com.liferay.portlet.asset.model.AssetTagStats> findByTagId(
085                    long tagId, int start, int end,
086                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
087                    throws com.liferay.portal.kernel.exception.SystemException;
088    
089            /**
090            * Returns the first asset tag stats in the ordered set where tagId = &#63;.
091            *
092            * @param tagId the tag ID
093            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
094            * @return the first matching asset tag stats
095            * @throws com.liferay.portlet.asset.NoSuchTagStatsException if a matching asset tag stats could not be found
096            * @throws SystemException if a system exception occurred
097            */
098            public com.liferay.portlet.asset.model.AssetTagStats findByTagId_First(
099                    long tagId,
100                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
101                    throws com.liferay.portal.kernel.exception.SystemException,
102                            com.liferay.portlet.asset.NoSuchTagStatsException;
103    
104            /**
105            * Returns the first asset tag stats in the ordered set where tagId = &#63;.
106            *
107            * @param tagId the tag ID
108            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
109            * @return the first matching asset tag stats, or <code>null</code> if a matching asset tag stats could not be found
110            * @throws SystemException if a system exception occurred
111            */
112            public com.liferay.portlet.asset.model.AssetTagStats fetchByTagId_First(
113                    long tagId,
114                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
115                    throws com.liferay.portal.kernel.exception.SystemException;
116    
117            /**
118            * Returns the last asset tag stats in the ordered set where tagId = &#63;.
119            *
120            * @param tagId the tag ID
121            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
122            * @return the last matching asset tag stats
123            * @throws com.liferay.portlet.asset.NoSuchTagStatsException if a matching asset tag stats could not be found
124            * @throws SystemException if a system exception occurred
125            */
126            public com.liferay.portlet.asset.model.AssetTagStats findByTagId_Last(
127                    long tagId,
128                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
129                    throws com.liferay.portal.kernel.exception.SystemException,
130                            com.liferay.portlet.asset.NoSuchTagStatsException;
131    
132            /**
133            * Returns the last asset tag stats in the ordered set where tagId = &#63;.
134            *
135            * @param tagId the tag ID
136            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
137            * @return the last matching asset tag stats, or <code>null</code> if a matching asset tag stats could not be found
138            * @throws SystemException if a system exception occurred
139            */
140            public com.liferay.portlet.asset.model.AssetTagStats fetchByTagId_Last(
141                    long tagId,
142                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
143                    throws com.liferay.portal.kernel.exception.SystemException;
144    
145            /**
146            * Returns the asset tag statses before and after the current asset tag stats in the ordered set where tagId = &#63;.
147            *
148            * @param tagStatsId the primary key of the current asset tag stats
149            * @param tagId the tag ID
150            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
151            * @return the previous, current, and next asset tag stats
152            * @throws com.liferay.portlet.asset.NoSuchTagStatsException if a asset tag stats with the primary key could not be found
153            * @throws SystemException if a system exception occurred
154            */
155            public com.liferay.portlet.asset.model.AssetTagStats[] findByTagId_PrevAndNext(
156                    long tagStatsId, long tagId,
157                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
158                    throws com.liferay.portal.kernel.exception.SystemException,
159                            com.liferay.portlet.asset.NoSuchTagStatsException;
160    
161            /**
162            * Removes all the asset tag statses where tagId = &#63; from the database.
163            *
164            * @param tagId the tag ID
165            * @throws SystemException if a system exception occurred
166            */
167            public void removeByTagId(long tagId)
168                    throws com.liferay.portal.kernel.exception.SystemException;
169    
170            /**
171            * Returns the number of asset tag statses where tagId = &#63;.
172            *
173            * @param tagId the tag ID
174            * @return the number of matching asset tag statses
175            * @throws SystemException if a system exception occurred
176            */
177            public int countByTagId(long tagId)
178                    throws com.liferay.portal.kernel.exception.SystemException;
179    
180            /**
181            * Returns all the asset tag statses where classNameId = &#63;.
182            *
183            * @param classNameId the class name ID
184            * @return the matching asset tag statses
185            * @throws SystemException if a system exception occurred
186            */
187            public java.util.List<com.liferay.portlet.asset.model.AssetTagStats> findByClassNameId(
188                    long classNameId)
189                    throws com.liferay.portal.kernel.exception.SystemException;
190    
191            /**
192            * Returns a range of all the asset tag statses where classNameId = &#63;.
193            *
194            * <p>
195            * 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.
196            * </p>
197            *
198            * @param classNameId the class name ID
199            * @param start the lower bound of the range of asset tag statses
200            * @param end the upper bound of the range of asset tag statses (not inclusive)
201            * @return the range of matching asset tag statses
202            * @throws SystemException if a system exception occurred
203            */
204            public java.util.List<com.liferay.portlet.asset.model.AssetTagStats> findByClassNameId(
205                    long classNameId, int start, int end)
206                    throws com.liferay.portal.kernel.exception.SystemException;
207    
208            /**
209            * Returns an ordered range of all the asset tag statses where classNameId = &#63;.
210            *
211            * <p>
212            * 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.
213            * </p>
214            *
215            * @param classNameId the class name ID
216            * @param start the lower bound of the range of asset tag statses
217            * @param end the upper bound of the range of asset tag statses (not inclusive)
218            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
219            * @return the ordered range of matching asset tag statses
220            * @throws SystemException if a system exception occurred
221            */
222            public java.util.List<com.liferay.portlet.asset.model.AssetTagStats> findByClassNameId(
223                    long classNameId, int start, int end,
224                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
225                    throws com.liferay.portal.kernel.exception.SystemException;
226    
227            /**
228            * Returns the first asset tag stats in the ordered set where classNameId = &#63;.
229            *
230            * @param classNameId the class name ID
231            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
232            * @return the first matching asset tag stats
233            * @throws com.liferay.portlet.asset.NoSuchTagStatsException if a matching asset tag stats could not be found
234            * @throws SystemException if a system exception occurred
235            */
236            public com.liferay.portlet.asset.model.AssetTagStats findByClassNameId_First(
237                    long classNameId,
238                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
239                    throws com.liferay.portal.kernel.exception.SystemException,
240                            com.liferay.portlet.asset.NoSuchTagStatsException;
241    
242            /**
243            * Returns the first asset tag stats in the ordered set where classNameId = &#63;.
244            *
245            * @param classNameId the class name ID
246            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
247            * @return the first matching asset tag stats, or <code>null</code> if a matching asset tag stats could not be found
248            * @throws SystemException if a system exception occurred
249            */
250            public com.liferay.portlet.asset.model.AssetTagStats fetchByClassNameId_First(
251                    long classNameId,
252                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
253                    throws com.liferay.portal.kernel.exception.SystemException;
254    
255            /**
256            * Returns the last asset tag stats in the ordered set where classNameId = &#63;.
257            *
258            * @param classNameId the class name ID
259            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
260            * @return the last matching asset tag stats
261            * @throws com.liferay.portlet.asset.NoSuchTagStatsException if a matching asset tag stats could not be found
262            * @throws SystemException if a system exception occurred
263            */
264            public com.liferay.portlet.asset.model.AssetTagStats findByClassNameId_Last(
265                    long classNameId,
266                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
267                    throws com.liferay.portal.kernel.exception.SystemException,
268                            com.liferay.portlet.asset.NoSuchTagStatsException;
269    
270            /**
271            * Returns the last asset tag stats in the ordered set where classNameId = &#63;.
272            *
273            * @param classNameId the class name ID
274            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
275            * @return the last matching asset tag stats, or <code>null</code> if a matching asset tag stats could not be found
276            * @throws SystemException if a system exception occurred
277            */
278            public com.liferay.portlet.asset.model.AssetTagStats fetchByClassNameId_Last(
279                    long classNameId,
280                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
281                    throws com.liferay.portal.kernel.exception.SystemException;
282    
283            /**
284            * Returns the asset tag statses before and after the current asset tag stats in the ordered set where classNameId = &#63;.
285            *
286            * @param tagStatsId the primary key of the current asset tag stats
287            * @param classNameId the class name ID
288            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
289            * @return the previous, current, and next asset tag stats
290            * @throws com.liferay.portlet.asset.NoSuchTagStatsException if a asset tag stats with the primary key could not be found
291            * @throws SystemException if a system exception occurred
292            */
293            public com.liferay.portlet.asset.model.AssetTagStats[] findByClassNameId_PrevAndNext(
294                    long tagStatsId, long classNameId,
295                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
296                    throws com.liferay.portal.kernel.exception.SystemException,
297                            com.liferay.portlet.asset.NoSuchTagStatsException;
298    
299            /**
300            * Removes all the asset tag statses where classNameId = &#63; from the database.
301            *
302            * @param classNameId the class name ID
303            * @throws SystemException if a system exception occurred
304            */
305            public void removeByClassNameId(long classNameId)
306                    throws com.liferay.portal.kernel.exception.SystemException;
307    
308            /**
309            * Returns the number of asset tag statses where classNameId = &#63;.
310            *
311            * @param classNameId the class name ID
312            * @return the number of matching asset tag statses
313            * @throws SystemException if a system exception occurred
314            */
315            public int countByClassNameId(long classNameId)
316                    throws com.liferay.portal.kernel.exception.SystemException;
317    
318            /**
319            * 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.
320            *
321            * @param tagId the tag ID
322            * @param classNameId the class name ID
323            * @return the matching asset tag stats
324            * @throws com.liferay.portlet.asset.NoSuchTagStatsException if a matching asset tag stats could not be found
325            * @throws SystemException if a system exception occurred
326            */
327            public com.liferay.portlet.asset.model.AssetTagStats findByT_C(long tagId,
328                    long classNameId)
329                    throws com.liferay.portal.kernel.exception.SystemException,
330                            com.liferay.portlet.asset.NoSuchTagStatsException;
331    
332            /**
333            * 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.
334            *
335            * @param tagId the tag ID
336            * @param classNameId the class name ID
337            * @return the matching asset tag stats, or <code>null</code> if a matching asset tag stats could not be found
338            * @throws SystemException if a system exception occurred
339            */
340            public com.liferay.portlet.asset.model.AssetTagStats fetchByT_C(
341                    long tagId, long classNameId)
342                    throws com.liferay.portal.kernel.exception.SystemException;
343    
344            /**
345            * 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.
346            *
347            * @param tagId the tag ID
348            * @param classNameId the class name ID
349            * @param retrieveFromCache whether to use the finder cache
350            * @return the matching asset tag stats, or <code>null</code> if a matching asset tag stats could not be found
351            * @throws SystemException if a system exception occurred
352            */
353            public com.liferay.portlet.asset.model.AssetTagStats fetchByT_C(
354                    long tagId, long classNameId, boolean retrieveFromCache)
355                    throws com.liferay.portal.kernel.exception.SystemException;
356    
357            /**
358            * Removes the asset tag stats where tagId = &#63; and classNameId = &#63; from the database.
359            *
360            * @param tagId the tag ID
361            * @param classNameId the class name ID
362            * @return the asset tag stats that was removed
363            * @throws SystemException if a system exception occurred
364            */
365            public com.liferay.portlet.asset.model.AssetTagStats removeByT_C(
366                    long tagId, long classNameId)
367                    throws com.liferay.portal.kernel.exception.SystemException,
368                            com.liferay.portlet.asset.NoSuchTagStatsException;
369    
370            /**
371            * Returns the number of asset tag statses where tagId = &#63; and classNameId = &#63;.
372            *
373            * @param tagId the tag ID
374            * @param classNameId the class name ID
375            * @return the number of matching asset tag statses
376            * @throws SystemException if a system exception occurred
377            */
378            public int countByT_C(long tagId, long classNameId)
379                    throws com.liferay.portal.kernel.exception.SystemException;
380    
381            /**
382            * Caches the asset tag stats in the entity cache if it is enabled.
383            *
384            * @param assetTagStats the asset tag stats
385            */
386            public void cacheResult(
387                    com.liferay.portlet.asset.model.AssetTagStats assetTagStats);
388    
389            /**
390            * Caches the asset tag statses in the entity cache if it is enabled.
391            *
392            * @param assetTagStatses the asset tag statses
393            */
394            public void cacheResult(
395                    java.util.List<com.liferay.portlet.asset.model.AssetTagStats> assetTagStatses);
396    
397            /**
398            * Creates a new asset tag stats with the primary key. Does not add the asset tag stats to the database.
399            *
400            * @param tagStatsId the primary key for the new asset tag stats
401            * @return the new asset tag stats
402            */
403            public com.liferay.portlet.asset.model.AssetTagStats create(long tagStatsId);
404    
405            /**
406            * Removes the asset tag stats with the primary key from the database. Also notifies the appropriate model listeners.
407            *
408            * @param tagStatsId the primary key of the asset tag stats
409            * @return the asset tag stats that was removed
410            * @throws com.liferay.portlet.asset.NoSuchTagStatsException if a asset tag stats with the primary key could not be found
411            * @throws SystemException if a system exception occurred
412            */
413            public com.liferay.portlet.asset.model.AssetTagStats remove(long tagStatsId)
414                    throws com.liferay.portal.kernel.exception.SystemException,
415                            com.liferay.portlet.asset.NoSuchTagStatsException;
416    
417            public com.liferay.portlet.asset.model.AssetTagStats updateImpl(
418                    com.liferay.portlet.asset.model.AssetTagStats assetTagStats)
419                    throws com.liferay.portal.kernel.exception.SystemException;
420    
421            /**
422            * Returns the asset tag stats with the primary key or throws a {@link com.liferay.portlet.asset.NoSuchTagStatsException} if it could not be found.
423            *
424            * @param tagStatsId the primary key of the asset tag stats
425            * @return the asset tag stats
426            * @throws com.liferay.portlet.asset.NoSuchTagStatsException if a asset tag stats with the primary key could not be found
427            * @throws SystemException if a system exception occurred
428            */
429            public com.liferay.portlet.asset.model.AssetTagStats findByPrimaryKey(
430                    long tagStatsId)
431                    throws com.liferay.portal.kernel.exception.SystemException,
432                            com.liferay.portlet.asset.NoSuchTagStatsException;
433    
434            /**
435            * Returns the asset tag stats with the primary key or returns <code>null</code> if it could not be found.
436            *
437            * @param tagStatsId the primary key of the asset tag stats
438            * @return the asset tag stats, or <code>null</code> if a asset tag stats with the primary key could not be found
439            * @throws SystemException if a system exception occurred
440            */
441            public com.liferay.portlet.asset.model.AssetTagStats fetchByPrimaryKey(
442                    long tagStatsId)
443                    throws com.liferay.portal.kernel.exception.SystemException;
444    
445            /**
446            * Returns all the asset tag statses.
447            *
448            * @return the asset tag statses
449            * @throws SystemException if a system exception occurred
450            */
451            public java.util.List<com.liferay.portlet.asset.model.AssetTagStats> findAll()
452                    throws com.liferay.portal.kernel.exception.SystemException;
453    
454            /**
455            * Returns a range of all the asset tag statses.
456            *
457            * <p>
458            * 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.
459            * </p>
460            *
461            * @param start the lower bound of the range of asset tag statses
462            * @param end the upper bound of the range of asset tag statses (not inclusive)
463            * @return the range of asset tag statses
464            * @throws SystemException if a system exception occurred
465            */
466            public java.util.List<com.liferay.portlet.asset.model.AssetTagStats> findAll(
467                    int start, int end)
468                    throws com.liferay.portal.kernel.exception.SystemException;
469    
470            /**
471            * Returns an ordered range of all the asset tag statses.
472            *
473            * <p>
474            * 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.
475            * </p>
476            *
477            * @param start the lower bound of the range of asset tag statses
478            * @param end the upper bound of the range of asset tag statses (not inclusive)
479            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
480            * @return the ordered range of asset tag statses
481            * @throws SystemException if a system exception occurred
482            */
483            public java.util.List<com.liferay.portlet.asset.model.AssetTagStats> findAll(
484                    int start, int end,
485                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
486                    throws com.liferay.portal.kernel.exception.SystemException;
487    
488            /**
489            * Removes all the asset tag statses from the database.
490            *
491            * @throws SystemException if a system exception occurred
492            */
493            public void removeAll()
494                    throws com.liferay.portal.kernel.exception.SystemException;
495    
496            /**
497            * Returns the number of asset tag statses.
498            *
499            * @return the number of asset tag statses
500            * @throws SystemException if a system exception occurred
501            */
502            public int countAll()
503                    throws com.liferay.portal.kernel.exception.SystemException;
504    }