001
014
015 package com.liferay.portlet.asset.service.persistence;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018 import com.liferay.portal.kernel.dao.orm.DynamicQuery;
019 import com.liferay.portal.kernel.exception.SystemException;
020 import com.liferay.portal.kernel.util.OrderByComparator;
021 import com.liferay.portal.service.ServiceContext;
022
023 import com.liferay.portlet.asset.model.AssetVocabulary;
024
025 import java.util.List;
026
027
033 public class AssetVocabularyUtil {
034
037 public static void clearCache() {
038 getPersistence().clearCache();
039 }
040
041
044 public static void clearCache(AssetVocabulary assetVocabulary) {
045 getPersistence().clearCache(assetVocabulary);
046 }
047
048
051 public long countWithDynamicQuery(DynamicQuery dynamicQuery)
052 throws SystemException {
053 return getPersistence().countWithDynamicQuery(dynamicQuery);
054 }
055
056
059 public static List<AssetVocabulary> findWithDynamicQuery(
060 DynamicQuery dynamicQuery) throws SystemException {
061 return getPersistence().findWithDynamicQuery(dynamicQuery);
062 }
063
064
067 public static List<AssetVocabulary> findWithDynamicQuery(
068 DynamicQuery dynamicQuery, int start, int end)
069 throws SystemException {
070 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
071 }
072
073
076 public static List<AssetVocabulary> findWithDynamicQuery(
077 DynamicQuery dynamicQuery, int start, int end,
078 OrderByComparator orderByComparator) throws SystemException {
079 return getPersistence()
080 .findWithDynamicQuery(dynamicQuery, start, end,
081 orderByComparator);
082 }
083
084
087 public static AssetVocabulary remove(AssetVocabulary assetVocabulary)
088 throws SystemException {
089 return getPersistence().remove(assetVocabulary);
090 }
091
092
095 public static AssetVocabulary update(AssetVocabulary assetVocabulary,
096 boolean merge) throws SystemException {
097 return getPersistence().update(assetVocabulary, merge);
098 }
099
100
103 public static AssetVocabulary update(AssetVocabulary assetVocabulary,
104 boolean merge, ServiceContext serviceContext) throws SystemException {
105 return getPersistence().update(assetVocabulary, merge, serviceContext);
106 }
107
108 public static void cacheResult(
109 com.liferay.portlet.asset.model.AssetVocabulary assetVocabulary) {
110 getPersistence().cacheResult(assetVocabulary);
111 }
112
113 public static void cacheResult(
114 java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> assetVocabularies) {
115 getPersistence().cacheResult(assetVocabularies);
116 }
117
118 public static com.liferay.portlet.asset.model.AssetVocabulary create(
119 long vocabularyId) {
120 return getPersistence().create(vocabularyId);
121 }
122
123 public static com.liferay.portlet.asset.model.AssetVocabulary remove(
124 long vocabularyId)
125 throws com.liferay.portal.kernel.exception.SystemException,
126 com.liferay.portlet.asset.NoSuchVocabularyException {
127 return getPersistence().remove(vocabularyId);
128 }
129
130 public static com.liferay.portlet.asset.model.AssetVocabulary updateImpl(
131 com.liferay.portlet.asset.model.AssetVocabulary assetVocabulary,
132 boolean merge)
133 throws com.liferay.portal.kernel.exception.SystemException {
134 return getPersistence().updateImpl(assetVocabulary, merge);
135 }
136
137 public static com.liferay.portlet.asset.model.AssetVocabulary findByPrimaryKey(
138 long vocabularyId)
139 throws com.liferay.portal.kernel.exception.SystemException,
140 com.liferay.portlet.asset.NoSuchVocabularyException {
141 return getPersistence().findByPrimaryKey(vocabularyId);
142 }
143
144 public static com.liferay.portlet.asset.model.AssetVocabulary fetchByPrimaryKey(
145 long vocabularyId)
146 throws com.liferay.portal.kernel.exception.SystemException {
147 return getPersistence().fetchByPrimaryKey(vocabularyId);
148 }
149
150 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByUuid(
151 java.lang.String uuid)
152 throws com.liferay.portal.kernel.exception.SystemException {
153 return getPersistence().findByUuid(uuid);
154 }
155
156 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByUuid(
157 java.lang.String uuid, int start, int end)
158 throws com.liferay.portal.kernel.exception.SystemException {
159 return getPersistence().findByUuid(uuid, start, end);
160 }
161
162 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByUuid(
163 java.lang.String uuid, int start, int end,
164 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
165 throws com.liferay.portal.kernel.exception.SystemException {
166 return getPersistence().findByUuid(uuid, start, end, orderByComparator);
167 }
168
169 public static com.liferay.portlet.asset.model.AssetVocabulary findByUuid_First(
170 java.lang.String uuid,
171 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
172 throws com.liferay.portal.kernel.exception.SystemException,
173 com.liferay.portlet.asset.NoSuchVocabularyException {
174 return getPersistence().findByUuid_First(uuid, orderByComparator);
175 }
176
177 public static com.liferay.portlet.asset.model.AssetVocabulary findByUuid_Last(
178 java.lang.String uuid,
179 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
180 throws com.liferay.portal.kernel.exception.SystemException,
181 com.liferay.portlet.asset.NoSuchVocabularyException {
182 return getPersistence().findByUuid_Last(uuid, orderByComparator);
183 }
184
185 public static com.liferay.portlet.asset.model.AssetVocabulary[] findByUuid_PrevAndNext(
186 long vocabularyId, java.lang.String uuid,
187 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
188 throws com.liferay.portal.kernel.exception.SystemException,
189 com.liferay.portlet.asset.NoSuchVocabularyException {
190 return getPersistence()
191 .findByUuid_PrevAndNext(vocabularyId, uuid, orderByComparator);
192 }
193
194 public static com.liferay.portlet.asset.model.AssetVocabulary findByUUID_G(
195 java.lang.String uuid, long groupId)
196 throws com.liferay.portal.kernel.exception.SystemException,
197 com.liferay.portlet.asset.NoSuchVocabularyException {
198 return getPersistence().findByUUID_G(uuid, groupId);
199 }
200
201 public static com.liferay.portlet.asset.model.AssetVocabulary fetchByUUID_G(
202 java.lang.String uuid, long groupId)
203 throws com.liferay.portal.kernel.exception.SystemException {
204 return getPersistence().fetchByUUID_G(uuid, groupId);
205 }
206
207 public static com.liferay.portlet.asset.model.AssetVocabulary fetchByUUID_G(
208 java.lang.String uuid, long groupId, boolean retrieveFromCache)
209 throws com.liferay.portal.kernel.exception.SystemException {
210 return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache);
211 }
212
213 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByGroupId(
214 long groupId)
215 throws com.liferay.portal.kernel.exception.SystemException {
216 return getPersistence().findByGroupId(groupId);
217 }
218
219 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByGroupId(
220 long groupId, int start, int end)
221 throws com.liferay.portal.kernel.exception.SystemException {
222 return getPersistence().findByGroupId(groupId, start, end);
223 }
224
225 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByGroupId(
226 long groupId, int start, int end,
227 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
228 throws com.liferay.portal.kernel.exception.SystemException {
229 return getPersistence()
230 .findByGroupId(groupId, start, end, orderByComparator);
231 }
232
233 public static com.liferay.portlet.asset.model.AssetVocabulary findByGroupId_First(
234 long groupId,
235 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
236 throws com.liferay.portal.kernel.exception.SystemException,
237 com.liferay.portlet.asset.NoSuchVocabularyException {
238 return getPersistence().findByGroupId_First(groupId, orderByComparator);
239 }
240
241 public static com.liferay.portlet.asset.model.AssetVocabulary findByGroupId_Last(
242 long groupId,
243 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
244 throws com.liferay.portal.kernel.exception.SystemException,
245 com.liferay.portlet.asset.NoSuchVocabularyException {
246 return getPersistence().findByGroupId_Last(groupId, orderByComparator);
247 }
248
249 public static com.liferay.portlet.asset.model.AssetVocabulary[] findByGroupId_PrevAndNext(
250 long vocabularyId, long groupId,
251 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
252 throws com.liferay.portal.kernel.exception.SystemException,
253 com.liferay.portlet.asset.NoSuchVocabularyException {
254 return getPersistence()
255 .findByGroupId_PrevAndNext(vocabularyId, groupId,
256 orderByComparator);
257 }
258
259 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> filterFindByGroupId(
260 long groupId)
261 throws com.liferay.portal.kernel.exception.SystemException {
262 return getPersistence().filterFindByGroupId(groupId);
263 }
264
265 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> filterFindByGroupId(
266 long groupId, int start, int end)
267 throws com.liferay.portal.kernel.exception.SystemException {
268 return getPersistence().filterFindByGroupId(groupId, start, end);
269 }
270
271 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> filterFindByGroupId(
272 long groupId, int start, int end,
273 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
274 throws com.liferay.portal.kernel.exception.SystemException {
275 return getPersistence()
276 .filterFindByGroupId(groupId, start, end, orderByComparator);
277 }
278
279 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByCompanyId(
280 long companyId)
281 throws com.liferay.portal.kernel.exception.SystemException {
282 return getPersistence().findByCompanyId(companyId);
283 }
284
285 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByCompanyId(
286 long companyId, int start, int end)
287 throws com.liferay.portal.kernel.exception.SystemException {
288 return getPersistence().findByCompanyId(companyId, start, end);
289 }
290
291 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByCompanyId(
292 long companyId, int start, int end,
293 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
294 throws com.liferay.portal.kernel.exception.SystemException {
295 return getPersistence()
296 .findByCompanyId(companyId, start, end, orderByComparator);
297 }
298
299 public static com.liferay.portlet.asset.model.AssetVocabulary findByCompanyId_First(
300 long companyId,
301 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
302 throws com.liferay.portal.kernel.exception.SystemException,
303 com.liferay.portlet.asset.NoSuchVocabularyException {
304 return getPersistence()
305 .findByCompanyId_First(companyId, orderByComparator);
306 }
307
308 public static com.liferay.portlet.asset.model.AssetVocabulary findByCompanyId_Last(
309 long companyId,
310 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
311 throws com.liferay.portal.kernel.exception.SystemException,
312 com.liferay.portlet.asset.NoSuchVocabularyException {
313 return getPersistence()
314 .findByCompanyId_Last(companyId, orderByComparator);
315 }
316
317 public static com.liferay.portlet.asset.model.AssetVocabulary[] findByCompanyId_PrevAndNext(
318 long vocabularyId, long companyId,
319 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
320 throws com.liferay.portal.kernel.exception.SystemException,
321 com.liferay.portlet.asset.NoSuchVocabularyException {
322 return getPersistence()
323 .findByCompanyId_PrevAndNext(vocabularyId, companyId,
324 orderByComparator);
325 }
326
327 public static com.liferay.portlet.asset.model.AssetVocabulary findByG_N(
328 long groupId, java.lang.String name)
329 throws com.liferay.portal.kernel.exception.SystemException,
330 com.liferay.portlet.asset.NoSuchVocabularyException {
331 return getPersistence().findByG_N(groupId, name);
332 }
333
334 public static com.liferay.portlet.asset.model.AssetVocabulary fetchByG_N(
335 long groupId, java.lang.String name)
336 throws com.liferay.portal.kernel.exception.SystemException {
337 return getPersistence().fetchByG_N(groupId, name);
338 }
339
340 public static com.liferay.portlet.asset.model.AssetVocabulary fetchByG_N(
341 long groupId, java.lang.String name, boolean retrieveFromCache)
342 throws com.liferay.portal.kernel.exception.SystemException {
343 return getPersistence().fetchByG_N(groupId, name, retrieveFromCache);
344 }
345
346 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findAll()
347 throws com.liferay.portal.kernel.exception.SystemException {
348 return getPersistence().findAll();
349 }
350
351 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findAll(
352 int start, int end)
353 throws com.liferay.portal.kernel.exception.SystemException {
354 return getPersistence().findAll(start, end);
355 }
356
357 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findAll(
358 int start, int end,
359 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
360 throws com.liferay.portal.kernel.exception.SystemException {
361 return getPersistence().findAll(start, end, orderByComparator);
362 }
363
364 public static void removeByUuid(java.lang.String uuid)
365 throws com.liferay.portal.kernel.exception.SystemException {
366 getPersistence().removeByUuid(uuid);
367 }
368
369 public static void removeByUUID_G(java.lang.String uuid, long groupId)
370 throws com.liferay.portal.kernel.exception.SystemException,
371 com.liferay.portlet.asset.NoSuchVocabularyException {
372 getPersistence().removeByUUID_G(uuid, groupId);
373 }
374
375 public static void removeByGroupId(long groupId)
376 throws com.liferay.portal.kernel.exception.SystemException {
377 getPersistence().removeByGroupId(groupId);
378 }
379
380 public static void removeByCompanyId(long companyId)
381 throws com.liferay.portal.kernel.exception.SystemException {
382 getPersistence().removeByCompanyId(companyId);
383 }
384
385 public static void removeByG_N(long groupId, java.lang.String name)
386 throws com.liferay.portal.kernel.exception.SystemException,
387 com.liferay.portlet.asset.NoSuchVocabularyException {
388 getPersistence().removeByG_N(groupId, name);
389 }
390
391 public static void removeAll()
392 throws com.liferay.portal.kernel.exception.SystemException {
393 getPersistence().removeAll();
394 }
395
396 public static int countByUuid(java.lang.String uuid)
397 throws com.liferay.portal.kernel.exception.SystemException {
398 return getPersistence().countByUuid(uuid);
399 }
400
401 public static int countByUUID_G(java.lang.String uuid, long groupId)
402 throws com.liferay.portal.kernel.exception.SystemException {
403 return getPersistence().countByUUID_G(uuid, groupId);
404 }
405
406 public static int countByGroupId(long groupId)
407 throws com.liferay.portal.kernel.exception.SystemException {
408 return getPersistence().countByGroupId(groupId);
409 }
410
411 public static int filterCountByGroupId(long groupId)
412 throws com.liferay.portal.kernel.exception.SystemException {
413 return getPersistence().filterCountByGroupId(groupId);
414 }
415
416 public static int countByCompanyId(long companyId)
417 throws com.liferay.portal.kernel.exception.SystemException {
418 return getPersistence().countByCompanyId(companyId);
419 }
420
421 public static int countByG_N(long groupId, java.lang.String name)
422 throws com.liferay.portal.kernel.exception.SystemException {
423 return getPersistence().countByG_N(groupId, name);
424 }
425
426 public static int filterCountByG_N(long groupId, java.lang.String name)
427 throws com.liferay.portal.kernel.exception.SystemException {
428 return getPersistence().filterCountByG_N(groupId, name);
429 }
430
431 public static int countAll()
432 throws com.liferay.portal.kernel.exception.SystemException {
433 return getPersistence().countAll();
434 }
435
436 public static AssetVocabularyPersistence getPersistence() {
437 if (_persistence == null) {
438 _persistence = (AssetVocabularyPersistence)PortalBeanLocatorUtil.locate(AssetVocabularyPersistence.class.getName());
439 }
440
441 return _persistence;
442 }
443
444 public void setPersistence(AssetVocabularyPersistence persistence) {
445 _persistence = persistence;
446 }
447
448 private static AssetVocabularyPersistence _persistence;
449 }