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