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