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