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