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.TagsVocabulary;
23
24 import java.util.List;
25
26
39 public class TagsVocabularyUtil {
40
43 public static void clearCache() {
44 getPersistence().clearCache();
45 }
46
47
50 public static void clearCache(TagsVocabulary tagsVocabulary) {
51 getPersistence().clearCache(tagsVocabulary);
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 TagsVocabulary remove(TagsVocabulary tagsVocabulary)
82 throws SystemException {
83 return getPersistence().remove(tagsVocabulary);
84 }
85
86
89 public static TagsVocabulary update(TagsVocabulary tagsVocabulary,
90 boolean merge) throws SystemException {
91 return getPersistence().update(tagsVocabulary, merge);
92 }
93
94 public static void cacheResult(
95 com.liferay.portlet.tags.model.TagsVocabulary tagsVocabulary) {
96 getPersistence().cacheResult(tagsVocabulary);
97 }
98
99 public static void cacheResult(
100 java.util.List<com.liferay.portlet.tags.model.TagsVocabulary> tagsVocabularies) {
101 getPersistence().cacheResult(tagsVocabularies);
102 }
103
104 public static com.liferay.portlet.tags.model.TagsVocabulary create(
105 long vocabularyId) {
106 return getPersistence().create(vocabularyId);
107 }
108
109 public static com.liferay.portlet.tags.model.TagsVocabulary remove(
110 long vocabularyId)
111 throws com.liferay.portal.SystemException,
112 com.liferay.portlet.tags.NoSuchVocabularyException {
113 return getPersistence().remove(vocabularyId);
114 }
115
116
119 public static com.liferay.portlet.tags.model.TagsVocabulary update(
120 com.liferay.portlet.tags.model.TagsVocabulary tagsVocabulary)
121 throws com.liferay.portal.SystemException {
122 return getPersistence().update(tagsVocabulary);
123 }
124
125 public static com.liferay.portlet.tags.model.TagsVocabulary updateImpl(
126 com.liferay.portlet.tags.model.TagsVocabulary tagsVocabulary,
127 boolean merge) throws com.liferay.portal.SystemException {
128 return getPersistence().updateImpl(tagsVocabulary, merge);
129 }
130
131 public static com.liferay.portlet.tags.model.TagsVocabulary findByPrimaryKey(
132 long vocabularyId)
133 throws com.liferay.portal.SystemException,
134 com.liferay.portlet.tags.NoSuchVocabularyException {
135 return getPersistence().findByPrimaryKey(vocabularyId);
136 }
137
138 public static com.liferay.portlet.tags.model.TagsVocabulary fetchByPrimaryKey(
139 long vocabularyId) throws com.liferay.portal.SystemException {
140 return getPersistence().fetchByPrimaryKey(vocabularyId);
141 }
142
143 public static com.liferay.portlet.tags.model.TagsVocabulary findByG_N(
144 long groupId, java.lang.String name)
145 throws com.liferay.portal.SystemException,
146 com.liferay.portlet.tags.NoSuchVocabularyException {
147 return getPersistence().findByG_N(groupId, name);
148 }
149
150 public static com.liferay.portlet.tags.model.TagsVocabulary fetchByG_N(
151 long groupId, java.lang.String name)
152 throws com.liferay.portal.SystemException {
153 return getPersistence().fetchByG_N(groupId, name);
154 }
155
156 public static com.liferay.portlet.tags.model.TagsVocabulary fetchByG_N(
157 long groupId, java.lang.String name, boolean retrieveFromCache)
158 throws com.liferay.portal.SystemException {
159 return getPersistence().fetchByG_N(groupId, name, retrieveFromCache);
160 }
161
162 public static java.util.List<com.liferay.portlet.tags.model.TagsVocabulary> findByG_F(
163 long groupId, boolean folksonomy)
164 throws com.liferay.portal.SystemException {
165 return getPersistence().findByG_F(groupId, folksonomy);
166 }
167
168 public static java.util.List<com.liferay.portlet.tags.model.TagsVocabulary> findByG_F(
169 long groupId, boolean folksonomy, int start, int end)
170 throws com.liferay.portal.SystemException {
171 return getPersistence().findByG_F(groupId, folksonomy, start, end);
172 }
173
174 public static java.util.List<com.liferay.portlet.tags.model.TagsVocabulary> findByG_F(
175 long groupId, boolean folksonomy, int start, int end,
176 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
177 throws com.liferay.portal.SystemException {
178 return getPersistence()
179 .findByG_F(groupId, folksonomy, start, end, orderByComparator);
180 }
181
182 public static com.liferay.portlet.tags.model.TagsVocabulary findByG_F_First(
183 long groupId, boolean folksonomy,
184 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
185 throws com.liferay.portal.SystemException,
186 com.liferay.portlet.tags.NoSuchVocabularyException {
187 return getPersistence()
188 .findByG_F_First(groupId, folksonomy, orderByComparator);
189 }
190
191 public static com.liferay.portlet.tags.model.TagsVocabulary findByG_F_Last(
192 long groupId, boolean folksonomy,
193 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
194 throws com.liferay.portal.SystemException,
195 com.liferay.portlet.tags.NoSuchVocabularyException {
196 return getPersistence()
197 .findByG_F_Last(groupId, folksonomy, orderByComparator);
198 }
199
200 public static com.liferay.portlet.tags.model.TagsVocabulary[] findByG_F_PrevAndNext(
201 long vocabularyId, long groupId, boolean folksonomy,
202 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
203 throws com.liferay.portal.SystemException,
204 com.liferay.portlet.tags.NoSuchVocabularyException {
205 return getPersistence()
206 .findByG_F_PrevAndNext(vocabularyId, groupId, folksonomy,
207 orderByComparator);
208 }
209
210 public static java.util.List<com.liferay.portlet.tags.model.TagsVocabulary> findByC_F(
211 long companyId, boolean folksonomy)
212 throws com.liferay.portal.SystemException {
213 return getPersistence().findByC_F(companyId, folksonomy);
214 }
215
216 public static java.util.List<com.liferay.portlet.tags.model.TagsVocabulary> findByC_F(
217 long companyId, boolean folksonomy, int start, int end)
218 throws com.liferay.portal.SystemException {
219 return getPersistence().findByC_F(companyId, folksonomy, start, end);
220 }
221
222 public static java.util.List<com.liferay.portlet.tags.model.TagsVocabulary> findByC_F(
223 long companyId, boolean folksonomy, int start, int end,
224 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
225 throws com.liferay.portal.SystemException {
226 return getPersistence()
227 .findByC_F(companyId, folksonomy, start, end,
228 orderByComparator);
229 }
230
231 public static com.liferay.portlet.tags.model.TagsVocabulary findByC_F_First(
232 long companyId, boolean folksonomy,
233 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
234 throws com.liferay.portal.SystemException,
235 com.liferay.portlet.tags.NoSuchVocabularyException {
236 return getPersistence()
237 .findByC_F_First(companyId, folksonomy, orderByComparator);
238 }
239
240 public static com.liferay.portlet.tags.model.TagsVocabulary findByC_F_Last(
241 long companyId, boolean folksonomy,
242 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
243 throws com.liferay.portal.SystemException,
244 com.liferay.portlet.tags.NoSuchVocabularyException {
245 return getPersistence()
246 .findByC_F_Last(companyId, folksonomy, orderByComparator);
247 }
248
249 public static com.liferay.portlet.tags.model.TagsVocabulary[] findByC_F_PrevAndNext(
250 long vocabularyId, long companyId, boolean folksonomy,
251 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
252 throws com.liferay.portal.SystemException,
253 com.liferay.portlet.tags.NoSuchVocabularyException {
254 return getPersistence()
255 .findByC_F_PrevAndNext(vocabularyId, companyId, folksonomy,
256 orderByComparator);
257 }
258
259 public static java.util.List<com.liferay.portlet.tags.model.TagsVocabulary> findAll()
260 throws com.liferay.portal.SystemException {
261 return getPersistence().findAll();
262 }
263
264 public static java.util.List<com.liferay.portlet.tags.model.TagsVocabulary> findAll(
265 int start, int end) throws com.liferay.portal.SystemException {
266 return getPersistence().findAll(start, end);
267 }
268
269 public static java.util.List<com.liferay.portlet.tags.model.TagsVocabulary> findAll(
270 int start, int end,
271 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
272 throws com.liferay.portal.SystemException {
273 return getPersistence().findAll(start, end, orderByComparator);
274 }
275
276 public static void removeByG_N(long groupId, java.lang.String name)
277 throws com.liferay.portal.SystemException,
278 com.liferay.portlet.tags.NoSuchVocabularyException {
279 getPersistence().removeByG_N(groupId, name);
280 }
281
282 public static void removeByG_F(long groupId, boolean folksonomy)
283 throws com.liferay.portal.SystemException {
284 getPersistence().removeByG_F(groupId, folksonomy);
285 }
286
287 public static void removeByC_F(long companyId, boolean folksonomy)
288 throws com.liferay.portal.SystemException {
289 getPersistence().removeByC_F(companyId, folksonomy);
290 }
291
292 public static void removeAll() throws com.liferay.portal.SystemException {
293 getPersistence().removeAll();
294 }
295
296 public static int countByG_N(long groupId, java.lang.String name)
297 throws com.liferay.portal.SystemException {
298 return getPersistence().countByG_N(groupId, name);
299 }
300
301 public static int countByG_F(long groupId, boolean folksonomy)
302 throws com.liferay.portal.SystemException {
303 return getPersistence().countByG_F(groupId, folksonomy);
304 }
305
306 public static int countByC_F(long companyId, boolean folksonomy)
307 throws com.liferay.portal.SystemException {
308 return getPersistence().countByC_F(companyId, folksonomy);
309 }
310
311 public static int countAll() throws com.liferay.portal.SystemException {
312 return getPersistence().countAll();
313 }
314
315 public static TagsVocabularyPersistence getPersistence() {
316 if (_persistence == null) {
317 _persistence = (TagsVocabularyPersistence)PortalBeanLocatorUtil.locate(TagsVocabularyPersistence.class.getName());
318
319 ReferenceRegistry.registerReference(TagsVocabularyUtil.class,
320 "_persistence");
321 }
322
323 return _persistence;
324 }
325
326 public void setPersistence(TagsVocabularyPersistence persistence) {
327 _persistence = persistence;
328
329 ReferenceRegistry.registerReference(TagsVocabularyUtil.class,
330 "_persistence");
331 }
332
333 private static TagsVocabularyPersistence _persistence;
334 }