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