001    /**
002     * Copyright (c) 2000-2010 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.AssetTagProperty;
020    
021    /**
022     * The persistence interface for the asset tag property service.
023     *
024     * <p>
025     * Never modify this interface directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regnerate this interface.
026     * </p>
027     *
028     * @author Brian Wing Shun Chan
029     * @see AssetTagPropertyPersistenceImpl
030     * @see AssetTagPropertyUtil
031     * @generated
032     */
033    public interface AssetTagPropertyPersistence extends BasePersistence<AssetTagProperty> {
034            /**
035            * Caches the asset tag property in the entity cache if it is enabled.
036            *
037            * @param assetTagProperty the asset tag property to cache
038            */
039            public void cacheResult(
040                    com.liferay.portlet.asset.model.AssetTagProperty assetTagProperty);
041    
042            /**
043            * Caches the asset tag properties in the entity cache if it is enabled.
044            *
045            * @param assetTagProperties the asset tag properties to cache
046            */
047            public void cacheResult(
048                    java.util.List<com.liferay.portlet.asset.model.AssetTagProperty> assetTagProperties);
049    
050            /**
051            * Creates a new asset tag property with the primary key.
052            *
053            * @param tagPropertyId the primary key for the new asset tag property
054            * @return the new asset tag property
055            */
056            public com.liferay.portlet.asset.model.AssetTagProperty create(
057                    long tagPropertyId);
058    
059            /**
060            * Removes the asset tag property with the primary key from the database. Also notifies the appropriate model listeners.
061            *
062            * @param tagPropertyId the primary key of the asset tag property to remove
063            * @return the asset tag property that was removed
064            * @throws com.liferay.portlet.asset.NoSuchTagPropertyException if a asset tag property with the primary key could not be found
065            * @throws SystemException if a system exception occurred
066            */
067            public com.liferay.portlet.asset.model.AssetTagProperty remove(
068                    long tagPropertyId)
069                    throws com.liferay.portal.kernel.exception.SystemException,
070                            com.liferay.portlet.asset.NoSuchTagPropertyException;
071    
072            public com.liferay.portlet.asset.model.AssetTagProperty updateImpl(
073                    com.liferay.portlet.asset.model.AssetTagProperty assetTagProperty,
074                    boolean merge)
075                    throws com.liferay.portal.kernel.exception.SystemException;
076    
077            /**
078            * Finds the asset tag property with the primary key or throws a {@link com.liferay.portlet.asset.NoSuchTagPropertyException} if it could not be found.
079            *
080            * @param tagPropertyId the primary key of the asset tag property to find
081            * @return the asset tag property
082            * @throws com.liferay.portlet.asset.NoSuchTagPropertyException if a asset tag property with the primary key could not be found
083            * @throws SystemException if a system exception occurred
084            */
085            public com.liferay.portlet.asset.model.AssetTagProperty findByPrimaryKey(
086                    long tagPropertyId)
087                    throws com.liferay.portal.kernel.exception.SystemException,
088                            com.liferay.portlet.asset.NoSuchTagPropertyException;
089    
090            /**
091            * Finds the asset tag property with the primary key or returns <code>null</code> if it could not be found.
092            *
093            * @param tagPropertyId the primary key of the asset tag property to find
094            * @return the asset tag property, or <code>null</code> if a asset tag property with the primary key could not be found
095            * @throws SystemException if a system exception occurred
096            */
097            public com.liferay.portlet.asset.model.AssetTagProperty fetchByPrimaryKey(
098                    long tagPropertyId)
099                    throws com.liferay.portal.kernel.exception.SystemException;
100    
101            /**
102            * Finds all the asset tag properties where companyId = &#63;.
103            *
104            * @param companyId the company id to search with
105            * @return the matching asset tag properties
106            * @throws SystemException if a system exception occurred
107            */
108            public java.util.List<com.liferay.portlet.asset.model.AssetTagProperty> findByCompanyId(
109                    long companyId)
110                    throws com.liferay.portal.kernel.exception.SystemException;
111    
112            /**
113            * Finds a range of all the asset tag properties where companyId = &#63;.
114            *
115            * <p>
116            * 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.
117            * </p>
118            *
119            * @param companyId the company id to search with
120            * @param start the lower bound of the range of asset tag properties to return
121            * @param end the upper bound of the range of asset tag properties to return (not inclusive)
122            * @return the range of matching asset tag properties
123            * @throws SystemException if a system exception occurred
124            */
125            public java.util.List<com.liferay.portlet.asset.model.AssetTagProperty> findByCompanyId(
126                    long companyId, int start, int end)
127                    throws com.liferay.portal.kernel.exception.SystemException;
128    
129            /**
130            * Finds an ordered range of all the asset tag properties where companyId = &#63;.
131            *
132            * <p>
133            * 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.
134            * </p>
135            *
136            * @param companyId the company id to search with
137            * @param start the lower bound of the range of asset tag properties to return
138            * @param end the upper bound of the range of asset tag properties to return (not inclusive)
139            * @param orderByComparator the comparator to order the results by
140            * @return the ordered range of matching asset tag properties
141            * @throws SystemException if a system exception occurred
142            */
143            public java.util.List<com.liferay.portlet.asset.model.AssetTagProperty> findByCompanyId(
144                    long companyId, int start, int end,
145                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
146                    throws com.liferay.portal.kernel.exception.SystemException;
147    
148            /**
149            * Finds the first asset tag property in the ordered set where companyId = &#63;.
150            *
151            * <p>
152            * 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.
153            * </p>
154            *
155            * @param companyId the company id to search with
156            * @param orderByComparator the comparator to order the set by
157            * @return the first matching asset tag property
158            * @throws com.liferay.portlet.asset.NoSuchTagPropertyException if a matching asset tag property could not be found
159            * @throws SystemException if a system exception occurred
160            */
161            public com.liferay.portlet.asset.model.AssetTagProperty findByCompanyId_First(
162                    long companyId,
163                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
164                    throws com.liferay.portal.kernel.exception.SystemException,
165                            com.liferay.portlet.asset.NoSuchTagPropertyException;
166    
167            /**
168            * Finds the last asset tag property in the ordered set where companyId = &#63;.
169            *
170            * <p>
171            * 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.
172            * </p>
173            *
174            * @param companyId the company id to search with
175            * @param orderByComparator the comparator to order the set by
176            * @return the last matching asset tag property
177            * @throws com.liferay.portlet.asset.NoSuchTagPropertyException if a matching asset tag property could not be found
178            * @throws SystemException if a system exception occurred
179            */
180            public com.liferay.portlet.asset.model.AssetTagProperty findByCompanyId_Last(
181                    long companyId,
182                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
183                    throws com.liferay.portal.kernel.exception.SystemException,
184                            com.liferay.portlet.asset.NoSuchTagPropertyException;
185    
186            /**
187            * Finds the asset tag properties before and after the current asset tag property in the ordered set where companyId = &#63;.
188            *
189            * <p>
190            * 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.
191            * </p>
192            *
193            * @param tagPropertyId the primary key of the current asset tag property
194            * @param companyId the company id to search with
195            * @param orderByComparator the comparator to order the set by
196            * @return the previous, current, and next asset tag property
197            * @throws com.liferay.portlet.asset.NoSuchTagPropertyException if a asset tag property with the primary key could not be found
198            * @throws SystemException if a system exception occurred
199            */
200            public com.liferay.portlet.asset.model.AssetTagProperty[] findByCompanyId_PrevAndNext(
201                    long tagPropertyId, long companyId,
202                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
203                    throws com.liferay.portal.kernel.exception.SystemException,
204                            com.liferay.portlet.asset.NoSuchTagPropertyException;
205    
206            /**
207            * Finds all the asset tag properties where tagId = &#63;.
208            *
209            * @param tagId the tag id to search with
210            * @return the matching asset tag properties
211            * @throws SystemException if a system exception occurred
212            */
213            public java.util.List<com.liferay.portlet.asset.model.AssetTagProperty> findByTagId(
214                    long tagId) throws com.liferay.portal.kernel.exception.SystemException;
215    
216            /**
217            * Finds a range of all the asset tag properties where tagId = &#63;.
218            *
219            * <p>
220            * 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.
221            * </p>
222            *
223            * @param tagId the tag id to search with
224            * @param start the lower bound of the range of asset tag properties to return
225            * @param end the upper bound of the range of asset tag properties to return (not inclusive)
226            * @return the range of matching asset tag properties
227            * @throws SystemException if a system exception occurred
228            */
229            public java.util.List<com.liferay.portlet.asset.model.AssetTagProperty> findByTagId(
230                    long tagId, int start, int end)
231                    throws com.liferay.portal.kernel.exception.SystemException;
232    
233            /**
234            * Finds an ordered range of all the asset tag properties where tagId = &#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 tagId the tag id to search with
241            * @param start the lower bound of the range of asset tag properties to return
242            * @param end the upper bound of the range of asset tag properties to return (not inclusive)
243            * @param orderByComparator the comparator to order the results by
244            * @return the ordered range of matching asset tag properties
245            * @throws SystemException if a system exception occurred
246            */
247            public java.util.List<com.liferay.portlet.asset.model.AssetTagProperty> findByTagId(
248                    long tagId, int start, int end,
249                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
250                    throws com.liferay.portal.kernel.exception.SystemException;
251    
252            /**
253            * Finds the first asset tag property in the ordered set where tagId = &#63;.
254            *
255            * <p>
256            * 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.
257            * </p>
258            *
259            * @param tagId the tag id to search with
260            * @param orderByComparator the comparator to order the set by
261            * @return the first matching asset tag property
262            * @throws com.liferay.portlet.asset.NoSuchTagPropertyException if a matching asset tag property could not be found
263            * @throws SystemException if a system exception occurred
264            */
265            public com.liferay.portlet.asset.model.AssetTagProperty findByTagId_First(
266                    long tagId,
267                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
268                    throws com.liferay.portal.kernel.exception.SystemException,
269                            com.liferay.portlet.asset.NoSuchTagPropertyException;
270    
271            /**
272            * Finds the last asset tag property in the ordered set where tagId = &#63;.
273            *
274            * <p>
275            * 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.
276            * </p>
277            *
278            * @param tagId the tag id to search with
279            * @param orderByComparator the comparator to order the set by
280            * @return the last matching asset tag property
281            * @throws com.liferay.portlet.asset.NoSuchTagPropertyException if a matching asset tag property could not be found
282            * @throws SystemException if a system exception occurred
283            */
284            public com.liferay.portlet.asset.model.AssetTagProperty findByTagId_Last(
285                    long tagId,
286                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
287                    throws com.liferay.portal.kernel.exception.SystemException,
288                            com.liferay.portlet.asset.NoSuchTagPropertyException;
289    
290            /**
291            * Finds the asset tag properties before and after the current asset tag property in the ordered set where tagId = &#63;.
292            *
293            * <p>
294            * 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.
295            * </p>
296            *
297            * @param tagPropertyId the primary key of the current asset tag property
298            * @param tagId the tag id to search with
299            * @param orderByComparator the comparator to order the set by
300            * @return the previous, current, and next asset tag property
301            * @throws com.liferay.portlet.asset.NoSuchTagPropertyException if a asset tag property with the primary key could not be found
302            * @throws SystemException if a system exception occurred
303            */
304            public com.liferay.portlet.asset.model.AssetTagProperty[] findByTagId_PrevAndNext(
305                    long tagPropertyId, long tagId,
306                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
307                    throws com.liferay.portal.kernel.exception.SystemException,
308                            com.liferay.portlet.asset.NoSuchTagPropertyException;
309    
310            /**
311            * Finds all the asset tag properties where companyId = &#63; and key = &#63;.
312            *
313            * @param companyId the company id to search with
314            * @param key the key to search with
315            * @return the matching asset tag properties
316            * @throws SystemException if a system exception occurred
317            */
318            public java.util.List<com.liferay.portlet.asset.model.AssetTagProperty> findByC_K(
319                    long companyId, java.lang.String key)
320                    throws com.liferay.portal.kernel.exception.SystemException;
321    
322            /**
323            * Finds a range of all the asset tag properties where companyId = &#63; and key = &#63;.
324            *
325            * <p>
326            * 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.
327            * </p>
328            *
329            * @param companyId the company id to search with
330            * @param key the key to search with
331            * @param start the lower bound of the range of asset tag properties to return
332            * @param end the upper bound of the range of asset tag properties to return (not inclusive)
333            * @return the range of matching asset tag properties
334            * @throws SystemException if a system exception occurred
335            */
336            public java.util.List<com.liferay.portlet.asset.model.AssetTagProperty> findByC_K(
337                    long companyId, java.lang.String key, int start, int end)
338                    throws com.liferay.portal.kernel.exception.SystemException;
339    
340            /**
341            * Finds an ordered range of all the asset tag properties where companyId = &#63; and key = &#63;.
342            *
343            * <p>
344            * 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.
345            * </p>
346            *
347            * @param companyId the company id to search with
348            * @param key the key to search with
349            * @param start the lower bound of the range of asset tag properties to return
350            * @param end the upper bound of the range of asset tag properties to return (not inclusive)
351            * @param orderByComparator the comparator to order the results by
352            * @return the ordered range of matching asset tag properties
353            * @throws SystemException if a system exception occurred
354            */
355            public java.util.List<com.liferay.portlet.asset.model.AssetTagProperty> findByC_K(
356                    long companyId, java.lang.String key, int start, int end,
357                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
358                    throws com.liferay.portal.kernel.exception.SystemException;
359    
360            /**
361            * Finds the first asset tag property in the ordered set where companyId = &#63; and key = &#63;.
362            *
363            * <p>
364            * 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.
365            * </p>
366            *
367            * @param companyId the company id to search with
368            * @param key the key to search with
369            * @param orderByComparator the comparator to order the set by
370            * @return the first matching asset tag property
371            * @throws com.liferay.portlet.asset.NoSuchTagPropertyException if a matching asset tag property could not be found
372            * @throws SystemException if a system exception occurred
373            */
374            public com.liferay.portlet.asset.model.AssetTagProperty findByC_K_First(
375                    long companyId, java.lang.String key,
376                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
377                    throws com.liferay.portal.kernel.exception.SystemException,
378                            com.liferay.portlet.asset.NoSuchTagPropertyException;
379    
380            /**
381            * Finds the last asset tag property in the ordered set where companyId = &#63; and key = &#63;.
382            *
383            * <p>
384            * 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.
385            * </p>
386            *
387            * @param companyId the company id to search with
388            * @param key the key to search with
389            * @param orderByComparator the comparator to order the set by
390            * @return the last matching asset tag property
391            * @throws com.liferay.portlet.asset.NoSuchTagPropertyException if a matching asset tag property could not be found
392            * @throws SystemException if a system exception occurred
393            */
394            public com.liferay.portlet.asset.model.AssetTagProperty findByC_K_Last(
395                    long companyId, java.lang.String key,
396                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
397                    throws com.liferay.portal.kernel.exception.SystemException,
398                            com.liferay.portlet.asset.NoSuchTagPropertyException;
399    
400            /**
401            * Finds the asset tag properties before and after the current asset tag property in the ordered set where companyId = &#63; and key = &#63;.
402            *
403            * <p>
404            * 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.
405            * </p>
406            *
407            * @param tagPropertyId the primary key of the current asset tag property
408            * @param companyId the company id to search with
409            * @param key the key to search with
410            * @param orderByComparator the comparator to order the set by
411            * @return the previous, current, and next asset tag property
412            * @throws com.liferay.portlet.asset.NoSuchTagPropertyException if a asset tag property with the primary key could not be found
413            * @throws SystemException if a system exception occurred
414            */
415            public com.liferay.portlet.asset.model.AssetTagProperty[] findByC_K_PrevAndNext(
416                    long tagPropertyId, long companyId, java.lang.String key,
417                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
418                    throws com.liferay.portal.kernel.exception.SystemException,
419                            com.liferay.portlet.asset.NoSuchTagPropertyException;
420    
421            /**
422            * Finds the asset tag property where tagId = &#63; and key = &#63; or throws a {@link com.liferay.portlet.asset.NoSuchTagPropertyException} if it could not be found.
423            *
424            * @param tagId the tag id to search with
425            * @param key the key to search with
426            * @return the matching asset tag property
427            * @throws com.liferay.portlet.asset.NoSuchTagPropertyException if a matching asset tag property could not be found
428            * @throws SystemException if a system exception occurred
429            */
430            public com.liferay.portlet.asset.model.AssetTagProperty findByT_K(
431                    long tagId, java.lang.String key)
432                    throws com.liferay.portal.kernel.exception.SystemException,
433                            com.liferay.portlet.asset.NoSuchTagPropertyException;
434    
435            /**
436            * Finds the asset tag property where tagId = &#63; and key = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
437            *
438            * @param tagId the tag id to search with
439            * @param key the key to search with
440            * @return the matching asset tag property, or <code>null</code> if a matching asset tag property could not be found
441            * @throws SystemException if a system exception occurred
442            */
443            public com.liferay.portlet.asset.model.AssetTagProperty fetchByT_K(
444                    long tagId, java.lang.String key)
445                    throws com.liferay.portal.kernel.exception.SystemException;
446    
447            /**
448            * Finds the asset tag property where tagId = &#63; and key = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
449            *
450            * @param tagId the tag id to search with
451            * @param key the key to search with
452            * @return the matching asset tag property, or <code>null</code> if a matching asset tag property could not be found
453            * @throws SystemException if a system exception occurred
454            */
455            public com.liferay.portlet.asset.model.AssetTagProperty fetchByT_K(
456                    long tagId, java.lang.String key, boolean retrieveFromCache)
457                    throws com.liferay.portal.kernel.exception.SystemException;
458    
459            /**
460            * Finds all the asset tag properties.
461            *
462            * @return the asset tag properties
463            * @throws SystemException if a system exception occurred
464            */
465            public java.util.List<com.liferay.portlet.asset.model.AssetTagProperty> findAll()
466                    throws com.liferay.portal.kernel.exception.SystemException;
467    
468            /**
469            * Finds a range of all the asset tag properties.
470            *
471            * <p>
472            * 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.
473            * </p>
474            *
475            * @param start the lower bound of the range of asset tag properties to return
476            * @param end the upper bound of the range of asset tag properties to return (not inclusive)
477            * @return the range of asset tag properties
478            * @throws SystemException if a system exception occurred
479            */
480            public java.util.List<com.liferay.portlet.asset.model.AssetTagProperty> findAll(
481                    int start, int end)
482                    throws com.liferay.portal.kernel.exception.SystemException;
483    
484            /**
485            * Finds an ordered range of all the asset tag properties.
486            *
487            * <p>
488            * 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.
489            * </p>
490            *
491            * @param start the lower bound of the range of asset tag properties to return
492            * @param end the upper bound of the range of asset tag properties to return (not inclusive)
493            * @param orderByComparator the comparator to order the results by
494            * @return the ordered range of asset tag properties
495            * @throws SystemException if a system exception occurred
496            */
497            public java.util.List<com.liferay.portlet.asset.model.AssetTagProperty> findAll(
498                    int start, int end,
499                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
500                    throws com.liferay.portal.kernel.exception.SystemException;
501    
502            /**
503            * Removes all the asset tag properties where companyId = &#63; from the database.
504            *
505            * @param companyId the company id to search with
506            * @throws SystemException if a system exception occurred
507            */
508            public void removeByCompanyId(long companyId)
509                    throws com.liferay.portal.kernel.exception.SystemException;
510    
511            /**
512            * Removes all the asset tag properties where tagId = &#63; from the database.
513            *
514            * @param tagId the tag id to search with
515            * @throws SystemException if a system exception occurred
516            */
517            public void removeByTagId(long tagId)
518                    throws com.liferay.portal.kernel.exception.SystemException;
519    
520            /**
521            * Removes all the asset tag properties where companyId = &#63; and key = &#63; from the database.
522            *
523            * @param companyId the company id to search with
524            * @param key the key to search with
525            * @throws SystemException if a system exception occurred
526            */
527            public void removeByC_K(long companyId, java.lang.String key)
528                    throws com.liferay.portal.kernel.exception.SystemException;
529    
530            /**
531            * Removes the asset tag property where tagId = &#63; and key = &#63; from the database.
532            *
533            * @param tagId the tag id to search with
534            * @param key the key to search with
535            * @throws SystemException if a system exception occurred
536            */
537            public void removeByT_K(long tagId, java.lang.String key)
538                    throws com.liferay.portal.kernel.exception.SystemException,
539                            com.liferay.portlet.asset.NoSuchTagPropertyException;
540    
541            /**
542            * Removes all the asset tag properties from the database.
543            *
544            * @throws SystemException if a system exception occurred
545            */
546            public void removeAll()
547                    throws com.liferay.portal.kernel.exception.SystemException;
548    
549            /**
550            * Counts all the asset tag properties where companyId = &#63;.
551            *
552            * @param companyId the company id to search with
553            * @return the number of matching asset tag properties
554            * @throws SystemException if a system exception occurred
555            */
556            public int countByCompanyId(long companyId)
557                    throws com.liferay.portal.kernel.exception.SystemException;
558    
559            /**
560            * Counts all the asset tag properties where tagId = &#63;.
561            *
562            * @param tagId the tag id to search with
563            * @return the number of matching asset tag properties
564            * @throws SystemException if a system exception occurred
565            */
566            public int countByTagId(long tagId)
567                    throws com.liferay.portal.kernel.exception.SystemException;
568    
569            /**
570            * Counts all the asset tag properties where companyId = &#63; and key = &#63;.
571            *
572            * @param companyId the company id to search with
573            * @param key the key to search with
574            * @return the number of matching asset tag properties
575            * @throws SystemException if a system exception occurred
576            */
577            public int countByC_K(long companyId, java.lang.String key)
578                    throws com.liferay.portal.kernel.exception.SystemException;
579    
580            /**
581            * Counts all the asset tag properties where tagId = &#63; and key = &#63;.
582            *
583            * @param tagId the tag id to search with
584            * @param key the key to search with
585            * @return the number of matching asset tag properties
586            * @throws SystemException if a system exception occurred
587            */
588            public int countByT_K(long tagId, java.lang.String key)
589                    throws com.liferay.portal.kernel.exception.SystemException;
590    
591            /**
592            * Counts all the asset tag properties.
593            *
594            * @return the number of asset tag properties
595            * @throws SystemException if a system exception occurred
596            */
597            public int countAll()
598                    throws com.liferay.portal.kernel.exception.SystemException;
599    }