1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   * 
13   */
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  /**
22   * <a href="MBMessagePersistence.java.html"><b><i>View Source</i></b></a>
23   *
24   * <p>
25   * ServiceBuilder generated this class. Modifications in this class will be
26   * overwritten the next time is generated.
27   * </p>
28   *
29   * @author    Brian Wing Shun Chan
30   * @see       MBMessagePersistenceImpl
31   * @see       MBMessageUtil
32   * @generated
33   */
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      /**
50       * @deprecated Use {@link BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)}.
51       */
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 obc)
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 obc)
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 obc)
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 obc)
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 obc)
121         throws com.liferay.portal.SystemException;
122 
123     public com.liferay.portlet.messageboards.model.MBMessage findByCompanyId_First(
124         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
125         throws com.liferay.portal.SystemException,
126             com.liferay.portlet.messageboards.NoSuchMessageException;
127 
128     public com.liferay.portlet.messageboards.model.MBMessage findByCompanyId_Last(
129         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
130         throws com.liferay.portal.SystemException,
131             com.liferay.portlet.messageboards.NoSuchMessageException;
132 
133     public com.liferay.portlet.messageboards.model.MBMessage[] findByCompanyId_PrevAndNext(
134         long messageId, long companyId,
135         com.liferay.portal.kernel.util.OrderByComparator obc)
136         throws com.liferay.portal.SystemException,
137             com.liferay.portlet.messageboards.NoSuchMessageException;
138 
139     public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByGroupId(
140         long groupId) throws com.liferay.portal.SystemException;
141 
142     public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByGroupId(
143         long groupId, int start, int end)
144         throws com.liferay.portal.SystemException;
145 
146     public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByGroupId(
147         long groupId, int start, int end,
148         com.liferay.portal.kernel.util.OrderByComparator obc)
149         throws com.liferay.portal.SystemException;
150 
151     public com.liferay.portlet.messageboards.model.MBMessage findByGroupId_First(
152         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
153         throws com.liferay.portal.SystemException,
154             com.liferay.portlet.messageboards.NoSuchMessageException;
155 
156     public com.liferay.portlet.messageboards.model.MBMessage findByGroupId_Last(
157         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
158         throws com.liferay.portal.SystemException,
159             com.liferay.portlet.messageboards.NoSuchMessageException;
160 
161     public com.liferay.portlet.messageboards.model.MBMessage[] findByGroupId_PrevAndNext(
162         long messageId, long groupId,
163         com.liferay.portal.kernel.util.OrderByComparator obc)
164         throws com.liferay.portal.SystemException,
165             com.liferay.portlet.messageboards.NoSuchMessageException;
166 
167     public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByCategoryId(
168         long categoryId) throws com.liferay.portal.SystemException;
169 
170     public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByCategoryId(
171         long categoryId, int start, int end)
172         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         com.liferay.portal.kernel.util.OrderByComparator obc)
177         throws com.liferay.portal.SystemException;
178 
179     public com.liferay.portlet.messageboards.model.MBMessage findByCategoryId_First(
180         long categoryId, com.liferay.portal.kernel.util.OrderByComparator obc)
181         throws com.liferay.portal.SystemException,
182             com.liferay.portlet.messageboards.NoSuchMessageException;
183 
184     public com.liferay.portlet.messageboards.model.MBMessage findByCategoryId_Last(
185         long categoryId, com.liferay.portal.kernel.util.OrderByComparator obc)
186         throws com.liferay.portal.SystemException,
187             com.liferay.portlet.messageboards.NoSuchMessageException;
188 
189     public com.liferay.portlet.messageboards.model.MBMessage[] findByCategoryId_PrevAndNext(
190         long messageId, long categoryId,
191         com.liferay.portal.kernel.util.OrderByComparator obc)
192         throws com.liferay.portal.SystemException,
193             com.liferay.portlet.messageboards.NoSuchMessageException;
194 
195     public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByThreadId(
196         long threadId) throws com.liferay.portal.SystemException;
197 
198     public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByThreadId(
199         long threadId, int start, int end)
200         throws com.liferay.portal.SystemException;
201 
202     public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByThreadId(
203         long threadId, int start, int end,
204         com.liferay.portal.kernel.util.OrderByComparator obc)
205         throws com.liferay.portal.SystemException;
206 
207     public com.liferay.portlet.messageboards.model.MBMessage findByThreadId_First(
208         long threadId, com.liferay.portal.kernel.util.OrderByComparator obc)
209         throws com.liferay.portal.SystemException,
210             com.liferay.portlet.messageboards.NoSuchMessageException;
211 
212     public com.liferay.portlet.messageboards.model.MBMessage findByThreadId_Last(
213         long threadId, com.liferay.portal.kernel.util.OrderByComparator obc)
214         throws com.liferay.portal.SystemException,
215             com.liferay.portlet.messageboards.NoSuchMessageException;
216 
217     public com.liferay.portlet.messageboards.model.MBMessage[] findByThreadId_PrevAndNext(
218         long messageId, long threadId,
219         com.liferay.portal.kernel.util.OrderByComparator obc)
220         throws com.liferay.portal.SystemException,
221             com.liferay.portlet.messageboards.NoSuchMessageException;
222 
223     public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByThreadReplies(
224         long threadId) throws com.liferay.portal.SystemException;
225 
226     public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByThreadReplies(
227         long threadId, int start, int end)
228         throws com.liferay.portal.SystemException;
229 
230     public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByThreadReplies(
231         long threadId, int start, int end,
232         com.liferay.portal.kernel.util.OrderByComparator obc)
233         throws com.liferay.portal.SystemException;
234 
235     public com.liferay.portlet.messageboards.model.MBMessage findByThreadReplies_First(
236         long threadId, com.liferay.portal.kernel.util.OrderByComparator obc)
237         throws com.liferay.portal.SystemException,
238             com.liferay.portlet.messageboards.NoSuchMessageException;
239 
240     public com.liferay.portlet.messageboards.model.MBMessage findByThreadReplies_Last(
241         long threadId, com.liferay.portal.kernel.util.OrderByComparator obc)
242         throws com.liferay.portal.SystemException,
243             com.liferay.portlet.messageboards.NoSuchMessageException;
244 
245     public com.liferay.portlet.messageboards.model.MBMessage[] findByThreadReplies_PrevAndNext(
246         long messageId, long threadId,
247         com.liferay.portal.kernel.util.OrderByComparator obc)
248         throws com.liferay.portal.SystemException,
249             com.liferay.portlet.messageboards.NoSuchMessageException;
250 
251     public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByG_U(
252         long groupId, long userId) throws com.liferay.portal.SystemException;
253 
254     public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByG_U(
255         long groupId, long userId, int start, int end)
256         throws com.liferay.portal.SystemException;
257 
258     public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByG_U(
259         long groupId, long userId, int start, int end,
260         com.liferay.portal.kernel.util.OrderByComparator obc)
261         throws com.liferay.portal.SystemException;
262 
263     public com.liferay.portlet.messageboards.model.MBMessage findByG_U_First(
264         long groupId, long userId,
265         com.liferay.portal.kernel.util.OrderByComparator obc)
266         throws com.liferay.portal.SystemException,
267             com.liferay.portlet.messageboards.NoSuchMessageException;
268 
269     public com.liferay.portlet.messageboards.model.MBMessage findByG_U_Last(
270         long groupId, long userId,
271         com.liferay.portal.kernel.util.OrderByComparator obc)
272         throws com.liferay.portal.SystemException,
273             com.liferay.portlet.messageboards.NoSuchMessageException;
274 
275     public com.liferay.portlet.messageboards.model.MBMessage[] findByG_U_PrevAndNext(
276         long messageId, long groupId, long userId,
277         com.liferay.portal.kernel.util.OrderByComparator obc)
278         throws com.liferay.portal.SystemException,
279             com.liferay.portlet.messageboards.NoSuchMessageException;
280 
281     public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByC_C(
282         long classNameId, long classPK)
283         throws com.liferay.portal.SystemException;
284 
285     public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByC_C(
286         long classNameId, long classPK, int start, int end)
287         throws com.liferay.portal.SystemException;
288 
289     public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByC_C(
290         long classNameId, long classPK, int start, int end,
291         com.liferay.portal.kernel.util.OrderByComparator obc)
292         throws com.liferay.portal.SystemException;
293 
294     public com.liferay.portlet.messageboards.model.MBMessage findByC_C_First(
295         long classNameId, long classPK,
296         com.liferay.portal.kernel.util.OrderByComparator obc)
297         throws com.liferay.portal.SystemException,
298             com.liferay.portlet.messageboards.NoSuchMessageException;
299 
300     public com.liferay.portlet.messageboards.model.MBMessage findByC_C_Last(
301         long classNameId, long classPK,
302         com.liferay.portal.kernel.util.OrderByComparator obc)
303         throws com.liferay.portal.SystemException,
304             com.liferay.portlet.messageboards.NoSuchMessageException;
305 
306     public com.liferay.portlet.messageboards.model.MBMessage[] findByC_C_PrevAndNext(
307         long messageId, long classNameId, long classPK,
308         com.liferay.portal.kernel.util.OrderByComparator obc)
309         throws com.liferay.portal.SystemException,
310             com.liferay.portlet.messageboards.NoSuchMessageException;
311 
312     public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByC_T(
313         long categoryId, long threadId)
314         throws com.liferay.portal.SystemException;
315 
316     public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByC_T(
317         long categoryId, long threadId, int start, int end)
318         throws com.liferay.portal.SystemException;
319 
320     public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByC_T(
321         long categoryId, long threadId, int start, int end,
322         com.liferay.portal.kernel.util.OrderByComparator obc)
323         throws com.liferay.portal.SystemException;
324 
325     public com.liferay.portlet.messageboards.model.MBMessage findByC_T_First(
326         long categoryId, long threadId,
327         com.liferay.portal.kernel.util.OrderByComparator obc)
328         throws com.liferay.portal.SystemException,
329             com.liferay.portlet.messageboards.NoSuchMessageException;
330 
331     public com.liferay.portlet.messageboards.model.MBMessage findByC_T_Last(
332         long categoryId, long threadId,
333         com.liferay.portal.kernel.util.OrderByComparator obc)
334         throws com.liferay.portal.SystemException,
335             com.liferay.portlet.messageboards.NoSuchMessageException;
336 
337     public com.liferay.portlet.messageboards.model.MBMessage[] findByC_T_PrevAndNext(
338         long messageId, long categoryId, long threadId,
339         com.liferay.portal.kernel.util.OrderByComparator obc)
340         throws com.liferay.portal.SystemException,
341             com.liferay.portlet.messageboards.NoSuchMessageException;
342 
343     public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByT_P(
344         long threadId, long parentMessageId)
345         throws com.liferay.portal.SystemException;
346 
347     public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByT_P(
348         long threadId, long parentMessageId, int start, int end)
349         throws com.liferay.portal.SystemException;
350 
351     public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByT_P(
352         long threadId, long parentMessageId, int start, int end,
353         com.liferay.portal.kernel.util.OrderByComparator obc)
354         throws com.liferay.portal.SystemException;
355 
356     public com.liferay.portlet.messageboards.model.MBMessage findByT_P_First(
357         long threadId, long parentMessageId,
358         com.liferay.portal.kernel.util.OrderByComparator obc)
359         throws com.liferay.portal.SystemException,
360             com.liferay.portlet.messageboards.NoSuchMessageException;
361 
362     public com.liferay.portlet.messageboards.model.MBMessage findByT_P_Last(
363         long threadId, long parentMessageId,
364         com.liferay.portal.kernel.util.OrderByComparator obc)
365         throws com.liferay.portal.SystemException,
366             com.liferay.portlet.messageboards.NoSuchMessageException;
367 
368     public com.liferay.portlet.messageboards.model.MBMessage[] findByT_P_PrevAndNext(
369         long messageId, long threadId, long parentMessageId,
370         com.liferay.portal.kernel.util.OrderByComparator obc)
371         throws com.liferay.portal.SystemException,
372             com.liferay.portlet.messageboards.NoSuchMessageException;
373 
374     public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findAll()
375         throws com.liferay.portal.SystemException;
376 
377     public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findAll(
378         int start, int end) throws com.liferay.portal.SystemException;
379 
380     public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findAll(
381         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
382         throws com.liferay.portal.SystemException;
383 
384     public void removeByUuid(java.lang.String uuid)
385         throws com.liferay.portal.SystemException;
386 
387     public void removeByUUID_G(java.lang.String uuid, long groupId)
388         throws com.liferay.portal.SystemException,
389             com.liferay.portlet.messageboards.NoSuchMessageException;
390 
391     public void removeByCompanyId(long companyId)
392         throws com.liferay.portal.SystemException;
393 
394     public void removeByGroupId(long groupId)
395         throws com.liferay.portal.SystemException;
396 
397     public void removeByCategoryId(long categoryId)
398         throws com.liferay.portal.SystemException;
399 
400     public void removeByThreadId(long threadId)
401         throws com.liferay.portal.SystemException;
402 
403     public void removeByThreadReplies(long threadId)
404         throws com.liferay.portal.SystemException;
405 
406     public void removeByG_U(long groupId, long userId)
407         throws com.liferay.portal.SystemException;
408 
409     public void removeByC_C(long classNameId, long classPK)
410         throws com.liferay.portal.SystemException;
411 
412     public void removeByC_T(long categoryId, long threadId)
413         throws com.liferay.portal.SystemException;
414 
415     public void removeByT_P(long threadId, long parentMessageId)
416         throws com.liferay.portal.SystemException;
417 
418     public void removeAll() throws com.liferay.portal.SystemException;
419 
420     public int countByUuid(java.lang.String uuid)
421         throws com.liferay.portal.SystemException;
422 
423     public int countByUUID_G(java.lang.String uuid, long groupId)
424         throws com.liferay.portal.SystemException;
425 
426     public int countByCompanyId(long companyId)
427         throws com.liferay.portal.SystemException;
428 
429     public int countByGroupId(long groupId)
430         throws com.liferay.portal.SystemException;
431 
432     public int countByCategoryId(long categoryId)
433         throws com.liferay.portal.SystemException;
434 
435     public int countByThreadId(long threadId)
436         throws com.liferay.portal.SystemException;
437 
438     public int countByThreadReplies(long threadId)
439         throws com.liferay.portal.SystemException;
440 
441     public int countByG_U(long groupId, long userId)
442         throws com.liferay.portal.SystemException;
443 
444     public int countByC_C(long classNameId, long classPK)
445         throws com.liferay.portal.SystemException;
446 
447     public int countByC_T(long categoryId, long threadId)
448         throws com.liferay.portal.SystemException;
449 
450     public int countByT_P(long threadId, long parentMessageId)
451         throws com.liferay.portal.SystemException;
452 
453     public int countAll() throws com.liferay.portal.SystemException;
454 }