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