1
14
15 package com.liferay.portlet.asset.service.persistence;
16
17 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18 import com.liferay.portal.kernel.dao.orm.DynamicQuery;
19 import com.liferay.portal.kernel.exception.SystemException;
20
21 import com.liferay.portlet.asset.model.AssetVocabulary;
22
23 import java.util.List;
24
25
38 public class AssetVocabularyUtil {
39
42 public static void clearCache() {
43 getPersistence().clearCache();
44 }
45
46
49 public static void clearCache(AssetVocabulary assetVocabulary) {
50 getPersistence().clearCache(assetVocabulary);
51 }
52
53
56 public long countWithDynamicQuery(DynamicQuery dynamicQuery)
57 throws SystemException {
58 return getPersistence().countWithDynamicQuery(dynamicQuery);
59 }
60
61
64 public static List<AssetVocabulary> findWithDynamicQuery(
65 DynamicQuery dynamicQuery) throws SystemException {
66 return getPersistence().findWithDynamicQuery(dynamicQuery);
67 }
68
69
72 public static List<AssetVocabulary> findWithDynamicQuery(
73 DynamicQuery dynamicQuery, int start, int end)
74 throws SystemException {
75 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
76 }
77
78
81 public static AssetVocabulary remove(AssetVocabulary assetVocabulary)
82 throws SystemException {
83 return getPersistence().remove(assetVocabulary);
84 }
85
86
89 public static AssetVocabulary update(AssetVocabulary assetVocabulary,
90 boolean merge) throws SystemException {
91 return getPersistence().update(assetVocabulary, merge);
92 }
93
94 public static void cacheResult(
95 com.liferay.portlet.asset.model.AssetVocabulary assetVocabulary) {
96 getPersistence().cacheResult(assetVocabulary);
97 }
98
99 public static void cacheResult(
100 java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> assetVocabularies) {
101 getPersistence().cacheResult(assetVocabularies);
102 }
103
104 public static com.liferay.portlet.asset.model.AssetVocabulary create(
105 long vocabularyId) {
106 return getPersistence().create(vocabularyId);
107 }
108
109 public static com.liferay.portlet.asset.model.AssetVocabulary remove(
110 long vocabularyId)
111 throws com.liferay.portal.kernel.exception.SystemException,
112 com.liferay.portlet.asset.NoSuchVocabularyException {
113 return getPersistence().remove(vocabularyId);
114 }
115
116 public static com.liferay.portlet.asset.model.AssetVocabulary updateImpl(
117 com.liferay.portlet.asset.model.AssetVocabulary assetVocabulary,
118 boolean merge)
119 throws com.liferay.portal.kernel.exception.SystemException {
120 return getPersistence().updateImpl(assetVocabulary, merge);
121 }
122
123 public static com.liferay.portlet.asset.model.AssetVocabulary findByPrimaryKey(
124 long vocabularyId)
125 throws com.liferay.portal.kernel.exception.SystemException,
126 com.liferay.portlet.asset.NoSuchVocabularyException {
127 return getPersistence().findByPrimaryKey(vocabularyId);
128 }
129
130 public static com.liferay.portlet.asset.model.AssetVocabulary fetchByPrimaryKey(
131 long vocabularyId)
132 throws com.liferay.portal.kernel.exception.SystemException {
133 return getPersistence().fetchByPrimaryKey(vocabularyId);
134 }
135
136 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByUuid(
137 java.lang.String uuid)
138 throws com.liferay.portal.kernel.exception.SystemException {
139 return getPersistence().findByUuid(uuid);
140 }
141
142 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByUuid(
143 java.lang.String uuid, int start, int end)
144 throws com.liferay.portal.kernel.exception.SystemException {
145 return getPersistence().findByUuid(uuid, start, end);
146 }
147
148 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByUuid(
149 java.lang.String uuid, int start, int end,
150 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
151 throws com.liferay.portal.kernel.exception.SystemException {
152 return getPersistence().findByUuid(uuid, start, end, orderByComparator);
153 }
154
155 public static com.liferay.portlet.asset.model.AssetVocabulary findByUuid_First(
156 java.lang.String uuid,
157 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
158 throws com.liferay.portal.kernel.exception.SystemException,
159 com.liferay.portlet.asset.NoSuchVocabularyException {
160 return getPersistence().findByUuid_First(uuid, orderByComparator);
161 }
162
163 public static com.liferay.portlet.asset.model.AssetVocabulary findByUuid_Last(
164 java.lang.String uuid,
165 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
166 throws com.liferay.portal.kernel.exception.SystemException,
167 com.liferay.portlet.asset.NoSuchVocabularyException {
168 return getPersistence().findByUuid_Last(uuid, orderByComparator);
169 }
170
171 public static com.liferay.portlet.asset.model.AssetVocabulary[] findByUuid_PrevAndNext(
172 long vocabularyId, java.lang.String uuid,
173 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
174 throws com.liferay.portal.kernel.exception.SystemException,
175 com.liferay.portlet.asset.NoSuchVocabularyException {
176 return getPersistence()
177 .findByUuid_PrevAndNext(vocabularyId, uuid, orderByComparator);
178 }
179
180 public static com.liferay.portlet.asset.model.AssetVocabulary findByUUID_G(
181 java.lang.String uuid, long groupId)
182 throws com.liferay.portal.kernel.exception.SystemException,
183 com.liferay.portlet.asset.NoSuchVocabularyException {
184 return getPersistence().findByUUID_G(uuid, groupId);
185 }
186
187 public static com.liferay.portlet.asset.model.AssetVocabulary fetchByUUID_G(
188 java.lang.String uuid, long groupId)
189 throws com.liferay.portal.kernel.exception.SystemException {
190 return getPersistence().fetchByUUID_G(uuid, groupId);
191 }
192
193 public static com.liferay.portlet.asset.model.AssetVocabulary fetchByUUID_G(
194 java.lang.String uuid, long groupId, boolean retrieveFromCache)
195 throws com.liferay.portal.kernel.exception.SystemException {
196 return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache);
197 }
198
199 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByGroupId(
200 long groupId)
201 throws com.liferay.portal.kernel.exception.SystemException {
202 return getPersistence().findByGroupId(groupId);
203 }
204
205 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByGroupId(
206 long groupId, int start, int end)
207 throws com.liferay.portal.kernel.exception.SystemException {
208 return getPersistence().findByGroupId(groupId, start, end);
209 }
210
211 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByGroupId(
212 long groupId, int start, int end,
213 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
214 throws com.liferay.portal.kernel.exception.SystemException {
215 return getPersistence()
216 .findByGroupId(groupId, start, end, orderByComparator);
217 }
218
219 public static com.liferay.portlet.asset.model.AssetVocabulary findByGroupId_First(
220 long groupId,
221 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
222 throws com.liferay.portal.kernel.exception.SystemException,
223 com.liferay.portlet.asset.NoSuchVocabularyException {
224 return getPersistence().findByGroupId_First(groupId, orderByComparator);
225 }
226
227 public static com.liferay.portlet.asset.model.AssetVocabulary findByGroupId_Last(
228 long groupId,
229 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
230 throws com.liferay.portal.kernel.exception.SystemException,
231 com.liferay.portlet.asset.NoSuchVocabularyException {
232 return getPersistence().findByGroupId_Last(groupId, orderByComparator);
233 }
234
235 public static com.liferay.portlet.asset.model.AssetVocabulary[] findByGroupId_PrevAndNext(
236 long vocabularyId, long groupId,
237 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
238 throws com.liferay.portal.kernel.exception.SystemException,
239 com.liferay.portlet.asset.NoSuchVocabularyException {
240 return getPersistence()
241 .findByGroupId_PrevAndNext(vocabularyId, groupId,
242 orderByComparator);
243 }
244
245 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> filterFindByGroupId(
246 long groupId)
247 throws com.liferay.portal.kernel.exception.SystemException {
248 return getPersistence().filterFindByGroupId(groupId);
249 }
250
251 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> filterFindByGroupId(
252 long groupId, int start, int end)
253 throws com.liferay.portal.kernel.exception.SystemException {
254 return getPersistence().filterFindByGroupId(groupId, start, end);
255 }
256
257 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> filterFindByGroupId(
258 long groupId, int start, int end,
259 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
260 throws com.liferay.portal.kernel.exception.SystemException {
261 return getPersistence()
262 .filterFindByGroupId(groupId, start, end, orderByComparator);
263 }
264
265 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByCompanyId(
266 long companyId)
267 throws com.liferay.portal.kernel.exception.SystemException {
268 return getPersistence().findByCompanyId(companyId);
269 }
270
271 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByCompanyId(
272 long companyId, int start, int end)
273 throws com.liferay.portal.kernel.exception.SystemException {
274 return getPersistence().findByCompanyId(companyId, start, end);
275 }
276
277 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByCompanyId(
278 long companyId, int start, int end,
279 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
280 throws com.liferay.portal.kernel.exception.SystemException {
281 return getPersistence()
282 .findByCompanyId(companyId, start, end, orderByComparator);
283 }
284
285 public static com.liferay.portlet.asset.model.AssetVocabulary findByCompanyId_First(
286 long companyId,
287 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
288 throws com.liferay.portal.kernel.exception.SystemException,
289 com.liferay.portlet.asset.NoSuchVocabularyException {
290 return getPersistence()
291 .findByCompanyId_First(companyId, orderByComparator);
292 }
293
294 public static com.liferay.portlet.asset.model.AssetVocabulary findByCompanyId_Last(
295 long companyId,
296 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
297 throws com.liferay.portal.kernel.exception.SystemException,
298 com.liferay.portlet.asset.NoSuchVocabularyException {
299 return getPersistence()
300 .findByCompanyId_Last(companyId, orderByComparator);
301 }
302
303 public static com.liferay.portlet.asset.model.AssetVocabulary[] findByCompanyId_PrevAndNext(
304 long vocabularyId, long companyId,
305 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
306 throws com.liferay.portal.kernel.exception.SystemException,
307 com.liferay.portlet.asset.NoSuchVocabularyException {
308 return getPersistence()
309 .findByCompanyId_PrevAndNext(vocabularyId, companyId,
310 orderByComparator);
311 }
312
313 public static com.liferay.portlet.asset.model.AssetVocabulary findByG_N(
314 long groupId, java.lang.String name)
315 throws com.liferay.portal.kernel.exception.SystemException,
316 com.liferay.portlet.asset.NoSuchVocabularyException {
317 return getPersistence().findByG_N(groupId, name);
318 }
319
320 public static com.liferay.portlet.asset.model.AssetVocabulary fetchByG_N(
321 long groupId, java.lang.String name)
322 throws com.liferay.portal.kernel.exception.SystemException {
323 return getPersistence().fetchByG_N(groupId, name);
324 }
325
326 public static com.liferay.portlet.asset.model.AssetVocabulary fetchByG_N(
327 long groupId, java.lang.String name, boolean retrieveFromCache)
328 throws com.liferay.portal.kernel.exception.SystemException {
329 return getPersistence().fetchByG_N(groupId, name, retrieveFromCache);
330 }
331
332 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findAll()
333 throws com.liferay.portal.kernel.exception.SystemException {
334 return getPersistence().findAll();
335 }
336
337 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findAll(
338 int start, int end)
339 throws com.liferay.portal.kernel.exception.SystemException {
340 return getPersistence().findAll(start, end);
341 }
342
343 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findAll(
344 int start, int end,
345 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
346 throws com.liferay.portal.kernel.exception.SystemException {
347 return getPersistence().findAll(start, end, orderByComparator);
348 }
349
350 public static void removeByUuid(java.lang.String uuid)
351 throws com.liferay.portal.kernel.exception.SystemException {
352 getPersistence().removeByUuid(uuid);
353 }
354
355 public static void removeByUUID_G(java.lang.String uuid, long groupId)
356 throws com.liferay.portal.kernel.exception.SystemException,
357 com.liferay.portlet.asset.NoSuchVocabularyException {
358 getPersistence().removeByUUID_G(uuid, groupId);
359 }
360
361 public static void removeByGroupId(long groupId)
362 throws com.liferay.portal.kernel.exception.SystemException {
363 getPersistence().removeByGroupId(groupId);
364 }
365
366 public static void removeByCompanyId(long companyId)
367 throws com.liferay.portal.kernel.exception.SystemException {
368 getPersistence().removeByCompanyId(companyId);
369 }
370
371 public static void removeByG_N(long groupId, java.lang.String name)
372 throws com.liferay.portal.kernel.exception.SystemException,
373 com.liferay.portlet.asset.NoSuchVocabularyException {
374 getPersistence().removeByG_N(groupId, name);
375 }
376
377 public static void removeAll()
378 throws com.liferay.portal.kernel.exception.SystemException {
379 getPersistence().removeAll();
380 }
381
382 public static int countByUuid(java.lang.String uuid)
383 throws com.liferay.portal.kernel.exception.SystemException {
384 return getPersistence().countByUuid(uuid);
385 }
386
387 public static int countByUUID_G(java.lang.String uuid, long groupId)
388 throws com.liferay.portal.kernel.exception.SystemException {
389 return getPersistence().countByUUID_G(uuid, groupId);
390 }
391
392 public static int countByGroupId(long groupId)
393 throws com.liferay.portal.kernel.exception.SystemException {
394 return getPersistence().countByGroupId(groupId);
395 }
396
397 public static int filterCountByGroupId(long groupId)
398 throws com.liferay.portal.kernel.exception.SystemException {
399 return getPersistence().filterCountByGroupId(groupId);
400 }
401
402 public static int countByCompanyId(long companyId)
403 throws com.liferay.portal.kernel.exception.SystemException {
404 return getPersistence().countByCompanyId(companyId);
405 }
406
407 public static int countByG_N(long groupId, java.lang.String name)
408 throws com.liferay.portal.kernel.exception.SystemException {
409 return getPersistence().countByG_N(groupId, name);
410 }
411
412 public static int filterCountByG_N(long groupId, java.lang.String name)
413 throws com.liferay.portal.kernel.exception.SystemException {
414 return getPersistence().filterCountByG_N(groupId, name);
415 }
416
417 public static int countAll()
418 throws com.liferay.portal.kernel.exception.SystemException {
419 return getPersistence().countAll();
420 }
421
422 public static AssetVocabularyPersistence getPersistence() {
423 if (_persistence == null) {
424 _persistence = (AssetVocabularyPersistence)PortalBeanLocatorUtil.locate(AssetVocabularyPersistence.class.getName());
425 }
426
427 return _persistence;
428 }
429
430 public void setPersistence(AssetVocabularyPersistence persistence) {
431 _persistence = persistence;
432 }
433
434 private static AssetVocabularyPersistence _persistence;
435 }