1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portlet.asset.service.persistence;
16  
17  import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18  import com.liferay.portal.kernel.dao.orm.DynamicQuery;
19  import com.liferay.portal.kernel.exception.SystemException;
20  
21  import com.liferay.portlet.asset.model.AssetTagStats;
22  
23  import java.util.List;
24  
25  /**
26   * <a href="AssetTagStatsUtil.java.html"><b><i>View Source</i></b></a>
27   *
28   * <p>
29   * ServiceBuilder generated this class. Modifications in this class will be
30   * overwritten the next time is generated.
31   * </p>
32   *
33   * @author    Brian Wing Shun Chan
34   * @see       AssetTagStatsPersistence
35   * @see       AssetTagStatsPersistenceImpl
36   * @generated
37   */
38  public class AssetTagStatsUtil {
39      /**
40       * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
41       */
42      public static void clearCache() {
43          getPersistence().clearCache();
44      }
45  
46      /**
47       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
48       */
49      public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery)
50          throws SystemException {
51          return getPersistence().findWithDynamicQuery(dynamicQuery);
52      }
53  
54      /**
55       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
56       */
57      public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery,
58          int start, int end) throws SystemException {
59          return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
60      }
61  
62      /**
63       * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel)
64       */
65      public static AssetTagStats remove(AssetTagStats assetTagStats)
66          throws SystemException {
67          return getPersistence().remove(assetTagStats);
68      }
69  
70      /**
71       * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
72       */
73      public static AssetTagStats update(AssetTagStats assetTagStats,
74          boolean merge) throws SystemException {
75          return getPersistence().update(assetTagStats, merge);
76      }
77  
78      public static void cacheResult(
79          com.liferay.portlet.asset.model.AssetTagStats assetTagStats) {
80          getPersistence().cacheResult(assetTagStats);
81      }
82  
83      public static void cacheResult(
84          java.util.List<com.liferay.portlet.asset.model.AssetTagStats> assetTagStatses) {
85          getPersistence().cacheResult(assetTagStatses);
86      }
87  
88      public static com.liferay.portlet.asset.model.AssetTagStats create(
89          long tagStatsId) {
90          return getPersistence().create(tagStatsId);
91      }
92  
93      public static com.liferay.portlet.asset.model.AssetTagStats remove(
94          long tagStatsId)
95          throws com.liferay.portal.kernel.exception.SystemException,
96              com.liferay.portlet.asset.NoSuchTagStatsException {
97          return getPersistence().remove(tagStatsId);
98      }
99  
100     public static com.liferay.portlet.asset.model.AssetTagStats updateImpl(
101         com.liferay.portlet.asset.model.AssetTagStats assetTagStats,
102         boolean merge)
103         throws com.liferay.portal.kernel.exception.SystemException {
104         return getPersistence().updateImpl(assetTagStats, merge);
105     }
106 
107     public static com.liferay.portlet.asset.model.AssetTagStats findByPrimaryKey(
108         long tagStatsId)
109         throws com.liferay.portal.kernel.exception.SystemException,
110             com.liferay.portlet.asset.NoSuchTagStatsException {
111         return getPersistence().findByPrimaryKey(tagStatsId);
112     }
113 
114     public static com.liferay.portlet.asset.model.AssetTagStats fetchByPrimaryKey(
115         long tagStatsId)
116         throws com.liferay.portal.kernel.exception.SystemException {
117         return getPersistence().fetchByPrimaryKey(tagStatsId);
118     }
119 
120     public static java.util.List<com.liferay.portlet.asset.model.AssetTagStats> findByTagId(
121         long tagId) throws com.liferay.portal.kernel.exception.SystemException {
122         return getPersistence().findByTagId(tagId);
123     }
124 
125     public static java.util.List<com.liferay.portlet.asset.model.AssetTagStats> findByTagId(
126         long tagId, int start, int end)
127         throws com.liferay.portal.kernel.exception.SystemException {
128         return getPersistence().findByTagId(tagId, start, end);
129     }
130 
131     public static java.util.List<com.liferay.portlet.asset.model.AssetTagStats> findByTagId(
132         long tagId, int start, int end,
133         com.liferay.portal.kernel.util.OrderByComparator obc)
134         throws com.liferay.portal.kernel.exception.SystemException {
135         return getPersistence().findByTagId(tagId, start, end, obc);
136     }
137 
138     public static com.liferay.portlet.asset.model.AssetTagStats findByTagId_First(
139         long tagId, com.liferay.portal.kernel.util.OrderByComparator obc)
140         throws com.liferay.portal.kernel.exception.SystemException,
141             com.liferay.portlet.asset.NoSuchTagStatsException {
142         return getPersistence().findByTagId_First(tagId, obc);
143     }
144 
145     public static com.liferay.portlet.asset.model.AssetTagStats findByTagId_Last(
146         long tagId, com.liferay.portal.kernel.util.OrderByComparator obc)
147         throws com.liferay.portal.kernel.exception.SystemException,
148             com.liferay.portlet.asset.NoSuchTagStatsException {
149         return getPersistence().findByTagId_Last(tagId, obc);
150     }
151 
152     public static com.liferay.portlet.asset.model.AssetTagStats[] findByTagId_PrevAndNext(
153         long tagStatsId, long tagId,
154         com.liferay.portal.kernel.util.OrderByComparator obc)
155         throws com.liferay.portal.kernel.exception.SystemException,
156             com.liferay.portlet.asset.NoSuchTagStatsException {
157         return getPersistence().findByTagId_PrevAndNext(tagStatsId, tagId, obc);
158     }
159 
160     public static java.util.List<com.liferay.portlet.asset.model.AssetTagStats> findByClassNameId(
161         long classNameId)
162         throws com.liferay.portal.kernel.exception.SystemException {
163         return getPersistence().findByClassNameId(classNameId);
164     }
165 
166     public static java.util.List<com.liferay.portlet.asset.model.AssetTagStats> findByClassNameId(
167         long classNameId, int start, int end)
168         throws com.liferay.portal.kernel.exception.SystemException {
169         return getPersistence().findByClassNameId(classNameId, start, end);
170     }
171 
172     public static java.util.List<com.liferay.portlet.asset.model.AssetTagStats> findByClassNameId(
173         long classNameId, int start, int end,
174         com.liferay.portal.kernel.util.OrderByComparator obc)
175         throws com.liferay.portal.kernel.exception.SystemException {
176         return getPersistence().findByClassNameId(classNameId, start, end, obc);
177     }
178 
179     public static com.liferay.portlet.asset.model.AssetTagStats findByClassNameId_First(
180         long classNameId, com.liferay.portal.kernel.util.OrderByComparator obc)
181         throws com.liferay.portal.kernel.exception.SystemException,
182             com.liferay.portlet.asset.NoSuchTagStatsException {
183         return getPersistence().findByClassNameId_First(classNameId, obc);
184     }
185 
186     public static com.liferay.portlet.asset.model.AssetTagStats findByClassNameId_Last(
187         long classNameId, com.liferay.portal.kernel.util.OrderByComparator obc)
188         throws com.liferay.portal.kernel.exception.SystemException,
189             com.liferay.portlet.asset.NoSuchTagStatsException {
190         return getPersistence().findByClassNameId_Last(classNameId, obc);
191     }
192 
193     public static com.liferay.portlet.asset.model.AssetTagStats[] findByClassNameId_PrevAndNext(
194         long tagStatsId, long classNameId,
195         com.liferay.portal.kernel.util.OrderByComparator obc)
196         throws com.liferay.portal.kernel.exception.SystemException,
197             com.liferay.portlet.asset.NoSuchTagStatsException {
198         return getPersistence()
199                    .findByClassNameId_PrevAndNext(tagStatsId, classNameId, obc);
200     }
201 
202     public static com.liferay.portlet.asset.model.AssetTagStats findByT_C(
203         long tagId, long classNameId)
204         throws com.liferay.portal.kernel.exception.SystemException,
205             com.liferay.portlet.asset.NoSuchTagStatsException {
206         return getPersistence().findByT_C(tagId, classNameId);
207     }
208 
209     public static com.liferay.portlet.asset.model.AssetTagStats fetchByT_C(
210         long tagId, long classNameId)
211         throws com.liferay.portal.kernel.exception.SystemException {
212         return getPersistence().fetchByT_C(tagId, classNameId);
213     }
214 
215     public static com.liferay.portlet.asset.model.AssetTagStats fetchByT_C(
216         long tagId, long classNameId, boolean retrieveFromCache)
217         throws com.liferay.portal.kernel.exception.SystemException {
218         return getPersistence().fetchByT_C(tagId, classNameId, retrieveFromCache);
219     }
220 
221     public static java.util.List<com.liferay.portlet.asset.model.AssetTagStats> findAll()
222         throws com.liferay.portal.kernel.exception.SystemException {
223         return getPersistence().findAll();
224     }
225 
226     public static java.util.List<com.liferay.portlet.asset.model.AssetTagStats> findAll(
227         int start, int end)
228         throws com.liferay.portal.kernel.exception.SystemException {
229         return getPersistence().findAll(start, end);
230     }
231 
232     public static java.util.List<com.liferay.portlet.asset.model.AssetTagStats> findAll(
233         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
234         throws com.liferay.portal.kernel.exception.SystemException {
235         return getPersistence().findAll(start, end, obc);
236     }
237 
238     public static void removeByTagId(long tagId)
239         throws com.liferay.portal.kernel.exception.SystemException {
240         getPersistence().removeByTagId(tagId);
241     }
242 
243     public static void removeByClassNameId(long classNameId)
244         throws com.liferay.portal.kernel.exception.SystemException {
245         getPersistence().removeByClassNameId(classNameId);
246     }
247 
248     public static void removeByT_C(long tagId, long classNameId)
249         throws com.liferay.portal.kernel.exception.SystemException,
250             com.liferay.portlet.asset.NoSuchTagStatsException {
251         getPersistence().removeByT_C(tagId, classNameId);
252     }
253 
254     public static void removeAll()
255         throws com.liferay.portal.kernel.exception.SystemException {
256         getPersistence().removeAll();
257     }
258 
259     public static int countByTagId(long tagId)
260         throws com.liferay.portal.kernel.exception.SystemException {
261         return getPersistence().countByTagId(tagId);
262     }
263 
264     public static int countByClassNameId(long classNameId)
265         throws com.liferay.portal.kernel.exception.SystemException {
266         return getPersistence().countByClassNameId(classNameId);
267     }
268 
269     public static int countByT_C(long tagId, long classNameId)
270         throws com.liferay.portal.kernel.exception.SystemException {
271         return getPersistence().countByT_C(tagId, classNameId);
272     }
273 
274     public static int countAll()
275         throws com.liferay.portal.kernel.exception.SystemException {
276         return getPersistence().countAll();
277     }
278 
279     public static AssetTagStatsPersistence getPersistence() {
280         if (_persistence == null) {
281             _persistence = (AssetTagStatsPersistence)PortalBeanLocatorUtil.locate(AssetTagStatsPersistence.class.getName());
282         }
283 
284         return _persistence;
285     }
286 
287     public void setPersistence(AssetTagStatsPersistence persistence) {
288         _persistence = persistence;
289     }
290 
291     private static AssetTagStatsPersistence _persistence;
292 }