1
22
23 package com.liferay.portlet.messageboards.service.persistence;
24
25
31 public class MBMessageUtil {
32 public static com.liferay.portlet.messageboards.model.MBMessage create(
33 long messageId) {
34 return getPersistence().create(messageId);
35 }
36
37 public static com.liferay.portlet.messageboards.model.MBMessage remove(
38 long messageId)
39 throws com.liferay.portal.SystemException,
40 com.liferay.portlet.messageboards.NoSuchMessageException {
41 return getPersistence().remove(messageId);
42 }
43
44 public static com.liferay.portlet.messageboards.model.MBMessage remove(
45 com.liferay.portlet.messageboards.model.MBMessage mbMessage)
46 throws com.liferay.portal.SystemException {
47 return getPersistence().remove(mbMessage);
48 }
49
50
53 public static com.liferay.portlet.messageboards.model.MBMessage update(
54 com.liferay.portlet.messageboards.model.MBMessage mbMessage)
55 throws com.liferay.portal.SystemException {
56 return getPersistence().update(mbMessage);
57 }
58
59
72 public static com.liferay.portlet.messageboards.model.MBMessage update(
73 com.liferay.portlet.messageboards.model.MBMessage mbMessage,
74 boolean merge) throws com.liferay.portal.SystemException {
75 return getPersistence().update(mbMessage, merge);
76 }
77
78 public static com.liferay.portlet.messageboards.model.MBMessage updateImpl(
79 com.liferay.portlet.messageboards.model.MBMessage mbMessage,
80 boolean merge) throws com.liferay.portal.SystemException {
81 return getPersistence().updateImpl(mbMessage, merge);
82 }
83
84 public static com.liferay.portlet.messageboards.model.MBMessage findByPrimaryKey(
85 long messageId)
86 throws com.liferay.portal.SystemException,
87 com.liferay.portlet.messageboards.NoSuchMessageException {
88 return getPersistence().findByPrimaryKey(messageId);
89 }
90
91 public static com.liferay.portlet.messageboards.model.MBMessage fetchByPrimaryKey(
92 long messageId) throws com.liferay.portal.SystemException {
93 return getPersistence().fetchByPrimaryKey(messageId);
94 }
95
96 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByUuid(
97 java.lang.String uuid) throws com.liferay.portal.SystemException {
98 return getPersistence().findByUuid(uuid);
99 }
100
101 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByUuid(
102 java.lang.String uuid, int begin, int end)
103 throws com.liferay.portal.SystemException {
104 return getPersistence().findByUuid(uuid, begin, end);
105 }
106
107 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByUuid(
108 java.lang.String uuid, int begin, int end,
109 com.liferay.portal.kernel.util.OrderByComparator obc)
110 throws com.liferay.portal.SystemException {
111 return getPersistence().findByUuid(uuid, begin, end, obc);
112 }
113
114 public static com.liferay.portlet.messageboards.model.MBMessage findByUuid_First(
115 java.lang.String uuid,
116 com.liferay.portal.kernel.util.OrderByComparator obc)
117 throws com.liferay.portal.SystemException,
118 com.liferay.portlet.messageboards.NoSuchMessageException {
119 return getPersistence().findByUuid_First(uuid, obc);
120 }
121
122 public static com.liferay.portlet.messageboards.model.MBMessage findByUuid_Last(
123 java.lang.String uuid,
124 com.liferay.portal.kernel.util.OrderByComparator obc)
125 throws com.liferay.portal.SystemException,
126 com.liferay.portlet.messageboards.NoSuchMessageException {
127 return getPersistence().findByUuid_Last(uuid, obc);
128 }
129
130 public static com.liferay.portlet.messageboards.model.MBMessage[] findByUuid_PrevAndNext(
131 long messageId, java.lang.String uuid,
132 com.liferay.portal.kernel.util.OrderByComparator obc)
133 throws com.liferay.portal.SystemException,
134 com.liferay.portlet.messageboards.NoSuchMessageException {
135 return getPersistence().findByUuid_PrevAndNext(messageId, uuid, obc);
136 }
137
138 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByCompanyId(
139 long companyId) throws com.liferay.portal.SystemException {
140 return getPersistence().findByCompanyId(companyId);
141 }
142
143 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByCompanyId(
144 long companyId, int begin, int end)
145 throws com.liferay.portal.SystemException {
146 return getPersistence().findByCompanyId(companyId, begin, end);
147 }
148
149 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByCompanyId(
150 long companyId, int begin, int end,
151 com.liferay.portal.kernel.util.OrderByComparator obc)
152 throws com.liferay.portal.SystemException {
153 return getPersistence().findByCompanyId(companyId, begin, end, obc);
154 }
155
156 public static com.liferay.portlet.messageboards.model.MBMessage findByCompanyId_First(
157 long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
158 throws com.liferay.portal.SystemException,
159 com.liferay.portlet.messageboards.NoSuchMessageException {
160 return getPersistence().findByCompanyId_First(companyId, obc);
161 }
162
163 public static com.liferay.portlet.messageboards.model.MBMessage findByCompanyId_Last(
164 long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
165 throws com.liferay.portal.SystemException,
166 com.liferay.portlet.messageboards.NoSuchMessageException {
167 return getPersistence().findByCompanyId_Last(companyId, obc);
168 }
169
170 public static com.liferay.portlet.messageboards.model.MBMessage[] findByCompanyId_PrevAndNext(
171 long messageId, long companyId,
172 com.liferay.portal.kernel.util.OrderByComparator obc)
173 throws com.liferay.portal.SystemException,
174 com.liferay.portlet.messageboards.NoSuchMessageException {
175 return getPersistence()
176 .findByCompanyId_PrevAndNext(messageId, companyId, obc);
177 }
178
179 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByCategoryId(
180 long categoryId) throws com.liferay.portal.SystemException {
181 return getPersistence().findByCategoryId(categoryId);
182 }
183
184 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByCategoryId(
185 long categoryId, int begin, int end)
186 throws com.liferay.portal.SystemException {
187 return getPersistence().findByCategoryId(categoryId, begin, end);
188 }
189
190 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByCategoryId(
191 long categoryId, int begin, int end,
192 com.liferay.portal.kernel.util.OrderByComparator obc)
193 throws com.liferay.portal.SystemException {
194 return getPersistence().findByCategoryId(categoryId, begin, end, obc);
195 }
196
197 public static com.liferay.portlet.messageboards.model.MBMessage findByCategoryId_First(
198 long categoryId, com.liferay.portal.kernel.util.OrderByComparator obc)
199 throws com.liferay.portal.SystemException,
200 com.liferay.portlet.messageboards.NoSuchMessageException {
201 return getPersistence().findByCategoryId_First(categoryId, obc);
202 }
203
204 public static com.liferay.portlet.messageboards.model.MBMessage findByCategoryId_Last(
205 long categoryId, com.liferay.portal.kernel.util.OrderByComparator obc)
206 throws com.liferay.portal.SystemException,
207 com.liferay.portlet.messageboards.NoSuchMessageException {
208 return getPersistence().findByCategoryId_Last(categoryId, obc);
209 }
210
211 public static com.liferay.portlet.messageboards.model.MBMessage[] findByCategoryId_PrevAndNext(
212 long messageId, long categoryId,
213 com.liferay.portal.kernel.util.OrderByComparator obc)
214 throws com.liferay.portal.SystemException,
215 com.liferay.portlet.messageboards.NoSuchMessageException {
216 return getPersistence()
217 .findByCategoryId_PrevAndNext(messageId, categoryId, obc);
218 }
219
220 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByThreadId(
221 long threadId) throws com.liferay.portal.SystemException {
222 return getPersistence().findByThreadId(threadId);
223 }
224
225 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByThreadId(
226 long threadId, int begin, int end)
227 throws com.liferay.portal.SystemException {
228 return getPersistence().findByThreadId(threadId, begin, end);
229 }
230
231 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByThreadId(
232 long threadId, int begin, int end,
233 com.liferay.portal.kernel.util.OrderByComparator obc)
234 throws com.liferay.portal.SystemException {
235 return getPersistence().findByThreadId(threadId, begin, end, obc);
236 }
237
238 public static com.liferay.portlet.messageboards.model.MBMessage findByThreadId_First(
239 long threadId, com.liferay.portal.kernel.util.OrderByComparator obc)
240 throws com.liferay.portal.SystemException,
241 com.liferay.portlet.messageboards.NoSuchMessageException {
242 return getPersistence().findByThreadId_First(threadId, obc);
243 }
244
245 public static com.liferay.portlet.messageboards.model.MBMessage findByThreadId_Last(
246 long threadId, com.liferay.portal.kernel.util.OrderByComparator obc)
247 throws com.liferay.portal.SystemException,
248 com.liferay.portlet.messageboards.NoSuchMessageException {
249 return getPersistence().findByThreadId_Last(threadId, obc);
250 }
251
252 public static com.liferay.portlet.messageboards.model.MBMessage[] findByThreadId_PrevAndNext(
253 long messageId, long threadId,
254 com.liferay.portal.kernel.util.OrderByComparator obc)
255 throws com.liferay.portal.SystemException,
256 com.liferay.portlet.messageboards.NoSuchMessageException {
257 return getPersistence()
258 .findByThreadId_PrevAndNext(messageId, threadId, obc);
259 }
260
261 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByC_T(
262 long categoryId, long threadId)
263 throws com.liferay.portal.SystemException {
264 return getPersistence().findByC_T(categoryId, threadId);
265 }
266
267 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByC_T(
268 long categoryId, long threadId, int begin, int end)
269 throws com.liferay.portal.SystemException {
270 return getPersistence().findByC_T(categoryId, threadId, begin, end);
271 }
272
273 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByC_T(
274 long categoryId, long threadId, int begin, int end,
275 com.liferay.portal.kernel.util.OrderByComparator obc)
276 throws com.liferay.portal.SystemException {
277 return getPersistence().findByC_T(categoryId, threadId, begin, end, obc);
278 }
279
280 public static com.liferay.portlet.messageboards.model.MBMessage findByC_T_First(
281 long categoryId, long threadId,
282 com.liferay.portal.kernel.util.OrderByComparator obc)
283 throws com.liferay.portal.SystemException,
284 com.liferay.portlet.messageboards.NoSuchMessageException {
285 return getPersistence().findByC_T_First(categoryId, threadId, obc);
286 }
287
288 public static com.liferay.portlet.messageboards.model.MBMessage findByC_T_Last(
289 long categoryId, long threadId,
290 com.liferay.portal.kernel.util.OrderByComparator obc)
291 throws com.liferay.portal.SystemException,
292 com.liferay.portlet.messageboards.NoSuchMessageException {
293 return getPersistence().findByC_T_Last(categoryId, threadId, obc);
294 }
295
296 public static com.liferay.portlet.messageboards.model.MBMessage[] findByC_T_PrevAndNext(
297 long messageId, long categoryId, long threadId,
298 com.liferay.portal.kernel.util.OrderByComparator obc)
299 throws com.liferay.portal.SystemException,
300 com.liferay.portlet.messageboards.NoSuchMessageException {
301 return getPersistence()
302 .findByC_T_PrevAndNext(messageId, categoryId, threadId, obc);
303 }
304
305 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByT_P(
306 long threadId, long parentMessageId)
307 throws com.liferay.portal.SystemException {
308 return getPersistence().findByT_P(threadId, parentMessageId);
309 }
310
311 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByT_P(
312 long threadId, long parentMessageId, int begin, int end)
313 throws com.liferay.portal.SystemException {
314 return getPersistence().findByT_P(threadId, parentMessageId, begin, end);
315 }
316
317 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByT_P(
318 long threadId, long parentMessageId, int begin, int end,
319 com.liferay.portal.kernel.util.OrderByComparator obc)
320 throws com.liferay.portal.SystemException {
321 return getPersistence()
322 .findByT_P(threadId, parentMessageId, begin, end, obc);
323 }
324
325 public static com.liferay.portlet.messageboards.model.MBMessage findByT_P_First(
326 long threadId, long parentMessageId,
327 com.liferay.portal.kernel.util.OrderByComparator obc)
328 throws com.liferay.portal.SystemException,
329 com.liferay.portlet.messageboards.NoSuchMessageException {
330 return getPersistence().findByT_P_First(threadId, parentMessageId, obc);
331 }
332
333 public static com.liferay.portlet.messageboards.model.MBMessage findByT_P_Last(
334 long threadId, long parentMessageId,
335 com.liferay.portal.kernel.util.OrderByComparator obc)
336 throws com.liferay.portal.SystemException,
337 com.liferay.portlet.messageboards.NoSuchMessageException {
338 return getPersistence().findByT_P_Last(threadId, parentMessageId, obc);
339 }
340
341 public static com.liferay.portlet.messageboards.model.MBMessage[] findByT_P_PrevAndNext(
342 long messageId, long threadId, long parentMessageId,
343 com.liferay.portal.kernel.util.OrderByComparator obc)
344 throws com.liferay.portal.SystemException,
345 com.liferay.portlet.messageboards.NoSuchMessageException {
346 return getPersistence()
347 .findByT_P_PrevAndNext(messageId, threadId, parentMessageId,
348 obc);
349 }
350
351 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findWithDynamicQuery(
352 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
353 throws com.liferay.portal.SystemException {
354 return getPersistence().findWithDynamicQuery(queryInitializer);
355 }
356
357 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findWithDynamicQuery(
358 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
359 int begin, int end) throws com.liferay.portal.SystemException {
360 return getPersistence()
361 .findWithDynamicQuery(queryInitializer, begin, end);
362 }
363
364 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findAll()
365 throws com.liferay.portal.SystemException {
366 return getPersistence().findAll();
367 }
368
369 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findAll(
370 int begin, int end) throws com.liferay.portal.SystemException {
371 return getPersistence().findAll(begin, end);
372 }
373
374 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findAll(
375 int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
376 throws com.liferay.portal.SystemException {
377 return getPersistence().findAll(begin, end, obc);
378 }
379
380 public static void removeByUuid(java.lang.String uuid)
381 throws com.liferay.portal.SystemException {
382 getPersistence().removeByUuid(uuid);
383 }
384
385 public static void removeByCompanyId(long companyId)
386 throws com.liferay.portal.SystemException {
387 getPersistence().removeByCompanyId(companyId);
388 }
389
390 public static void removeByCategoryId(long categoryId)
391 throws com.liferay.portal.SystemException {
392 getPersistence().removeByCategoryId(categoryId);
393 }
394
395 public static void removeByThreadId(long threadId)
396 throws com.liferay.portal.SystemException {
397 getPersistence().removeByThreadId(threadId);
398 }
399
400 public static void removeByC_T(long categoryId, long threadId)
401 throws com.liferay.portal.SystemException {
402 getPersistence().removeByC_T(categoryId, threadId);
403 }
404
405 public static void removeByT_P(long threadId, long parentMessageId)
406 throws com.liferay.portal.SystemException {
407 getPersistence().removeByT_P(threadId, parentMessageId);
408 }
409
410 public static void removeAll() throws com.liferay.portal.SystemException {
411 getPersistence().removeAll();
412 }
413
414 public static int countByUuid(java.lang.String uuid)
415 throws com.liferay.portal.SystemException {
416 return getPersistence().countByUuid(uuid);
417 }
418
419 public static int countByCompanyId(long companyId)
420 throws com.liferay.portal.SystemException {
421 return getPersistence().countByCompanyId(companyId);
422 }
423
424 public static int countByCategoryId(long categoryId)
425 throws com.liferay.portal.SystemException {
426 return getPersistence().countByCategoryId(categoryId);
427 }
428
429 public static int countByThreadId(long threadId)
430 throws com.liferay.portal.SystemException {
431 return getPersistence().countByThreadId(threadId);
432 }
433
434 public static int countByC_T(long categoryId, long threadId)
435 throws com.liferay.portal.SystemException {
436 return getPersistence().countByC_T(categoryId, threadId);
437 }
438
439 public static int countByT_P(long threadId, long parentMessageId)
440 throws com.liferay.portal.SystemException {
441 return getPersistence().countByT_P(threadId, parentMessageId);
442 }
443
444 public static int countAll() throws com.liferay.portal.SystemException {
445 return getPersistence().countAll();
446 }
447
448 public static MBMessagePersistence getPersistence() {
449 return _getUtil()._persistence;
450 }
451
452 public void setPersistence(MBMessagePersistence persistence) {
453 _persistence = persistence;
454 }
455
456 private static MBMessageUtil _getUtil() {
457 if (_util == null) {
458 _util = (MBMessageUtil)com.liferay.portal.kernel.bean.BeanLocatorUtil.locate(_UTIL);
459 }
460
461 return _util;
462 }
463
464 private static final String _UTIL = MBMessageUtil.class.getName();
465 private static MBMessageUtil _util;
466 private MBMessagePersistence _persistence;
467 }