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 obc)
130 throws com.liferay.portal.kernel.exception.SystemException {
131 return getPersistence().findByGroupId(groupId, start, end, obc);
132 }
133
134 public static com.liferay.portlet.asset.model.AssetTag findByGroupId_First(
135 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
136 throws com.liferay.portal.kernel.exception.SystemException,
137 com.liferay.portlet.asset.NoSuchTagException {
138 return getPersistence().findByGroupId_First(groupId, obc);
139 }
140
141 public static com.liferay.portlet.asset.model.AssetTag findByGroupId_Last(
142 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
143 throws com.liferay.portal.kernel.exception.SystemException,
144 com.liferay.portlet.asset.NoSuchTagException {
145 return getPersistence().findByGroupId_Last(groupId, obc);
146 }
147
148 public static com.liferay.portlet.asset.model.AssetTag[] findByGroupId_PrevAndNext(
149 long tagId, long groupId,
150 com.liferay.portal.kernel.util.OrderByComparator obc)
151 throws com.liferay.portal.kernel.exception.SystemException,
152 com.liferay.portlet.asset.NoSuchTagException {
153 return getPersistence().findByGroupId_PrevAndNext(tagId, groupId, obc);
154 }
155
156 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> findAll()
157 throws com.liferay.portal.kernel.exception.SystemException {
158 return getPersistence().findAll();
159 }
160
161 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> findAll(
162 int start, int end)
163 throws com.liferay.portal.kernel.exception.SystemException {
164 return getPersistence().findAll(start, end);
165 }
166
167 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> findAll(
168 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
169 throws com.liferay.portal.kernel.exception.SystemException {
170 return getPersistence().findAll(start, end, obc);
171 }
172
173 public static void removeByGroupId(long groupId)
174 throws com.liferay.portal.kernel.exception.SystemException {
175 getPersistence().removeByGroupId(groupId);
176 }
177
178 public static void removeAll()
179 throws com.liferay.portal.kernel.exception.SystemException {
180 getPersistence().removeAll();
181 }
182
183 public static int countByGroupId(long groupId)
184 throws com.liferay.portal.kernel.exception.SystemException {
185 return getPersistence().countByGroupId(groupId);
186 }
187
188 public static int countAll()
189 throws com.liferay.portal.kernel.exception.SystemException {
190 return getPersistence().countAll();
191 }
192
193 public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetEntries(
194 long pk) throws com.liferay.portal.kernel.exception.SystemException {
195 return getPersistence().getAssetEntries(pk);
196 }
197
198 public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetEntries(
199 long pk, int start, int end)
200 throws com.liferay.portal.kernel.exception.SystemException {
201 return getPersistence().getAssetEntries(pk, start, end);
202 }
203
204 public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetEntries(
205 long pk, int start, int end,
206 com.liferay.portal.kernel.util.OrderByComparator obc)
207 throws com.liferay.portal.kernel.exception.SystemException {
208 return getPersistence().getAssetEntries(pk, start, end, obc);
209 }
210
211 public static int getAssetEntriesSize(long pk)
212 throws com.liferay.portal.kernel.exception.SystemException {
213 return getPersistence().getAssetEntriesSize(pk);
214 }
215
216 public static boolean containsAssetEntry(long pk, long assetEntryPK)
217 throws com.liferay.portal.kernel.exception.SystemException {
218 return getPersistence().containsAssetEntry(pk, assetEntryPK);
219 }
220
221 public static boolean containsAssetEntries(long pk)
222 throws com.liferay.portal.kernel.exception.SystemException {
223 return getPersistence().containsAssetEntries(pk);
224 }
225
226 public static void addAssetEntry(long pk, long assetEntryPK)
227 throws com.liferay.portal.kernel.exception.SystemException {
228 getPersistence().addAssetEntry(pk, assetEntryPK);
229 }
230
231 public static void addAssetEntry(long pk,
232 com.liferay.portlet.asset.model.AssetEntry assetEntry)
233 throws com.liferay.portal.kernel.exception.SystemException {
234 getPersistence().addAssetEntry(pk, assetEntry);
235 }
236
237 public static void addAssetEntries(long pk, long[] assetEntryPKs)
238 throws com.liferay.portal.kernel.exception.SystemException {
239 getPersistence().addAssetEntries(pk, assetEntryPKs);
240 }
241
242 public static void addAssetEntries(long pk,
243 java.util.List<com.liferay.portlet.asset.model.AssetEntry> assetEntries)
244 throws com.liferay.portal.kernel.exception.SystemException {
245 getPersistence().addAssetEntries(pk, assetEntries);
246 }
247
248 public static void clearAssetEntries(long pk)
249 throws com.liferay.portal.kernel.exception.SystemException {
250 getPersistence().clearAssetEntries(pk);
251 }
252
253 public static void removeAssetEntry(long pk, long assetEntryPK)
254 throws com.liferay.portal.kernel.exception.SystemException {
255 getPersistence().removeAssetEntry(pk, assetEntryPK);
256 }
257
258 public static void removeAssetEntry(long pk,
259 com.liferay.portlet.asset.model.AssetEntry assetEntry)
260 throws com.liferay.portal.kernel.exception.SystemException {
261 getPersistence().removeAssetEntry(pk, assetEntry);
262 }
263
264 public static void removeAssetEntries(long pk, long[] assetEntryPKs)
265 throws com.liferay.portal.kernel.exception.SystemException {
266 getPersistence().removeAssetEntries(pk, assetEntryPKs);
267 }
268
269 public static void removeAssetEntries(long pk,
270 java.util.List<com.liferay.portlet.asset.model.AssetEntry> assetEntries)
271 throws com.liferay.portal.kernel.exception.SystemException {
272 getPersistence().removeAssetEntries(pk, assetEntries);
273 }
274
275 public static void setAssetEntries(long pk, long[] assetEntryPKs)
276 throws com.liferay.portal.kernel.exception.SystemException {
277 getPersistence().setAssetEntries(pk, assetEntryPKs);
278 }
279
280 public static void setAssetEntries(long pk,
281 java.util.List<com.liferay.portlet.asset.model.AssetEntry> assetEntries)
282 throws com.liferay.portal.kernel.exception.SystemException {
283 getPersistence().setAssetEntries(pk, assetEntries);
284 }
285
286 public static AssetTagPersistence getPersistence() {
287 if (_persistence == null) {
288 _persistence = (AssetTagPersistence)PortalBeanLocatorUtil.locate(AssetTagPersistence.class.getName());
289 }
290
291 return _persistence;
292 }
293
294 public void setPersistence(AssetTagPersistence persistence) {
295 _persistence = persistence;
296 }
297
298 private static AssetTagPersistence _persistence;
299 }