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