001
014
015 package com.liferay.portlet.asset.service.persistence;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018 import com.liferay.portal.kernel.dao.orm.DynamicQuery;
019 import com.liferay.portal.kernel.exception.SystemException;
020 import com.liferay.portal.kernel.util.OrderByComparator;
021 import com.liferay.portal.service.ServiceContext;
022
023 import com.liferay.portlet.asset.model.AssetTagProperty;
024
025 import java.util.List;
026
027
033 public class AssetTagPropertyUtil {
034
037 public static void clearCache() {
038 getPersistence().clearCache();
039 }
040
041
044 public static void clearCache(AssetTagProperty assetTagProperty) {
045 getPersistence().clearCache(assetTagProperty);
046 }
047
048
051 public long countWithDynamicQuery(DynamicQuery dynamicQuery)
052 throws SystemException {
053 return getPersistence().countWithDynamicQuery(dynamicQuery);
054 }
055
056
059 public static List<AssetTagProperty> findWithDynamicQuery(
060 DynamicQuery dynamicQuery) throws SystemException {
061 return getPersistence().findWithDynamicQuery(dynamicQuery);
062 }
063
064
067 public static List<AssetTagProperty> findWithDynamicQuery(
068 DynamicQuery dynamicQuery, int start, int end)
069 throws SystemException {
070 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
071 }
072
073
076 public static List<AssetTagProperty> findWithDynamicQuery(
077 DynamicQuery dynamicQuery, int start, int end,
078 OrderByComparator orderByComparator) throws SystemException {
079 return getPersistence()
080 .findWithDynamicQuery(dynamicQuery, start, end,
081 orderByComparator);
082 }
083
084
087 public static AssetTagProperty remove(AssetTagProperty assetTagProperty)
088 throws SystemException {
089 return getPersistence().remove(assetTagProperty);
090 }
091
092
095 public static AssetTagProperty update(AssetTagProperty assetTagProperty,
096 boolean merge) throws SystemException {
097 return getPersistence().update(assetTagProperty, merge);
098 }
099
100
103 public static AssetTagProperty update(AssetTagProperty assetTagProperty,
104 boolean merge, ServiceContext serviceContext) throws SystemException {
105 return getPersistence().update(assetTagProperty, merge, serviceContext);
106 }
107
108 public static void cacheResult(
109 com.liferay.portlet.asset.model.AssetTagProperty assetTagProperty) {
110 getPersistence().cacheResult(assetTagProperty);
111 }
112
113 public static void cacheResult(
114 java.util.List<com.liferay.portlet.asset.model.AssetTagProperty> assetTagProperties) {
115 getPersistence().cacheResult(assetTagProperties);
116 }
117
118 public static com.liferay.portlet.asset.model.AssetTagProperty create(
119 long tagPropertyId) {
120 return getPersistence().create(tagPropertyId);
121 }
122
123 public static com.liferay.portlet.asset.model.AssetTagProperty remove(
124 long tagPropertyId)
125 throws com.liferay.portal.kernel.exception.SystemException,
126 com.liferay.portlet.asset.NoSuchTagPropertyException {
127 return getPersistence().remove(tagPropertyId);
128 }
129
130 public static com.liferay.portlet.asset.model.AssetTagProperty updateImpl(
131 com.liferay.portlet.asset.model.AssetTagProperty assetTagProperty,
132 boolean merge)
133 throws com.liferay.portal.kernel.exception.SystemException {
134 return getPersistence().updateImpl(assetTagProperty, merge);
135 }
136
137 public static com.liferay.portlet.asset.model.AssetTagProperty findByPrimaryKey(
138 long tagPropertyId)
139 throws com.liferay.portal.kernel.exception.SystemException,
140 com.liferay.portlet.asset.NoSuchTagPropertyException {
141 return getPersistence().findByPrimaryKey(tagPropertyId);
142 }
143
144 public static com.liferay.portlet.asset.model.AssetTagProperty fetchByPrimaryKey(
145 long tagPropertyId)
146 throws com.liferay.portal.kernel.exception.SystemException {
147 return getPersistence().fetchByPrimaryKey(tagPropertyId);
148 }
149
150 public static java.util.List<com.liferay.portlet.asset.model.AssetTagProperty> findByCompanyId(
151 long companyId)
152 throws com.liferay.portal.kernel.exception.SystemException {
153 return getPersistence().findByCompanyId(companyId);
154 }
155
156 public static java.util.List<com.liferay.portlet.asset.model.AssetTagProperty> findByCompanyId(
157 long companyId, int start, int end)
158 throws com.liferay.portal.kernel.exception.SystemException {
159 return getPersistence().findByCompanyId(companyId, start, end);
160 }
161
162 public static java.util.List<com.liferay.portlet.asset.model.AssetTagProperty> findByCompanyId(
163 long companyId, int start, int end,
164 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
165 throws com.liferay.portal.kernel.exception.SystemException {
166 return getPersistence()
167 .findByCompanyId(companyId, start, end, orderByComparator);
168 }
169
170 public static com.liferay.portlet.asset.model.AssetTagProperty findByCompanyId_First(
171 long companyId,
172 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
173 throws com.liferay.portal.kernel.exception.SystemException,
174 com.liferay.portlet.asset.NoSuchTagPropertyException {
175 return getPersistence()
176 .findByCompanyId_First(companyId, orderByComparator);
177 }
178
179 public static com.liferay.portlet.asset.model.AssetTagProperty findByCompanyId_Last(
180 long companyId,
181 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
182 throws com.liferay.portal.kernel.exception.SystemException,
183 com.liferay.portlet.asset.NoSuchTagPropertyException {
184 return getPersistence()
185 .findByCompanyId_Last(companyId, orderByComparator);
186 }
187
188 public static com.liferay.portlet.asset.model.AssetTagProperty[] findByCompanyId_PrevAndNext(
189 long tagPropertyId, long companyId,
190 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
191 throws com.liferay.portal.kernel.exception.SystemException,
192 com.liferay.portlet.asset.NoSuchTagPropertyException {
193 return getPersistence()
194 .findByCompanyId_PrevAndNext(tagPropertyId, companyId,
195 orderByComparator);
196 }
197
198 public static java.util.List<com.liferay.portlet.asset.model.AssetTagProperty> findByTagId(
199 long tagId) throws com.liferay.portal.kernel.exception.SystemException {
200 return getPersistence().findByTagId(tagId);
201 }
202
203 public static java.util.List<com.liferay.portlet.asset.model.AssetTagProperty> findByTagId(
204 long tagId, int start, int end)
205 throws com.liferay.portal.kernel.exception.SystemException {
206 return getPersistence().findByTagId(tagId, start, end);
207 }
208
209 public static java.util.List<com.liferay.portlet.asset.model.AssetTagProperty> findByTagId(
210 long tagId, int start, int end,
211 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
212 throws com.liferay.portal.kernel.exception.SystemException {
213 return getPersistence().findByTagId(tagId, start, end, orderByComparator);
214 }
215
216 public static com.liferay.portlet.asset.model.AssetTagProperty findByTagId_First(
217 long tagId,
218 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
219 throws com.liferay.portal.kernel.exception.SystemException,
220 com.liferay.portlet.asset.NoSuchTagPropertyException {
221 return getPersistence().findByTagId_First(tagId, orderByComparator);
222 }
223
224 public static com.liferay.portlet.asset.model.AssetTagProperty findByTagId_Last(
225 long tagId,
226 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
227 throws com.liferay.portal.kernel.exception.SystemException,
228 com.liferay.portlet.asset.NoSuchTagPropertyException {
229 return getPersistence().findByTagId_Last(tagId, orderByComparator);
230 }
231
232 public static com.liferay.portlet.asset.model.AssetTagProperty[] findByTagId_PrevAndNext(
233 long tagPropertyId, long tagId,
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 .findByTagId_PrevAndNext(tagPropertyId, tagId,
239 orderByComparator);
240 }
241
242 public static java.util.List<com.liferay.portlet.asset.model.AssetTagProperty> findByC_K(
243 long companyId, java.lang.String key)
244 throws com.liferay.portal.kernel.exception.SystemException {
245 return getPersistence().findByC_K(companyId, key);
246 }
247
248 public static java.util.List<com.liferay.portlet.asset.model.AssetTagProperty> findByC_K(
249 long companyId, java.lang.String key, int start, int end)
250 throws com.liferay.portal.kernel.exception.SystemException {
251 return getPersistence().findByC_K(companyId, key, start, end);
252 }
253
254 public static java.util.List<com.liferay.portlet.asset.model.AssetTagProperty> findByC_K(
255 long companyId, java.lang.String key, int start, int end,
256 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
257 throws com.liferay.portal.kernel.exception.SystemException {
258 return getPersistence()
259 .findByC_K(companyId, key, start, end, orderByComparator);
260 }
261
262 public static com.liferay.portlet.asset.model.AssetTagProperty findByC_K_First(
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.NoSuchTagPropertyException {
267 return getPersistence()
268 .findByC_K_First(companyId, key, orderByComparator);
269 }
270
271 public static com.liferay.portlet.asset.model.AssetTagProperty findByC_K_Last(
272 long companyId, java.lang.String key,
273 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
274 throws com.liferay.portal.kernel.exception.SystemException,
275 com.liferay.portlet.asset.NoSuchTagPropertyException {
276 return getPersistence().findByC_K_Last(companyId, key, orderByComparator);
277 }
278
279 public static com.liferay.portlet.asset.model.AssetTagProperty[] findByC_K_PrevAndNext(
280 long tagPropertyId, long companyId, java.lang.String key,
281 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
282 throws com.liferay.portal.kernel.exception.SystemException,
283 com.liferay.portlet.asset.NoSuchTagPropertyException {
284 return getPersistence()
285 .findByC_K_PrevAndNext(tagPropertyId, companyId, key,
286 orderByComparator);
287 }
288
289 public static com.liferay.portlet.asset.model.AssetTagProperty findByT_K(
290 long tagId, java.lang.String key)
291 throws com.liferay.portal.kernel.exception.SystemException,
292 com.liferay.portlet.asset.NoSuchTagPropertyException {
293 return getPersistence().findByT_K(tagId, key);
294 }
295
296 public static com.liferay.portlet.asset.model.AssetTagProperty fetchByT_K(
297 long tagId, java.lang.String key)
298 throws com.liferay.portal.kernel.exception.SystemException {
299 return getPersistence().fetchByT_K(tagId, key);
300 }
301
302 public static com.liferay.portlet.asset.model.AssetTagProperty fetchByT_K(
303 long tagId, java.lang.String key, boolean retrieveFromCache)
304 throws com.liferay.portal.kernel.exception.SystemException {
305 return getPersistence().fetchByT_K(tagId, key, retrieveFromCache);
306 }
307
308 public static java.util.List<com.liferay.portlet.asset.model.AssetTagProperty> findAll()
309 throws com.liferay.portal.kernel.exception.SystemException {
310 return getPersistence().findAll();
311 }
312
313 public static java.util.List<com.liferay.portlet.asset.model.AssetTagProperty> findAll(
314 int start, int end)
315 throws com.liferay.portal.kernel.exception.SystemException {
316 return getPersistence().findAll(start, end);
317 }
318
319 public static java.util.List<com.liferay.portlet.asset.model.AssetTagProperty> findAll(
320 int start, int end,
321 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
322 throws com.liferay.portal.kernel.exception.SystemException {
323 return getPersistence().findAll(start, end, orderByComparator);
324 }
325
326 public static void removeByCompanyId(long companyId)
327 throws com.liferay.portal.kernel.exception.SystemException {
328 getPersistence().removeByCompanyId(companyId);
329 }
330
331 public static void removeByTagId(long tagId)
332 throws com.liferay.portal.kernel.exception.SystemException {
333 getPersistence().removeByTagId(tagId);
334 }
335
336 public static void removeByC_K(long companyId, java.lang.String key)
337 throws com.liferay.portal.kernel.exception.SystemException {
338 getPersistence().removeByC_K(companyId, key);
339 }
340
341 public static void removeByT_K(long tagId, java.lang.String key)
342 throws com.liferay.portal.kernel.exception.SystemException,
343 com.liferay.portlet.asset.NoSuchTagPropertyException {
344 getPersistence().removeByT_K(tagId, key);
345 }
346
347 public static void removeAll()
348 throws com.liferay.portal.kernel.exception.SystemException {
349 getPersistence().removeAll();
350 }
351
352 public static int countByCompanyId(long companyId)
353 throws com.liferay.portal.kernel.exception.SystemException {
354 return getPersistence().countByCompanyId(companyId);
355 }
356
357 public static int countByTagId(long tagId)
358 throws com.liferay.portal.kernel.exception.SystemException {
359 return getPersistence().countByTagId(tagId);
360 }
361
362 public static int countByC_K(long companyId, java.lang.String key)
363 throws com.liferay.portal.kernel.exception.SystemException {
364 return getPersistence().countByC_K(companyId, key);
365 }
366
367 public static int countByT_K(long tagId, java.lang.String key)
368 throws com.liferay.portal.kernel.exception.SystemException {
369 return getPersistence().countByT_K(tagId, key);
370 }
371
372 public static int countAll()
373 throws com.liferay.portal.kernel.exception.SystemException {
374 return getPersistence().countAll();
375 }
376
377 public static AssetTagPropertyPersistence getPersistence() {
378 if (_persistence == null) {
379 _persistence = (AssetTagPropertyPersistence)PortalBeanLocatorUtil.locate(AssetTagPropertyPersistence.class.getName());
380 }
381
382 return _persistence;
383 }
384
385 public void setPersistence(AssetTagPropertyPersistence persistence) {
386 _persistence = persistence;
387 }
388
389 private static AssetTagPropertyPersistence _persistence;
390 }