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