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 an ordered range of all the asset category properties where companyId = &#63;.
085            *
086            * <p>
087            * 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.
088            * </p>
089            *
090            * @param companyId the company ID
091            * @param start the lower bound of the range of asset category properties
092            * @param end the upper bound of the range of asset category properties (not inclusive)
093            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
094            * @param retrieveFromCache whether to retrieve from the finder cache
095            * @return the ordered range of matching asset category properties
096            */
097            public java.util.List<AssetCategoryProperty> findByCompanyId(
098                    long companyId, int start, int end,
099                    com.liferay.portal.kernel.util.OrderByComparator<AssetCategoryProperty> orderByComparator,
100                    boolean retrieveFromCache);
101    
102            /**
103            * Returns the first asset category property in the ordered set where companyId = &#63;.
104            *
105            * @param companyId the company ID
106            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
107            * @return the first matching asset category property
108            * @throws NoSuchCategoryPropertyException if a matching asset category property could not be found
109            */
110            public AssetCategoryProperty findByCompanyId_First(long companyId,
111                    com.liferay.portal.kernel.util.OrderByComparator<AssetCategoryProperty> orderByComparator)
112                    throws com.liferay.portlet.asset.exception.NoSuchCategoryPropertyException;
113    
114            /**
115            * Returns the first asset category property in the ordered set where companyId = &#63;.
116            *
117            * @param companyId the company ID
118            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
119            * @return the first matching asset category property, or <code>null</code> if a matching asset category property could not be found
120            */
121            public AssetCategoryProperty fetchByCompanyId_First(long companyId,
122                    com.liferay.portal.kernel.util.OrderByComparator<AssetCategoryProperty> orderByComparator);
123    
124            /**
125            * Returns the last asset category property in the ordered set where companyId = &#63;.
126            *
127            * @param companyId the company ID
128            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
129            * @return the last matching asset category property
130            * @throws NoSuchCategoryPropertyException if a matching asset category property could not be found
131            */
132            public AssetCategoryProperty findByCompanyId_Last(long companyId,
133                    com.liferay.portal.kernel.util.OrderByComparator<AssetCategoryProperty> orderByComparator)
134                    throws com.liferay.portlet.asset.exception.NoSuchCategoryPropertyException;
135    
136            /**
137            * Returns the last asset category property in the ordered set where companyId = &#63;.
138            *
139            * @param companyId the company ID
140            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
141            * @return the last matching asset category property, or <code>null</code> if a matching asset category property could not be found
142            */
143            public AssetCategoryProperty fetchByCompanyId_Last(long companyId,
144                    com.liferay.portal.kernel.util.OrderByComparator<AssetCategoryProperty> orderByComparator);
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 NoSuchCategoryPropertyException if a asset category property with the primary key could not be found
154            */
155            public AssetCategoryProperty[] findByCompanyId_PrevAndNext(
156                    long categoryPropertyId, long companyId,
157                    com.liferay.portal.kernel.util.OrderByComparator<AssetCategoryProperty> orderByComparator)
158                    throws com.liferay.portlet.asset.exception.NoSuchCategoryPropertyException;
159    
160            /**
161            * Removes all the asset category properties where companyId = &#63; from the database.
162            *
163            * @param companyId the company ID
164            */
165            public void removeByCompanyId(long companyId);
166    
167            /**
168            * Returns the number of asset category properties where companyId = &#63;.
169            *
170            * @param companyId the company ID
171            * @return the number of matching asset category properties
172            */
173            public int countByCompanyId(long companyId);
174    
175            /**
176            * Returns all the asset category properties where categoryId = &#63;.
177            *
178            * @param categoryId the category ID
179            * @return the matching asset category properties
180            */
181            public java.util.List<AssetCategoryProperty> findByCategoryId(
182                    long categoryId);
183    
184            /**
185            * Returns a range of all the asset category properties where categoryId = &#63;.
186            *
187            * <p>
188            * 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.
189            * </p>
190            *
191            * @param categoryId the category ID
192            * @param start the lower bound of the range of asset category properties
193            * @param end the upper bound of the range of asset category properties (not inclusive)
194            * @return the range of matching asset category properties
195            */
196            public java.util.List<AssetCategoryProperty> findByCategoryId(
197                    long categoryId, int start, int end);
198    
199            /**
200            * Returns an ordered range of all the asset category properties where categoryId = &#63;.
201            *
202            * <p>
203            * 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.
204            * </p>
205            *
206            * @param categoryId the category ID
207            * @param start the lower bound of the range of asset category properties
208            * @param end the upper bound of the range of asset category properties (not inclusive)
209            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
210            * @return the ordered range of matching asset category properties
211            */
212            public java.util.List<AssetCategoryProperty> findByCategoryId(
213                    long categoryId, int start, int end,
214                    com.liferay.portal.kernel.util.OrderByComparator<AssetCategoryProperty> orderByComparator);
215    
216            /**
217            * Returns an ordered range of all the asset category properties where categoryId = &#63;.
218            *
219            * <p>
220            * 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.
221            * </p>
222            *
223            * @param categoryId the category ID
224            * @param start the lower bound of the range of asset category properties
225            * @param end the upper bound of the range of asset category properties (not inclusive)
226            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
227            * @param retrieveFromCache whether to retrieve from the finder cache
228            * @return the ordered range of matching asset category properties
229            */
230            public java.util.List<AssetCategoryProperty> findByCategoryId(
231                    long categoryId, int start, int end,
232                    com.liferay.portal.kernel.util.OrderByComparator<AssetCategoryProperty> orderByComparator,
233                    boolean retrieveFromCache);
234    
235            /**
236            * Returns the first asset category property in the ordered set where categoryId = &#63;.
237            *
238            * @param categoryId the category ID
239            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
240            * @return the first matching asset category property
241            * @throws NoSuchCategoryPropertyException if a matching asset category property could not be found
242            */
243            public AssetCategoryProperty findByCategoryId_First(long categoryId,
244                    com.liferay.portal.kernel.util.OrderByComparator<AssetCategoryProperty> orderByComparator)
245                    throws com.liferay.portlet.asset.exception.NoSuchCategoryPropertyException;
246    
247            /**
248            * Returns the first asset category property in the ordered set where categoryId = &#63;.
249            *
250            * @param categoryId the category ID
251            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
252            * @return the first matching asset category property, or <code>null</code> if a matching asset category property could not be found
253            */
254            public AssetCategoryProperty fetchByCategoryId_First(long categoryId,
255                    com.liferay.portal.kernel.util.OrderByComparator<AssetCategoryProperty> orderByComparator);
256    
257            /**
258            * Returns the last asset category property in the ordered set where categoryId = &#63;.
259            *
260            * @param categoryId the category ID
261            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
262            * @return the last matching asset category property
263            * @throws NoSuchCategoryPropertyException if a matching asset category property could not be found
264            */
265            public AssetCategoryProperty findByCategoryId_Last(long categoryId,
266                    com.liferay.portal.kernel.util.OrderByComparator<AssetCategoryProperty> orderByComparator)
267                    throws com.liferay.portlet.asset.exception.NoSuchCategoryPropertyException;
268    
269            /**
270            * Returns the last asset category property in the ordered set where categoryId = &#63;.
271            *
272            * @param categoryId the category ID
273            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
274            * @return the last matching asset category property, or <code>null</code> if a matching asset category property could not be found
275            */
276            public AssetCategoryProperty fetchByCategoryId_Last(long categoryId,
277                    com.liferay.portal.kernel.util.OrderByComparator<AssetCategoryProperty> orderByComparator);
278    
279            /**
280            * Returns the asset category properties before and after the current asset category property in the ordered set where categoryId = &#63;.
281            *
282            * @param categoryPropertyId the primary key of the current asset category property
283            * @param categoryId the category ID
284            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
285            * @return the previous, current, and next asset category property
286            * @throws NoSuchCategoryPropertyException if a asset category property with the primary key could not be found
287            */
288            public AssetCategoryProperty[] findByCategoryId_PrevAndNext(
289                    long categoryPropertyId, long categoryId,
290                    com.liferay.portal.kernel.util.OrderByComparator<AssetCategoryProperty> orderByComparator)
291                    throws com.liferay.portlet.asset.exception.NoSuchCategoryPropertyException;
292    
293            /**
294            * Removes all the asset category properties where categoryId = &#63; from the database.
295            *
296            * @param categoryId the category ID
297            */
298            public void removeByCategoryId(long categoryId);
299    
300            /**
301            * Returns the number of asset category properties where categoryId = &#63;.
302            *
303            * @param categoryId the category ID
304            * @return the number of matching asset category properties
305            */
306            public int countByCategoryId(long categoryId);
307    
308            /**
309            * Returns all the asset category properties where companyId = &#63; and key = &#63;.
310            *
311            * @param companyId the company ID
312            * @param key the key
313            * @return the matching asset category properties
314            */
315            public java.util.List<AssetCategoryProperty> findByC_K(long companyId,
316                    java.lang.String key);
317    
318            /**
319            * Returns a range of all the asset category properties where companyId = &#63; and key = &#63;.
320            *
321            * <p>
322            * 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.
323            * </p>
324            *
325            * @param companyId the company ID
326            * @param key the key
327            * @param start the lower bound of the range of asset category properties
328            * @param end the upper bound of the range of asset category properties (not inclusive)
329            * @return the range of matching asset category properties
330            */
331            public java.util.List<AssetCategoryProperty> findByC_K(long companyId,
332                    java.lang.String key, int start, int end);
333    
334            /**
335            * Returns an ordered range of all the asset category properties where companyId = &#63; and key = &#63;.
336            *
337            * <p>
338            * 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.
339            * </p>
340            *
341            * @param companyId the company ID
342            * @param key the key
343            * @param start the lower bound of the range of asset category properties
344            * @param end the upper bound of the range of asset category properties (not inclusive)
345            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
346            * @return the ordered range of matching asset category properties
347            */
348            public java.util.List<AssetCategoryProperty> findByC_K(long companyId,
349                    java.lang.String key, int start, int end,
350                    com.liferay.portal.kernel.util.OrderByComparator<AssetCategoryProperty> orderByComparator);
351    
352            /**
353            * Returns an ordered range of all the asset category properties where companyId = &#63; and key = &#63;.
354            *
355            * <p>
356            * 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.
357            * </p>
358            *
359            * @param companyId the company ID
360            * @param key the key
361            * @param start the lower bound of the range of asset category properties
362            * @param end the upper bound of the range of asset category properties (not inclusive)
363            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
364            * @param retrieveFromCache whether to retrieve from the finder cache
365            * @return the ordered range of matching asset category properties
366            */
367            public java.util.List<AssetCategoryProperty> findByC_K(long companyId,
368                    java.lang.String key, int start, int end,
369                    com.liferay.portal.kernel.util.OrderByComparator<AssetCategoryProperty> orderByComparator,
370                    boolean retrieveFromCache);
371    
372            /**
373            * Returns the first asset category property in the ordered set where companyId = &#63; and key = &#63;.
374            *
375            * @param companyId the company ID
376            * @param key the key
377            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
378            * @return the first matching asset category property
379            * @throws NoSuchCategoryPropertyException if a matching asset category property could not be found
380            */
381            public AssetCategoryProperty findByC_K_First(long companyId,
382                    java.lang.String key,
383                    com.liferay.portal.kernel.util.OrderByComparator<AssetCategoryProperty> orderByComparator)
384                    throws com.liferay.portlet.asset.exception.NoSuchCategoryPropertyException;
385    
386            /**
387            * Returns the first asset category property in the ordered set where companyId = &#63; and key = &#63;.
388            *
389            * @param companyId the company ID
390            * @param key the key
391            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
392            * @return the first matching asset category property, or <code>null</code> if a matching asset category property could not be found
393            */
394            public AssetCategoryProperty fetchByC_K_First(long companyId,
395                    java.lang.String key,
396                    com.liferay.portal.kernel.util.OrderByComparator<AssetCategoryProperty> orderByComparator);
397    
398            /**
399            * Returns the last asset category property in the ordered set where companyId = &#63; and key = &#63;.
400            *
401            * @param companyId the company ID
402            * @param key the key
403            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
404            * @return the last matching asset category property
405            * @throws NoSuchCategoryPropertyException if a matching asset category property could not be found
406            */
407            public AssetCategoryProperty findByC_K_Last(long companyId,
408                    java.lang.String key,
409                    com.liferay.portal.kernel.util.OrderByComparator<AssetCategoryProperty> orderByComparator)
410                    throws com.liferay.portlet.asset.exception.NoSuchCategoryPropertyException;
411    
412            /**
413            * Returns the last asset category property in the ordered set where companyId = &#63; and key = &#63;.
414            *
415            * @param companyId the company ID
416            * @param key the key
417            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
418            * @return the last matching asset category property, or <code>null</code> if a matching asset category property could not be found
419            */
420            public AssetCategoryProperty fetchByC_K_Last(long companyId,
421                    java.lang.String key,
422                    com.liferay.portal.kernel.util.OrderByComparator<AssetCategoryProperty> orderByComparator);
423    
424            /**
425            * Returns the asset category properties before and after the current asset category property in the ordered set where companyId = &#63; and key = &#63;.
426            *
427            * @param categoryPropertyId the primary key of the current asset category property
428            * @param companyId the company ID
429            * @param key the key
430            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
431            * @return the previous, current, and next asset category property
432            * @throws NoSuchCategoryPropertyException if a asset category property with the primary key could not be found
433            */
434            public AssetCategoryProperty[] findByC_K_PrevAndNext(
435                    long categoryPropertyId, long companyId, java.lang.String key,
436                    com.liferay.portal.kernel.util.OrderByComparator<AssetCategoryProperty> orderByComparator)
437                    throws com.liferay.portlet.asset.exception.NoSuchCategoryPropertyException;
438    
439            /**
440            * Removes all the asset category properties where companyId = &#63; and key = &#63; from the database.
441            *
442            * @param companyId the company ID
443            * @param key the key
444            */
445            public void removeByC_K(long companyId, java.lang.String key);
446    
447            /**
448            * Returns the number of asset category properties where companyId = &#63; and key = &#63;.
449            *
450            * @param companyId the company ID
451            * @param key the key
452            * @return the number of matching asset category properties
453            */
454            public int countByC_K(long companyId, java.lang.String key);
455    
456            /**
457            * Returns the asset category property where categoryId = &#63; and key = &#63; or throws a {@link NoSuchCategoryPropertyException} if it could not be found.
458            *
459            * @param categoryId the category ID
460            * @param key the key
461            * @return the matching asset category property
462            * @throws NoSuchCategoryPropertyException if a matching asset category property could not be found
463            */
464            public AssetCategoryProperty findByCA_K(long categoryId,
465                    java.lang.String key)
466                    throws com.liferay.portlet.asset.exception.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)
498                    throws com.liferay.portlet.asset.exception.NoSuchCategoryPropertyException;
499    
500            /**
501            * Returns the number of asset category properties where categoryId = &#63; and key = &#63;.
502            *
503            * @param categoryId the category ID
504            * @param key the key
505            * @return the number of matching asset category properties
506            */
507            public int countByCA_K(long categoryId, java.lang.String key);
508    
509            /**
510            * Caches the asset category property in the entity cache if it is enabled.
511            *
512            * @param assetCategoryProperty the asset category property
513            */
514            public void cacheResult(AssetCategoryProperty assetCategoryProperty);
515    
516            /**
517            * Caches the asset category properties in the entity cache if it is enabled.
518            *
519            * @param assetCategoryProperties the asset category properties
520            */
521            public void cacheResult(
522                    java.util.List<AssetCategoryProperty> assetCategoryProperties);
523    
524            /**
525            * Creates a new asset category property with the primary key. Does not add the asset category property to the database.
526            *
527            * @param categoryPropertyId the primary key for the new asset category property
528            * @return the new asset category property
529            */
530            public AssetCategoryProperty create(long categoryPropertyId);
531    
532            /**
533            * Removes the asset category property with the primary key from the database. Also notifies the appropriate model listeners.
534            *
535            * @param categoryPropertyId the primary key of the asset category property
536            * @return the asset category property that was removed
537            * @throws NoSuchCategoryPropertyException if a asset category property with the primary key could not be found
538            */
539            public AssetCategoryProperty remove(long categoryPropertyId)
540                    throws com.liferay.portlet.asset.exception.NoSuchCategoryPropertyException;
541    
542            public AssetCategoryProperty updateImpl(
543                    AssetCategoryProperty assetCategoryProperty);
544    
545            /**
546            * Returns the asset category property with the primary key or throws a {@link NoSuchCategoryPropertyException} if it could not be found.
547            *
548            * @param categoryPropertyId the primary key of the asset category property
549            * @return the asset category property
550            * @throws NoSuchCategoryPropertyException if a asset category property with the primary key could not be found
551            */
552            public AssetCategoryProperty findByPrimaryKey(long categoryPropertyId)
553                    throws com.liferay.portlet.asset.exception.NoSuchCategoryPropertyException;
554    
555            /**
556            * Returns the asset category property with the primary key or returns <code>null</code> if it could not be found.
557            *
558            * @param categoryPropertyId the primary key of the asset category property
559            * @return the asset category property, or <code>null</code> if a asset category property with the primary key could not be found
560            */
561            public AssetCategoryProperty fetchByPrimaryKey(long categoryPropertyId);
562    
563            @Override
564            public java.util.Map<java.io.Serializable, AssetCategoryProperty> fetchByPrimaryKeys(
565                    java.util.Set<java.io.Serializable> primaryKeys);
566    
567            /**
568            * Returns all the asset category properties.
569            *
570            * @return the asset category properties
571            */
572            public java.util.List<AssetCategoryProperty> findAll();
573    
574            /**
575            * Returns a range of all the asset category properties.
576            *
577            * <p>
578            * 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.
579            * </p>
580            *
581            * @param start the lower bound of the range of asset category properties
582            * @param end the upper bound of the range of asset category properties (not inclusive)
583            * @return the range of asset category properties
584            */
585            public java.util.List<AssetCategoryProperty> findAll(int start, int end);
586    
587            /**
588            * Returns an ordered range of all the asset category properties.
589            *
590            * <p>
591            * 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.
592            * </p>
593            *
594            * @param start the lower bound of the range of asset category properties
595            * @param end the upper bound of the range of asset category properties (not inclusive)
596            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
597            * @return the ordered range of asset category properties
598            */
599            public java.util.List<AssetCategoryProperty> findAll(int start, int end,
600                    com.liferay.portal.kernel.util.OrderByComparator<AssetCategoryProperty> orderByComparator);
601    
602            /**
603            * Returns an ordered range of all the asset category properties.
604            *
605            * <p>
606            * 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.
607            * </p>
608            *
609            * @param start the lower bound of the range of asset category properties
610            * @param end the upper bound of the range of asset category properties (not inclusive)
611            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
612            * @param retrieveFromCache whether to retrieve from the finder cache
613            * @return the ordered range of asset category properties
614            */
615            public java.util.List<AssetCategoryProperty> findAll(int start, int end,
616                    com.liferay.portal.kernel.util.OrderByComparator<AssetCategoryProperty> orderByComparator,
617                    boolean retrieveFromCache);
618    
619            /**
620            * Removes all the asset category properties from the database.
621            */
622            public void removeAll();
623    
624            /**
625            * Returns the number of asset category properties.
626            *
627            * @return the number of asset category properties
628            */
629            public int countAll();
630    
631            @Override
632            public java.util.Set<java.lang.String> getBadColumnNames();
633    }