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