1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    *
5    *
6    *
7    * The contents of this file are subject to the terms of the Liferay Enterprise
8    * Subscription License ("License"). You may not use this file except in
9    * compliance with the License. You can obtain a copy of the License by
10   * contacting Liferay, Inc. See the License for the specific language governing
11   * permissions and limitations under the License, including but not limited to
12   * distribution rights of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portlet.messageboards.service.persistence;
24  
25  import com.liferay.portal.service.persistence.BasePersistence;
26  
27  /**
28   * <a href="MBMessagePersistence.java.html"><b><i>View Source</i></b></a>
29   *
30   * <p>
31   * ServiceBuilder generated this class. Modifications in this class will be
32   * overwritten the next time is generated.
33   * </p>
34   *
35   * @author    Brian Wing Shun Chan
36   * @see       MBMessagePersistenceImpl
37   * @see       MBMessageUtil
38   * @generated
39   */
40  public interface MBMessagePersistence extends BasePersistence {
41      public void cacheResult(
42          com.liferay.portlet.messageboards.model.MBMessage mbMessage);
43  
44      public void cacheResult(
45          java.util.List<com.liferay.portlet.messageboards.model.MBMessage> mbMessages);
46  
47      public void clearCache();
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      public com.liferay.portlet.messageboards.model.MBMessage remove(
58          com.liferay.portlet.messageboards.model.MBMessage mbMessage)
59          throws com.liferay.portal.SystemException;
60  
61      /**
62       * @deprecated Use {@link #update(MBMessage, boolean merge)}.
63       */
64      public com.liferay.portlet.messageboards.model.MBMessage update(
65          com.liferay.portlet.messageboards.model.MBMessage mbMessage)
66          throws com.liferay.portal.SystemException;
67  
68      /**
69       * Add, update, or merge, the entity. This method also calls the model
70       * listeners to trigger the proper events associated with adding, deleting,
71       * or updating an entity.
72       *
73       * @param  mbMessage the entity to add, update, or merge
74       * @param  merge boolean value for whether to merge the entity. The default
75       *         value is false. Setting merge to true is more expensive and
76       *         should only be true when mbMessage is transient. See
77       *         LEP-5473 for a detailed discussion of this method.
78       * @return the entity that was added, updated, or merged
79       */
80      public com.liferay.portlet.messageboards.model.MBMessage update(
81          com.liferay.portlet.messageboards.model.MBMessage mbMessage,
82          boolean merge) throws com.liferay.portal.SystemException;
83  
84      public com.liferay.portlet.messageboards.model.MBMessage updateImpl(
85          com.liferay.portlet.messageboards.model.MBMessage mbMessage,
86          boolean merge) throws com.liferay.portal.SystemException;
87  
88      public com.liferay.portlet.messageboards.model.MBMessage findByPrimaryKey(
89          long messageId)
90          throws com.liferay.portal.SystemException,
91              com.liferay.portlet.messageboards.NoSuchMessageException;
92  
93      public com.liferay.portlet.messageboards.model.MBMessage fetchByPrimaryKey(
94          long messageId) throws com.liferay.portal.SystemException;
95  
96      public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByUuid(
97          java.lang.String uuid) throws com.liferay.portal.SystemException;
98  
99      public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByUuid(
100         java.lang.String uuid, int start, int end)
101         throws com.liferay.portal.SystemException;
102 
103     public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByUuid(
104         java.lang.String uuid, int start, int end,
105         com.liferay.portal.kernel.util.OrderByComparator obc)
106         throws com.liferay.portal.SystemException;
107 
108     public com.liferay.portlet.messageboards.model.MBMessage findByUuid_First(
109         java.lang.String uuid,
110         com.liferay.portal.kernel.util.OrderByComparator obc)
111         throws com.liferay.portal.SystemException,
112             com.liferay.portlet.messageboards.NoSuchMessageException;
113 
114     public com.liferay.portlet.messageboards.model.MBMessage findByUuid_Last(
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 
120     public com.liferay.portlet.messageboards.model.MBMessage[] findByUuid_PrevAndNext(
121         long messageId, java.lang.String uuid,
122         com.liferay.portal.kernel.util.OrderByComparator obc)
123         throws com.liferay.portal.SystemException,
124             com.liferay.portlet.messageboards.NoSuchMessageException;
125 
126     public com.liferay.portlet.messageboards.model.MBMessage findByUUID_G(
127         java.lang.String uuid, long groupId)
128         throws com.liferay.portal.SystemException,
129             com.liferay.portlet.messageboards.NoSuchMessageException;
130 
131     public com.liferay.portlet.messageboards.model.MBMessage fetchByUUID_G(
132         java.lang.String uuid, long groupId)
133         throws com.liferay.portal.SystemException;
134 
135     public com.liferay.portlet.messageboards.model.MBMessage fetchByUUID_G(
136         java.lang.String uuid, long groupId, boolean retrieveFromCache)
137         throws com.liferay.portal.SystemException;
138 
139     public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByCompanyId(
140         long companyId) throws com.liferay.portal.SystemException;
141 
142     public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByCompanyId(
143         long companyId, int start, int end)
144         throws com.liferay.portal.SystemException;
145 
146     public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByCompanyId(
147         long companyId, 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 findByCompanyId_First(
152         long companyId, 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 findByCompanyId_Last(
157         long companyId, 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[] findByCompanyId_PrevAndNext(
162         long messageId, long companyId,
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> findByGroupId(
168         long groupId) throws com.liferay.portal.SystemException;
169 
170     public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByGroupId(
171         long groupId, int start, int end)
172         throws com.liferay.portal.SystemException;
173 
174     public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByGroupId(
175         long groupId, 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 findByGroupId_First(
180         long groupId, 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 findByGroupId_Last(
185         long groupId, 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[] findByGroupId_PrevAndNext(
190         long messageId, long groupId,
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> findByCategoryId(
196         long categoryId) throws com.liferay.portal.SystemException;
197 
198     public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByCategoryId(
199         long categoryId, int start, int end)
200         throws com.liferay.portal.SystemException;
201 
202     public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByCategoryId(
203         long categoryId, 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 findByCategoryId_First(
208         long categoryId, 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 findByCategoryId_Last(
213         long categoryId, 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[] findByCategoryId_PrevAndNext(
218         long messageId, long categoryId,
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> findByThreadId(
224         long threadId) throws com.liferay.portal.SystemException;
225 
226     public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByThreadId(
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> findByThreadId(
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 findByThreadId_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 findByThreadId_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[] findByThreadId_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> findByThreadReplies(
252         long threadId) throws com.liferay.portal.SystemException;
253 
254     public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByThreadReplies(
255         long threadId, int start, int end)
256         throws com.liferay.portal.SystemException;
257 
258     public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByThreadReplies(
259         long threadId, 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 findByThreadReplies_First(
264         long threadId, com.liferay.portal.kernel.util.OrderByComparator obc)
265         throws com.liferay.portal.SystemException,
266             com.liferay.portlet.messageboards.NoSuchMessageException;
267 
268     public com.liferay.portlet.messageboards.model.MBMessage findByThreadReplies_Last(
269         long threadId, com.liferay.portal.kernel.util.OrderByComparator obc)
270         throws com.liferay.portal.SystemException,
271             com.liferay.portlet.messageboards.NoSuchMessageException;
272 
273     public com.liferay.portlet.messageboards.model.MBMessage[] findByThreadReplies_PrevAndNext(
274         long messageId, long threadId,
275         com.liferay.portal.kernel.util.OrderByComparator obc)
276         throws com.liferay.portal.SystemException,
277             com.liferay.portlet.messageboards.NoSuchMessageException;
278 
279     public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByG_U(
280         long groupId, long userId) throws com.liferay.portal.SystemException;
281 
282     public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByG_U(
283         long groupId, long userId, int start, int end)
284         throws com.liferay.portal.SystemException;
285 
286     public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByG_U(
287         long groupId, long userId, int start, int end,
288         com.liferay.portal.kernel.util.OrderByComparator obc)
289         throws com.liferay.portal.SystemException;
290 
291     public com.liferay.portlet.messageboards.model.MBMessage findByG_U_First(
292         long groupId, long userId,
293         com.liferay.portal.kernel.util.OrderByComparator obc)
294         throws com.liferay.portal.SystemException,
295             com.liferay.portlet.messageboards.NoSuchMessageException;
296 
297     public com.liferay.portlet.messageboards.model.MBMessage findByG_U_Last(
298         long groupId, long userId,
299         com.liferay.portal.kernel.util.OrderByComparator obc)
300         throws com.liferay.portal.SystemException,
301             com.liferay.portlet.messageboards.NoSuchMessageException;
302 
303     public com.liferay.portlet.messageboards.model.MBMessage[] findByG_U_PrevAndNext(
304         long messageId, long groupId, long userId,
305         com.liferay.portal.kernel.util.OrderByComparator obc)
306         throws com.liferay.portal.SystemException,
307             com.liferay.portlet.messageboards.NoSuchMessageException;
308 
309     public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByC_C(
310         long classNameId, long classPK)
311         throws com.liferay.portal.SystemException;
312 
313     public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByC_C(
314         long classNameId, long classPK, int start, int end)
315         throws com.liferay.portal.SystemException;
316 
317     public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByC_C(
318         long classNameId, long classPK, int start, int end,
319         com.liferay.portal.kernel.util.OrderByComparator obc)
320         throws com.liferay.portal.SystemException;
321 
322     public com.liferay.portlet.messageboards.model.MBMessage findByC_C_First(
323         long classNameId, long classPK,
324         com.liferay.portal.kernel.util.OrderByComparator obc)
325         throws com.liferay.portal.SystemException,
326             com.liferay.portlet.messageboards.NoSuchMessageException;
327 
328     public com.liferay.portlet.messageboards.model.MBMessage findByC_C_Last(
329         long classNameId, long classPK,
330         com.liferay.portal.kernel.util.OrderByComparator obc)
331         throws com.liferay.portal.SystemException,
332             com.liferay.portlet.messageboards.NoSuchMessageException;
333 
334     public com.liferay.portlet.messageboards.model.MBMessage[] findByC_C_PrevAndNext(
335         long messageId, long classNameId, long classPK,
336         com.liferay.portal.kernel.util.OrderByComparator obc)
337         throws com.liferay.portal.SystemException,
338             com.liferay.portlet.messageboards.NoSuchMessageException;
339 
340     public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByC_T(
341         long categoryId, long threadId)
342         throws com.liferay.portal.SystemException;
343 
344     public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByC_T(
345         long categoryId, long threadId, int start, int end)
346         throws com.liferay.portal.SystemException;
347 
348     public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByC_T(
349         long categoryId, long threadId, int start, int end,
350         com.liferay.portal.kernel.util.OrderByComparator obc)
351         throws com.liferay.portal.SystemException;
352 
353     public com.liferay.portlet.messageboards.model.MBMessage findByC_T_First(
354         long categoryId, long threadId,
355         com.liferay.portal.kernel.util.OrderByComparator obc)
356         throws com.liferay.portal.SystemException,
357             com.liferay.portlet.messageboards.NoSuchMessageException;
358 
359     public com.liferay.portlet.messageboards.model.MBMessage findByC_T_Last(
360         long categoryId, long threadId,
361         com.liferay.portal.kernel.util.OrderByComparator obc)
362         throws com.liferay.portal.SystemException,
363             com.liferay.portlet.messageboards.NoSuchMessageException;
364 
365     public com.liferay.portlet.messageboards.model.MBMessage[] findByC_T_PrevAndNext(
366         long messageId, long categoryId, long threadId,
367         com.liferay.portal.kernel.util.OrderByComparator obc)
368         throws com.liferay.portal.SystemException,
369             com.liferay.portlet.messageboards.NoSuchMessageException;
370 
371     public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByT_P(
372         long threadId, long parentMessageId)
373         throws com.liferay.portal.SystemException;
374 
375     public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByT_P(
376         long threadId, long parentMessageId, int start, int end)
377         throws com.liferay.portal.SystemException;
378 
379     public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByT_P(
380         long threadId, long parentMessageId, int start, int end,
381         com.liferay.portal.kernel.util.OrderByComparator obc)
382         throws com.liferay.portal.SystemException;
383 
384     public com.liferay.portlet.messageboards.model.MBMessage findByT_P_First(
385         long threadId, long parentMessageId,
386         com.liferay.portal.kernel.util.OrderByComparator obc)
387         throws com.liferay.portal.SystemException,
388             com.liferay.portlet.messageboards.NoSuchMessageException;
389 
390     public com.liferay.portlet.messageboards.model.MBMessage findByT_P_Last(
391         long threadId, long parentMessageId,
392         com.liferay.portal.kernel.util.OrderByComparator obc)
393         throws com.liferay.portal.SystemException,
394             com.liferay.portlet.messageboards.NoSuchMessageException;
395 
396     public com.liferay.portlet.messageboards.model.MBMessage[] findByT_P_PrevAndNext(
397         long messageId, long threadId, long parentMessageId,
398         com.liferay.portal.kernel.util.OrderByComparator obc)
399         throws com.liferay.portal.SystemException,
400             com.liferay.portlet.messageboards.NoSuchMessageException;
401 
402     public java.util.List<Object> findWithDynamicQuery(
403         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
404         throws com.liferay.portal.SystemException;
405 
406     public java.util.List<Object> findWithDynamicQuery(
407         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
408         int end) throws com.liferay.portal.SystemException;
409 
410     public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findAll()
411         throws com.liferay.portal.SystemException;
412 
413     public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findAll(
414         int start, int end) throws com.liferay.portal.SystemException;
415 
416     public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findAll(
417         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
418         throws com.liferay.portal.SystemException;
419 
420     public void removeByUuid(java.lang.String uuid)
421         throws com.liferay.portal.SystemException;
422 
423     public void removeByUUID_G(java.lang.String uuid, long groupId)
424         throws com.liferay.portal.SystemException,
425             com.liferay.portlet.messageboards.NoSuchMessageException;
426 
427     public void removeByCompanyId(long companyId)
428         throws com.liferay.portal.SystemException;
429 
430     public void removeByGroupId(long groupId)
431         throws com.liferay.portal.SystemException;
432 
433     public void removeByCategoryId(long categoryId)
434         throws com.liferay.portal.SystemException;
435 
436     public void removeByThreadId(long threadId)
437         throws com.liferay.portal.SystemException;
438 
439     public void removeByThreadReplies(long threadId)
440         throws com.liferay.portal.SystemException;
441 
442     public void removeByG_U(long groupId, long userId)
443         throws com.liferay.portal.SystemException;
444 
445     public void removeByC_C(long classNameId, long classPK)
446         throws com.liferay.portal.SystemException;
447 
448     public void removeByC_T(long categoryId, long threadId)
449         throws com.liferay.portal.SystemException;
450 
451     public void removeByT_P(long threadId, long parentMessageId)
452         throws com.liferay.portal.SystemException;
453 
454     public void removeAll() throws com.liferay.portal.SystemException;
455 
456     public int countByUuid(java.lang.String uuid)
457         throws com.liferay.portal.SystemException;
458 
459     public int countByUUID_G(java.lang.String uuid, long groupId)
460         throws com.liferay.portal.SystemException;
461 
462     public int countByCompanyId(long companyId)
463         throws com.liferay.portal.SystemException;
464 
465     public int countByGroupId(long groupId)
466         throws com.liferay.portal.SystemException;
467 
468     public int countByCategoryId(long categoryId)
469         throws com.liferay.portal.SystemException;
470 
471     public int countByThreadId(long threadId)
472         throws com.liferay.portal.SystemException;
473 
474     public int countByThreadReplies(long threadId)
475         throws com.liferay.portal.SystemException;
476 
477     public int countByG_U(long groupId, long userId)
478         throws com.liferay.portal.SystemException;
479 
480     public int countByC_C(long classNameId, long classPK)
481         throws com.liferay.portal.SystemException;
482 
483     public int countByC_T(long categoryId, long threadId)
484         throws com.liferay.portal.SystemException;
485 
486     public int countByT_P(long threadId, long parentMessageId)
487         throws com.liferay.portal.SystemException;
488 
489     public int countAll() throws com.liferay.portal.SystemException;
490 }