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.TagsEntry;
23
24 import java.util.List;
25
26
39 public class TagsEntryUtil {
40
43 public static void clearCache() {
44 getPersistence().clearCache();
45 }
46
47
50 public static void clearCache(TagsEntry tagsEntry) {
51 getPersistence().clearCache(tagsEntry);
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 TagsEntry remove(TagsEntry tagsEntry)
82 throws SystemException {
83 return getPersistence().remove(tagsEntry);
84 }
85
86
89 public static TagsEntry update(TagsEntry tagsEntry, boolean merge)
90 throws SystemException {
91 return getPersistence().update(tagsEntry, merge);
92 }
93
94 public static void cacheResult(
95 com.liferay.portlet.tags.model.TagsEntry tagsEntry) {
96 getPersistence().cacheResult(tagsEntry);
97 }
98
99 public static void cacheResult(
100 java.util.List<com.liferay.portlet.tags.model.TagsEntry> tagsEntries) {
101 getPersistence().cacheResult(tagsEntries);
102 }
103
104 public static com.liferay.portlet.tags.model.TagsEntry create(long entryId) {
105 return getPersistence().create(entryId);
106 }
107
108 public static com.liferay.portlet.tags.model.TagsEntry remove(long entryId)
109 throws com.liferay.portal.SystemException,
110 com.liferay.portlet.tags.NoSuchEntryException {
111 return getPersistence().remove(entryId);
112 }
113
114
117 public static com.liferay.portlet.tags.model.TagsEntry update(
118 com.liferay.portlet.tags.model.TagsEntry tagsEntry)
119 throws com.liferay.portal.SystemException {
120 return getPersistence().update(tagsEntry);
121 }
122
123 public static com.liferay.portlet.tags.model.TagsEntry updateImpl(
124 com.liferay.portlet.tags.model.TagsEntry tagsEntry, boolean merge)
125 throws com.liferay.portal.SystemException {
126 return getPersistence().updateImpl(tagsEntry, merge);
127 }
128
129 public static com.liferay.portlet.tags.model.TagsEntry findByPrimaryKey(
130 long entryId)
131 throws com.liferay.portal.SystemException,
132 com.liferay.portlet.tags.NoSuchEntryException {
133 return getPersistence().findByPrimaryKey(entryId);
134 }
135
136 public static com.liferay.portlet.tags.model.TagsEntry fetchByPrimaryKey(
137 long entryId) throws com.liferay.portal.SystemException {
138 return getPersistence().fetchByPrimaryKey(entryId);
139 }
140
141 public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> findByVocabularyId(
142 long vocabularyId) throws com.liferay.portal.SystemException {
143 return getPersistence().findByVocabularyId(vocabularyId);
144 }
145
146 public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> findByVocabularyId(
147 long vocabularyId, int start, int end)
148 throws com.liferay.portal.SystemException {
149 return getPersistence().findByVocabularyId(vocabularyId, start, end);
150 }
151
152 public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> findByVocabularyId(
153 long vocabularyId, int start, int end,
154 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
155 throws com.liferay.portal.SystemException {
156 return getPersistence()
157 .findByVocabularyId(vocabularyId, start, end,
158 orderByComparator);
159 }
160
161 public static com.liferay.portlet.tags.model.TagsEntry findByVocabularyId_First(
162 long vocabularyId,
163 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
164 throws com.liferay.portal.SystemException,
165 com.liferay.portlet.tags.NoSuchEntryException {
166 return getPersistence()
167 .findByVocabularyId_First(vocabularyId, orderByComparator);
168 }
169
170 public static com.liferay.portlet.tags.model.TagsEntry findByVocabularyId_Last(
171 long vocabularyId,
172 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
173 throws com.liferay.portal.SystemException,
174 com.liferay.portlet.tags.NoSuchEntryException {
175 return getPersistence()
176 .findByVocabularyId_Last(vocabularyId, orderByComparator);
177 }
178
179 public static com.liferay.portlet.tags.model.TagsEntry[] findByVocabularyId_PrevAndNext(
180 long entryId, long vocabularyId,
181 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
182 throws com.liferay.portal.SystemException,
183 com.liferay.portlet.tags.NoSuchEntryException {
184 return getPersistence()
185 .findByVocabularyId_PrevAndNext(entryId, vocabularyId,
186 orderByComparator);
187 }
188
189 public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> findByP_V(
190 long parentEntryId, long vocabularyId)
191 throws com.liferay.portal.SystemException {
192 return getPersistence().findByP_V(parentEntryId, vocabularyId);
193 }
194
195 public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> findByP_V(
196 long parentEntryId, long vocabularyId, int start, int end)
197 throws com.liferay.portal.SystemException {
198 return getPersistence()
199 .findByP_V(parentEntryId, vocabularyId, start, end);
200 }
201
202 public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> findByP_V(
203 long parentEntryId, long vocabularyId, int start, int end,
204 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
205 throws com.liferay.portal.SystemException {
206 return getPersistence()
207 .findByP_V(parentEntryId, vocabularyId, start, end,
208 orderByComparator);
209 }
210
211 public static com.liferay.portlet.tags.model.TagsEntry findByP_V_First(
212 long parentEntryId, long vocabularyId,
213 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
214 throws com.liferay.portal.SystemException,
215 com.liferay.portlet.tags.NoSuchEntryException {
216 return getPersistence()
217 .findByP_V_First(parentEntryId, vocabularyId,
218 orderByComparator);
219 }
220
221 public static com.liferay.portlet.tags.model.TagsEntry findByP_V_Last(
222 long parentEntryId, long vocabularyId,
223 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
224 throws com.liferay.portal.SystemException,
225 com.liferay.portlet.tags.NoSuchEntryException {
226 return getPersistence()
227 .findByP_V_Last(parentEntryId, vocabularyId,
228 orderByComparator);
229 }
230
231 public static com.liferay.portlet.tags.model.TagsEntry[] findByP_V_PrevAndNext(
232 long entryId, long parentEntryId, long vocabularyId,
233 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
234 throws com.liferay.portal.SystemException,
235 com.liferay.portlet.tags.NoSuchEntryException {
236 return getPersistence()
237 .findByP_V_PrevAndNext(entryId, parentEntryId, vocabularyId,
238 orderByComparator);
239 }
240
241 public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> findAll()
242 throws com.liferay.portal.SystemException {
243 return getPersistence().findAll();
244 }
245
246 public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> findAll(
247 int start, int end) throws com.liferay.portal.SystemException {
248 return getPersistence().findAll(start, end);
249 }
250
251 public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> findAll(
252 int start, int end,
253 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
254 throws com.liferay.portal.SystemException {
255 return getPersistence().findAll(start, end, orderByComparator);
256 }
257
258 public static void removeByVocabularyId(long vocabularyId)
259 throws com.liferay.portal.SystemException {
260 getPersistence().removeByVocabularyId(vocabularyId);
261 }
262
263 public static void removeByP_V(long parentEntryId, long vocabularyId)
264 throws com.liferay.portal.SystemException {
265 getPersistence().removeByP_V(parentEntryId, vocabularyId);
266 }
267
268 public static void removeAll() throws com.liferay.portal.SystemException {
269 getPersistence().removeAll();
270 }
271
272 public static int countByVocabularyId(long vocabularyId)
273 throws com.liferay.portal.SystemException {
274 return getPersistence().countByVocabularyId(vocabularyId);
275 }
276
277 public static int countByP_V(long parentEntryId, long vocabularyId)
278 throws com.liferay.portal.SystemException {
279 return getPersistence().countByP_V(parentEntryId, vocabularyId);
280 }
281
282 public static int countAll() throws com.liferay.portal.SystemException {
283 return getPersistence().countAll();
284 }
285
286 public static java.util.List<com.liferay.portlet.tags.model.TagsAsset> getTagsAssets(
287 long pk) throws com.liferay.portal.SystemException {
288 return getPersistence().getTagsAssets(pk);
289 }
290
291 public static java.util.List<com.liferay.portlet.tags.model.TagsAsset> getTagsAssets(
292 long pk, int start, int end) throws com.liferay.portal.SystemException {
293 return getPersistence().getTagsAssets(pk, start, end);
294 }
295
296 public static java.util.List<com.liferay.portlet.tags.model.TagsAsset> getTagsAssets(
297 long pk, int start, int end,
298 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
299 throws com.liferay.portal.SystemException {
300 return getPersistence().getTagsAssets(pk, start, end, orderByComparator);
301 }
302
303 public static int getTagsAssetsSize(long pk)
304 throws com.liferay.portal.SystemException {
305 return getPersistence().getTagsAssetsSize(pk);
306 }
307
308 public static boolean containsTagsAsset(long pk, long tagsAssetPK)
309 throws com.liferay.portal.SystemException {
310 return getPersistence().containsTagsAsset(pk, tagsAssetPK);
311 }
312
313 public static boolean containsTagsAssets(long pk)
314 throws com.liferay.portal.SystemException {
315 return getPersistence().containsTagsAssets(pk);
316 }
317
318 public static void addTagsAsset(long pk, long tagsAssetPK)
319 throws com.liferay.portal.SystemException {
320 getPersistence().addTagsAsset(pk, tagsAssetPK);
321 }
322
323 public static void addTagsAsset(long pk,
324 com.liferay.portlet.tags.model.TagsAsset tagsAsset)
325 throws com.liferay.portal.SystemException {
326 getPersistence().addTagsAsset(pk, tagsAsset);
327 }
328
329 public static void addTagsAssets(long pk, long[] tagsAssetPKs)
330 throws com.liferay.portal.SystemException {
331 getPersistence().addTagsAssets(pk, tagsAssetPKs);
332 }
333
334 public static void addTagsAssets(long pk,
335 java.util.List<com.liferay.portlet.tags.model.TagsAsset> tagsAssets)
336 throws com.liferay.portal.SystemException {
337 getPersistence().addTagsAssets(pk, tagsAssets);
338 }
339
340 public static void clearTagsAssets(long pk)
341 throws com.liferay.portal.SystemException {
342 getPersistence().clearTagsAssets(pk);
343 }
344
345 public static void removeTagsAsset(long pk, long tagsAssetPK)
346 throws com.liferay.portal.SystemException {
347 getPersistence().removeTagsAsset(pk, tagsAssetPK);
348 }
349
350 public static void removeTagsAsset(long pk,
351 com.liferay.portlet.tags.model.TagsAsset tagsAsset)
352 throws com.liferay.portal.SystemException {
353 getPersistence().removeTagsAsset(pk, tagsAsset);
354 }
355
356 public static void removeTagsAssets(long pk, long[] tagsAssetPKs)
357 throws com.liferay.portal.SystemException {
358 getPersistence().removeTagsAssets(pk, tagsAssetPKs);
359 }
360
361 public static void removeTagsAssets(long pk,
362 java.util.List<com.liferay.portlet.tags.model.TagsAsset> tagsAssets)
363 throws com.liferay.portal.SystemException {
364 getPersistence().removeTagsAssets(pk, tagsAssets);
365 }
366
367 public static void setTagsAssets(long pk, long[] tagsAssetPKs)
368 throws com.liferay.portal.SystemException {
369 getPersistence().setTagsAssets(pk, tagsAssetPKs);
370 }
371
372 public static void setTagsAssets(long pk,
373 java.util.List<com.liferay.portlet.tags.model.TagsAsset> tagsAssets)
374 throws com.liferay.portal.SystemException {
375 getPersistence().setTagsAssets(pk, tagsAssets);
376 }
377
378 public static TagsEntryPersistence getPersistence() {
379 if (_persistence == null) {
380 _persistence = (TagsEntryPersistence)PortalBeanLocatorUtil.locate(TagsEntryPersistence.class.getName());
381
382 ReferenceRegistry.registerReference(TagsEntryUtil.class,
383 "_persistence");
384 }
385
386 return _persistence;
387 }
388
389 public void setPersistence(TagsEntryPersistence persistence) {
390 _persistence = persistence;
391
392 ReferenceRegistry.registerReference(TagsEntryUtil.class, "_persistence");
393 }
394
395 private static TagsEntryPersistence _persistence;
396 }