001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.asset.service.persistence;
016    
017    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018    import com.liferay.portal.kernel.dao.orm.DynamicQuery;
019    import com.liferay.portal.kernel.exception.SystemException;
020    import com.liferay.portal.kernel.util.OrderByComparator;
021    import com.liferay.portal.service.ServiceContext;
022    
023    import com.liferay.portlet.asset.model.AssetCategoryProperty;
024    
025    import java.util.List;
026    
027    /**
028     * @author    Brian Wing Shun Chan
029     * @see       AssetCategoryPropertyPersistence
030     * @see       AssetCategoryPropertyPersistenceImpl
031     * @generated
032     */
033    public class AssetCategoryPropertyUtil {
034            /**
035             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
036             */
037            public static void clearCache() {
038                    getPersistence().clearCache();
039            }
040    
041            /**
042             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel)
043             */
044            public static void clearCache(AssetCategoryProperty assetCategoryProperty) {
045                    getPersistence().clearCache(assetCategoryProperty);
046            }
047    
048            /**
049             * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
050             */
051            public long countWithDynamicQuery(DynamicQuery dynamicQuery)
052                    throws SystemException {
053                    return getPersistence().countWithDynamicQuery(dynamicQuery);
054            }
055    
056            /**
057             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
058             */
059            public static List<AssetCategoryProperty> findWithDynamicQuery(
060                    DynamicQuery dynamicQuery) throws SystemException {
061                    return getPersistence().findWithDynamicQuery(dynamicQuery);
062            }
063    
064            /**
065             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
066             */
067            public static List<AssetCategoryProperty> findWithDynamicQuery(
068                    DynamicQuery dynamicQuery, int start, int end)
069                    throws SystemException {
070                    return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
071            }
072    
073            /**
074             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
075             */
076            public static List<AssetCategoryProperty> findWithDynamicQuery(
077                    DynamicQuery dynamicQuery, int start, int end,
078                    OrderByComparator orderByComparator) throws SystemException {
079                    return getPersistence()
080                                       .findWithDynamicQuery(dynamicQuery, start, end,
081                            orderByComparator);
082            }
083    
084            /**
085             * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel)
086             */
087            public static AssetCategoryProperty remove(
088                    AssetCategoryProperty assetCategoryProperty) throws SystemException {
089                    return getPersistence().remove(assetCategoryProperty);
090            }
091    
092            /**
093             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
094             */
095            public static AssetCategoryProperty update(
096                    AssetCategoryProperty assetCategoryProperty, boolean merge)
097                    throws SystemException {
098                    return getPersistence().update(assetCategoryProperty, merge);
099            }
100    
101            /**
102             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)
103             */
104            public static AssetCategoryProperty update(
105                    AssetCategoryProperty assetCategoryProperty, boolean merge,
106                    ServiceContext serviceContext) throws SystemException {
107                    return getPersistence()
108                                       .update(assetCategoryProperty, merge, serviceContext);
109            }
110    
111            public static void cacheResult(
112                    com.liferay.portlet.asset.model.AssetCategoryProperty assetCategoryProperty) {
113                    getPersistence().cacheResult(assetCategoryProperty);
114            }
115    
116            public static void cacheResult(
117                    java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> assetCategoryProperties) {
118                    getPersistence().cacheResult(assetCategoryProperties);
119            }
120    
121            public static com.liferay.portlet.asset.model.AssetCategoryProperty create(
122                    long categoryPropertyId) {
123                    return getPersistence().create(categoryPropertyId);
124            }
125    
126            public static com.liferay.portlet.asset.model.AssetCategoryProperty remove(
127                    long categoryPropertyId)
128                    throws com.liferay.portal.kernel.exception.SystemException,
129                            com.liferay.portlet.asset.NoSuchCategoryPropertyException {
130                    return getPersistence().remove(categoryPropertyId);
131            }
132    
133            public static com.liferay.portlet.asset.model.AssetCategoryProperty updateImpl(
134                    com.liferay.portlet.asset.model.AssetCategoryProperty assetCategoryProperty,
135                    boolean merge)
136                    throws com.liferay.portal.kernel.exception.SystemException {
137                    return getPersistence().updateImpl(assetCategoryProperty, merge);
138            }
139    
140            public static com.liferay.portlet.asset.model.AssetCategoryProperty findByPrimaryKey(
141                    long categoryPropertyId)
142                    throws com.liferay.portal.kernel.exception.SystemException,
143                            com.liferay.portlet.asset.NoSuchCategoryPropertyException {
144                    return getPersistence().findByPrimaryKey(categoryPropertyId);
145            }
146    
147            public static com.liferay.portlet.asset.model.AssetCategoryProperty fetchByPrimaryKey(
148                    long categoryPropertyId)
149                    throws com.liferay.portal.kernel.exception.SystemException {
150                    return getPersistence().fetchByPrimaryKey(categoryPropertyId);
151            }
152    
153            public static java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findByCompanyId(
154                    long companyId)
155                    throws com.liferay.portal.kernel.exception.SystemException {
156                    return getPersistence().findByCompanyId(companyId);
157            }
158    
159            public static java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findByCompanyId(
160                    long companyId, int start, int end)
161                    throws com.liferay.portal.kernel.exception.SystemException {
162                    return getPersistence().findByCompanyId(companyId, start, end);
163            }
164    
165            public static java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findByCompanyId(
166                    long companyId, int start, int end,
167                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
168                    throws com.liferay.portal.kernel.exception.SystemException {
169                    return getPersistence()
170                                       .findByCompanyId(companyId, start, end, orderByComparator);
171            }
172    
173            public static com.liferay.portlet.asset.model.AssetCategoryProperty findByCompanyId_First(
174                    long companyId,
175                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
176                    throws com.liferay.portal.kernel.exception.SystemException,
177                            com.liferay.portlet.asset.NoSuchCategoryPropertyException {
178                    return getPersistence()
179                                       .findByCompanyId_First(companyId, orderByComparator);
180            }
181    
182            public static com.liferay.portlet.asset.model.AssetCategoryProperty findByCompanyId_Last(
183                    long companyId,
184                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
185                    throws com.liferay.portal.kernel.exception.SystemException,
186                            com.liferay.portlet.asset.NoSuchCategoryPropertyException {
187                    return getPersistence()
188                                       .findByCompanyId_Last(companyId, orderByComparator);
189            }
190    
191            public static com.liferay.portlet.asset.model.AssetCategoryProperty[] findByCompanyId_PrevAndNext(
192                    long categoryPropertyId, long companyId,
193                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
194                    throws com.liferay.portal.kernel.exception.SystemException,
195                            com.liferay.portlet.asset.NoSuchCategoryPropertyException {
196                    return getPersistence()
197                                       .findByCompanyId_PrevAndNext(categoryPropertyId, companyId,
198                            orderByComparator);
199            }
200    
201            public static java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findByCategoryId(
202                    long categoryId)
203                    throws com.liferay.portal.kernel.exception.SystemException {
204                    return getPersistence().findByCategoryId(categoryId);
205            }
206    
207            public static java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findByCategoryId(
208                    long categoryId, int start, int end)
209                    throws com.liferay.portal.kernel.exception.SystemException {
210                    return getPersistence().findByCategoryId(categoryId, start, end);
211            }
212    
213            public static java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findByCategoryId(
214                    long categoryId, int start, int end,
215                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
216                    throws com.liferay.portal.kernel.exception.SystemException {
217                    return getPersistence()
218                                       .findByCategoryId(categoryId, start, end, orderByComparator);
219            }
220    
221            public static com.liferay.portlet.asset.model.AssetCategoryProperty findByCategoryId_First(
222                    long categoryId,
223                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
224                    throws com.liferay.portal.kernel.exception.SystemException,
225                            com.liferay.portlet.asset.NoSuchCategoryPropertyException {
226                    return getPersistence()
227                                       .findByCategoryId_First(categoryId, orderByComparator);
228            }
229    
230            public static com.liferay.portlet.asset.model.AssetCategoryProperty findByCategoryId_Last(
231                    long categoryId,
232                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
233                    throws com.liferay.portal.kernel.exception.SystemException,
234                            com.liferay.portlet.asset.NoSuchCategoryPropertyException {
235                    return getPersistence()
236                                       .findByCategoryId_Last(categoryId, orderByComparator);
237            }
238    
239            public static com.liferay.portlet.asset.model.AssetCategoryProperty[] findByCategoryId_PrevAndNext(
240                    long categoryPropertyId, long categoryId,
241                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
242                    throws com.liferay.portal.kernel.exception.SystemException,
243                            com.liferay.portlet.asset.NoSuchCategoryPropertyException {
244                    return getPersistence()
245                                       .findByCategoryId_PrevAndNext(categoryPropertyId,
246                            categoryId, orderByComparator);
247            }
248    
249            public static java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findByC_K(
250                    long companyId, java.lang.String key)
251                    throws com.liferay.portal.kernel.exception.SystemException {
252                    return getPersistence().findByC_K(companyId, key);
253            }
254    
255            public static java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findByC_K(
256                    long companyId, java.lang.String key, int start, int end)
257                    throws com.liferay.portal.kernel.exception.SystemException {
258                    return getPersistence().findByC_K(companyId, key, start, end);
259            }
260    
261            public static java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findByC_K(
262                    long companyId, java.lang.String key, int start, int end,
263                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
264                    throws com.liferay.portal.kernel.exception.SystemException {
265                    return getPersistence()
266                                       .findByC_K(companyId, key, start, end, orderByComparator);
267            }
268    
269            public static com.liferay.portlet.asset.model.AssetCategoryProperty findByC_K_First(
270                    long companyId, java.lang.String key,
271                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
272                    throws com.liferay.portal.kernel.exception.SystemException,
273                            com.liferay.portlet.asset.NoSuchCategoryPropertyException {
274                    return getPersistence()
275                                       .findByC_K_First(companyId, key, orderByComparator);
276            }
277    
278            public static com.liferay.portlet.asset.model.AssetCategoryProperty findByC_K_Last(
279                    long companyId, java.lang.String key,
280                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
281                    throws com.liferay.portal.kernel.exception.SystemException,
282                            com.liferay.portlet.asset.NoSuchCategoryPropertyException {
283                    return getPersistence().findByC_K_Last(companyId, key, orderByComparator);
284            }
285    
286            public static com.liferay.portlet.asset.model.AssetCategoryProperty[] findByC_K_PrevAndNext(
287                    long categoryPropertyId, long companyId, java.lang.String key,
288                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
289                    throws com.liferay.portal.kernel.exception.SystemException,
290                            com.liferay.portlet.asset.NoSuchCategoryPropertyException {
291                    return getPersistence()
292                                       .findByC_K_PrevAndNext(categoryPropertyId, companyId, key,
293                            orderByComparator);
294            }
295    
296            public static com.liferay.portlet.asset.model.AssetCategoryProperty findByCA_K(
297                    long categoryId, java.lang.String key)
298                    throws com.liferay.portal.kernel.exception.SystemException,
299                            com.liferay.portlet.asset.NoSuchCategoryPropertyException {
300                    return getPersistence().findByCA_K(categoryId, key);
301            }
302    
303            public static com.liferay.portlet.asset.model.AssetCategoryProperty fetchByCA_K(
304                    long categoryId, java.lang.String key)
305                    throws com.liferay.portal.kernel.exception.SystemException {
306                    return getPersistence().fetchByCA_K(categoryId, key);
307            }
308    
309            public static com.liferay.portlet.asset.model.AssetCategoryProperty fetchByCA_K(
310                    long categoryId, java.lang.String key, boolean retrieveFromCache)
311                    throws com.liferay.portal.kernel.exception.SystemException {
312                    return getPersistence().fetchByCA_K(categoryId, key, retrieveFromCache);
313            }
314    
315            public static java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findAll()
316                    throws com.liferay.portal.kernel.exception.SystemException {
317                    return getPersistence().findAll();
318            }
319    
320            public static java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findAll(
321                    int start, int end)
322                    throws com.liferay.portal.kernel.exception.SystemException {
323                    return getPersistence().findAll(start, end);
324            }
325    
326            public static java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findAll(
327                    int start, int end,
328                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
329                    throws com.liferay.portal.kernel.exception.SystemException {
330                    return getPersistence().findAll(start, end, orderByComparator);
331            }
332    
333            public static void removeByCompanyId(long companyId)
334                    throws com.liferay.portal.kernel.exception.SystemException {
335                    getPersistence().removeByCompanyId(companyId);
336            }
337    
338            public static void removeByCategoryId(long categoryId)
339                    throws com.liferay.portal.kernel.exception.SystemException {
340                    getPersistence().removeByCategoryId(categoryId);
341            }
342    
343            public static void removeByC_K(long companyId, java.lang.String key)
344                    throws com.liferay.portal.kernel.exception.SystemException {
345                    getPersistence().removeByC_K(companyId, key);
346            }
347    
348            public static void removeByCA_K(long categoryId, java.lang.String key)
349                    throws com.liferay.portal.kernel.exception.SystemException,
350                            com.liferay.portlet.asset.NoSuchCategoryPropertyException {
351                    getPersistence().removeByCA_K(categoryId, key);
352            }
353    
354            public static void removeAll()
355                    throws com.liferay.portal.kernel.exception.SystemException {
356                    getPersistence().removeAll();
357            }
358    
359            public static int countByCompanyId(long companyId)
360                    throws com.liferay.portal.kernel.exception.SystemException {
361                    return getPersistence().countByCompanyId(companyId);
362            }
363    
364            public static int countByCategoryId(long categoryId)
365                    throws com.liferay.portal.kernel.exception.SystemException {
366                    return getPersistence().countByCategoryId(categoryId);
367            }
368    
369            public static int countByC_K(long companyId, java.lang.String key)
370                    throws com.liferay.portal.kernel.exception.SystemException {
371                    return getPersistence().countByC_K(companyId, key);
372            }
373    
374            public static int countByCA_K(long categoryId, java.lang.String key)
375                    throws com.liferay.portal.kernel.exception.SystemException {
376                    return getPersistence().countByCA_K(categoryId, key);
377            }
378    
379            public static int countAll()
380                    throws com.liferay.portal.kernel.exception.SystemException {
381                    return getPersistence().countAll();
382            }
383    
384            public static AssetCategoryPropertyPersistence getPersistence() {
385                    if (_persistence == null) {
386                            _persistence = (AssetCategoryPropertyPersistence)PortalBeanLocatorUtil.locate(AssetCategoryPropertyPersistence.class.getName());
387                    }
388    
389                    return _persistence;
390            }
391    
392            public void setPersistence(AssetCategoryPropertyPersistence persistence) {
393                    _persistence = persistence;
394            }
395    
396            private static AssetCategoryPropertyPersistence _persistence;
397    }