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