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.AssetCategoryProperty;
22
23 import java.util.List;
24
25
38 public class AssetCategoryPropertyUtil {
39
42 public static void clearCache() {
43 getPersistence().clearCache();
44 }
45
46
49 public static void clearCache(AssetCategoryProperty assetCategoryProperty) {
50 getPersistence().clearCache(assetCategoryProperty);
51 }
52
53
56 public long countWithDynamicQuery(DynamicQuery dynamicQuery)
57 throws SystemException {
58 return getPersistence().countWithDynamicQuery(dynamicQuery);
59 }
60
61
64 public static List<AssetCategoryProperty> findWithDynamicQuery(
65 DynamicQuery dynamicQuery) throws SystemException {
66 return getPersistence().findWithDynamicQuery(dynamicQuery);
67 }
68
69
72 public static List<AssetCategoryProperty> findWithDynamicQuery(
73 DynamicQuery dynamicQuery, int start, int end)
74 throws SystemException {
75 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
76 }
77
78
81 public static AssetCategoryProperty remove(
82 AssetCategoryProperty assetCategoryProperty) throws SystemException {
83 return getPersistence().remove(assetCategoryProperty);
84 }
85
86
89 public static AssetCategoryProperty update(
90 AssetCategoryProperty assetCategoryProperty, boolean merge)
91 throws SystemException {
92 return getPersistence().update(assetCategoryProperty, merge);
93 }
94
95 public static void cacheResult(
96 com.liferay.portlet.asset.model.AssetCategoryProperty assetCategoryProperty) {
97 getPersistence().cacheResult(assetCategoryProperty);
98 }
99
100 public static void cacheResult(
101 java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> assetCategoryProperties) {
102 getPersistence().cacheResult(assetCategoryProperties);
103 }
104
105 public static com.liferay.portlet.asset.model.AssetCategoryProperty create(
106 long categoryPropertyId) {
107 return getPersistence().create(categoryPropertyId);
108 }
109
110 public static com.liferay.portlet.asset.model.AssetCategoryProperty remove(
111 long categoryPropertyId)
112 throws com.liferay.portal.kernel.exception.SystemException,
113 com.liferay.portlet.asset.NoSuchCategoryPropertyException {
114 return getPersistence().remove(categoryPropertyId);
115 }
116
117 public static com.liferay.portlet.asset.model.AssetCategoryProperty updateImpl(
118 com.liferay.portlet.asset.model.AssetCategoryProperty assetCategoryProperty,
119 boolean merge)
120 throws com.liferay.portal.kernel.exception.SystemException {
121 return getPersistence().updateImpl(assetCategoryProperty, merge);
122 }
123
124 public static com.liferay.portlet.asset.model.AssetCategoryProperty findByPrimaryKey(
125 long categoryPropertyId)
126 throws com.liferay.portal.kernel.exception.SystemException,
127 com.liferay.portlet.asset.NoSuchCategoryPropertyException {
128 return getPersistence().findByPrimaryKey(categoryPropertyId);
129 }
130
131 public static com.liferay.portlet.asset.model.AssetCategoryProperty fetchByPrimaryKey(
132 long categoryPropertyId)
133 throws com.liferay.portal.kernel.exception.SystemException {
134 return getPersistence().fetchByPrimaryKey(categoryPropertyId);
135 }
136
137 public static java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findByCompanyId(
138 long companyId)
139 throws com.liferay.portal.kernel.exception.SystemException {
140 return getPersistence().findByCompanyId(companyId);
141 }
142
143 public static java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findByCompanyId(
144 long companyId, int start, int end)
145 throws com.liferay.portal.kernel.exception.SystemException {
146 return getPersistence().findByCompanyId(companyId, start, end);
147 }
148
149 public static java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findByCompanyId(
150 long companyId, int start, int end,
151 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
152 throws com.liferay.portal.kernel.exception.SystemException {
153 return getPersistence()
154 .findByCompanyId(companyId, start, end, orderByComparator);
155 }
156
157 public static com.liferay.portlet.asset.model.AssetCategoryProperty findByCompanyId_First(
158 long companyId,
159 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
160 throws com.liferay.portal.kernel.exception.SystemException,
161 com.liferay.portlet.asset.NoSuchCategoryPropertyException {
162 return getPersistence()
163 .findByCompanyId_First(companyId, orderByComparator);
164 }
165
166 public static com.liferay.portlet.asset.model.AssetCategoryProperty findByCompanyId_Last(
167 long companyId,
168 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
169 throws com.liferay.portal.kernel.exception.SystemException,
170 com.liferay.portlet.asset.NoSuchCategoryPropertyException {
171 return getPersistence()
172 .findByCompanyId_Last(companyId, orderByComparator);
173 }
174
175 public static com.liferay.portlet.asset.model.AssetCategoryProperty[] findByCompanyId_PrevAndNext(
176 long categoryPropertyId, long companyId,
177 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
178 throws com.liferay.portal.kernel.exception.SystemException,
179 com.liferay.portlet.asset.NoSuchCategoryPropertyException {
180 return getPersistence()
181 .findByCompanyId_PrevAndNext(categoryPropertyId, companyId,
182 orderByComparator);
183 }
184
185 public static java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findByCategoryId(
186 long categoryId)
187 throws com.liferay.portal.kernel.exception.SystemException {
188 return getPersistence().findByCategoryId(categoryId);
189 }
190
191 public static java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findByCategoryId(
192 long categoryId, int start, int end)
193 throws com.liferay.portal.kernel.exception.SystemException {
194 return getPersistence().findByCategoryId(categoryId, start, end);
195 }
196
197 public static java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findByCategoryId(
198 long categoryId, int start, int end,
199 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
200 throws com.liferay.portal.kernel.exception.SystemException {
201 return getPersistence()
202 .findByCategoryId(categoryId, start, end, orderByComparator);
203 }
204
205 public static com.liferay.portlet.asset.model.AssetCategoryProperty findByCategoryId_First(
206 long categoryId,
207 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
208 throws com.liferay.portal.kernel.exception.SystemException,
209 com.liferay.portlet.asset.NoSuchCategoryPropertyException {
210 return getPersistence()
211 .findByCategoryId_First(categoryId, orderByComparator);
212 }
213
214 public static com.liferay.portlet.asset.model.AssetCategoryProperty findByCategoryId_Last(
215 long categoryId,
216 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
217 throws com.liferay.portal.kernel.exception.SystemException,
218 com.liferay.portlet.asset.NoSuchCategoryPropertyException {
219 return getPersistence()
220 .findByCategoryId_Last(categoryId, orderByComparator);
221 }
222
223 public static com.liferay.portlet.asset.model.AssetCategoryProperty[] findByCategoryId_PrevAndNext(
224 long categoryPropertyId, long categoryId,
225 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
226 throws com.liferay.portal.kernel.exception.SystemException,
227 com.liferay.portlet.asset.NoSuchCategoryPropertyException {
228 return getPersistence()
229 .findByCategoryId_PrevAndNext(categoryPropertyId,
230 categoryId, orderByComparator);
231 }
232
233 public static java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findByC_K(
234 long companyId, java.lang.String key)
235 throws com.liferay.portal.kernel.exception.SystemException {
236 return getPersistence().findByC_K(companyId, key);
237 }
238
239 public static java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findByC_K(
240 long companyId, java.lang.String key, int start, int end)
241 throws com.liferay.portal.kernel.exception.SystemException {
242 return getPersistence().findByC_K(companyId, key, start, end);
243 }
244
245 public static java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findByC_K(
246 long companyId, java.lang.String key, int start, int end,
247 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
248 throws com.liferay.portal.kernel.exception.SystemException {
249 return getPersistence()
250 .findByC_K(companyId, key, start, end, orderByComparator);
251 }
252
253 public static com.liferay.portlet.asset.model.AssetCategoryProperty findByC_K_First(
254 long companyId, java.lang.String key,
255 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
256 throws com.liferay.portal.kernel.exception.SystemException,
257 com.liferay.portlet.asset.NoSuchCategoryPropertyException {
258 return getPersistence()
259 .findByC_K_First(companyId, key, orderByComparator);
260 }
261
262 public static com.liferay.portlet.asset.model.AssetCategoryProperty findByC_K_Last(
263 long companyId, java.lang.String key,
264 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
265 throws com.liferay.portal.kernel.exception.SystemException,
266 com.liferay.portlet.asset.NoSuchCategoryPropertyException {
267 return getPersistence().findByC_K_Last(companyId, key, orderByComparator);
268 }
269
270 public static com.liferay.portlet.asset.model.AssetCategoryProperty[] findByC_K_PrevAndNext(
271 long categoryPropertyId, long companyId, java.lang.String key,
272 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
273 throws com.liferay.portal.kernel.exception.SystemException,
274 com.liferay.portlet.asset.NoSuchCategoryPropertyException {
275 return getPersistence()
276 .findByC_K_PrevAndNext(categoryPropertyId, companyId, key,
277 orderByComparator);
278 }
279
280 public static com.liferay.portlet.asset.model.AssetCategoryProperty findByCA_K(
281 long categoryId, java.lang.String key)
282 throws com.liferay.portal.kernel.exception.SystemException,
283 com.liferay.portlet.asset.NoSuchCategoryPropertyException {
284 return getPersistence().findByCA_K(categoryId, key);
285 }
286
287 public static com.liferay.portlet.asset.model.AssetCategoryProperty fetchByCA_K(
288 long categoryId, java.lang.String key)
289 throws com.liferay.portal.kernel.exception.SystemException {
290 return getPersistence().fetchByCA_K(categoryId, key);
291 }
292
293 public static com.liferay.portlet.asset.model.AssetCategoryProperty fetchByCA_K(
294 long categoryId, java.lang.String key, boolean retrieveFromCache)
295 throws com.liferay.portal.kernel.exception.SystemException {
296 return getPersistence().fetchByCA_K(categoryId, key, retrieveFromCache);
297 }
298
299 public static java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findAll()
300 throws com.liferay.portal.kernel.exception.SystemException {
301 return getPersistence().findAll();
302 }
303
304 public static java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findAll(
305 int start, int end)
306 throws com.liferay.portal.kernel.exception.SystemException {
307 return getPersistence().findAll(start, end);
308 }
309
310 public static java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findAll(
311 int start, int end,
312 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
313 throws com.liferay.portal.kernel.exception.SystemException {
314 return getPersistence().findAll(start, end, orderByComparator);
315 }
316
317 public static void removeByCompanyId(long companyId)
318 throws com.liferay.portal.kernel.exception.SystemException {
319 getPersistence().removeByCompanyId(companyId);
320 }
321
322 public static void removeByCategoryId(long categoryId)
323 throws com.liferay.portal.kernel.exception.SystemException {
324 getPersistence().removeByCategoryId(categoryId);
325 }
326
327 public static void removeByC_K(long companyId, java.lang.String key)
328 throws com.liferay.portal.kernel.exception.SystemException {
329 getPersistence().removeByC_K(companyId, key);
330 }
331
332 public static void removeByCA_K(long categoryId, java.lang.String key)
333 throws com.liferay.portal.kernel.exception.SystemException,
334 com.liferay.portlet.asset.NoSuchCategoryPropertyException {
335 getPersistence().removeByCA_K(categoryId, key);
336 }
337
338 public static void removeAll()
339 throws com.liferay.portal.kernel.exception.SystemException {
340 getPersistence().removeAll();
341 }
342
343 public static int countByCompanyId(long companyId)
344 throws com.liferay.portal.kernel.exception.SystemException {
345 return getPersistence().countByCompanyId(companyId);
346 }
347
348 public static int countByCategoryId(long categoryId)
349 throws com.liferay.portal.kernel.exception.SystemException {
350 return getPersistence().countByCategoryId(categoryId);
351 }
352
353 public static int countByC_K(long companyId, java.lang.String key)
354 throws com.liferay.portal.kernel.exception.SystemException {
355 return getPersistence().countByC_K(companyId, key);
356 }
357
358 public static int countByCA_K(long categoryId, java.lang.String key)
359 throws com.liferay.portal.kernel.exception.SystemException {
360 return getPersistence().countByCA_K(categoryId, key);
361 }
362
363 public static int countAll()
364 throws com.liferay.portal.kernel.exception.SystemException {
365 return getPersistence().countAll();
366 }
367
368 public static AssetCategoryPropertyPersistence getPersistence() {
369 if (_persistence == null) {
370 _persistence = (AssetCategoryPropertyPersistence)PortalBeanLocatorUtil.locate(AssetCategoryPropertyPersistence.class.getName());
371 }
372
373 return _persistence;
374 }
375
376 public void setPersistence(AssetCategoryPropertyPersistence persistence) {
377 _persistence = persistence;
378 }
379
380 private static AssetCategoryPropertyPersistence _persistence;
381 }