001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.asset.service.persistence;
016    
017    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018    import com.liferay.portal.kernel.dao.orm.DynamicQuery;
019    import com.liferay.portal.kernel.exception.SystemException;
020    import com.liferay.portal.kernel.util.OrderByComparator;
021    import com.liferay.portal.kernel.util.ReferenceRegistry;
022    import com.liferay.portal.service.ServiceContext;
023    
024    import com.liferay.portlet.asset.model.AssetCategoryProperty;
025    
026    import java.util.List;
027    
028    /**
029     * The persistence utility for the asset category property service. This utility wraps {@link AssetCategoryPropertyPersistenceImpl} and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
030     *
031     * <p>
032     * Caching information and settings can be found in <code>portal.properties</code>
033     * </p>
034     *
035     * @author Brian Wing Shun Chan
036     * @see AssetCategoryPropertyPersistence
037     * @see AssetCategoryPropertyPersistenceImpl
038     * @generated
039     */
040    public class AssetCategoryPropertyUtil {
041            /*
042             * NOTE FOR DEVELOPERS:
043             *
044             * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class.
045             */
046    
047            /**
048             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
049             */
050            public static void clearCache() {
051                    getPersistence().clearCache();
052            }
053    
054            /**
055             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel)
056             */
057            public static void clearCache(AssetCategoryProperty assetCategoryProperty) {
058                    getPersistence().clearCache(assetCategoryProperty);
059            }
060    
061            /**
062             * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
063             */
064            public static long countWithDynamicQuery(DynamicQuery dynamicQuery)
065                    throws SystemException {
066                    return getPersistence().countWithDynamicQuery(dynamicQuery);
067            }
068    
069            /**
070             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
071             */
072            public static List<AssetCategoryProperty> findWithDynamicQuery(
073                    DynamicQuery dynamicQuery) throws SystemException {
074                    return getPersistence().findWithDynamicQuery(dynamicQuery);
075            }
076    
077            /**
078             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
079             */
080            public static List<AssetCategoryProperty> findWithDynamicQuery(
081                    DynamicQuery dynamicQuery, int start, int end)
082                    throws SystemException {
083                    return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
084            }
085    
086            /**
087             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
088             */
089            public static List<AssetCategoryProperty> findWithDynamicQuery(
090                    DynamicQuery dynamicQuery, int start, int end,
091                    OrderByComparator orderByComparator) throws SystemException {
092                    return getPersistence()
093                                       .findWithDynamicQuery(dynamicQuery, start, end,
094                            orderByComparator);
095            }
096    
097            /**
098             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel)
099             */
100            public static AssetCategoryProperty update(
101                    AssetCategoryProperty assetCategoryProperty) throws SystemException {
102                    return getPersistence().update(assetCategoryProperty);
103            }
104    
105            /**
106             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, ServiceContext)
107             */
108            public static AssetCategoryProperty update(
109                    AssetCategoryProperty assetCategoryProperty,
110                    ServiceContext serviceContext) throws SystemException {
111                    return getPersistence().update(assetCategoryProperty, serviceContext);
112            }
113    
114            /**
115            * Returns all the asset category properties where companyId = &#63;.
116            *
117            * @param companyId the company ID
118            * @return the matching asset category properties
119            * @throws SystemException if a system exception occurred
120            */
121            public static java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findByCompanyId(
122                    long companyId)
123                    throws com.liferay.portal.kernel.exception.SystemException {
124                    return getPersistence().findByCompanyId(companyId);
125            }
126    
127            /**
128            * Returns a range of all the asset category properties where companyId = &#63;.
129            *
130            * <p>
131            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.asset.model.impl.AssetCategoryPropertyModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
132            * </p>
133            *
134            * @param companyId the company ID
135            * @param start the lower bound of the range of asset category properties
136            * @param end the upper bound of the range of asset category properties (not inclusive)
137            * @return the range of matching asset category properties
138            * @throws SystemException if a system exception occurred
139            */
140            public static java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findByCompanyId(
141                    long companyId, int start, int end)
142                    throws com.liferay.portal.kernel.exception.SystemException {
143                    return getPersistence().findByCompanyId(companyId, start, end);
144            }
145    
146            /**
147            * Returns an ordered range of all the asset category properties where companyId = &#63;.
148            *
149            * <p>
150            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.asset.model.impl.AssetCategoryPropertyModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
151            * </p>
152            *
153            * @param companyId the company ID
154            * @param start the lower bound of the range of asset category properties
155            * @param end the upper bound of the range of asset category properties (not inclusive)
156            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
157            * @return the ordered range of matching asset category properties
158            * @throws SystemException if a system exception occurred
159            */
160            public static java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findByCompanyId(
161                    long companyId, int start, int end,
162                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
163                    throws com.liferay.portal.kernel.exception.SystemException {
164                    return getPersistence()
165                                       .findByCompanyId(companyId, start, end, orderByComparator);
166            }
167    
168            /**
169            * Returns the first asset category property in the ordered set where companyId = &#63;.
170            *
171            * @param companyId the company ID
172            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
173            * @return the first matching asset category property
174            * @throws com.liferay.portlet.asset.NoSuchCategoryPropertyException if a matching asset category property could not be found
175            * @throws SystemException if a system exception occurred
176            */
177            public static com.liferay.portlet.asset.model.AssetCategoryProperty findByCompanyId_First(
178                    long companyId,
179                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
180                    throws com.liferay.portal.kernel.exception.SystemException,
181                            com.liferay.portlet.asset.NoSuchCategoryPropertyException {
182                    return getPersistence()
183                                       .findByCompanyId_First(companyId, orderByComparator);
184            }
185    
186            /**
187            * Returns the first asset category property in the ordered set where companyId = &#63;.
188            *
189            * @param companyId the company ID
190            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
191            * @return the first matching asset category property, or <code>null</code> if a matching asset category property could not be found
192            * @throws SystemException if a system exception occurred
193            */
194            public static com.liferay.portlet.asset.model.AssetCategoryProperty fetchByCompanyId_First(
195                    long companyId,
196                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
197                    throws com.liferay.portal.kernel.exception.SystemException {
198                    return getPersistence()
199                                       .fetchByCompanyId_First(companyId, orderByComparator);
200            }
201    
202            /**
203            * Returns the last asset category property in the ordered set where companyId = &#63;.
204            *
205            * @param companyId the company ID
206            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
207            * @return the last matching asset category property
208            * @throws com.liferay.portlet.asset.NoSuchCategoryPropertyException if a matching asset category property could not be found
209            * @throws SystemException if a system exception occurred
210            */
211            public static com.liferay.portlet.asset.model.AssetCategoryProperty findByCompanyId_Last(
212                    long companyId,
213                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
214                    throws com.liferay.portal.kernel.exception.SystemException,
215                            com.liferay.portlet.asset.NoSuchCategoryPropertyException {
216                    return getPersistence()
217                                       .findByCompanyId_Last(companyId, orderByComparator);
218            }
219    
220            /**
221            * Returns the last asset category property in the ordered set where companyId = &#63;.
222            *
223            * @param companyId the company ID
224            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
225            * @return the last matching asset category property, or <code>null</code> if a matching asset category property could not be found
226            * @throws SystemException if a system exception occurred
227            */
228            public static com.liferay.portlet.asset.model.AssetCategoryProperty fetchByCompanyId_Last(
229                    long companyId,
230                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
231                    throws com.liferay.portal.kernel.exception.SystemException {
232                    return getPersistence()
233                                       .fetchByCompanyId_Last(companyId, orderByComparator);
234            }
235    
236            /**
237            * Returns the asset category properties before and after the current asset category property in the ordered set where companyId = &#63;.
238            *
239            * @param categoryPropertyId the primary key of the current asset category property
240            * @param companyId the company ID
241            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
242            * @return the previous, current, and next asset category property
243            * @throws com.liferay.portlet.asset.NoSuchCategoryPropertyException if a asset category property with the primary key could not be found
244            * @throws SystemException if a system exception occurred
245            */
246            public static com.liferay.portlet.asset.model.AssetCategoryProperty[] findByCompanyId_PrevAndNext(
247                    long categoryPropertyId, long companyId,
248                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
249                    throws com.liferay.portal.kernel.exception.SystemException,
250                            com.liferay.portlet.asset.NoSuchCategoryPropertyException {
251                    return getPersistence()
252                                       .findByCompanyId_PrevAndNext(categoryPropertyId, companyId,
253                            orderByComparator);
254            }
255    
256            /**
257            * Removes all the asset category properties where companyId = &#63; from the database.
258            *
259            * @param companyId the company ID
260            * @throws SystemException if a system exception occurred
261            */
262            public static void removeByCompanyId(long companyId)
263                    throws com.liferay.portal.kernel.exception.SystemException {
264                    getPersistence().removeByCompanyId(companyId);
265            }
266    
267            /**
268            * Returns the number of asset category properties where companyId = &#63;.
269            *
270            * @param companyId the company ID
271            * @return the number of matching asset category properties
272            * @throws SystemException if a system exception occurred
273            */
274            public static int countByCompanyId(long companyId)
275                    throws com.liferay.portal.kernel.exception.SystemException {
276                    return getPersistence().countByCompanyId(companyId);
277            }
278    
279            /**
280            * Returns all the asset category properties where categoryId = &#63;.
281            *
282            * @param categoryId the category ID
283            * @return the matching asset category properties
284            * @throws SystemException if a system exception occurred
285            */
286            public static java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findByCategoryId(
287                    long categoryId)
288                    throws com.liferay.portal.kernel.exception.SystemException {
289                    return getPersistence().findByCategoryId(categoryId);
290            }
291    
292            /**
293            * Returns a range of all the asset category properties where categoryId = &#63;.
294            *
295            * <p>
296            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.asset.model.impl.AssetCategoryPropertyModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
297            * </p>
298            *
299            * @param categoryId the category ID
300            * @param start the lower bound of the range of asset category properties
301            * @param end the upper bound of the range of asset category properties (not inclusive)
302            * @return the range of matching asset category properties
303            * @throws SystemException if a system exception occurred
304            */
305            public static java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findByCategoryId(
306                    long categoryId, int start, int end)
307                    throws com.liferay.portal.kernel.exception.SystemException {
308                    return getPersistence().findByCategoryId(categoryId, start, end);
309            }
310    
311            /**
312            * Returns an ordered range of all the asset category properties where categoryId = &#63;.
313            *
314            * <p>
315            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.asset.model.impl.AssetCategoryPropertyModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
316            * </p>
317            *
318            * @param categoryId the category ID
319            * @param start the lower bound of the range of asset category properties
320            * @param end the upper bound of the range of asset category properties (not inclusive)
321            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
322            * @return the ordered range of matching asset category properties
323            * @throws SystemException if a system exception occurred
324            */
325            public static java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findByCategoryId(
326                    long categoryId, int start, int end,
327                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
328                    throws com.liferay.portal.kernel.exception.SystemException {
329                    return getPersistence()
330                                       .findByCategoryId(categoryId, start, end, orderByComparator);
331            }
332    
333            /**
334            * Returns the first asset category property in the ordered set where categoryId = &#63;.
335            *
336            * @param categoryId the category ID
337            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
338            * @return the first matching asset category property
339            * @throws com.liferay.portlet.asset.NoSuchCategoryPropertyException if a matching asset category property could not be found
340            * @throws SystemException if a system exception occurred
341            */
342            public static com.liferay.portlet.asset.model.AssetCategoryProperty findByCategoryId_First(
343                    long categoryId,
344                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
345                    throws com.liferay.portal.kernel.exception.SystemException,
346                            com.liferay.portlet.asset.NoSuchCategoryPropertyException {
347                    return getPersistence()
348                                       .findByCategoryId_First(categoryId, orderByComparator);
349            }
350    
351            /**
352            * Returns the first asset category property in the ordered set where categoryId = &#63;.
353            *
354            * @param categoryId the category ID
355            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
356            * @return the first matching asset category property, or <code>null</code> if a matching asset category property could not be found
357            * @throws SystemException if a system exception occurred
358            */
359            public static com.liferay.portlet.asset.model.AssetCategoryProperty fetchByCategoryId_First(
360                    long categoryId,
361                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
362                    throws com.liferay.portal.kernel.exception.SystemException {
363                    return getPersistence()
364                                       .fetchByCategoryId_First(categoryId, orderByComparator);
365            }
366    
367            /**
368            * Returns the last asset category property in the ordered set where categoryId = &#63;.
369            *
370            * @param categoryId the category ID
371            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
372            * @return the last matching asset category property
373            * @throws com.liferay.portlet.asset.NoSuchCategoryPropertyException if a matching asset category property could not be found
374            * @throws SystemException if a system exception occurred
375            */
376            public static com.liferay.portlet.asset.model.AssetCategoryProperty findByCategoryId_Last(
377                    long categoryId,
378                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
379                    throws com.liferay.portal.kernel.exception.SystemException,
380                            com.liferay.portlet.asset.NoSuchCategoryPropertyException {
381                    return getPersistence()
382                                       .findByCategoryId_Last(categoryId, orderByComparator);
383            }
384    
385            /**
386            * Returns the last asset category property in the ordered set where categoryId = &#63;.
387            *
388            * @param categoryId the category ID
389            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
390            * @return the last matching asset category property, or <code>null</code> if a matching asset category property could not be found
391            * @throws SystemException if a system exception occurred
392            */
393            public static com.liferay.portlet.asset.model.AssetCategoryProperty fetchByCategoryId_Last(
394                    long categoryId,
395                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
396                    throws com.liferay.portal.kernel.exception.SystemException {
397                    return getPersistence()
398                                       .fetchByCategoryId_Last(categoryId, orderByComparator);
399            }
400    
401            /**
402            * Returns the asset category properties before and after the current asset category property in the ordered set where categoryId = &#63;.
403            *
404            * @param categoryPropertyId the primary key of the current asset category property
405            * @param categoryId the category ID
406            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
407            * @return the previous, current, and next asset category property
408            * @throws com.liferay.portlet.asset.NoSuchCategoryPropertyException if a asset category property with the primary key could not be found
409            * @throws SystemException if a system exception occurred
410            */
411            public static com.liferay.portlet.asset.model.AssetCategoryProperty[] findByCategoryId_PrevAndNext(
412                    long categoryPropertyId, long categoryId,
413                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
414                    throws com.liferay.portal.kernel.exception.SystemException,
415                            com.liferay.portlet.asset.NoSuchCategoryPropertyException {
416                    return getPersistence()
417                                       .findByCategoryId_PrevAndNext(categoryPropertyId,
418                            categoryId, orderByComparator);
419            }
420    
421            /**
422            * Removes all the asset category properties where categoryId = &#63; from the database.
423            *
424            * @param categoryId the category ID
425            * @throws SystemException if a system exception occurred
426            */
427            public static void removeByCategoryId(long categoryId)
428                    throws com.liferay.portal.kernel.exception.SystemException {
429                    getPersistence().removeByCategoryId(categoryId);
430            }
431    
432            /**
433            * Returns the number of asset category properties where categoryId = &#63;.
434            *
435            * @param categoryId the category ID
436            * @return the number of matching asset category properties
437            * @throws SystemException if a system exception occurred
438            */
439            public static int countByCategoryId(long categoryId)
440                    throws com.liferay.portal.kernel.exception.SystemException {
441                    return getPersistence().countByCategoryId(categoryId);
442            }
443    
444            /**
445            * Returns all the asset category properties where companyId = &#63; and key = &#63;.
446            *
447            * @param companyId the company ID
448            * @param key the key
449            * @return the matching asset category properties
450            * @throws SystemException if a system exception occurred
451            */
452            public static java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findByC_K(
453                    long companyId, java.lang.String key)
454                    throws com.liferay.portal.kernel.exception.SystemException {
455                    return getPersistence().findByC_K(companyId, key);
456            }
457    
458            /**
459            * Returns a range of all the asset category properties where companyId = &#63; and key = &#63;.
460            *
461            * <p>
462            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.asset.model.impl.AssetCategoryPropertyModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
463            * </p>
464            *
465            * @param companyId the company ID
466            * @param key the key
467            * @param start the lower bound of the range of asset category properties
468            * @param end the upper bound of the range of asset category properties (not inclusive)
469            * @return the range of matching asset category properties
470            * @throws SystemException if a system exception occurred
471            */
472            public static java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findByC_K(
473                    long companyId, java.lang.String key, int start, int end)
474                    throws com.liferay.portal.kernel.exception.SystemException {
475                    return getPersistence().findByC_K(companyId, key, start, end);
476            }
477    
478            /**
479            * Returns an ordered range of all the asset category properties where companyId = &#63; and key = &#63;.
480            *
481            * <p>
482            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.asset.model.impl.AssetCategoryPropertyModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
483            * </p>
484            *
485            * @param companyId the company ID
486            * @param key the key
487            * @param start the lower bound of the range of asset category properties
488            * @param end the upper bound of the range of asset category properties (not inclusive)
489            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
490            * @return the ordered range of matching asset category properties
491            * @throws SystemException if a system exception occurred
492            */
493            public static java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findByC_K(
494                    long companyId, java.lang.String key, int start, int end,
495                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
496                    throws com.liferay.portal.kernel.exception.SystemException {
497                    return getPersistence()
498                                       .findByC_K(companyId, key, start, end, orderByComparator);
499            }
500    
501            /**
502            * Returns the first asset category property in the ordered set where companyId = &#63; and key = &#63;.
503            *
504            * @param companyId the company ID
505            * @param key the key
506            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
507            * @return the first matching asset category property
508            * @throws com.liferay.portlet.asset.NoSuchCategoryPropertyException if a matching asset category property could not be found
509            * @throws SystemException if a system exception occurred
510            */
511            public static com.liferay.portlet.asset.model.AssetCategoryProperty findByC_K_First(
512                    long companyId, java.lang.String key,
513                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
514                    throws com.liferay.portal.kernel.exception.SystemException,
515                            com.liferay.portlet.asset.NoSuchCategoryPropertyException {
516                    return getPersistence()
517                                       .findByC_K_First(companyId, key, orderByComparator);
518            }
519    
520            /**
521            * Returns the first asset category property in the ordered set where companyId = &#63; and key = &#63;.
522            *
523            * @param companyId the company ID
524            * @param key the key
525            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
526            * @return the first matching asset category property, or <code>null</code> if a matching asset category property could not be found
527            * @throws SystemException if a system exception occurred
528            */
529            public static com.liferay.portlet.asset.model.AssetCategoryProperty fetchByC_K_First(
530                    long companyId, java.lang.String key,
531                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
532                    throws com.liferay.portal.kernel.exception.SystemException {
533                    return getPersistence()
534                                       .fetchByC_K_First(companyId, key, orderByComparator);
535            }
536    
537            /**
538            * Returns the last asset category property in the ordered set where companyId = &#63; and key = &#63;.
539            *
540            * @param companyId the company ID
541            * @param key the key
542            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
543            * @return the last matching asset category property
544            * @throws com.liferay.portlet.asset.NoSuchCategoryPropertyException if a matching asset category property could not be found
545            * @throws SystemException if a system exception occurred
546            */
547            public static com.liferay.portlet.asset.model.AssetCategoryProperty findByC_K_Last(
548                    long companyId, java.lang.String key,
549                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
550                    throws com.liferay.portal.kernel.exception.SystemException,
551                            com.liferay.portlet.asset.NoSuchCategoryPropertyException {
552                    return getPersistence().findByC_K_Last(companyId, key, orderByComparator);
553            }
554    
555            /**
556            * Returns the last asset category property in the ordered set where companyId = &#63; and key = &#63;.
557            *
558            * @param companyId the company ID
559            * @param key the key
560            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
561            * @return the last matching asset category property, or <code>null</code> if a matching asset category property could not be found
562            * @throws SystemException if a system exception occurred
563            */
564            public static com.liferay.portlet.asset.model.AssetCategoryProperty fetchByC_K_Last(
565                    long companyId, java.lang.String key,
566                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
567                    throws com.liferay.portal.kernel.exception.SystemException {
568                    return getPersistence()
569                                       .fetchByC_K_Last(companyId, key, orderByComparator);
570            }
571    
572            /**
573            * Returns the asset category properties before and after the current asset category property in the ordered set where companyId = &#63; and key = &#63;.
574            *
575            * @param categoryPropertyId the primary key of the current asset category property
576            * @param companyId the company ID
577            * @param key the key
578            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
579            * @return the previous, current, and next asset category property
580            * @throws com.liferay.portlet.asset.NoSuchCategoryPropertyException if a asset category property with the primary key could not be found
581            * @throws SystemException if a system exception occurred
582            */
583            public static com.liferay.portlet.asset.model.AssetCategoryProperty[] findByC_K_PrevAndNext(
584                    long categoryPropertyId, long companyId, java.lang.String key,
585                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
586                    throws com.liferay.portal.kernel.exception.SystemException,
587                            com.liferay.portlet.asset.NoSuchCategoryPropertyException {
588                    return getPersistence()
589                                       .findByC_K_PrevAndNext(categoryPropertyId, companyId, key,
590                            orderByComparator);
591            }
592    
593            /**
594            * Removes all the asset category properties where companyId = &#63; and key = &#63; from the database.
595            *
596            * @param companyId the company ID
597            * @param key the key
598            * @throws SystemException if a system exception occurred
599            */
600            public static void removeByC_K(long companyId, java.lang.String key)
601                    throws com.liferay.portal.kernel.exception.SystemException {
602                    getPersistence().removeByC_K(companyId, key);
603            }
604    
605            /**
606            * Returns the number of asset category properties where companyId = &#63; and key = &#63;.
607            *
608            * @param companyId the company ID
609            * @param key the key
610            * @return the number of matching asset category properties
611            * @throws SystemException if a system exception occurred
612            */
613            public static int countByC_K(long companyId, java.lang.String key)
614                    throws com.liferay.portal.kernel.exception.SystemException {
615                    return getPersistence().countByC_K(companyId, key);
616            }
617    
618            /**
619            * Returns the asset category property where categoryId = &#63; and key = &#63; or throws a {@link com.liferay.portlet.asset.NoSuchCategoryPropertyException} if it could not be found.
620            *
621            * @param categoryId the category ID
622            * @param key the key
623            * @return the matching asset category property
624            * @throws com.liferay.portlet.asset.NoSuchCategoryPropertyException if a matching asset category property could not be found
625            * @throws SystemException if a system exception occurred
626            */
627            public static com.liferay.portlet.asset.model.AssetCategoryProperty findByCA_K(
628                    long categoryId, java.lang.String key)
629                    throws com.liferay.portal.kernel.exception.SystemException,
630                            com.liferay.portlet.asset.NoSuchCategoryPropertyException {
631                    return getPersistence().findByCA_K(categoryId, key);
632            }
633    
634            /**
635            * 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.
636            *
637            * @param categoryId the category ID
638            * @param key the key
639            * @return the matching asset category property, or <code>null</code> if a matching asset category property could not be found
640            * @throws SystemException if a system exception occurred
641            */
642            public static com.liferay.portlet.asset.model.AssetCategoryProperty fetchByCA_K(
643                    long categoryId, java.lang.String key)
644                    throws com.liferay.portal.kernel.exception.SystemException {
645                    return getPersistence().fetchByCA_K(categoryId, key);
646            }
647    
648            /**
649            * 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.
650            *
651            * @param categoryId the category ID
652            * @param key the key
653            * @param retrieveFromCache whether to use the finder cache
654            * @return the matching asset category property, or <code>null</code> if a matching asset category property could not be found
655            * @throws SystemException if a system exception occurred
656            */
657            public static com.liferay.portlet.asset.model.AssetCategoryProperty fetchByCA_K(
658                    long categoryId, java.lang.String key, boolean retrieveFromCache)
659                    throws com.liferay.portal.kernel.exception.SystemException {
660                    return getPersistence().fetchByCA_K(categoryId, key, retrieveFromCache);
661            }
662    
663            /**
664            * Removes the asset category property where categoryId = &#63; and key = &#63; from the database.
665            *
666            * @param categoryId the category ID
667            * @param key the key
668            * @return the asset category property that was removed
669            * @throws SystemException if a system exception occurred
670            */
671            public static com.liferay.portlet.asset.model.AssetCategoryProperty removeByCA_K(
672                    long categoryId, java.lang.String key)
673                    throws com.liferay.portal.kernel.exception.SystemException,
674                            com.liferay.portlet.asset.NoSuchCategoryPropertyException {
675                    return getPersistence().removeByCA_K(categoryId, key);
676            }
677    
678            /**
679            * Returns the number of asset category properties where categoryId = &#63; and key = &#63;.
680            *
681            * @param categoryId the category ID
682            * @param key the key
683            * @return the number of matching asset category properties
684            * @throws SystemException if a system exception occurred
685            */
686            public static int countByCA_K(long categoryId, java.lang.String key)
687                    throws com.liferay.portal.kernel.exception.SystemException {
688                    return getPersistence().countByCA_K(categoryId, key);
689            }
690    
691            /**
692            * Caches the asset category property in the entity cache if it is enabled.
693            *
694            * @param assetCategoryProperty the asset category property
695            */
696            public static void cacheResult(
697                    com.liferay.portlet.asset.model.AssetCategoryProperty assetCategoryProperty) {
698                    getPersistence().cacheResult(assetCategoryProperty);
699            }
700    
701            /**
702            * Caches the asset category properties in the entity cache if it is enabled.
703            *
704            * @param assetCategoryProperties the asset category properties
705            */
706            public static void cacheResult(
707                    java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> assetCategoryProperties) {
708                    getPersistence().cacheResult(assetCategoryProperties);
709            }
710    
711            /**
712            * Creates a new asset category property with the primary key. Does not add the asset category property to the database.
713            *
714            * @param categoryPropertyId the primary key for the new asset category property
715            * @return the new asset category property
716            */
717            public static com.liferay.portlet.asset.model.AssetCategoryProperty create(
718                    long categoryPropertyId) {
719                    return getPersistence().create(categoryPropertyId);
720            }
721    
722            /**
723            * Removes the asset category property with the primary key from the database. Also notifies the appropriate model listeners.
724            *
725            * @param categoryPropertyId the primary key of the asset category property
726            * @return the asset category property that was removed
727            * @throws com.liferay.portlet.asset.NoSuchCategoryPropertyException if a asset category property with the primary key could not be found
728            * @throws SystemException if a system exception occurred
729            */
730            public static com.liferay.portlet.asset.model.AssetCategoryProperty remove(
731                    long categoryPropertyId)
732                    throws com.liferay.portal.kernel.exception.SystemException,
733                            com.liferay.portlet.asset.NoSuchCategoryPropertyException {
734                    return getPersistence().remove(categoryPropertyId);
735            }
736    
737            public static com.liferay.portlet.asset.model.AssetCategoryProperty updateImpl(
738                    com.liferay.portlet.asset.model.AssetCategoryProperty assetCategoryProperty)
739                    throws com.liferay.portal.kernel.exception.SystemException {
740                    return getPersistence().updateImpl(assetCategoryProperty);
741            }
742    
743            /**
744            * Returns the asset category property with the primary key or throws a {@link com.liferay.portlet.asset.NoSuchCategoryPropertyException} if it could not be found.
745            *
746            * @param categoryPropertyId the primary key of the asset category property
747            * @return the asset category property
748            * @throws com.liferay.portlet.asset.NoSuchCategoryPropertyException if a asset category property with the primary key could not be found
749            * @throws SystemException if a system exception occurred
750            */
751            public static com.liferay.portlet.asset.model.AssetCategoryProperty findByPrimaryKey(
752                    long categoryPropertyId)
753                    throws com.liferay.portal.kernel.exception.SystemException,
754                            com.liferay.portlet.asset.NoSuchCategoryPropertyException {
755                    return getPersistence().findByPrimaryKey(categoryPropertyId);
756            }
757    
758            /**
759            * Returns the asset category property with the primary key or returns <code>null</code> if it could not be found.
760            *
761            * @param categoryPropertyId the primary key of the asset category property
762            * @return the asset category property, or <code>null</code> if a asset category property with the primary key could not be found
763            * @throws SystemException if a system exception occurred
764            */
765            public static com.liferay.portlet.asset.model.AssetCategoryProperty fetchByPrimaryKey(
766                    long categoryPropertyId)
767                    throws com.liferay.portal.kernel.exception.SystemException {
768                    return getPersistence().fetchByPrimaryKey(categoryPropertyId);
769            }
770    
771            /**
772            * Returns all the asset category properties.
773            *
774            * @return the asset category properties
775            * @throws SystemException if a system exception occurred
776            */
777            public static java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findAll()
778                    throws com.liferay.portal.kernel.exception.SystemException {
779                    return getPersistence().findAll();
780            }
781    
782            /**
783            * Returns a range of all the asset category properties.
784            *
785            * <p>
786            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.asset.model.impl.AssetCategoryPropertyModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
787            * </p>
788            *
789            * @param start the lower bound of the range of asset category properties
790            * @param end the upper bound of the range of asset category properties (not inclusive)
791            * @return the range of asset category properties
792            * @throws SystemException if a system exception occurred
793            */
794            public static java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findAll(
795                    int start, int end)
796                    throws com.liferay.portal.kernel.exception.SystemException {
797                    return getPersistence().findAll(start, end);
798            }
799    
800            /**
801            * Returns an ordered range of all the asset category properties.
802            *
803            * <p>
804            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.asset.model.impl.AssetCategoryPropertyModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
805            * </p>
806            *
807            * @param start the lower bound of the range of asset category properties
808            * @param end the upper bound of the range of asset category properties (not inclusive)
809            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
810            * @return the ordered range of asset category properties
811            * @throws SystemException if a system exception occurred
812            */
813            public static java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findAll(
814                    int start, int end,
815                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
816                    throws com.liferay.portal.kernel.exception.SystemException {
817                    return getPersistence().findAll(start, end, orderByComparator);
818            }
819    
820            /**
821            * Removes all the asset category properties from the database.
822            *
823            * @throws SystemException if a system exception occurred
824            */
825            public static void removeAll()
826                    throws com.liferay.portal.kernel.exception.SystemException {
827                    getPersistence().removeAll();
828            }
829    
830            /**
831            * Returns the number of asset category properties.
832            *
833            * @return the number of asset category properties
834            * @throws SystemException if a system exception occurred
835            */
836            public static int countAll()
837                    throws com.liferay.portal.kernel.exception.SystemException {
838                    return getPersistence().countAll();
839            }
840    
841            public static AssetCategoryPropertyPersistence getPersistence() {
842                    if (_persistence == null) {
843                            _persistence = (AssetCategoryPropertyPersistence)PortalBeanLocatorUtil.locate(AssetCategoryPropertyPersistence.class.getName());
844    
845                            ReferenceRegistry.registerReference(AssetCategoryPropertyUtil.class,
846                                    "_persistence");
847                    }
848    
849                    return _persistence;
850            }
851    
852            /**
853             * @deprecated As of 6.2.0
854             */
855            public void setPersistence(AssetCategoryPropertyPersistence persistence) {
856            }
857    
858            private static AssetCategoryPropertyPersistence _persistence;
859    }