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