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