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