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