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