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