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