1
14
15 package com.liferay.portlet.tags.service.persistence;
16
17 import com.liferay.portal.SystemException;
18 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
19 import com.liferay.portal.kernel.dao.orm.DynamicQuery;
20 import com.liferay.portal.kernel.util.ReferenceRegistry;
21
22 import com.liferay.portlet.tags.model.TagsAsset;
23
24 import java.util.List;
25
26
39 public class TagsAssetUtil {
40
43 public static void clearCache() {
44 getPersistence().clearCache();
45 }
46
47
50 public static void clearCache(TagsAsset tagsAsset) {
51 getPersistence().clearCache(tagsAsset);
52 }
53
54
57 public int countWithDynamicQuery(DynamicQuery dynamicQuery)
58 throws SystemException {
59 return getPersistence().countWithDynamicQuery(dynamicQuery);
60 }
61
62
65 public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery)
66 throws SystemException {
67 return getPersistence().findWithDynamicQuery(dynamicQuery);
68 }
69
70
73 public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery,
74 int start, int end) throws SystemException {
75 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
76 }
77
78
81 public static TagsAsset remove(TagsAsset tagsAsset)
82 throws SystemException {
83 return getPersistence().remove(tagsAsset);
84 }
85
86
89 public static TagsAsset update(TagsAsset tagsAsset, boolean merge)
90 throws SystemException {
91 return getPersistence().update(tagsAsset, merge);
92 }
93
94 public static void cacheResult(
95 com.liferay.portlet.tags.model.TagsAsset tagsAsset) {
96 getPersistence().cacheResult(tagsAsset);
97 }
98
99 public static void cacheResult(
100 java.util.List<com.liferay.portlet.tags.model.TagsAsset> tagsAssets) {
101 getPersistence().cacheResult(tagsAssets);
102 }
103
104 public static com.liferay.portlet.tags.model.TagsAsset create(long assetId) {
105 return getPersistence().create(assetId);
106 }
107
108 public static com.liferay.portlet.tags.model.TagsAsset remove(long assetId)
109 throws com.liferay.portal.SystemException,
110 com.liferay.portlet.tags.NoSuchAssetException {
111 return getPersistence().remove(assetId);
112 }
113
114
117 public static com.liferay.portlet.tags.model.TagsAsset update(
118 com.liferay.portlet.tags.model.TagsAsset tagsAsset)
119 throws com.liferay.portal.SystemException {
120 return getPersistence().update(tagsAsset);
121 }
122
123 public static com.liferay.portlet.tags.model.TagsAsset updateImpl(
124 com.liferay.portlet.tags.model.TagsAsset tagsAsset, boolean merge)
125 throws com.liferay.portal.SystemException {
126 return getPersistence().updateImpl(tagsAsset, merge);
127 }
128
129 public static com.liferay.portlet.tags.model.TagsAsset findByPrimaryKey(
130 long assetId)
131 throws com.liferay.portal.SystemException,
132 com.liferay.portlet.tags.NoSuchAssetException {
133 return getPersistence().findByPrimaryKey(assetId);
134 }
135
136 public static com.liferay.portlet.tags.model.TagsAsset fetchByPrimaryKey(
137 long assetId) throws com.liferay.portal.SystemException {
138 return getPersistence().fetchByPrimaryKey(assetId);
139 }
140
141 public static java.util.List<com.liferay.portlet.tags.model.TagsAsset> findByCompanyId(
142 long companyId) throws com.liferay.portal.SystemException {
143 return getPersistence().findByCompanyId(companyId);
144 }
145
146 public static java.util.List<com.liferay.portlet.tags.model.TagsAsset> findByCompanyId(
147 long companyId, int start, int end)
148 throws com.liferay.portal.SystemException {
149 return getPersistence().findByCompanyId(companyId, start, end);
150 }
151
152 public static java.util.List<com.liferay.portlet.tags.model.TagsAsset> findByCompanyId(
153 long companyId, int start, int end,
154 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
155 throws com.liferay.portal.SystemException {
156 return getPersistence()
157 .findByCompanyId(companyId, start, end, orderByComparator);
158 }
159
160 public static com.liferay.portlet.tags.model.TagsAsset findByCompanyId_First(
161 long companyId,
162 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
163 throws com.liferay.portal.SystemException,
164 com.liferay.portlet.tags.NoSuchAssetException {
165 return getPersistence()
166 .findByCompanyId_First(companyId, orderByComparator);
167 }
168
169 public static com.liferay.portlet.tags.model.TagsAsset findByCompanyId_Last(
170 long companyId,
171 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
172 throws com.liferay.portal.SystemException,
173 com.liferay.portlet.tags.NoSuchAssetException {
174 return getPersistence()
175 .findByCompanyId_Last(companyId, orderByComparator);
176 }
177
178 public static com.liferay.portlet.tags.model.TagsAsset[] findByCompanyId_PrevAndNext(
179 long assetId, long companyId,
180 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
181 throws com.liferay.portal.SystemException,
182 com.liferay.portlet.tags.NoSuchAssetException {
183 return getPersistence()
184 .findByCompanyId_PrevAndNext(assetId, companyId,
185 orderByComparator);
186 }
187
188 public static com.liferay.portlet.tags.model.TagsAsset findByC_C(
189 long classNameId, long classPK)
190 throws com.liferay.portal.SystemException,
191 com.liferay.portlet.tags.NoSuchAssetException {
192 return getPersistence().findByC_C(classNameId, classPK);
193 }
194
195 public static com.liferay.portlet.tags.model.TagsAsset fetchByC_C(
196 long classNameId, long classPK)
197 throws com.liferay.portal.SystemException {
198 return getPersistence().fetchByC_C(classNameId, classPK);
199 }
200
201 public static com.liferay.portlet.tags.model.TagsAsset fetchByC_C(
202 long classNameId, long classPK, boolean retrieveFromCache)
203 throws com.liferay.portal.SystemException {
204 return getPersistence()
205 .fetchByC_C(classNameId, classPK, retrieveFromCache);
206 }
207
208 public static java.util.List<com.liferay.portlet.tags.model.TagsAsset> findAll()
209 throws com.liferay.portal.SystemException {
210 return getPersistence().findAll();
211 }
212
213 public static java.util.List<com.liferay.portlet.tags.model.TagsAsset> findAll(
214 int start, int end) throws com.liferay.portal.SystemException {
215 return getPersistence().findAll(start, end);
216 }
217
218 public static java.util.List<com.liferay.portlet.tags.model.TagsAsset> findAll(
219 int start, int end,
220 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
221 throws com.liferay.portal.SystemException {
222 return getPersistence().findAll(start, end, orderByComparator);
223 }
224
225 public static void removeByCompanyId(long companyId)
226 throws com.liferay.portal.SystemException {
227 getPersistence().removeByCompanyId(companyId);
228 }
229
230 public static void removeByC_C(long classNameId, long classPK)
231 throws com.liferay.portal.SystemException,
232 com.liferay.portlet.tags.NoSuchAssetException {
233 getPersistence().removeByC_C(classNameId, classPK);
234 }
235
236 public static void removeAll() throws com.liferay.portal.SystemException {
237 getPersistence().removeAll();
238 }
239
240 public static int countByCompanyId(long companyId)
241 throws com.liferay.portal.SystemException {
242 return getPersistence().countByCompanyId(companyId);
243 }
244
245 public static int countByC_C(long classNameId, long classPK)
246 throws com.liferay.portal.SystemException {
247 return getPersistence().countByC_C(classNameId, classPK);
248 }
249
250 public static int countAll() throws com.liferay.portal.SystemException {
251 return getPersistence().countAll();
252 }
253
254 public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> getTagsEntries(
255 long pk) throws com.liferay.portal.SystemException {
256 return getPersistence().getTagsEntries(pk);
257 }
258
259 public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> getTagsEntries(
260 long pk, int start, int end) throws com.liferay.portal.SystemException {
261 return getPersistence().getTagsEntries(pk, start, end);
262 }
263
264 public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> getTagsEntries(
265 long pk, int start, int end,
266 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
267 throws com.liferay.portal.SystemException {
268 return getPersistence().getTagsEntries(pk, start, end, orderByComparator);
269 }
270
271 public static int getTagsEntriesSize(long pk)
272 throws com.liferay.portal.SystemException {
273 return getPersistence().getTagsEntriesSize(pk);
274 }
275
276 public static boolean containsTagsEntry(long pk, long tagsEntryPK)
277 throws com.liferay.portal.SystemException {
278 return getPersistence().containsTagsEntry(pk, tagsEntryPK);
279 }
280
281 public static boolean containsTagsEntries(long pk)
282 throws com.liferay.portal.SystemException {
283 return getPersistence().containsTagsEntries(pk);
284 }
285
286 public static void addTagsEntry(long pk, long tagsEntryPK)
287 throws com.liferay.portal.SystemException {
288 getPersistence().addTagsEntry(pk, tagsEntryPK);
289 }
290
291 public static void addTagsEntry(long pk,
292 com.liferay.portlet.tags.model.TagsEntry tagsEntry)
293 throws com.liferay.portal.SystemException {
294 getPersistence().addTagsEntry(pk, tagsEntry);
295 }
296
297 public static void addTagsEntries(long pk, long[] tagsEntryPKs)
298 throws com.liferay.portal.SystemException {
299 getPersistence().addTagsEntries(pk, tagsEntryPKs);
300 }
301
302 public static void addTagsEntries(long pk,
303 java.util.List<com.liferay.portlet.tags.model.TagsEntry> tagsEntries)
304 throws com.liferay.portal.SystemException {
305 getPersistence().addTagsEntries(pk, tagsEntries);
306 }
307
308 public static void clearTagsEntries(long pk)
309 throws com.liferay.portal.SystemException {
310 getPersistence().clearTagsEntries(pk);
311 }
312
313 public static void removeTagsEntry(long pk, long tagsEntryPK)
314 throws com.liferay.portal.SystemException {
315 getPersistence().removeTagsEntry(pk, tagsEntryPK);
316 }
317
318 public static void removeTagsEntry(long pk,
319 com.liferay.portlet.tags.model.TagsEntry tagsEntry)
320 throws com.liferay.portal.SystemException {
321 getPersistence().removeTagsEntry(pk, tagsEntry);
322 }
323
324 public static void removeTagsEntries(long pk, long[] tagsEntryPKs)
325 throws com.liferay.portal.SystemException {
326 getPersistence().removeTagsEntries(pk, tagsEntryPKs);
327 }
328
329 public static void removeTagsEntries(long pk,
330 java.util.List<com.liferay.portlet.tags.model.TagsEntry> tagsEntries)
331 throws com.liferay.portal.SystemException {
332 getPersistence().removeTagsEntries(pk, tagsEntries);
333 }
334
335 public static void setTagsEntries(long pk, long[] tagsEntryPKs)
336 throws com.liferay.portal.SystemException {
337 getPersistence().setTagsEntries(pk, tagsEntryPKs);
338 }
339
340 public static void setTagsEntries(long pk,
341 java.util.List<com.liferay.portlet.tags.model.TagsEntry> tagsEntries)
342 throws com.liferay.portal.SystemException {
343 getPersistence().setTagsEntries(pk, tagsEntries);
344 }
345
346 public static TagsAssetPersistence getPersistence() {
347 if (_persistence == null) {
348 _persistence = (TagsAssetPersistence)PortalBeanLocatorUtil.locate(TagsAssetPersistence.class.getName());
349
350 ReferenceRegistry.registerReference(TagsAssetUtil.class,
351 "_persistence");
352 }
353
354 return _persistence;
355 }
356
357 public void setPersistence(TagsAssetPersistence persistence) {
358 _persistence = persistence;
359
360 ReferenceRegistry.registerReference(TagsAssetUtil.class, "_persistence");
361 }
362
363 private static TagsAssetPersistence _persistence;
364 }