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                    throws com.liferay.portal.kernel.exception.SystemException;
079    
080            /**
081            * Returns the asset tag stats with the primary key or throws a {@link com.liferay.portlet.asset.NoSuchTagStatsException} if it could not be found.
082            *
083            * @param tagStatsId the primary key of the asset tag stats
084            * @return the asset tag stats
085            * @throws com.liferay.portlet.asset.NoSuchTagStatsException if a asset tag stats with the primary key could not be found
086            * @throws SystemException if a system exception occurred
087            */
088            public com.liferay.portlet.asset.model.AssetTagStats findByPrimaryKey(
089                    long tagStatsId)
090                    throws com.liferay.portal.kernel.exception.SystemException,
091                            com.liferay.portlet.asset.NoSuchTagStatsException;
092    
093            /**
094            * Returns the asset tag stats with the primary key or returns <code>null</code> if it could not be found.
095            *
096            * @param tagStatsId the primary key of the asset tag stats
097            * @return the asset tag stats, or <code>null</code> if a asset tag stats with the primary key could not be found
098            * @throws SystemException if a system exception occurred
099            */
100            public com.liferay.portlet.asset.model.AssetTagStats fetchByPrimaryKey(
101                    long tagStatsId)
102                    throws com.liferay.portal.kernel.exception.SystemException;
103    
104            /**
105            * Returns all the asset tag statses where tagId = &#63;.
106            *
107            * @param tagId the tag ID
108            * @return the matching asset tag statses
109            * @throws SystemException if a system exception occurred
110            */
111            public java.util.List<com.liferay.portlet.asset.model.AssetTagStats> findByTagId(
112                    long tagId) throws com.liferay.portal.kernel.exception.SystemException;
113    
114            /**
115            * Returns a range of all the asset tag statses where tagId = &#63;.
116            *
117            * <p>
118            * 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.
119            * </p>
120            *
121            * @param tagId the tag ID
122            * @param start the lower bound of the range of asset tag statses
123            * @param end the upper bound of the range of asset tag statses (not inclusive)
124            * @return the range of matching asset tag statses
125            * @throws SystemException if a system exception occurred
126            */
127            public java.util.List<com.liferay.portlet.asset.model.AssetTagStats> findByTagId(
128                    long tagId, int start, int end)
129                    throws com.liferay.portal.kernel.exception.SystemException;
130    
131            /**
132            * Returns an ordered range of all the asset tag statses where tagId = &#63;.
133            *
134            * <p>
135            * 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.
136            * </p>
137            *
138            * @param tagId the tag ID
139            * @param start the lower bound of the range of asset tag statses
140            * @param end the upper bound of the range of asset tag statses (not inclusive)
141            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
142            * @return the ordered range of matching asset tag statses
143            * @throws SystemException if a system exception occurred
144            */
145            public java.util.List<com.liferay.portlet.asset.model.AssetTagStats> findByTagId(
146                    long tagId, int start, int end,
147                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
148                    throws com.liferay.portal.kernel.exception.SystemException;
149    
150            /**
151            * Returns the first asset tag stats in the ordered set where tagId = &#63;.
152            *
153            * @param tagId the tag ID
154            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
155            * @return the first matching asset tag stats
156            * @throws com.liferay.portlet.asset.NoSuchTagStatsException if a matching asset tag stats could not be found
157            * @throws SystemException if a system exception occurred
158            */
159            public com.liferay.portlet.asset.model.AssetTagStats findByTagId_First(
160                    long tagId,
161                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
162                    throws com.liferay.portal.kernel.exception.SystemException,
163                            com.liferay.portlet.asset.NoSuchTagStatsException;
164    
165            /**
166            * Returns the first asset tag stats in the ordered set where tagId = &#63;.
167            *
168            * @param tagId the tag ID
169            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
170            * @return the first matching asset tag stats, or <code>null</code> if a matching asset tag stats could not be found
171            * @throws SystemException if a system exception occurred
172            */
173            public com.liferay.portlet.asset.model.AssetTagStats fetchByTagId_First(
174                    long tagId,
175                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
176                    throws com.liferay.portal.kernel.exception.SystemException;
177    
178            /**
179            * Returns the last asset tag stats in the ordered set where tagId = &#63;.
180            *
181            * @param tagId the tag ID
182            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
183            * @return the last matching asset tag stats
184            * @throws com.liferay.portlet.asset.NoSuchTagStatsException if a matching asset tag stats could not be found
185            * @throws SystemException if a system exception occurred
186            */
187            public com.liferay.portlet.asset.model.AssetTagStats findByTagId_Last(
188                    long tagId,
189                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
190                    throws com.liferay.portal.kernel.exception.SystemException,
191                            com.liferay.portlet.asset.NoSuchTagStatsException;
192    
193            /**
194            * Returns the last asset tag stats in the ordered set where tagId = &#63;.
195            *
196            * @param tagId the tag ID
197            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
198            * @return the last matching asset tag stats, or <code>null</code> if a matching asset tag stats could not be found
199            * @throws SystemException if a system exception occurred
200            */
201            public com.liferay.portlet.asset.model.AssetTagStats fetchByTagId_Last(
202                    long tagId,
203                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
204                    throws com.liferay.portal.kernel.exception.SystemException;
205    
206            /**
207            * Returns the asset tag statses before and after the current asset tag stats in the ordered set where tagId = &#63;.
208            *
209            * @param tagStatsId the primary key of the current asset tag stats
210            * @param tagId the tag ID
211            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
212            * @return the previous, current, and next asset tag stats
213            * @throws com.liferay.portlet.asset.NoSuchTagStatsException if a asset tag stats with the primary key could not be found
214            * @throws SystemException if a system exception occurred
215            */
216            public com.liferay.portlet.asset.model.AssetTagStats[] findByTagId_PrevAndNext(
217                    long tagStatsId, long tagId,
218                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
219                    throws com.liferay.portal.kernel.exception.SystemException,
220                            com.liferay.portlet.asset.NoSuchTagStatsException;
221    
222            /**
223            * Returns all the asset tag statses where classNameId = &#63;.
224            *
225            * @param classNameId the class name ID
226            * @return the matching asset tag statses
227            * @throws SystemException if a system exception occurred
228            */
229            public java.util.List<com.liferay.portlet.asset.model.AssetTagStats> findByClassNameId(
230                    long classNameId)
231                    throws com.liferay.portal.kernel.exception.SystemException;
232    
233            /**
234            * Returns a range of all the asset tag statses where classNameId = &#63;.
235            *
236            * <p>
237            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
238            * </p>
239            *
240            * @param classNameId the class name ID
241            * @param start the lower bound of the range of asset tag statses
242            * @param end the upper bound of the range of asset tag statses (not inclusive)
243            * @return the range of matching asset tag statses
244            * @throws SystemException if a system exception occurred
245            */
246            public java.util.List<com.liferay.portlet.asset.model.AssetTagStats> findByClassNameId(
247                    long classNameId, int start, int end)
248                    throws com.liferay.portal.kernel.exception.SystemException;
249    
250            /**
251            * Returns an ordered range of all the asset tag statses where classNameId = &#63;.
252            *
253            * <p>
254            * 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.
255            * </p>
256            *
257            * @param classNameId the class name ID
258            * @param start the lower bound of the range of asset tag statses
259            * @param end the upper bound of the range of asset tag statses (not inclusive)
260            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
261            * @return the ordered range of matching asset tag statses
262            * @throws SystemException if a system exception occurred
263            */
264            public java.util.List<com.liferay.portlet.asset.model.AssetTagStats> findByClassNameId(
265                    long classNameId, int start, int end,
266                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
267                    throws com.liferay.portal.kernel.exception.SystemException;
268    
269            /**
270            * Returns the first asset tag stats in the ordered set where classNameId = &#63;.
271            *
272            * @param classNameId the class name ID
273            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
274            * @return the first matching asset tag stats
275            * @throws com.liferay.portlet.asset.NoSuchTagStatsException 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 findByClassNameId_First(
279                    long classNameId,
280                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
281                    throws com.liferay.portal.kernel.exception.SystemException,
282                            com.liferay.portlet.asset.NoSuchTagStatsException;
283    
284            /**
285            * Returns the first asset tag stats in the ordered set where classNameId = &#63;.
286            *
287            * @param classNameId the class name ID
288            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
289            * @return the first matching asset tag stats, or <code>null</code> if a matching asset tag stats could not be found
290            * @throws SystemException if a system exception occurred
291            */
292            public com.liferay.portlet.asset.model.AssetTagStats fetchByClassNameId_First(
293                    long classNameId,
294                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
295                    throws com.liferay.portal.kernel.exception.SystemException;
296    
297            /**
298            * Returns the last asset tag stats in the ordered set where classNameId = &#63;.
299            *
300            * @param classNameId the class name ID
301            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
302            * @return the last matching asset tag stats
303            * @throws com.liferay.portlet.asset.NoSuchTagStatsException if a matching asset tag stats could not be found
304            * @throws SystemException if a system exception occurred
305            */
306            public com.liferay.portlet.asset.model.AssetTagStats findByClassNameId_Last(
307                    long classNameId,
308                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
309                    throws com.liferay.portal.kernel.exception.SystemException,
310                            com.liferay.portlet.asset.NoSuchTagStatsException;
311    
312            /**
313            * Returns the last asset tag stats in the ordered set where classNameId = &#63;.
314            *
315            * @param classNameId the class name ID
316            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
317            * @return the last matching asset tag stats, or <code>null</code> if a matching asset tag stats could not be found
318            * @throws SystemException if a system exception occurred
319            */
320            public com.liferay.portlet.asset.model.AssetTagStats fetchByClassNameId_Last(
321                    long classNameId,
322                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
323                    throws com.liferay.portal.kernel.exception.SystemException;
324    
325            /**
326            * Returns the asset tag statses before and after the current asset tag stats in the ordered set where classNameId = &#63;.
327            *
328            * @param tagStatsId the primary key of the current asset tag stats
329            * @param classNameId the class name ID
330            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
331            * @return the previous, current, and next asset tag stats
332            * @throws com.liferay.portlet.asset.NoSuchTagStatsException if a asset tag stats with the primary key could not be found
333            * @throws SystemException if a system exception occurred
334            */
335            public com.liferay.portlet.asset.model.AssetTagStats[] findByClassNameId_PrevAndNext(
336                    long tagStatsId, long classNameId,
337                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
338                    throws com.liferay.portal.kernel.exception.SystemException,
339                            com.liferay.portlet.asset.NoSuchTagStatsException;
340    
341            /**
342            * 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.
343            *
344            * @param tagId the tag ID
345            * @param classNameId the class name ID
346            * @return the matching asset tag stats
347            * @throws com.liferay.portlet.asset.NoSuchTagStatsException if a matching asset tag stats could not be found
348            * @throws SystemException if a system exception occurred
349            */
350            public com.liferay.portlet.asset.model.AssetTagStats findByT_C(long tagId,
351                    long classNameId)
352                    throws com.liferay.portal.kernel.exception.SystemException,
353                            com.liferay.portlet.asset.NoSuchTagStatsException;
354    
355            /**
356            * 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.
357            *
358            * @param tagId the tag ID
359            * @param classNameId the class name ID
360            * @return the matching asset tag stats, or <code>null</code> if a matching asset tag stats could not be found
361            * @throws SystemException if a system exception occurred
362            */
363            public com.liferay.portlet.asset.model.AssetTagStats fetchByT_C(
364                    long tagId, long classNameId)
365                    throws com.liferay.portal.kernel.exception.SystemException;
366    
367            /**
368            * 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.
369            *
370            * @param tagId the tag ID
371            * @param classNameId the class name ID
372            * @param retrieveFromCache whether to use the finder cache
373            * @return the matching asset tag stats, or <code>null</code> if a matching asset tag stats could not be found
374            * @throws SystemException if a system exception occurred
375            */
376            public com.liferay.portlet.asset.model.AssetTagStats fetchByT_C(
377                    long tagId, long classNameId, boolean retrieveFromCache)
378                    throws com.liferay.portal.kernel.exception.SystemException;
379    
380            /**
381            * Returns all the asset tag statses.
382            *
383            * @return the asset tag statses
384            * @throws SystemException if a system exception occurred
385            */
386            public java.util.List<com.liferay.portlet.asset.model.AssetTagStats> findAll()
387                    throws com.liferay.portal.kernel.exception.SystemException;
388    
389            /**
390            * Returns a range of all the asset tag statses.
391            *
392            * <p>
393            * 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.
394            * </p>
395            *
396            * @param start the lower bound of the range of asset tag statses
397            * @param end the upper bound of the range of asset tag statses (not inclusive)
398            * @return the range of asset tag statses
399            * @throws SystemException if a system exception occurred
400            */
401            public java.util.List<com.liferay.portlet.asset.model.AssetTagStats> findAll(
402                    int start, int end)
403                    throws com.liferay.portal.kernel.exception.SystemException;
404    
405            /**
406            * Returns an ordered range of all the asset tag statses.
407            *
408            * <p>
409            * 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.
410            * </p>
411            *
412            * @param start the lower bound of the range of asset tag statses
413            * @param end the upper bound of the range of asset tag statses (not inclusive)
414            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
415            * @return the ordered range of asset tag statses
416            * @throws SystemException if a system exception occurred
417            */
418            public java.util.List<com.liferay.portlet.asset.model.AssetTagStats> findAll(
419                    int start, int end,
420                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
421                    throws com.liferay.portal.kernel.exception.SystemException;
422    
423            /**
424            * Removes all the asset tag statses where tagId = &#63; from the database.
425            *
426            * @param tagId the tag ID
427            * @throws SystemException if a system exception occurred
428            */
429            public void removeByTagId(long tagId)
430                    throws com.liferay.portal.kernel.exception.SystemException;
431    
432            /**
433            * Removes all the asset tag statses where classNameId = &#63; from the database.
434            *
435            * @param classNameId the class name ID
436            * @throws SystemException if a system exception occurred
437            */
438            public void removeByClassNameId(long classNameId)
439                    throws com.liferay.portal.kernel.exception.SystemException;
440    
441            /**
442            * Removes the asset tag stats where tagId = &#63; and classNameId = &#63; from the database.
443            *
444            * @param tagId the tag ID
445            * @param classNameId the class name ID
446            * @return the asset tag stats that was removed
447            * @throws SystemException if a system exception occurred
448            */
449            public com.liferay.portlet.asset.model.AssetTagStats removeByT_C(
450                    long tagId, long classNameId)
451                    throws com.liferay.portal.kernel.exception.SystemException,
452                            com.liferay.portlet.asset.NoSuchTagStatsException;
453    
454            /**
455            * Removes all the asset tag statses from the database.
456            *
457            * @throws SystemException if a system exception occurred
458            */
459            public void removeAll()
460                    throws com.liferay.portal.kernel.exception.SystemException;
461    
462            /**
463            * Returns the number of asset tag statses where tagId = &#63;.
464            *
465            * @param tagId the tag ID
466            * @return the number of matching asset tag statses
467            * @throws SystemException if a system exception occurred
468            */
469            public int countByTagId(long tagId)
470                    throws com.liferay.portal.kernel.exception.SystemException;
471    
472            /**
473            * Returns the number of asset tag statses where classNameId = &#63;.
474            *
475            * @param classNameId the class name ID
476            * @return the number of matching asset tag statses
477            * @throws SystemException if a system exception occurred
478            */
479            public int countByClassNameId(long classNameId)
480                    throws com.liferay.portal.kernel.exception.SystemException;
481    
482            /**
483            * Returns the number of asset tag statses where tagId = &#63; and classNameId = &#63;.
484            *
485            * @param tagId the tag ID
486            * @param classNameId the class name ID
487            * @return the number of matching asset tag statses
488            * @throws SystemException if a system exception occurred
489            */
490            public int countByT_C(long tagId, long classNameId)
491                    throws com.liferay.portal.kernel.exception.SystemException;
492    
493            /**
494            * Returns the number of asset tag statses.
495            *
496            * @return the number of asset tag statses
497            * @throws SystemException if a system exception occurred
498            */
499            public int countAll()
500                    throws com.liferay.portal.kernel.exception.SystemException;
501    }