1
14
15 package com.liferay.portlet.messageboards.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.messageboards.model.MBThread;
22
23 import java.util.List;
24
25
38 public class MBThreadUtil {
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 MBThread remove(MBThread mbThread) throws SystemException {
66 return getPersistence().remove(mbThread);
67 }
68
69
72 public static MBThread update(MBThread mbThread, boolean merge)
73 throws SystemException {
74 return getPersistence().update(mbThread, merge);
75 }
76
77 public static void cacheResult(
78 com.liferay.portlet.messageboards.model.MBThread mbThread) {
79 getPersistence().cacheResult(mbThread);
80 }
81
82 public static void cacheResult(
83 java.util.List<com.liferay.portlet.messageboards.model.MBThread> mbThreads) {
84 getPersistence().cacheResult(mbThreads);
85 }
86
87 public static com.liferay.portlet.messageboards.model.MBThread create(
88 long threadId) {
89 return getPersistence().create(threadId);
90 }
91
92 public static com.liferay.portlet.messageboards.model.MBThread remove(
93 long threadId)
94 throws com.liferay.portal.SystemException,
95 com.liferay.portlet.messageboards.NoSuchThreadException {
96 return getPersistence().remove(threadId);
97 }
98
99
102 public static com.liferay.portlet.messageboards.model.MBThread update(
103 com.liferay.portlet.messageboards.model.MBThread mbThread)
104 throws com.liferay.portal.SystemException {
105 return getPersistence().update(mbThread);
106 }
107
108 public static com.liferay.portlet.messageboards.model.MBThread updateImpl(
109 com.liferay.portlet.messageboards.model.MBThread mbThread, boolean merge)
110 throws com.liferay.portal.SystemException {
111 return getPersistence().updateImpl(mbThread, merge);
112 }
113
114 public static com.liferay.portlet.messageboards.model.MBThread findByPrimaryKey(
115 long threadId)
116 throws com.liferay.portal.SystemException,
117 com.liferay.portlet.messageboards.NoSuchThreadException {
118 return getPersistence().findByPrimaryKey(threadId);
119 }
120
121 public static com.liferay.portlet.messageboards.model.MBThread fetchByPrimaryKey(
122 long threadId) throws com.liferay.portal.SystemException {
123 return getPersistence().fetchByPrimaryKey(threadId);
124 }
125
126 public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByGroupId(
127 long groupId) throws com.liferay.portal.SystemException {
128 return getPersistence().findByGroupId(groupId);
129 }
130
131 public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByGroupId(
132 long groupId, int start, int end)
133 throws com.liferay.portal.SystemException {
134 return getPersistence().findByGroupId(groupId, start, end);
135 }
136
137 public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByGroupId(
138 long groupId, int start, int end,
139 com.liferay.portal.kernel.util.OrderByComparator obc)
140 throws com.liferay.portal.SystemException {
141 return getPersistence().findByGroupId(groupId, start, end, obc);
142 }
143
144 public static com.liferay.portlet.messageboards.model.MBThread findByGroupId_First(
145 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
146 throws com.liferay.portal.SystemException,
147 com.liferay.portlet.messageboards.NoSuchThreadException {
148 return getPersistence().findByGroupId_First(groupId, obc);
149 }
150
151 public static com.liferay.portlet.messageboards.model.MBThread findByGroupId_Last(
152 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
153 throws com.liferay.portal.SystemException,
154 com.liferay.portlet.messageboards.NoSuchThreadException {
155 return getPersistence().findByGroupId_Last(groupId, obc);
156 }
157
158 public static com.liferay.portlet.messageboards.model.MBThread[] findByGroupId_PrevAndNext(
159 long threadId, long groupId,
160 com.liferay.portal.kernel.util.OrderByComparator obc)
161 throws com.liferay.portal.SystemException,
162 com.liferay.portlet.messageboards.NoSuchThreadException {
163 return getPersistence().findByGroupId_PrevAndNext(threadId, groupId, obc);
164 }
165
166 public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByCategoryId(
167 long categoryId) throws com.liferay.portal.SystemException {
168 return getPersistence().findByCategoryId(categoryId);
169 }
170
171 public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByCategoryId(
172 long categoryId, int start, int end)
173 throws com.liferay.portal.SystemException {
174 return getPersistence().findByCategoryId(categoryId, start, end);
175 }
176
177 public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByCategoryId(
178 long categoryId, int start, int end,
179 com.liferay.portal.kernel.util.OrderByComparator obc)
180 throws com.liferay.portal.SystemException {
181 return getPersistence().findByCategoryId(categoryId, start, end, obc);
182 }
183
184 public static com.liferay.portlet.messageboards.model.MBThread findByCategoryId_First(
185 long categoryId, com.liferay.portal.kernel.util.OrderByComparator obc)
186 throws com.liferay.portal.SystemException,
187 com.liferay.portlet.messageboards.NoSuchThreadException {
188 return getPersistence().findByCategoryId_First(categoryId, obc);
189 }
190
191 public static com.liferay.portlet.messageboards.model.MBThread findByCategoryId_Last(
192 long categoryId, com.liferay.portal.kernel.util.OrderByComparator obc)
193 throws com.liferay.portal.SystemException,
194 com.liferay.portlet.messageboards.NoSuchThreadException {
195 return getPersistence().findByCategoryId_Last(categoryId, obc);
196 }
197
198 public static com.liferay.portlet.messageboards.model.MBThread[] findByCategoryId_PrevAndNext(
199 long threadId, long categoryId,
200 com.liferay.portal.kernel.util.OrderByComparator obc)
201 throws com.liferay.portal.SystemException,
202 com.liferay.portlet.messageboards.NoSuchThreadException {
203 return getPersistence()
204 .findByCategoryId_PrevAndNext(threadId, categoryId, obc);
205 }
206
207 public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByC_L(
208 long categoryId, java.util.Date lastPostDate)
209 throws com.liferay.portal.SystemException {
210 return getPersistence().findByC_L(categoryId, lastPostDate);
211 }
212
213 public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByC_L(
214 long categoryId, java.util.Date lastPostDate, int start, int end)
215 throws com.liferay.portal.SystemException {
216 return getPersistence().findByC_L(categoryId, lastPostDate, start, end);
217 }
218
219 public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByC_L(
220 long categoryId, java.util.Date lastPostDate, int start, int end,
221 com.liferay.portal.kernel.util.OrderByComparator obc)
222 throws com.liferay.portal.SystemException {
223 return getPersistence()
224 .findByC_L(categoryId, lastPostDate, start, end, obc);
225 }
226
227 public static com.liferay.portlet.messageboards.model.MBThread findByC_L_First(
228 long categoryId, java.util.Date lastPostDate,
229 com.liferay.portal.kernel.util.OrderByComparator obc)
230 throws com.liferay.portal.SystemException,
231 com.liferay.portlet.messageboards.NoSuchThreadException {
232 return getPersistence().findByC_L_First(categoryId, lastPostDate, obc);
233 }
234
235 public static com.liferay.portlet.messageboards.model.MBThread findByC_L_Last(
236 long categoryId, java.util.Date lastPostDate,
237 com.liferay.portal.kernel.util.OrderByComparator obc)
238 throws com.liferay.portal.SystemException,
239 com.liferay.portlet.messageboards.NoSuchThreadException {
240 return getPersistence().findByC_L_Last(categoryId, lastPostDate, obc);
241 }
242
243 public static com.liferay.portlet.messageboards.model.MBThread[] findByC_L_PrevAndNext(
244 long threadId, long categoryId, java.util.Date lastPostDate,
245 com.liferay.portal.kernel.util.OrderByComparator obc)
246 throws com.liferay.portal.SystemException,
247 com.liferay.portlet.messageboards.NoSuchThreadException {
248 return getPersistence()
249 .findByC_L_PrevAndNext(threadId, categoryId, lastPostDate,
250 obc);
251 }
252
253 public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByC_P(
254 long categoryId, double priority)
255 throws com.liferay.portal.SystemException {
256 return getPersistence().findByC_P(categoryId, priority);
257 }
258
259 public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByC_P(
260 long categoryId, double priority, int start, int end)
261 throws com.liferay.portal.SystemException {
262 return getPersistence().findByC_P(categoryId, priority, start, end);
263 }
264
265 public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByC_P(
266 long categoryId, double priority, int start, int end,
267 com.liferay.portal.kernel.util.OrderByComparator obc)
268 throws com.liferay.portal.SystemException {
269 return getPersistence().findByC_P(categoryId, priority, start, end, obc);
270 }
271
272 public static com.liferay.portlet.messageboards.model.MBThread findByC_P_First(
273 long categoryId, double priority,
274 com.liferay.portal.kernel.util.OrderByComparator obc)
275 throws com.liferay.portal.SystemException,
276 com.liferay.portlet.messageboards.NoSuchThreadException {
277 return getPersistence().findByC_P_First(categoryId, priority, obc);
278 }
279
280 public static com.liferay.portlet.messageboards.model.MBThread findByC_P_Last(
281 long categoryId, double priority,
282 com.liferay.portal.kernel.util.OrderByComparator obc)
283 throws com.liferay.portal.SystemException,
284 com.liferay.portlet.messageboards.NoSuchThreadException {
285 return getPersistence().findByC_P_Last(categoryId, priority, obc);
286 }
287
288 public static com.liferay.portlet.messageboards.model.MBThread[] findByC_P_PrevAndNext(
289 long threadId, long categoryId, double priority,
290 com.liferay.portal.kernel.util.OrderByComparator obc)
291 throws com.liferay.portal.SystemException,
292 com.liferay.portlet.messageboards.NoSuchThreadException {
293 return getPersistence()
294 .findByC_P_PrevAndNext(threadId, categoryId, priority, obc);
295 }
296
297 public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> findAll()
298 throws com.liferay.portal.SystemException {
299 return getPersistence().findAll();
300 }
301
302 public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> findAll(
303 int start, int end) throws com.liferay.portal.SystemException {
304 return getPersistence().findAll(start, end);
305 }
306
307 public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> findAll(
308 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
309 throws com.liferay.portal.SystemException {
310 return getPersistence().findAll(start, end, obc);
311 }
312
313 public static void removeByGroupId(long groupId)
314 throws com.liferay.portal.SystemException {
315 getPersistence().removeByGroupId(groupId);
316 }
317
318 public static void removeByCategoryId(long categoryId)
319 throws com.liferay.portal.SystemException {
320 getPersistence().removeByCategoryId(categoryId);
321 }
322
323 public static void removeByC_L(long categoryId, java.util.Date lastPostDate)
324 throws com.liferay.portal.SystemException {
325 getPersistence().removeByC_L(categoryId, lastPostDate);
326 }
327
328 public static void removeByC_P(long categoryId, double priority)
329 throws com.liferay.portal.SystemException {
330 getPersistence().removeByC_P(categoryId, priority);
331 }
332
333 public static void removeAll() throws com.liferay.portal.SystemException {
334 getPersistence().removeAll();
335 }
336
337 public static int countByGroupId(long groupId)
338 throws com.liferay.portal.SystemException {
339 return getPersistence().countByGroupId(groupId);
340 }
341
342 public static int countByCategoryId(long categoryId)
343 throws com.liferay.portal.SystemException {
344 return getPersistence().countByCategoryId(categoryId);
345 }
346
347 public static int countByC_L(long categoryId, java.util.Date lastPostDate)
348 throws com.liferay.portal.SystemException {
349 return getPersistence().countByC_L(categoryId, lastPostDate);
350 }
351
352 public static int countByC_P(long categoryId, double priority)
353 throws com.liferay.portal.SystemException {
354 return getPersistence().countByC_P(categoryId, priority);
355 }
356
357 public static int countAll() throws com.liferay.portal.SystemException {
358 return getPersistence().countAll();
359 }
360
361 public static MBThreadPersistence getPersistence() {
362 if (_persistence == null) {
363 _persistence = (MBThreadPersistence)PortalBeanLocatorUtil.locate(MBThreadPersistence.class.getName());
364 }
365
366 return _persistence;
367 }
368
369 public void setPersistence(MBThreadPersistence persistence) {
370 _persistence = persistence;
371 }
372
373 private static MBThreadPersistence _persistence;
374 }