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