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 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 AssetTag remove(AssetTag assetTag) throws SystemException {
66 return getPersistence().remove(assetTag);
67 }
68
69
72 public static AssetTag update(AssetTag assetTag, boolean merge)
73 throws SystemException {
74 return getPersistence().update(assetTag, merge);
75 }
76
77 public static void cacheResult(
78 com.liferay.portlet.asset.model.AssetTag assetTag) {
79 getPersistence().cacheResult(assetTag);
80 }
81
82 public static void cacheResult(
83 java.util.List<com.liferay.portlet.asset.model.AssetTag> assetTags) {
84 getPersistence().cacheResult(assetTags);
85 }
86
87 public static com.liferay.portlet.asset.model.AssetTag create(long tagId) {
88 return getPersistence().create(tagId);
89 }
90
91 public static com.liferay.portlet.asset.model.AssetTag remove(long tagId)
92 throws com.liferay.portal.kernel.exception.SystemException,
93 com.liferay.portlet.asset.NoSuchTagException {
94 return getPersistence().remove(tagId);
95 }
96
97 public static com.liferay.portlet.asset.model.AssetTag updateImpl(
98 com.liferay.portlet.asset.model.AssetTag assetTag, boolean merge)
99 throws com.liferay.portal.kernel.exception.SystemException {
100 return getPersistence().updateImpl(assetTag, merge);
101 }
102
103 public static com.liferay.portlet.asset.model.AssetTag findByPrimaryKey(
104 long tagId)
105 throws com.liferay.portal.kernel.exception.SystemException,
106 com.liferay.portlet.asset.NoSuchTagException {
107 return getPersistence().findByPrimaryKey(tagId);
108 }
109
110 public static com.liferay.portlet.asset.model.AssetTag fetchByPrimaryKey(
111 long tagId) throws com.liferay.portal.kernel.exception.SystemException {
112 return getPersistence().fetchByPrimaryKey(tagId);
113 }
114
115 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> findByGroupId(
116 long groupId)
117 throws com.liferay.portal.kernel.exception.SystemException {
118 return getPersistence().findByGroupId(groupId);
119 }
120
121 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> findByGroupId(
122 long groupId, int start, int end)
123 throws com.liferay.portal.kernel.exception.SystemException {
124 return getPersistence().findByGroupId(groupId, start, end);
125 }
126
127 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> findByGroupId(
128 long groupId, int start, int end,
129 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
130 throws com.liferay.portal.kernel.exception.SystemException {
131 return getPersistence()
132 .findByGroupId(groupId, start, end, orderByComparator);
133 }
134
135 public static com.liferay.portlet.asset.model.AssetTag findByGroupId_First(
136 long groupId,
137 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
138 throws com.liferay.portal.kernel.exception.SystemException,
139 com.liferay.portlet.asset.NoSuchTagException {
140 return getPersistence().findByGroupId_First(groupId, orderByComparator);
141 }
142
143 public static com.liferay.portlet.asset.model.AssetTag findByGroupId_Last(
144 long groupId,
145 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
146 throws com.liferay.portal.kernel.exception.SystemException,
147 com.liferay.portlet.asset.NoSuchTagException {
148 return getPersistence().findByGroupId_Last(groupId, orderByComparator);
149 }
150
151 public static com.liferay.portlet.asset.model.AssetTag[] findByGroupId_PrevAndNext(
152 long tagId, 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()
157 .findByGroupId_PrevAndNext(tagId, groupId, orderByComparator);
158 }
159
160 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> findAll()
161 throws com.liferay.portal.kernel.exception.SystemException {
162 return getPersistence().findAll();
163 }
164
165 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> findAll(
166 int start, int end)
167 throws com.liferay.portal.kernel.exception.SystemException {
168 return getPersistence().findAll(start, end);
169 }
170
171 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> findAll(
172 int start, int end,
173 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
174 throws com.liferay.portal.kernel.exception.SystemException {
175 return getPersistence().findAll(start, end, orderByComparator);
176 }
177
178 public static void removeByGroupId(long groupId)
179 throws com.liferay.portal.kernel.exception.SystemException {
180 getPersistence().removeByGroupId(groupId);
181 }
182
183 public static void removeAll()
184 throws com.liferay.portal.kernel.exception.SystemException {
185 getPersistence().removeAll();
186 }
187
188 public static int countByGroupId(long groupId)
189 throws com.liferay.portal.kernel.exception.SystemException {
190 return getPersistence().countByGroupId(groupId);
191 }
192
193 public static int countAll()
194 throws com.liferay.portal.kernel.exception.SystemException {
195 return getPersistence().countAll();
196 }
197
198 public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetEntries(
199 long pk) throws com.liferay.portal.kernel.exception.SystemException {
200 return getPersistence().getAssetEntries(pk);
201 }
202
203 public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetEntries(
204 long pk, int start, int end)
205 throws com.liferay.portal.kernel.exception.SystemException {
206 return getPersistence().getAssetEntries(pk, start, end);
207 }
208
209 public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetEntries(
210 long pk, int start, int end,
211 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
212 throws com.liferay.portal.kernel.exception.SystemException {
213 return getPersistence()
214 .getAssetEntries(pk, start, end, orderByComparator);
215 }
216
217 public static int getAssetEntriesSize(long pk)
218 throws com.liferay.portal.kernel.exception.SystemException {
219 return getPersistence().getAssetEntriesSize(pk);
220 }
221
222 public static boolean containsAssetEntry(long pk, long assetEntryPK)
223 throws com.liferay.portal.kernel.exception.SystemException {
224 return getPersistence().containsAssetEntry(pk, assetEntryPK);
225 }
226
227 public static boolean containsAssetEntries(long pk)
228 throws com.liferay.portal.kernel.exception.SystemException {
229 return getPersistence().containsAssetEntries(pk);
230 }
231
232 public static void addAssetEntry(long pk, long assetEntryPK)
233 throws com.liferay.portal.kernel.exception.SystemException {
234 getPersistence().addAssetEntry(pk, assetEntryPK);
235 }
236
237 public static void addAssetEntry(long pk,
238 com.liferay.portlet.asset.model.AssetEntry assetEntry)
239 throws com.liferay.portal.kernel.exception.SystemException {
240 getPersistence().addAssetEntry(pk, assetEntry);
241 }
242
243 public static void addAssetEntries(long pk, long[] assetEntryPKs)
244 throws com.liferay.portal.kernel.exception.SystemException {
245 getPersistence().addAssetEntries(pk, assetEntryPKs);
246 }
247
248 public static void addAssetEntries(long pk,
249 java.util.List<com.liferay.portlet.asset.model.AssetEntry> assetEntries)
250 throws com.liferay.portal.kernel.exception.SystemException {
251 getPersistence().addAssetEntries(pk, assetEntries);
252 }
253
254 public static void clearAssetEntries(long pk)
255 throws com.liferay.portal.kernel.exception.SystemException {
256 getPersistence().clearAssetEntries(pk);
257 }
258
259 public static void removeAssetEntry(long pk, long assetEntryPK)
260 throws com.liferay.portal.kernel.exception.SystemException {
261 getPersistence().removeAssetEntry(pk, assetEntryPK);
262 }
263
264 public static void removeAssetEntry(long pk,
265 com.liferay.portlet.asset.model.AssetEntry assetEntry)
266 throws com.liferay.portal.kernel.exception.SystemException {
267 getPersistence().removeAssetEntry(pk, assetEntry);
268 }
269
270 public static void removeAssetEntries(long pk, long[] assetEntryPKs)
271 throws com.liferay.portal.kernel.exception.SystemException {
272 getPersistence().removeAssetEntries(pk, assetEntryPKs);
273 }
274
275 public static void removeAssetEntries(long pk,
276 java.util.List<com.liferay.portlet.asset.model.AssetEntry> assetEntries)
277 throws com.liferay.portal.kernel.exception.SystemException {
278 getPersistence().removeAssetEntries(pk, assetEntries);
279 }
280
281 public static void setAssetEntries(long pk, long[] assetEntryPKs)
282 throws com.liferay.portal.kernel.exception.SystemException {
283 getPersistence().setAssetEntries(pk, assetEntryPKs);
284 }
285
286 public static void setAssetEntries(long pk,
287 java.util.List<com.liferay.portlet.asset.model.AssetEntry> assetEntries)
288 throws com.liferay.portal.kernel.exception.SystemException {
289 getPersistence().setAssetEntries(pk, assetEntries);
290 }
291
292 public static AssetTagPersistence getPersistence() {
293 if (_persistence == null) {
294 _persistence = (AssetTagPersistence)PortalBeanLocatorUtil.locate(AssetTagPersistence.class.getName());
295 }
296
297 return _persistence;
298 }
299
300 public void setPersistence(AssetTagPersistence persistence) {
301 _persistence = persistence;
302 }
303
304 private static AssetTagPersistence _persistence;
305 }