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