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