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