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 List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery)
50 throws SystemException {
51 return getPersistence().findWithDynamicQuery(dynamicQuery);
52 }
53
54
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
65 public static AssetTagStats remove(AssetTagStats assetTagStats)
66 throws SystemException {
67 return getPersistence().remove(assetTagStats);
68 }
69
70
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 orderByComparator)
134 throws com.liferay.portal.kernel.exception.SystemException {
135 return getPersistence().findByTagId(tagId, start, end, orderByComparator);
136 }
137
138 public static com.liferay.portlet.asset.model.AssetTagStats findByTagId_First(
139 long tagId,
140 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
141 throws com.liferay.portal.kernel.exception.SystemException,
142 com.liferay.portlet.asset.NoSuchTagStatsException {
143 return getPersistence().findByTagId_First(tagId, orderByComparator);
144 }
145
146 public static com.liferay.portlet.asset.model.AssetTagStats findByTagId_Last(
147 long tagId,
148 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
149 throws com.liferay.portal.kernel.exception.SystemException,
150 com.liferay.portlet.asset.NoSuchTagStatsException {
151 return getPersistence().findByTagId_Last(tagId, orderByComparator);
152 }
153
154 public static com.liferay.portlet.asset.model.AssetTagStats[] findByTagId_PrevAndNext(
155 long tagStatsId, 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()
160 .findByTagId_PrevAndNext(tagStatsId, tagId, orderByComparator);
161 }
162
163 public static java.util.List<com.liferay.portlet.asset.model.AssetTagStats> findByClassNameId(
164 long classNameId)
165 throws com.liferay.portal.kernel.exception.SystemException {
166 return getPersistence().findByClassNameId(classNameId);
167 }
168
169 public static java.util.List<com.liferay.portlet.asset.model.AssetTagStats> findByClassNameId(
170 long classNameId, int start, int end)
171 throws com.liferay.portal.kernel.exception.SystemException {
172 return getPersistence().findByClassNameId(classNameId, start, end);
173 }
174
175 public static java.util.List<com.liferay.portlet.asset.model.AssetTagStats> findByClassNameId(
176 long classNameId, int start, int end,
177 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
178 throws com.liferay.portal.kernel.exception.SystemException {
179 return getPersistence()
180 .findByClassNameId(classNameId, start, end, orderByComparator);
181 }
182
183 public static com.liferay.portlet.asset.model.AssetTagStats findByClassNameId_First(
184 long classNameId,
185 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
186 throws com.liferay.portal.kernel.exception.SystemException,
187 com.liferay.portlet.asset.NoSuchTagStatsException {
188 return getPersistence()
189 .findByClassNameId_First(classNameId, orderByComparator);
190 }
191
192 public static com.liferay.portlet.asset.model.AssetTagStats findByClassNameId_Last(
193 long classNameId,
194 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
195 throws com.liferay.portal.kernel.exception.SystemException,
196 com.liferay.portlet.asset.NoSuchTagStatsException {
197 return getPersistence()
198 .findByClassNameId_Last(classNameId, orderByComparator);
199 }
200
201 public static com.liferay.portlet.asset.model.AssetTagStats[] findByClassNameId_PrevAndNext(
202 long tagStatsId, long classNameId,
203 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
204 throws com.liferay.portal.kernel.exception.SystemException,
205 com.liferay.portlet.asset.NoSuchTagStatsException {
206 return getPersistence()
207 .findByClassNameId_PrevAndNext(tagStatsId, classNameId,
208 orderByComparator);
209 }
210
211 public static com.liferay.portlet.asset.model.AssetTagStats findByT_C(
212 long tagId, long classNameId)
213 throws com.liferay.portal.kernel.exception.SystemException,
214 com.liferay.portlet.asset.NoSuchTagStatsException {
215 return getPersistence().findByT_C(tagId, classNameId);
216 }
217
218 public static com.liferay.portlet.asset.model.AssetTagStats fetchByT_C(
219 long tagId, long classNameId)
220 throws com.liferay.portal.kernel.exception.SystemException {
221 return getPersistence().fetchByT_C(tagId, classNameId);
222 }
223
224 public static com.liferay.portlet.asset.model.AssetTagStats fetchByT_C(
225 long tagId, long classNameId, boolean retrieveFromCache)
226 throws com.liferay.portal.kernel.exception.SystemException {
227 return getPersistence().fetchByT_C(tagId, classNameId, retrieveFromCache);
228 }
229
230 public static java.util.List<com.liferay.portlet.asset.model.AssetTagStats> findAll()
231 throws com.liferay.portal.kernel.exception.SystemException {
232 return getPersistence().findAll();
233 }
234
235 public static java.util.List<com.liferay.portlet.asset.model.AssetTagStats> findAll(
236 int start, int end)
237 throws com.liferay.portal.kernel.exception.SystemException {
238 return getPersistence().findAll(start, end);
239 }
240
241 public static java.util.List<com.liferay.portlet.asset.model.AssetTagStats> findAll(
242 int start, int end,
243 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
244 throws com.liferay.portal.kernel.exception.SystemException {
245 return getPersistence().findAll(start, end, orderByComparator);
246 }
247
248 public static void removeByTagId(long tagId)
249 throws com.liferay.portal.kernel.exception.SystemException {
250 getPersistence().removeByTagId(tagId);
251 }
252
253 public static void removeByClassNameId(long classNameId)
254 throws com.liferay.portal.kernel.exception.SystemException {
255 getPersistence().removeByClassNameId(classNameId);
256 }
257
258 public static void removeByT_C(long tagId, long classNameId)
259 throws com.liferay.portal.kernel.exception.SystemException,
260 com.liferay.portlet.asset.NoSuchTagStatsException {
261 getPersistence().removeByT_C(tagId, classNameId);
262 }
263
264 public static void removeAll()
265 throws com.liferay.portal.kernel.exception.SystemException {
266 getPersistence().removeAll();
267 }
268
269 public static int countByTagId(long tagId)
270 throws com.liferay.portal.kernel.exception.SystemException {
271 return getPersistence().countByTagId(tagId);
272 }
273
274 public static int countByClassNameId(long classNameId)
275 throws com.liferay.portal.kernel.exception.SystemException {
276 return getPersistence().countByClassNameId(classNameId);
277 }
278
279 public static int countByT_C(long tagId, long classNameId)
280 throws com.liferay.portal.kernel.exception.SystemException {
281 return getPersistence().countByT_C(tagId, classNameId);
282 }
283
284 public static int countAll()
285 throws com.liferay.portal.kernel.exception.SystemException {
286 return getPersistence().countAll();
287 }
288
289 public static AssetTagStatsPersistence getPersistence() {
290 if (_persistence == null) {
291 _persistence = (AssetTagStatsPersistence)PortalBeanLocatorUtil.locate(AssetTagStatsPersistence.class.getName());
292 }
293
294 return _persistence;
295 }
296
297 public void setPersistence(AssetTagStatsPersistence persistence) {
298 _persistence = persistence;
299 }
300
301 private static AssetTagStatsPersistence _persistence;
302 }