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