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