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 obc)
136 throws com.liferay.portal.kernel.exception.SystemException {
137 return getPersistence().findByCompanyId(companyId, start, end, obc);
138 }
139
140 public static com.liferay.portlet.asset.model.AssetCategoryProperty findByCompanyId_First(
141 long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
142 throws com.liferay.portal.kernel.exception.SystemException,
143 com.liferay.portlet.asset.NoSuchCategoryPropertyException {
144 return getPersistence().findByCompanyId_First(companyId, obc);
145 }
146
147 public static com.liferay.portlet.asset.model.AssetCategoryProperty findByCompanyId_Last(
148 long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
149 throws com.liferay.portal.kernel.exception.SystemException,
150 com.liferay.portlet.asset.NoSuchCategoryPropertyException {
151 return getPersistence().findByCompanyId_Last(companyId, obc);
152 }
153
154 public static com.liferay.portlet.asset.model.AssetCategoryProperty[] findByCompanyId_PrevAndNext(
155 long categoryPropertyId, long companyId,
156 com.liferay.portal.kernel.util.OrderByComparator obc)
157 throws com.liferay.portal.kernel.exception.SystemException,
158 com.liferay.portlet.asset.NoSuchCategoryPropertyException {
159 return getPersistence()
160 .findByCompanyId_PrevAndNext(categoryPropertyId, companyId,
161 obc);
162 }
163
164 public static java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findByCategoryId(
165 long categoryId)
166 throws com.liferay.portal.kernel.exception.SystemException {
167 return getPersistence().findByCategoryId(categoryId);
168 }
169
170 public static java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findByCategoryId(
171 long categoryId, int start, int end)
172 throws com.liferay.portal.kernel.exception.SystemException {
173 return getPersistence().findByCategoryId(categoryId, start, end);
174 }
175
176 public static java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findByCategoryId(
177 long categoryId, int start, int end,
178 com.liferay.portal.kernel.util.OrderByComparator obc)
179 throws com.liferay.portal.kernel.exception.SystemException {
180 return getPersistence().findByCategoryId(categoryId, start, end, obc);
181 }
182
183 public static com.liferay.portlet.asset.model.AssetCategoryProperty findByCategoryId_First(
184 long categoryId, com.liferay.portal.kernel.util.OrderByComparator obc)
185 throws com.liferay.portal.kernel.exception.SystemException,
186 com.liferay.portlet.asset.NoSuchCategoryPropertyException {
187 return getPersistence().findByCategoryId_First(categoryId, obc);
188 }
189
190 public static com.liferay.portlet.asset.model.AssetCategoryProperty findByCategoryId_Last(
191 long categoryId, com.liferay.portal.kernel.util.OrderByComparator obc)
192 throws com.liferay.portal.kernel.exception.SystemException,
193 com.liferay.portlet.asset.NoSuchCategoryPropertyException {
194 return getPersistence().findByCategoryId_Last(categoryId, obc);
195 }
196
197 public static com.liferay.portlet.asset.model.AssetCategoryProperty[] findByCategoryId_PrevAndNext(
198 long categoryPropertyId, long categoryId,
199 com.liferay.portal.kernel.util.OrderByComparator obc)
200 throws com.liferay.portal.kernel.exception.SystemException,
201 com.liferay.portlet.asset.NoSuchCategoryPropertyException {
202 return getPersistence()
203 .findByCategoryId_PrevAndNext(categoryPropertyId,
204 categoryId, obc);
205 }
206
207 public static java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findByC_K(
208 long companyId, java.lang.String key)
209 throws com.liferay.portal.kernel.exception.SystemException {
210 return getPersistence().findByC_K(companyId, key);
211 }
212
213 public static java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findByC_K(
214 long companyId, java.lang.String key, int start, int end)
215 throws com.liferay.portal.kernel.exception.SystemException {
216 return getPersistence().findByC_K(companyId, key, start, end);
217 }
218
219 public static java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findByC_K(
220 long companyId, java.lang.String key, int start, int end,
221 com.liferay.portal.kernel.util.OrderByComparator obc)
222 throws com.liferay.portal.kernel.exception.SystemException {
223 return getPersistence().findByC_K(companyId, key, start, end, obc);
224 }
225
226 public static com.liferay.portlet.asset.model.AssetCategoryProperty findByC_K_First(
227 long companyId, java.lang.String key,
228 com.liferay.portal.kernel.util.OrderByComparator obc)
229 throws com.liferay.portal.kernel.exception.SystemException,
230 com.liferay.portlet.asset.NoSuchCategoryPropertyException {
231 return getPersistence().findByC_K_First(companyId, key, obc);
232 }
233
234 public static com.liferay.portlet.asset.model.AssetCategoryProperty findByC_K_Last(
235 long companyId, java.lang.String key,
236 com.liferay.portal.kernel.util.OrderByComparator obc)
237 throws com.liferay.portal.kernel.exception.SystemException,
238 com.liferay.portlet.asset.NoSuchCategoryPropertyException {
239 return getPersistence().findByC_K_Last(companyId, key, obc);
240 }
241
242 public static com.liferay.portlet.asset.model.AssetCategoryProperty[] findByC_K_PrevAndNext(
243 long categoryPropertyId, long companyId, java.lang.String key,
244 com.liferay.portal.kernel.util.OrderByComparator obc)
245 throws com.liferay.portal.kernel.exception.SystemException,
246 com.liferay.portlet.asset.NoSuchCategoryPropertyException {
247 return getPersistence()
248 .findByC_K_PrevAndNext(categoryPropertyId, companyId, key,
249 obc);
250 }
251
252 public static com.liferay.portlet.asset.model.AssetCategoryProperty findByCA_K(
253 long categoryId, java.lang.String key)
254 throws com.liferay.portal.kernel.exception.SystemException,
255 com.liferay.portlet.asset.NoSuchCategoryPropertyException {
256 return getPersistence().findByCA_K(categoryId, key);
257 }
258
259 public static com.liferay.portlet.asset.model.AssetCategoryProperty fetchByCA_K(
260 long categoryId, java.lang.String key)
261 throws com.liferay.portal.kernel.exception.SystemException {
262 return getPersistence().fetchByCA_K(categoryId, key);
263 }
264
265 public static com.liferay.portlet.asset.model.AssetCategoryProperty fetchByCA_K(
266 long categoryId, java.lang.String key, boolean retrieveFromCache)
267 throws com.liferay.portal.kernel.exception.SystemException {
268 return getPersistence().fetchByCA_K(categoryId, key, retrieveFromCache);
269 }
270
271 public static java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findAll()
272 throws com.liferay.portal.kernel.exception.SystemException {
273 return getPersistence().findAll();
274 }
275
276 public static java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findAll(
277 int start, int end)
278 throws com.liferay.portal.kernel.exception.SystemException {
279 return getPersistence().findAll(start, end);
280 }
281
282 public static java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> findAll(
283 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
284 throws com.liferay.portal.kernel.exception.SystemException {
285 return getPersistence().findAll(start, end, obc);
286 }
287
288 public static void removeByCompanyId(long companyId)
289 throws com.liferay.portal.kernel.exception.SystemException {
290 getPersistence().removeByCompanyId(companyId);
291 }
292
293 public static void removeByCategoryId(long categoryId)
294 throws com.liferay.portal.kernel.exception.SystemException {
295 getPersistence().removeByCategoryId(categoryId);
296 }
297
298 public static void removeByC_K(long companyId, java.lang.String key)
299 throws com.liferay.portal.kernel.exception.SystemException {
300 getPersistence().removeByC_K(companyId, key);
301 }
302
303 public static void removeByCA_K(long categoryId, java.lang.String key)
304 throws com.liferay.portal.kernel.exception.SystemException,
305 com.liferay.portlet.asset.NoSuchCategoryPropertyException {
306 getPersistence().removeByCA_K(categoryId, key);
307 }
308
309 public static void removeAll()
310 throws com.liferay.portal.kernel.exception.SystemException {
311 getPersistence().removeAll();
312 }
313
314 public static int countByCompanyId(long companyId)
315 throws com.liferay.portal.kernel.exception.SystemException {
316 return getPersistence().countByCompanyId(companyId);
317 }
318
319 public static int countByCategoryId(long categoryId)
320 throws com.liferay.portal.kernel.exception.SystemException {
321 return getPersistence().countByCategoryId(categoryId);
322 }
323
324 public static int countByC_K(long companyId, java.lang.String key)
325 throws com.liferay.portal.kernel.exception.SystemException {
326 return getPersistence().countByC_K(companyId, key);
327 }
328
329 public static int countByCA_K(long categoryId, java.lang.String key)
330 throws com.liferay.portal.kernel.exception.SystemException {
331 return getPersistence().countByCA_K(categoryId, key);
332 }
333
334 public static int countAll()
335 throws com.liferay.portal.kernel.exception.SystemException {
336 return getPersistence().countAll();
337 }
338
339 public static AssetCategoryPropertyPersistence getPersistence() {
340 if (_persistence == null) {
341 _persistence = (AssetCategoryPropertyPersistence)PortalBeanLocatorUtil.locate(AssetCategoryPropertyPersistence.class.getName());
342 }
343
344 return _persistence;
345 }
346
347 public void setPersistence(AssetCategoryPropertyPersistence persistence) {
348 _persistence = persistence;
349 }
350
351 private static AssetCategoryPropertyPersistence _persistence;
352 }