1
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
38 public class AssetTagStatsUtil {
39
42 public static void clearCache() {
43 getPersistence().clearCache();
44 }
45
46
49 public static void clearCache(AssetTagStats assetTagStats) {
50 getPersistence().clearCache(assetTagStats);
51 }
52
53
56 public long countWithDynamicQuery(DynamicQuery dynamicQuery)
57 throws SystemException {
58 return getPersistence().countWithDynamicQuery(dynamicQuery);
59 }
60
61
64 public static List<AssetTagStats> findWithDynamicQuery(
65 DynamicQuery dynamicQuery) throws SystemException {
66 return getPersistence().findWithDynamicQuery(dynamicQuery);
67 }
68
69
72 public static List<AssetTagStats> findWithDynamicQuery(
73 DynamicQuery dynamicQuery, int start, int end)
74 throws SystemException {
75 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
76 }
77
78
81 public static AssetTagStats remove(AssetTagStats assetTagStats)
82 throws SystemException {
83 return getPersistence().remove(assetTagStats);
84 }
85
86
89 public static AssetTagStats update(AssetTagStats assetTagStats,
90 boolean merge) throws SystemException {
91 return getPersistence().update(assetTagStats, merge);
92 }
93
94 public static void cacheResult(
95 com.liferay.portlet.asset.model.AssetTagStats assetTagStats) {
96 getPersistence().cacheResult(assetTagStats);
97 }
98
99 public static void cacheResult(
100 java.util.List<com.liferay.portlet.asset.model.AssetTagStats> assetTagStatses) {
101 getPersistence().cacheResult(assetTagStatses);
102 }
103
104 public static com.liferay.portlet.asset.model.AssetTagStats create(
105 long tagStatsId) {
106 return getPersistence().create(tagStatsId);
107 }
108
109 public static com.liferay.portlet.asset.model.AssetTagStats remove(
110 long tagStatsId)
111 throws com.liferay.portal.kernel.exception.SystemException,
112 com.liferay.portlet.asset.NoSuchTagStatsException {
113 return getPersistence().remove(tagStatsId);
114 }
115
116 public static com.liferay.portlet.asset.model.AssetTagStats updateImpl(
117 com.liferay.portlet.asset.model.AssetTagStats assetTagStats,
118 boolean merge)
119 throws com.liferay.portal.kernel.exception.SystemException {
120 return getPersistence().updateImpl(assetTagStats, merge);
121 }
122
123 public static com.liferay.portlet.asset.model.AssetTagStats findByPrimaryKey(
124 long tagStatsId)
125 throws com.liferay.portal.kernel.exception.SystemException,
126 com.liferay.portlet.asset.NoSuchTagStatsException {
127 return getPersistence().findByPrimaryKey(tagStatsId);
128 }
129
130 public static com.liferay.portlet.asset.model.AssetTagStats fetchByPrimaryKey(
131 long tagStatsId)
132 throws com.liferay.portal.kernel.exception.SystemException {
133 return getPersistence().fetchByPrimaryKey(tagStatsId);
134 }
135
136 public static java.util.List<com.liferay.portlet.asset.model.AssetTagStats> findByTagId(
137 long tagId) throws com.liferay.portal.kernel.exception.SystemException {
138 return getPersistence().findByTagId(tagId);
139 }
140
141 public static java.util.List<com.liferay.portlet.asset.model.AssetTagStats> findByTagId(
142 long tagId, int start, int end)
143 throws com.liferay.portal.kernel.exception.SystemException {
144 return getPersistence().findByTagId(tagId, start, end);
145 }
146
147 public static java.util.List<com.liferay.portlet.asset.model.AssetTagStats> findByTagId(
148 long tagId, int start, int end,
149 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
150 throws com.liferay.portal.kernel.exception.SystemException {
151 return getPersistence().findByTagId(tagId, start, end, orderByComparator);
152 }
153
154 public static com.liferay.portlet.asset.model.AssetTagStats findByTagId_First(
155 long tagId,
156 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
157 throws com.liferay.portal.kernel.exception.SystemException,
158 com.liferay.portlet.asset.NoSuchTagStatsException {
159 return getPersistence().findByTagId_First(tagId, orderByComparator);
160 }
161
162 public static com.liferay.portlet.asset.model.AssetTagStats findByTagId_Last(
163 long tagId,
164 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
165 throws com.liferay.portal.kernel.exception.SystemException,
166 com.liferay.portlet.asset.NoSuchTagStatsException {
167 return getPersistence().findByTagId_Last(tagId, orderByComparator);
168 }
169
170 public static com.liferay.portlet.asset.model.AssetTagStats[] findByTagId_PrevAndNext(
171 long tagStatsId, long tagId,
172 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
173 throws com.liferay.portal.kernel.exception.SystemException,
174 com.liferay.portlet.asset.NoSuchTagStatsException {
175 return getPersistence()
176 .findByTagId_PrevAndNext(tagStatsId, tagId, orderByComparator);
177 }
178
179 public static java.util.List<com.liferay.portlet.asset.model.AssetTagStats> findByClassNameId(
180 long classNameId)
181 throws com.liferay.portal.kernel.exception.SystemException {
182 return getPersistence().findByClassNameId(classNameId);
183 }
184
185 public static java.util.List<com.liferay.portlet.asset.model.AssetTagStats> findByClassNameId(
186 long classNameId, int start, int end)
187 throws com.liferay.portal.kernel.exception.SystemException {
188 return getPersistence().findByClassNameId(classNameId, start, end);
189 }
190
191 public static java.util.List<com.liferay.portlet.asset.model.AssetTagStats> findByClassNameId(
192 long classNameId, int start, int end,
193 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
194 throws com.liferay.portal.kernel.exception.SystemException {
195 return getPersistence()
196 .findByClassNameId(classNameId, start, end, orderByComparator);
197 }
198
199 public static com.liferay.portlet.asset.model.AssetTagStats findByClassNameId_First(
200 long classNameId,
201 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
202 throws com.liferay.portal.kernel.exception.SystemException,
203 com.liferay.portlet.asset.NoSuchTagStatsException {
204 return getPersistence()
205 .findByClassNameId_First(classNameId, orderByComparator);
206 }
207
208 public static com.liferay.portlet.asset.model.AssetTagStats findByClassNameId_Last(
209 long classNameId,
210 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
211 throws com.liferay.portal.kernel.exception.SystemException,
212 com.liferay.portlet.asset.NoSuchTagStatsException {
213 return getPersistence()
214 .findByClassNameId_Last(classNameId, orderByComparator);
215 }
216
217 public static com.liferay.portlet.asset.model.AssetTagStats[] findByClassNameId_PrevAndNext(
218 long tagStatsId, long classNameId,
219 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
220 throws com.liferay.portal.kernel.exception.SystemException,
221 com.liferay.portlet.asset.NoSuchTagStatsException {
222 return getPersistence()
223 .findByClassNameId_PrevAndNext(tagStatsId, classNameId,
224 orderByComparator);
225 }
226
227 public static com.liferay.portlet.asset.model.AssetTagStats findByT_C(
228 long tagId, long classNameId)
229 throws com.liferay.portal.kernel.exception.SystemException,
230 com.liferay.portlet.asset.NoSuchTagStatsException {
231 return getPersistence().findByT_C(tagId, classNameId);
232 }
233
234 public static com.liferay.portlet.asset.model.AssetTagStats fetchByT_C(
235 long tagId, long classNameId)
236 throws com.liferay.portal.kernel.exception.SystemException {
237 return getPersistence().fetchByT_C(tagId, classNameId);
238 }
239
240 public static com.liferay.portlet.asset.model.AssetTagStats fetchByT_C(
241 long tagId, long classNameId, boolean retrieveFromCache)
242 throws com.liferay.portal.kernel.exception.SystemException {
243 return getPersistence().fetchByT_C(tagId, classNameId, retrieveFromCache);
244 }
245
246 public static java.util.List<com.liferay.portlet.asset.model.AssetTagStats> findAll()
247 throws com.liferay.portal.kernel.exception.SystemException {
248 return getPersistence().findAll();
249 }
250
251 public static java.util.List<com.liferay.portlet.asset.model.AssetTagStats> findAll(
252 int start, int end)
253 throws com.liferay.portal.kernel.exception.SystemException {
254 return getPersistence().findAll(start, end);
255 }
256
257 public static java.util.List<com.liferay.portlet.asset.model.AssetTagStats> findAll(
258 int start, int end,
259 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
260 throws com.liferay.portal.kernel.exception.SystemException {
261 return getPersistence().findAll(start, end, orderByComparator);
262 }
263
264 public static void removeByTagId(long tagId)
265 throws com.liferay.portal.kernel.exception.SystemException {
266 getPersistence().removeByTagId(tagId);
267 }
268
269 public static void removeByClassNameId(long classNameId)
270 throws com.liferay.portal.kernel.exception.SystemException {
271 getPersistence().removeByClassNameId(classNameId);
272 }
273
274 public static void removeByT_C(long tagId, long classNameId)
275 throws com.liferay.portal.kernel.exception.SystemException,
276 com.liferay.portlet.asset.NoSuchTagStatsException {
277 getPersistence().removeByT_C(tagId, classNameId);
278 }
279
280 public static void removeAll()
281 throws com.liferay.portal.kernel.exception.SystemException {
282 getPersistence().removeAll();
283 }
284
285 public static int countByTagId(long tagId)
286 throws com.liferay.portal.kernel.exception.SystemException {
287 return getPersistence().countByTagId(tagId);
288 }
289
290 public static int countByClassNameId(long classNameId)
291 throws com.liferay.portal.kernel.exception.SystemException {
292 return getPersistence().countByClassNameId(classNameId);
293 }
294
295 public static int countByT_C(long tagId, long classNameId)
296 throws com.liferay.portal.kernel.exception.SystemException {
297 return getPersistence().countByT_C(tagId, classNameId);
298 }
299
300 public static int countAll()
301 throws com.liferay.portal.kernel.exception.SystemException {
302 return getPersistence().countAll();
303 }
304
305 public static AssetTagStatsPersistence getPersistence() {
306 if (_persistence == null) {
307 _persistence = (AssetTagStatsPersistence)PortalBeanLocatorUtil.locate(AssetTagStatsPersistence.class.getName());
308 }
309
310 return _persistence;
311 }
312
313 public void setPersistence(AssetTagStatsPersistence persistence) {
314 _persistence = persistence;
315 }
316
317 private static AssetTagStatsPersistence _persistence;
318 }