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.AssetTag;
22
23 import java.util.List;
24
25
38 public class AssetTagUtil {
39
42 public static void clearCache() {
43 getPersistence().clearCache();
44 }
45
46
49 public static void clearCache(AssetTag assetTag) {
50 getPersistence().clearCache(assetTag);
51 }
52
53
56 public long countWithDynamicQuery(DynamicQuery dynamicQuery)
57 throws SystemException {
58 return getPersistence().countWithDynamicQuery(dynamicQuery);
59 }
60
61
64 public static List<AssetTag> findWithDynamicQuery(DynamicQuery dynamicQuery)
65 throws SystemException {
66 return getPersistence().findWithDynamicQuery(dynamicQuery);
67 }
68
69
72 public static List<AssetTag> findWithDynamicQuery(
73 DynamicQuery dynamicQuery, int start, int end)
74 throws SystemException {
75 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
76 }
77
78
81 public static AssetTag remove(AssetTag assetTag) throws SystemException {
82 return getPersistence().remove(assetTag);
83 }
84
85
88 public static AssetTag update(AssetTag assetTag, boolean merge)
89 throws SystemException {
90 return getPersistence().update(assetTag, merge);
91 }
92
93 public static void cacheResult(
94 com.liferay.portlet.asset.model.AssetTag assetTag) {
95 getPersistence().cacheResult(assetTag);
96 }
97
98 public static void cacheResult(
99 java.util.List<com.liferay.portlet.asset.model.AssetTag> assetTags) {
100 getPersistence().cacheResult(assetTags);
101 }
102
103 public static com.liferay.portlet.asset.model.AssetTag create(long tagId) {
104 return getPersistence().create(tagId);
105 }
106
107 public static com.liferay.portlet.asset.model.AssetTag remove(long tagId)
108 throws com.liferay.portal.kernel.exception.SystemException,
109 com.liferay.portlet.asset.NoSuchTagException {
110 return getPersistence().remove(tagId);
111 }
112
113 public static com.liferay.portlet.asset.model.AssetTag updateImpl(
114 com.liferay.portlet.asset.model.AssetTag assetTag, boolean merge)
115 throws com.liferay.portal.kernel.exception.SystemException {
116 return getPersistence().updateImpl(assetTag, merge);
117 }
118
119 public static com.liferay.portlet.asset.model.AssetTag findByPrimaryKey(
120 long tagId)
121 throws com.liferay.portal.kernel.exception.SystemException,
122 com.liferay.portlet.asset.NoSuchTagException {
123 return getPersistence().findByPrimaryKey(tagId);
124 }
125
126 public static com.liferay.portlet.asset.model.AssetTag fetchByPrimaryKey(
127 long tagId) throws com.liferay.portal.kernel.exception.SystemException {
128 return getPersistence().fetchByPrimaryKey(tagId);
129 }
130
131 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> findByGroupId(
132 long groupId)
133 throws com.liferay.portal.kernel.exception.SystemException {
134 return getPersistence().findByGroupId(groupId);
135 }
136
137 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> findByGroupId(
138 long groupId, int start, int end)
139 throws com.liferay.portal.kernel.exception.SystemException {
140 return getPersistence().findByGroupId(groupId, start, end);
141 }
142
143 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> findByGroupId(
144 long groupId, int start, int end,
145 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
146 throws com.liferay.portal.kernel.exception.SystemException {
147 return getPersistence()
148 .findByGroupId(groupId, start, end, orderByComparator);
149 }
150
151 public static com.liferay.portlet.asset.model.AssetTag findByGroupId_First(
152 long groupId,
153 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
154 throws com.liferay.portal.kernel.exception.SystemException,
155 com.liferay.portlet.asset.NoSuchTagException {
156 return getPersistence().findByGroupId_First(groupId, orderByComparator);
157 }
158
159 public static com.liferay.portlet.asset.model.AssetTag findByGroupId_Last(
160 long groupId,
161 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
162 throws com.liferay.portal.kernel.exception.SystemException,
163 com.liferay.portlet.asset.NoSuchTagException {
164 return getPersistence().findByGroupId_Last(groupId, orderByComparator);
165 }
166
167 public static com.liferay.portlet.asset.model.AssetTag[] findByGroupId_PrevAndNext(
168 long tagId, long groupId,
169 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
170 throws com.liferay.portal.kernel.exception.SystemException,
171 com.liferay.portlet.asset.NoSuchTagException {
172 return getPersistence()
173 .findByGroupId_PrevAndNext(tagId, groupId, orderByComparator);
174 }
175
176 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> filterFindByGroupId(
177 long groupId)
178 throws com.liferay.portal.kernel.exception.SystemException {
179 return getPersistence().filterFindByGroupId(groupId);
180 }
181
182 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> filterFindByGroupId(
183 long groupId, int start, int end)
184 throws com.liferay.portal.kernel.exception.SystemException {
185 return getPersistence().filterFindByGroupId(groupId, start, end);
186 }
187
188 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> filterFindByGroupId(
189 long groupId, int start, int end,
190 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
191 throws com.liferay.portal.kernel.exception.SystemException {
192 return getPersistence()
193 .filterFindByGroupId(groupId, start, end, orderByComparator);
194 }
195
196 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> findAll()
197 throws com.liferay.portal.kernel.exception.SystemException {
198 return getPersistence().findAll();
199 }
200
201 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> findAll(
202 int start, int end)
203 throws com.liferay.portal.kernel.exception.SystemException {
204 return getPersistence().findAll(start, end);
205 }
206
207 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> findAll(
208 int start, int end,
209 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
210 throws com.liferay.portal.kernel.exception.SystemException {
211 return getPersistence().findAll(start, end, orderByComparator);
212 }
213
214 public static void removeByGroupId(long groupId)
215 throws com.liferay.portal.kernel.exception.SystemException {
216 getPersistence().removeByGroupId(groupId);
217 }
218
219 public static void removeAll()
220 throws com.liferay.portal.kernel.exception.SystemException {
221 getPersistence().removeAll();
222 }
223
224 public static int countByGroupId(long groupId)
225 throws com.liferay.portal.kernel.exception.SystemException {
226 return getPersistence().countByGroupId(groupId);
227 }
228
229 public static int filterCountByGroupId(long groupId)
230 throws com.liferay.portal.kernel.exception.SystemException {
231 return getPersistence().filterCountByGroupId(groupId);
232 }
233
234 public static int countAll()
235 throws com.liferay.portal.kernel.exception.SystemException {
236 return getPersistence().countAll();
237 }
238
239 public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetEntries(
240 long pk) throws com.liferay.portal.kernel.exception.SystemException {
241 return getPersistence().getAssetEntries(pk);
242 }
243
244 public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetEntries(
245 long pk, int start, int end)
246 throws com.liferay.portal.kernel.exception.SystemException {
247 return getPersistence().getAssetEntries(pk, start, end);
248 }
249
250 public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetEntries(
251 long pk, int start, int end,
252 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
253 throws com.liferay.portal.kernel.exception.SystemException {
254 return getPersistence()
255 .getAssetEntries(pk, start, end, orderByComparator);
256 }
257
258 public static int getAssetEntriesSize(long pk)
259 throws com.liferay.portal.kernel.exception.SystemException {
260 return getPersistence().getAssetEntriesSize(pk);
261 }
262
263 public static boolean containsAssetEntry(long pk, long assetEntryPK)
264 throws com.liferay.portal.kernel.exception.SystemException {
265 return getPersistence().containsAssetEntry(pk, assetEntryPK);
266 }
267
268 public static boolean containsAssetEntries(long pk)
269 throws com.liferay.portal.kernel.exception.SystemException {
270 return getPersistence().containsAssetEntries(pk);
271 }
272
273 public static void addAssetEntry(long pk, long assetEntryPK)
274 throws com.liferay.portal.kernel.exception.SystemException {
275 getPersistence().addAssetEntry(pk, assetEntryPK);
276 }
277
278 public static void addAssetEntry(long pk,
279 com.liferay.portlet.asset.model.AssetEntry assetEntry)
280 throws com.liferay.portal.kernel.exception.SystemException {
281 getPersistence().addAssetEntry(pk, assetEntry);
282 }
283
284 public static void addAssetEntries(long pk, long[] assetEntryPKs)
285 throws com.liferay.portal.kernel.exception.SystemException {
286 getPersistence().addAssetEntries(pk, assetEntryPKs);
287 }
288
289 public static void addAssetEntries(long pk,
290 java.util.List<com.liferay.portlet.asset.model.AssetEntry> assetEntries)
291 throws com.liferay.portal.kernel.exception.SystemException {
292 getPersistence().addAssetEntries(pk, assetEntries);
293 }
294
295 public static void clearAssetEntries(long pk)
296 throws com.liferay.portal.kernel.exception.SystemException {
297 getPersistence().clearAssetEntries(pk);
298 }
299
300 public static void removeAssetEntry(long pk, long assetEntryPK)
301 throws com.liferay.portal.kernel.exception.SystemException {
302 getPersistence().removeAssetEntry(pk, assetEntryPK);
303 }
304
305 public static void removeAssetEntry(long pk,
306 com.liferay.portlet.asset.model.AssetEntry assetEntry)
307 throws com.liferay.portal.kernel.exception.SystemException {
308 getPersistence().removeAssetEntry(pk, assetEntry);
309 }
310
311 public static void removeAssetEntries(long pk, long[] assetEntryPKs)
312 throws com.liferay.portal.kernel.exception.SystemException {
313 getPersistence().removeAssetEntries(pk, assetEntryPKs);
314 }
315
316 public static void removeAssetEntries(long pk,
317 java.util.List<com.liferay.portlet.asset.model.AssetEntry> assetEntries)
318 throws com.liferay.portal.kernel.exception.SystemException {
319 getPersistence().removeAssetEntries(pk, assetEntries);
320 }
321
322 public static void setAssetEntries(long pk, long[] assetEntryPKs)
323 throws com.liferay.portal.kernel.exception.SystemException {
324 getPersistence().setAssetEntries(pk, assetEntryPKs);
325 }
326
327 public static void setAssetEntries(long pk,
328 java.util.List<com.liferay.portlet.asset.model.AssetEntry> assetEntries)
329 throws com.liferay.portal.kernel.exception.SystemException {
330 getPersistence().setAssetEntries(pk, assetEntries);
331 }
332
333 public static AssetTagPersistence getPersistence() {
334 if (_persistence == null) {
335 _persistence = (AssetTagPersistence)PortalBeanLocatorUtil.locate(AssetTagPersistence.class.getName());
336 }
337
338 return _persistence;
339 }
340
341 public void setPersistence(AssetTagPersistence persistence) {
342 _persistence = persistence;
343 }
344
345 private static AssetTagPersistence _persistence;
346 }