001    /**
002     * Copyright (c) 2000-2012 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 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            * Caches the asset category property in the entity cache if it is enabled.
116            *
117            * @param assetCategoryProperty the asset category property
118            */
119            public static void cacheResult(
120                    com.liferay.portlet.asset.model.AssetCategoryProperty assetCategoryProperty) {
121                    getPersistence().cacheResult(assetCategoryProperty);
122            }
123    
124            /**
125            * Caches the asset category properties in the entity cache if it is enabled.
126            *
127            * @param assetCategoryProperties the asset category properties
128            */
129            public static void cacheResult(
130                    java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> assetCategoryProperties) {
131                    getPersistence().cacheResult(assetCategoryProperties);
132            }
133    
134            /**
135            * Creates a new asset category property with the primary key. Does not add the asset category property to the database.
136            *
137            * @param categoryPropertyId the primary key for the new asset category property
138            * @return the new asset category property
139            */
140            public static com.liferay.portlet.asset.model.AssetCategoryProperty create(
141                    long categoryPropertyId) {
142                    return getPersistence().create(categoryPropertyId);
143            }
144    
145            /**
146            * Removes the asset category property with the primary key from the database. Also notifies the appropriate model listeners.
147            *
148            * @param categoryPropertyId the primary key of the asset category property
149            * @return the asset category property that was removed
150            * @throws com.liferay.portlet.asset.NoSuchCategoryPropertyException if a asset category property with the primary key could not be found
151            * @throws SystemException if a system exception occurred
152            */
153            public static com.liferay.portlet.asset.model.AssetCategoryProperty remove(
154                    long categoryPropertyId)
155                    throws com.liferay.portal.kernel.exception.SystemException,
156                            com.liferay.portlet.asset.NoSuchCategoryPropertyException {
157                    return getPersistence().remove(categoryPropertyId);
158            }
159    
160            public static com.liferay.portlet.asset.model.AssetCategoryProperty updateImpl(
161                    com.liferay.portlet.asset.model.AssetCategoryProperty assetCategoryProperty)
162                    throws com.liferay.portal.kernel.exception.SystemException {
163                    return getPersistence().updateImpl(assetCategoryProperty);
164            }
165    
166            /**
167            * Returns the asset category property with the primary key or throws a {@link com.liferay.portlet.asset.NoSuchCategoryPropertyException} if it could not be found.
168            *
169            * @param categoryPropertyId the primary key of the asset category property
170            * @return the asset category property
171            * @throws com.liferay.portlet.asset.NoSuchCategoryPropertyException if a asset category property with the primary key could not be found
172            * @throws SystemException if a system exception occurred
173            */
174            public static com.liferay.portlet.asset.model.AssetCategoryProperty findByPrimaryKey(
175                    long categoryPropertyId)
176                    throws com.liferay.portal.kernel.exception.SystemException,
177                            com.liferay.portlet.asset.NoSuchCategoryPropertyException {
178                    return getPersistence().findByPrimaryKey(categoryPropertyId);
179            }
180    
181            /**
182            * Returns the asset category property with the primary key or returns <code>null</code> if it could not be found.
183            *
184            * @param categoryPropertyId the primary key of the asset category property
185            * @return the asset category property, or <code>null</code> if a asset category property with the primary key could not be found
186            * @throws SystemException if a system exception occurred
187            */
188            public static com.liferay.portlet.asset.model.AssetCategoryProperty fetchByPrimaryKey(
189                    long categoryPropertyId)
190                    throws com.liferay.portal.kernel.exception.SystemException {
191                    return getPersistence().fetchByPrimaryKey(categoryPropertyId);
192            }
193    
194            /**
195            * Returns all the asset category properties where companyId = &#63;.
196            *
197            * @param companyId the company ID
198            * @return the matching asset category properties
199            * @throws SystemException if a system exception occurred
200            */
201            public static java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findByCompanyId(
202                    long companyId)
203                    throws com.liferay.portal.kernel.exception.SystemException {
204                    return getPersistence().findByCompanyId(companyId);
205            }
206    
207            /**
208            * Returns a range of all the asset category properties where companyId = &#63;.
209            *
210            * <p>
211            * 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.
212            * </p>
213            *
214            * @param companyId the company ID
215            * @param start the lower bound of the range of asset category properties
216            * @param end the upper bound of the range of asset category properties (not inclusive)
217            * @return the range of matching asset category properties
218            * @throws SystemException if a system exception occurred
219            */
220            public static java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findByCompanyId(
221                    long companyId, int start, int end)
222                    throws com.liferay.portal.kernel.exception.SystemException {
223                    return getPersistence().findByCompanyId(companyId, start, end);
224            }
225    
226            /**
227            * Returns an ordered range of all the asset category properties where companyId = &#63;.
228            *
229            * <p>
230            * 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.
231            * </p>
232            *
233            * @param companyId the company ID
234            * @param start the lower bound of the range of asset category properties
235            * @param end the upper bound of the range of asset category properties (not inclusive)
236            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
237            * @return the ordered range of matching asset category properties
238            * @throws SystemException if a system exception occurred
239            */
240            public static java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findByCompanyId(
241                    long companyId, int start, int end,
242                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
243                    throws com.liferay.portal.kernel.exception.SystemException {
244                    return getPersistence()
245                                       .findByCompanyId(companyId, start, end, orderByComparator);
246            }
247    
248            /**
249            * Returns the first asset category property in the ordered set where companyId = &#63;.
250            *
251            * @param companyId the company ID
252            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
253            * @return the first matching asset category property
254            * @throws com.liferay.portlet.asset.NoSuchCategoryPropertyException if a matching asset category property could not be found
255            * @throws SystemException if a system exception occurred
256            */
257            public static com.liferay.portlet.asset.model.AssetCategoryProperty findByCompanyId_First(
258                    long companyId,
259                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
260                    throws com.liferay.portal.kernel.exception.SystemException,
261                            com.liferay.portlet.asset.NoSuchCategoryPropertyException {
262                    return getPersistence()
263                                       .findByCompanyId_First(companyId, orderByComparator);
264            }
265    
266            /**
267            * Returns the first asset category property in the ordered set where companyId = &#63;.
268            *
269            * @param companyId the company ID
270            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
271            * @return the first matching asset category property, or <code>null</code> if a matching asset category property could not be found
272            * @throws SystemException if a system exception occurred
273            */
274            public static com.liferay.portlet.asset.model.AssetCategoryProperty fetchByCompanyId_First(
275                    long companyId,
276                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
277                    throws com.liferay.portal.kernel.exception.SystemException {
278                    return getPersistence()
279                                       .fetchByCompanyId_First(companyId, orderByComparator);
280            }
281    
282            /**
283            * Returns the last asset category property in the ordered set where companyId = &#63;.
284            *
285            * @param companyId the company ID
286            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
287            * @return the last matching asset category property
288            * @throws com.liferay.portlet.asset.NoSuchCategoryPropertyException if a matching asset category property could not be found
289            * @throws SystemException if a system exception occurred
290            */
291            public static com.liferay.portlet.asset.model.AssetCategoryProperty findByCompanyId_Last(
292                    long companyId,
293                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
294                    throws com.liferay.portal.kernel.exception.SystemException,
295                            com.liferay.portlet.asset.NoSuchCategoryPropertyException {
296                    return getPersistence()
297                                       .findByCompanyId_Last(companyId, orderByComparator);
298            }
299    
300            /**
301            * Returns the last asset category property in the ordered set where companyId = &#63;.
302            *
303            * @param companyId the company ID
304            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
305            * @return the last matching asset category property, or <code>null</code> if a matching asset category property could not be found
306            * @throws SystemException if a system exception occurred
307            */
308            public static com.liferay.portlet.asset.model.AssetCategoryProperty fetchByCompanyId_Last(
309                    long companyId,
310                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
311                    throws com.liferay.portal.kernel.exception.SystemException {
312                    return getPersistence()
313                                       .fetchByCompanyId_Last(companyId, orderByComparator);
314            }
315    
316            /**
317            * Returns the asset category properties before and after the current asset category property in the ordered set where companyId = &#63;.
318            *
319            * @param categoryPropertyId the primary key of the current asset category property
320            * @param companyId the company ID
321            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
322            * @return the previous, current, and next asset category property
323            * @throws com.liferay.portlet.asset.NoSuchCategoryPropertyException if a asset category property with the primary key could not be found
324            * @throws SystemException if a system exception occurred
325            */
326            public static com.liferay.portlet.asset.model.AssetCategoryProperty[] findByCompanyId_PrevAndNext(
327                    long categoryPropertyId, long companyId,
328                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
329                    throws com.liferay.portal.kernel.exception.SystemException,
330                            com.liferay.portlet.asset.NoSuchCategoryPropertyException {
331                    return getPersistence()
332                                       .findByCompanyId_PrevAndNext(categoryPropertyId, companyId,
333                            orderByComparator);
334            }
335    
336            /**
337            * Returns all the asset category properties where categoryId = &#63;.
338            *
339            * @param categoryId the category ID
340            * @return the matching asset category properties
341            * @throws SystemException if a system exception occurred
342            */
343            public static java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findByCategoryId(
344                    long categoryId)
345                    throws com.liferay.portal.kernel.exception.SystemException {
346                    return getPersistence().findByCategoryId(categoryId);
347            }
348    
349            /**
350            * Returns a range of all the asset category properties where categoryId = &#63;.
351            *
352            * <p>
353            * 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.
354            * </p>
355            *
356            * @param categoryId the category ID
357            * @param start the lower bound of the range of asset category properties
358            * @param end the upper bound of the range of asset category properties (not inclusive)
359            * @return the range of matching asset category properties
360            * @throws SystemException if a system exception occurred
361            */
362            public static java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findByCategoryId(
363                    long categoryId, int start, int end)
364                    throws com.liferay.portal.kernel.exception.SystemException {
365                    return getPersistence().findByCategoryId(categoryId, start, end);
366            }
367    
368            /**
369            * Returns an ordered range of all the asset category properties where categoryId = &#63;.
370            *
371            * <p>
372            * 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.
373            * </p>
374            *
375            * @param categoryId the category ID
376            * @param start the lower bound of the range of asset category properties
377            * @param end the upper bound of the range of asset category properties (not inclusive)
378            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
379            * @return the ordered range of matching asset category properties
380            * @throws SystemException if a system exception occurred
381            */
382            public static java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findByCategoryId(
383                    long categoryId, int start, int end,
384                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
385                    throws com.liferay.portal.kernel.exception.SystemException {
386                    return getPersistence()
387                                       .findByCategoryId(categoryId, start, end, orderByComparator);
388            }
389    
390            /**
391            * Returns the first asset category property in the ordered set where categoryId = &#63;.
392            *
393            * @param categoryId the category ID
394            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
395            * @return the first matching asset category property
396            * @throws com.liferay.portlet.asset.NoSuchCategoryPropertyException if a matching asset category property could not be found
397            * @throws SystemException if a system exception occurred
398            */
399            public static com.liferay.portlet.asset.model.AssetCategoryProperty findByCategoryId_First(
400                    long categoryId,
401                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
402                    throws com.liferay.portal.kernel.exception.SystemException,
403                            com.liferay.portlet.asset.NoSuchCategoryPropertyException {
404                    return getPersistence()
405                                       .findByCategoryId_First(categoryId, orderByComparator);
406            }
407    
408            /**
409            * Returns the first asset category property in the ordered set where categoryId = &#63;.
410            *
411            * @param categoryId the category ID
412            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
413            * @return the first matching asset category property, or <code>null</code> if a matching asset category property could not be found
414            * @throws SystemException if a system exception occurred
415            */
416            public static com.liferay.portlet.asset.model.AssetCategoryProperty fetchByCategoryId_First(
417                    long categoryId,
418                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
419                    throws com.liferay.portal.kernel.exception.SystemException {
420                    return getPersistence()
421                                       .fetchByCategoryId_First(categoryId, orderByComparator);
422            }
423    
424            /**
425            * Returns the last asset category property in the ordered set where categoryId = &#63;.
426            *
427            * @param categoryId the category ID
428            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
429            * @return the last matching asset category property
430            * @throws com.liferay.portlet.asset.NoSuchCategoryPropertyException if a matching asset category property could not be found
431            * @throws SystemException if a system exception occurred
432            */
433            public static com.liferay.portlet.asset.model.AssetCategoryProperty findByCategoryId_Last(
434                    long categoryId,
435                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
436                    throws com.liferay.portal.kernel.exception.SystemException,
437                            com.liferay.portlet.asset.NoSuchCategoryPropertyException {
438                    return getPersistence()
439                                       .findByCategoryId_Last(categoryId, orderByComparator);
440            }
441    
442            /**
443            * Returns the last asset category property in the ordered set where categoryId = &#63;.
444            *
445            * @param categoryId the category ID
446            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
447            * @return the last matching asset category property, or <code>null</code> if a matching asset category property could not be found
448            * @throws SystemException if a system exception occurred
449            */
450            public static com.liferay.portlet.asset.model.AssetCategoryProperty fetchByCategoryId_Last(
451                    long categoryId,
452                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
453                    throws com.liferay.portal.kernel.exception.SystemException {
454                    return getPersistence()
455                                       .fetchByCategoryId_Last(categoryId, orderByComparator);
456            }
457    
458            /**
459            * Returns the asset category properties before and after the current asset category property in the ordered set where categoryId = &#63;.
460            *
461            * @param categoryPropertyId the primary key of the current asset category property
462            * @param categoryId the category ID
463            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
464            * @return the previous, current, and next asset category property
465            * @throws com.liferay.portlet.asset.NoSuchCategoryPropertyException if a asset category property with the primary key could not be found
466            * @throws SystemException if a system exception occurred
467            */
468            public static com.liferay.portlet.asset.model.AssetCategoryProperty[] findByCategoryId_PrevAndNext(
469                    long categoryPropertyId, long categoryId,
470                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
471                    throws com.liferay.portal.kernel.exception.SystemException,
472                            com.liferay.portlet.asset.NoSuchCategoryPropertyException {
473                    return getPersistence()
474                                       .findByCategoryId_PrevAndNext(categoryPropertyId,
475                            categoryId, orderByComparator);
476            }
477    
478            /**
479            * Returns all the asset category properties where companyId = &#63; and key = &#63;.
480            *
481            * @param companyId the company ID
482            * @param key the key
483            * @return the matching asset category properties
484            * @throws SystemException if a system exception occurred
485            */
486            public static java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findByC_K(
487                    long companyId, java.lang.String key)
488                    throws com.liferay.portal.kernel.exception.SystemException {
489                    return getPersistence().findByC_K(companyId, key);
490            }
491    
492            /**
493            * Returns a range of all the asset category properties where companyId = &#63; and key = &#63;.
494            *
495            * <p>
496            * 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.
497            * </p>
498            *
499            * @param companyId the company ID
500            * @param key the key
501            * @param start the lower bound of the range of asset category properties
502            * @param end the upper bound of the range of asset category properties (not inclusive)
503            * @return the range of matching asset category properties
504            * @throws SystemException if a system exception occurred
505            */
506            public static java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findByC_K(
507                    long companyId, java.lang.String key, int start, int end)
508                    throws com.liferay.portal.kernel.exception.SystemException {
509                    return getPersistence().findByC_K(companyId, key, start, end);
510            }
511    
512            /**
513            * Returns an ordered range of all the asset category properties where companyId = &#63; and key = &#63;.
514            *
515            * <p>
516            * 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.
517            * </p>
518            *
519            * @param companyId the company ID
520            * @param key the key
521            * @param start the lower bound of the range of asset category properties
522            * @param end the upper bound of the range of asset category properties (not inclusive)
523            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
524            * @return the ordered range of matching asset category properties
525            * @throws SystemException if a system exception occurred
526            */
527            public static java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findByC_K(
528                    long companyId, java.lang.String key, int start, int end,
529                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
530                    throws com.liferay.portal.kernel.exception.SystemException {
531                    return getPersistence()
532                                       .findByC_K(companyId, key, start, end, orderByComparator);
533            }
534    
535            /**
536            * Returns the first asset category property in the ordered set where companyId = &#63; and key = &#63;.
537            *
538            * @param companyId the company ID
539            * @param key the key
540            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
541            * @return the first matching asset category property
542            * @throws com.liferay.portlet.asset.NoSuchCategoryPropertyException if a matching asset category property could not be found
543            * @throws SystemException if a system exception occurred
544            */
545            public static com.liferay.portlet.asset.model.AssetCategoryProperty findByC_K_First(
546                    long companyId, java.lang.String key,
547                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
548                    throws com.liferay.portal.kernel.exception.SystemException,
549                            com.liferay.portlet.asset.NoSuchCategoryPropertyException {
550                    return getPersistence()
551                                       .findByC_K_First(companyId, key, orderByComparator);
552            }
553    
554            /**
555            * Returns the first asset category property in the ordered set where companyId = &#63; and key = &#63;.
556            *
557            * @param companyId the company ID
558            * @param key the key
559            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
560            * @return the first matching asset category property, or <code>null</code> if a matching asset category property could not be found
561            * @throws SystemException if a system exception occurred
562            */
563            public static com.liferay.portlet.asset.model.AssetCategoryProperty fetchByC_K_First(
564                    long companyId, java.lang.String key,
565                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
566                    throws com.liferay.portal.kernel.exception.SystemException {
567                    return getPersistence()
568                                       .fetchByC_K_First(companyId, key, orderByComparator);
569            }
570    
571            /**
572            * Returns the last asset category property in the ordered set where companyId = &#63; and key = &#63;.
573            *
574            * @param companyId the company ID
575            * @param key the key
576            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
577            * @return the last matching asset category property
578            * @throws com.liferay.portlet.asset.NoSuchCategoryPropertyException if a matching asset category property could not be found
579            * @throws SystemException if a system exception occurred
580            */
581            public static com.liferay.portlet.asset.model.AssetCategoryProperty findByC_K_Last(
582                    long companyId, java.lang.String key,
583                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
584                    throws com.liferay.portal.kernel.exception.SystemException,
585                            com.liferay.portlet.asset.NoSuchCategoryPropertyException {
586                    return getPersistence().findByC_K_Last(companyId, key, orderByComparator);
587            }
588    
589            /**
590            * Returns the last asset category property in the ordered set where companyId = &#63; and key = &#63;.
591            *
592            * @param companyId the company ID
593            * @param key the key
594            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
595            * @return the last matching asset category property, or <code>null</code> if a matching asset category property could not be found
596            * @throws SystemException if a system exception occurred
597            */
598            public static com.liferay.portlet.asset.model.AssetCategoryProperty fetchByC_K_Last(
599                    long companyId, java.lang.String key,
600                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
601                    throws com.liferay.portal.kernel.exception.SystemException {
602                    return getPersistence()
603                                       .fetchByC_K_Last(companyId, key, orderByComparator);
604            }
605    
606            /**
607            * Returns the asset category properties before and after the current asset category property in the ordered set where companyId = &#63; and key = &#63;.
608            *
609            * @param categoryPropertyId the primary key of the current asset category property
610            * @param companyId the company ID
611            * @param key the key
612            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
613            * @return the previous, current, and next asset category property
614            * @throws com.liferay.portlet.asset.NoSuchCategoryPropertyException if a asset category property with the primary key could not be found
615            * @throws SystemException if a system exception occurred
616            */
617            public static com.liferay.portlet.asset.model.AssetCategoryProperty[] findByC_K_PrevAndNext(
618                    long categoryPropertyId, long companyId, java.lang.String key,
619                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
620                    throws com.liferay.portal.kernel.exception.SystemException,
621                            com.liferay.portlet.asset.NoSuchCategoryPropertyException {
622                    return getPersistence()
623                                       .findByC_K_PrevAndNext(categoryPropertyId, companyId, key,
624                            orderByComparator);
625            }
626    
627            /**
628            * 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.
629            *
630            * @param categoryId the category ID
631            * @param key the key
632            * @return the matching asset category property
633            * @throws com.liferay.portlet.asset.NoSuchCategoryPropertyException if a matching asset category property could not be found
634            * @throws SystemException if a system exception occurred
635            */
636            public static com.liferay.portlet.asset.model.AssetCategoryProperty findByCA_K(
637                    long categoryId, java.lang.String key)
638                    throws com.liferay.portal.kernel.exception.SystemException,
639                            com.liferay.portlet.asset.NoSuchCategoryPropertyException {
640                    return getPersistence().findByCA_K(categoryId, key);
641            }
642    
643            /**
644            * 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.
645            *
646            * @param categoryId the category ID
647            * @param key the key
648            * @return the matching asset category property, or <code>null</code> if a matching asset category property could not be found
649            * @throws SystemException if a system exception occurred
650            */
651            public static com.liferay.portlet.asset.model.AssetCategoryProperty fetchByCA_K(
652                    long categoryId, java.lang.String key)
653                    throws com.liferay.portal.kernel.exception.SystemException {
654                    return getPersistence().fetchByCA_K(categoryId, key);
655            }
656    
657            /**
658            * 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.
659            *
660            * @param categoryId the category ID
661            * @param key the key
662            * @param retrieveFromCache whether to use the finder cache
663            * @return the matching asset category property, or <code>null</code> if a matching asset category property could not be found
664            * @throws SystemException if a system exception occurred
665            */
666            public static com.liferay.portlet.asset.model.AssetCategoryProperty fetchByCA_K(
667                    long categoryId, java.lang.String key, boolean retrieveFromCache)
668                    throws com.liferay.portal.kernel.exception.SystemException {
669                    return getPersistence().fetchByCA_K(categoryId, key, retrieveFromCache);
670            }
671    
672            /**
673            * Returns all the asset category properties.
674            *
675            * @return the asset category properties
676            * @throws SystemException if a system exception occurred
677            */
678            public static java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findAll()
679                    throws com.liferay.portal.kernel.exception.SystemException {
680                    return getPersistence().findAll();
681            }
682    
683            /**
684            * Returns a range of all the asset category properties.
685            *
686            * <p>
687            * 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.
688            * </p>
689            *
690            * @param start the lower bound of the range of asset category properties
691            * @param end the upper bound of the range of asset category properties (not inclusive)
692            * @return the range of asset category properties
693            * @throws SystemException if a system exception occurred
694            */
695            public static java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findAll(
696                    int start, int end)
697                    throws com.liferay.portal.kernel.exception.SystemException {
698                    return getPersistence().findAll(start, end);
699            }
700    
701            /**
702            * Returns an ordered range of all the asset category properties.
703            *
704            * <p>
705            * 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.
706            * </p>
707            *
708            * @param start the lower bound of the range of asset category properties
709            * @param end the upper bound of the range of asset category properties (not inclusive)
710            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
711            * @return the ordered range of asset category properties
712            * @throws SystemException if a system exception occurred
713            */
714            public static java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findAll(
715                    int start, int end,
716                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
717                    throws com.liferay.portal.kernel.exception.SystemException {
718                    return getPersistence().findAll(start, end, orderByComparator);
719            }
720    
721            /**
722            * Removes all the asset category properties where companyId = &#63; from the database.
723            *
724            * @param companyId the company ID
725            * @throws SystemException if a system exception occurred
726            */
727            public static void removeByCompanyId(long companyId)
728                    throws com.liferay.portal.kernel.exception.SystemException {
729                    getPersistence().removeByCompanyId(companyId);
730            }
731    
732            /**
733            * Removes all the asset category properties where categoryId = &#63; from the database.
734            *
735            * @param categoryId the category ID
736            * @throws SystemException if a system exception occurred
737            */
738            public static void removeByCategoryId(long categoryId)
739                    throws com.liferay.portal.kernel.exception.SystemException {
740                    getPersistence().removeByCategoryId(categoryId);
741            }
742    
743            /**
744            * Removes all the asset category properties where companyId = &#63; and key = &#63; from the database.
745            *
746            * @param companyId the company ID
747            * @param key the key
748            * @throws SystemException if a system exception occurred
749            */
750            public static void removeByC_K(long companyId, java.lang.String key)
751                    throws com.liferay.portal.kernel.exception.SystemException {
752                    getPersistence().removeByC_K(companyId, key);
753            }
754    
755            /**
756            * Removes the asset category property where categoryId = &#63; and key = &#63; from the database.
757            *
758            * @param categoryId the category ID
759            * @param key the key
760            * @return the asset category property that was removed
761            * @throws SystemException if a system exception occurred
762            */
763            public static com.liferay.portlet.asset.model.AssetCategoryProperty removeByCA_K(
764                    long categoryId, java.lang.String key)
765                    throws com.liferay.portal.kernel.exception.SystemException,
766                            com.liferay.portlet.asset.NoSuchCategoryPropertyException {
767                    return getPersistence().removeByCA_K(categoryId, key);
768            }
769    
770            /**
771            * Removes all the asset category properties from the database.
772            *
773            * @throws SystemException if a system exception occurred
774            */
775            public static void removeAll()
776                    throws com.liferay.portal.kernel.exception.SystemException {
777                    getPersistence().removeAll();
778            }
779    
780            /**
781            * Returns the number of asset category properties where companyId = &#63;.
782            *
783            * @param companyId the company ID
784            * @return the number of matching asset category properties
785            * @throws SystemException if a system exception occurred
786            */
787            public static int countByCompanyId(long companyId)
788                    throws com.liferay.portal.kernel.exception.SystemException {
789                    return getPersistence().countByCompanyId(companyId);
790            }
791    
792            /**
793            * Returns the number of asset category properties where categoryId = &#63;.
794            *
795            * @param categoryId the category ID
796            * @return the number of matching asset category properties
797            * @throws SystemException if a system exception occurred
798            */
799            public static int countByCategoryId(long categoryId)
800                    throws com.liferay.portal.kernel.exception.SystemException {
801                    return getPersistence().countByCategoryId(categoryId);
802            }
803    
804            /**
805            * Returns the number of asset category properties where companyId = &#63; and key = &#63;.
806            *
807            * @param companyId the company ID
808            * @param key the key
809            * @return the number of matching asset category properties
810            * @throws SystemException if a system exception occurred
811            */
812            public static int countByC_K(long companyId, java.lang.String key)
813                    throws com.liferay.portal.kernel.exception.SystemException {
814                    return getPersistence().countByC_K(companyId, key);
815            }
816    
817            /**
818            * Returns the number of asset category properties where categoryId = &#63; and key = &#63;.
819            *
820            * @param categoryId the category ID
821            * @param key the key
822            * @return the number of matching asset category properties
823            * @throws SystemException if a system exception occurred
824            */
825            public static int countByCA_K(long categoryId, java.lang.String key)
826                    throws com.liferay.portal.kernel.exception.SystemException {
827                    return getPersistence().countByCA_K(categoryId, key);
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
854             */
855            public void setPersistence(AssetCategoryPropertyPersistence persistence) {
856            }
857    
858            private static AssetCategoryPropertyPersistence _persistence;
859    }