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