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.AssetTagStats;
024    
025    import java.util.List;
026    
027    /**
028     * @author    Brian Wing Shun Chan
029     * @see       AssetTagStatsPersistence
030     * @see       AssetTagStatsPersistenceImpl
031     * @generated
032     */
033    public class AssetTagStatsUtil {
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(AssetTagStats assetTagStats) {
045                    getPersistence().clearCache(assetTagStats);
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<AssetTagStats> 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<AssetTagStats> 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<AssetTagStats> 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 AssetTagStats remove(AssetTagStats assetTagStats)
088                    throws SystemException {
089                    return getPersistence().remove(assetTagStats);
090            }
091    
092            /**
093             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
094             */
095            public static AssetTagStats update(AssetTagStats assetTagStats,
096                    boolean merge) throws SystemException {
097                    return getPersistence().update(assetTagStats, merge);
098            }
099    
100            /**
101             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)
102             */
103            public static AssetTagStats update(AssetTagStats assetTagStats,
104                    boolean merge, ServiceContext serviceContext) throws SystemException {
105                    return getPersistence().update(assetTagStats, merge, serviceContext);
106            }
107    
108            public static void cacheResult(
109                    com.liferay.portlet.asset.model.AssetTagStats assetTagStats) {
110                    getPersistence().cacheResult(assetTagStats);
111            }
112    
113            public static void cacheResult(
114                    java.util.List<com.liferay.portlet.asset.model.AssetTagStats> assetTagStatses) {
115                    getPersistence().cacheResult(assetTagStatses);
116            }
117    
118            public static com.liferay.portlet.asset.model.AssetTagStats create(
119                    long tagStatsId) {
120                    return getPersistence().create(tagStatsId);
121            }
122    
123            public static com.liferay.portlet.asset.model.AssetTagStats remove(
124                    long tagStatsId)
125                    throws com.liferay.portal.kernel.exception.SystemException,
126                            com.liferay.portlet.asset.NoSuchTagStatsException {
127                    return getPersistence().remove(tagStatsId);
128            }
129    
130            public static com.liferay.portlet.asset.model.AssetTagStats updateImpl(
131                    com.liferay.portlet.asset.model.AssetTagStats assetTagStats,
132                    boolean merge)
133                    throws com.liferay.portal.kernel.exception.SystemException {
134                    return getPersistence().updateImpl(assetTagStats, merge);
135            }
136    
137            public static com.liferay.portlet.asset.model.AssetTagStats findByPrimaryKey(
138                    long tagStatsId)
139                    throws com.liferay.portal.kernel.exception.SystemException,
140                            com.liferay.portlet.asset.NoSuchTagStatsException {
141                    return getPersistence().findByPrimaryKey(tagStatsId);
142            }
143    
144            public static com.liferay.portlet.asset.model.AssetTagStats fetchByPrimaryKey(
145                    long tagStatsId)
146                    throws com.liferay.portal.kernel.exception.SystemException {
147                    return getPersistence().fetchByPrimaryKey(tagStatsId);
148            }
149    
150            public static java.util.List<com.liferay.portlet.asset.model.AssetTagStats> findByTagId(
151                    long tagId) throws com.liferay.portal.kernel.exception.SystemException {
152                    return getPersistence().findByTagId(tagId);
153            }
154    
155            public static java.util.List<com.liferay.portlet.asset.model.AssetTagStats> findByTagId(
156                    long tagId, int start, int end)
157                    throws com.liferay.portal.kernel.exception.SystemException {
158                    return getPersistence().findByTagId(tagId, start, end);
159            }
160    
161            public static java.util.List<com.liferay.portlet.asset.model.AssetTagStats> findByTagId(
162                    long tagId, int start, int end,
163                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
164                    throws com.liferay.portal.kernel.exception.SystemException {
165                    return getPersistence().findByTagId(tagId, start, end, orderByComparator);
166            }
167    
168            public static com.liferay.portlet.asset.model.AssetTagStats findByTagId_First(
169                    long tagId,
170                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
171                    throws com.liferay.portal.kernel.exception.SystemException,
172                            com.liferay.portlet.asset.NoSuchTagStatsException {
173                    return getPersistence().findByTagId_First(tagId, orderByComparator);
174            }
175    
176            public static com.liferay.portlet.asset.model.AssetTagStats findByTagId_Last(
177                    long tagId,
178                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
179                    throws com.liferay.portal.kernel.exception.SystemException,
180                            com.liferay.portlet.asset.NoSuchTagStatsException {
181                    return getPersistence().findByTagId_Last(tagId, orderByComparator);
182            }
183    
184            public static com.liferay.portlet.asset.model.AssetTagStats[] findByTagId_PrevAndNext(
185                    long tagStatsId, long tagId,
186                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
187                    throws com.liferay.portal.kernel.exception.SystemException,
188                            com.liferay.portlet.asset.NoSuchTagStatsException {
189                    return getPersistence()
190                                       .findByTagId_PrevAndNext(tagStatsId, tagId, orderByComparator);
191            }
192    
193            public static java.util.List<com.liferay.portlet.asset.model.AssetTagStats> findByClassNameId(
194                    long classNameId)
195                    throws com.liferay.portal.kernel.exception.SystemException {
196                    return getPersistence().findByClassNameId(classNameId);
197            }
198    
199            public static java.util.List<com.liferay.portlet.asset.model.AssetTagStats> findByClassNameId(
200                    long classNameId, int start, int end)
201                    throws com.liferay.portal.kernel.exception.SystemException {
202                    return getPersistence().findByClassNameId(classNameId, start, end);
203            }
204    
205            public static java.util.List<com.liferay.portlet.asset.model.AssetTagStats> findByClassNameId(
206                    long classNameId, int start, int end,
207                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
208                    throws com.liferay.portal.kernel.exception.SystemException {
209                    return getPersistence()
210                                       .findByClassNameId(classNameId, start, end, orderByComparator);
211            }
212    
213            public static com.liferay.portlet.asset.model.AssetTagStats findByClassNameId_First(
214                    long classNameId,
215                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
216                    throws com.liferay.portal.kernel.exception.SystemException,
217                            com.liferay.portlet.asset.NoSuchTagStatsException {
218                    return getPersistence()
219                                       .findByClassNameId_First(classNameId, orderByComparator);
220            }
221    
222            public static com.liferay.portlet.asset.model.AssetTagStats findByClassNameId_Last(
223                    long classNameId,
224                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
225                    throws com.liferay.portal.kernel.exception.SystemException,
226                            com.liferay.portlet.asset.NoSuchTagStatsException {
227                    return getPersistence()
228                                       .findByClassNameId_Last(classNameId, orderByComparator);
229            }
230    
231            public static com.liferay.portlet.asset.model.AssetTagStats[] findByClassNameId_PrevAndNext(
232                    long tagStatsId, long classNameId,
233                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
234                    throws com.liferay.portal.kernel.exception.SystemException,
235                            com.liferay.portlet.asset.NoSuchTagStatsException {
236                    return getPersistence()
237                                       .findByClassNameId_PrevAndNext(tagStatsId, classNameId,
238                            orderByComparator);
239            }
240    
241            public static com.liferay.portlet.asset.model.AssetTagStats findByT_C(
242                    long tagId, long classNameId)
243                    throws com.liferay.portal.kernel.exception.SystemException,
244                            com.liferay.portlet.asset.NoSuchTagStatsException {
245                    return getPersistence().findByT_C(tagId, classNameId);
246            }
247    
248            public static com.liferay.portlet.asset.model.AssetTagStats fetchByT_C(
249                    long tagId, long classNameId)
250                    throws com.liferay.portal.kernel.exception.SystemException {
251                    return getPersistence().fetchByT_C(tagId, classNameId);
252            }
253    
254            public static com.liferay.portlet.asset.model.AssetTagStats fetchByT_C(
255                    long tagId, long classNameId, boolean retrieveFromCache)
256                    throws com.liferay.portal.kernel.exception.SystemException {
257                    return getPersistence().fetchByT_C(tagId, classNameId, retrieveFromCache);
258            }
259    
260            public static java.util.List<com.liferay.portlet.asset.model.AssetTagStats> findAll()
261                    throws com.liferay.portal.kernel.exception.SystemException {
262                    return getPersistence().findAll();
263            }
264    
265            public static java.util.List<com.liferay.portlet.asset.model.AssetTagStats> findAll(
266                    int start, int end)
267                    throws com.liferay.portal.kernel.exception.SystemException {
268                    return getPersistence().findAll(start, end);
269            }
270    
271            public static java.util.List<com.liferay.portlet.asset.model.AssetTagStats> findAll(
272                    int start, int end,
273                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
274                    throws com.liferay.portal.kernel.exception.SystemException {
275                    return getPersistence().findAll(start, end, orderByComparator);
276            }
277    
278            public static void removeByTagId(long tagId)
279                    throws com.liferay.portal.kernel.exception.SystemException {
280                    getPersistence().removeByTagId(tagId);
281            }
282    
283            public static void removeByClassNameId(long classNameId)
284                    throws com.liferay.portal.kernel.exception.SystemException {
285                    getPersistence().removeByClassNameId(classNameId);
286            }
287    
288            public static void removeByT_C(long tagId, long classNameId)
289                    throws com.liferay.portal.kernel.exception.SystemException,
290                            com.liferay.portlet.asset.NoSuchTagStatsException {
291                    getPersistence().removeByT_C(tagId, classNameId);
292            }
293    
294            public static void removeAll()
295                    throws com.liferay.portal.kernel.exception.SystemException {
296                    getPersistence().removeAll();
297            }
298    
299            public static int countByTagId(long tagId)
300                    throws com.liferay.portal.kernel.exception.SystemException {
301                    return getPersistence().countByTagId(tagId);
302            }
303    
304            public static int countByClassNameId(long classNameId)
305                    throws com.liferay.portal.kernel.exception.SystemException {
306                    return getPersistence().countByClassNameId(classNameId);
307            }
308    
309            public static int countByT_C(long tagId, long classNameId)
310                    throws com.liferay.portal.kernel.exception.SystemException {
311                    return getPersistence().countByT_C(tagId, classNameId);
312            }
313    
314            public static int countAll()
315                    throws com.liferay.portal.kernel.exception.SystemException {
316                    return getPersistence().countAll();
317            }
318    
319            public static AssetTagStatsPersistence getPersistence() {
320                    if (_persistence == null) {
321                            _persistence = (AssetTagStatsPersistence)PortalBeanLocatorUtil.locate(AssetTagStatsPersistence.class.getName());
322                    }
323    
324                    return _persistence;
325            }
326    
327            public void setPersistence(AssetTagStatsPersistence persistence) {
328                    _persistence = persistence;
329            }
330    
331            private static AssetTagStatsPersistence _persistence;
332    }