1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
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.MBMessageFlag;
20  
21  /**
22   * <a href="MBMessageFlagPersistence.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       MBMessageFlagPersistenceImpl
31   * @see       MBMessageFlagUtil
32   * @generated
33   */
34  public interface MBMessageFlagPersistence extends BasePersistence<MBMessageFlag> {
35      public void cacheResult(
36          com.liferay.portlet.messageboards.model.MBMessageFlag mbMessageFlag);
37  
38      public void cacheResult(
39          java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> mbMessageFlags);
40  
41      public com.liferay.portlet.messageboards.model.MBMessageFlag create(
42          long messageFlagId);
43  
44      public com.liferay.portlet.messageboards.model.MBMessageFlag remove(
45          long messageFlagId)
46          throws com.liferay.portal.kernel.exception.SystemException,
47              com.liferay.portlet.messageboards.NoSuchMessageFlagException;
48  
49      public com.liferay.portlet.messageboards.model.MBMessageFlag updateImpl(
50          com.liferay.portlet.messageboards.model.MBMessageFlag mbMessageFlag,
51          boolean merge)
52          throws com.liferay.portal.kernel.exception.SystemException;
53  
54      public com.liferay.portlet.messageboards.model.MBMessageFlag findByPrimaryKey(
55          long messageFlagId)
56          throws com.liferay.portal.kernel.exception.SystemException,
57              com.liferay.portlet.messageboards.NoSuchMessageFlagException;
58  
59      public com.liferay.portlet.messageboards.model.MBMessageFlag fetchByPrimaryKey(
60          long messageFlagId)
61          throws com.liferay.portal.kernel.exception.SystemException;
62  
63      public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByUserId(
64          long userId) throws com.liferay.portal.kernel.exception.SystemException;
65  
66      public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByUserId(
67          long userId, int start, int end)
68          throws com.liferay.portal.kernel.exception.SystemException;
69  
70      public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByUserId(
71          long userId, int start, int end,
72          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
73          throws com.liferay.portal.kernel.exception.SystemException;
74  
75      public com.liferay.portlet.messageboards.model.MBMessageFlag findByUserId_First(
76          long userId,
77          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
78          throws com.liferay.portal.kernel.exception.SystemException,
79              com.liferay.portlet.messageboards.NoSuchMessageFlagException;
80  
81      public com.liferay.portlet.messageboards.model.MBMessageFlag findByUserId_Last(
82          long userId,
83          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
84          throws com.liferay.portal.kernel.exception.SystemException,
85              com.liferay.portlet.messageboards.NoSuchMessageFlagException;
86  
87      public com.liferay.portlet.messageboards.model.MBMessageFlag[] findByUserId_PrevAndNext(
88          long messageFlagId, long userId,
89          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
90          throws com.liferay.portal.kernel.exception.SystemException,
91              com.liferay.portlet.messageboards.NoSuchMessageFlagException;
92  
93      public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByThreadId(
94          long threadId)
95          throws com.liferay.portal.kernel.exception.SystemException;
96  
97      public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByThreadId(
98          long threadId, int start, int end)
99          throws com.liferay.portal.kernel.exception.SystemException;
100 
101     public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByThreadId(
102         long threadId, int start, int end,
103         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
104         throws com.liferay.portal.kernel.exception.SystemException;
105 
106     public com.liferay.portlet.messageboards.model.MBMessageFlag findByThreadId_First(
107         long threadId,
108         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
109         throws com.liferay.portal.kernel.exception.SystemException,
110             com.liferay.portlet.messageboards.NoSuchMessageFlagException;
111 
112     public com.liferay.portlet.messageboards.model.MBMessageFlag findByThreadId_Last(
113         long threadId,
114         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
115         throws com.liferay.portal.kernel.exception.SystemException,
116             com.liferay.portlet.messageboards.NoSuchMessageFlagException;
117 
118     public com.liferay.portlet.messageboards.model.MBMessageFlag[] findByThreadId_PrevAndNext(
119         long messageFlagId, long threadId,
120         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
121         throws com.liferay.portal.kernel.exception.SystemException,
122             com.liferay.portlet.messageboards.NoSuchMessageFlagException;
123 
124     public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByMessageId(
125         long messageId)
126         throws com.liferay.portal.kernel.exception.SystemException;
127 
128     public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByMessageId(
129         long messageId, int start, int end)
130         throws com.liferay.portal.kernel.exception.SystemException;
131 
132     public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByMessageId(
133         long messageId, int start, int end,
134         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
135         throws com.liferay.portal.kernel.exception.SystemException;
136 
137     public com.liferay.portlet.messageboards.model.MBMessageFlag findByMessageId_First(
138         long messageId,
139         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
140         throws com.liferay.portal.kernel.exception.SystemException,
141             com.liferay.portlet.messageboards.NoSuchMessageFlagException;
142 
143     public com.liferay.portlet.messageboards.model.MBMessageFlag findByMessageId_Last(
144         long messageId,
145         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
146         throws com.liferay.portal.kernel.exception.SystemException,
147             com.liferay.portlet.messageboards.NoSuchMessageFlagException;
148 
149     public com.liferay.portlet.messageboards.model.MBMessageFlag[] findByMessageId_PrevAndNext(
150         long messageFlagId, long messageId,
151         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
152         throws com.liferay.portal.kernel.exception.SystemException,
153             com.liferay.portlet.messageboards.NoSuchMessageFlagException;
154 
155     public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByT_F(
156         long threadId, int flag)
157         throws com.liferay.portal.kernel.exception.SystemException;
158 
159     public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByT_F(
160         long threadId, int flag, int start, int end)
161         throws com.liferay.portal.kernel.exception.SystemException;
162 
163     public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByT_F(
164         long threadId, int flag, int start, int end,
165         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
166         throws com.liferay.portal.kernel.exception.SystemException;
167 
168     public com.liferay.portlet.messageboards.model.MBMessageFlag findByT_F_First(
169         long threadId, int flag,
170         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
171         throws com.liferay.portal.kernel.exception.SystemException,
172             com.liferay.portlet.messageboards.NoSuchMessageFlagException;
173 
174     public com.liferay.portlet.messageboards.model.MBMessageFlag findByT_F_Last(
175         long threadId, int flag,
176         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
177         throws com.liferay.portal.kernel.exception.SystemException,
178             com.liferay.portlet.messageboards.NoSuchMessageFlagException;
179 
180     public com.liferay.portlet.messageboards.model.MBMessageFlag[] findByT_F_PrevAndNext(
181         long messageFlagId, long threadId, int flag,
182         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
183         throws com.liferay.portal.kernel.exception.SystemException,
184             com.liferay.portlet.messageboards.NoSuchMessageFlagException;
185 
186     public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByM_F(
187         long messageId, int flag)
188         throws com.liferay.portal.kernel.exception.SystemException;
189 
190     public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByM_F(
191         long messageId, int flag, int start, int end)
192         throws com.liferay.portal.kernel.exception.SystemException;
193 
194     public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByM_F(
195         long messageId, int flag, int start, int end,
196         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
197         throws com.liferay.portal.kernel.exception.SystemException;
198 
199     public com.liferay.portlet.messageboards.model.MBMessageFlag findByM_F_First(
200         long messageId, int flag,
201         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
202         throws com.liferay.portal.kernel.exception.SystemException,
203             com.liferay.portlet.messageboards.NoSuchMessageFlagException;
204 
205     public com.liferay.portlet.messageboards.model.MBMessageFlag findByM_F_Last(
206         long messageId, int flag,
207         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
208         throws com.liferay.portal.kernel.exception.SystemException,
209             com.liferay.portlet.messageboards.NoSuchMessageFlagException;
210 
211     public com.liferay.portlet.messageboards.model.MBMessageFlag[] findByM_F_PrevAndNext(
212         long messageFlagId, long messageId, int flag,
213         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
214         throws com.liferay.portal.kernel.exception.SystemException,
215             com.liferay.portlet.messageboards.NoSuchMessageFlagException;
216 
217     public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByU_T_F(
218         long userId, long threadId, int flag)
219         throws com.liferay.portal.kernel.exception.SystemException;
220 
221     public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByU_T_F(
222         long userId, long threadId, int flag, int start, int end)
223         throws com.liferay.portal.kernel.exception.SystemException;
224 
225     public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByU_T_F(
226         long userId, long threadId, int flag, int start, int end,
227         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
228         throws com.liferay.portal.kernel.exception.SystemException;
229 
230     public com.liferay.portlet.messageboards.model.MBMessageFlag findByU_T_F_First(
231         long userId, long threadId, int flag,
232         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
233         throws com.liferay.portal.kernel.exception.SystemException,
234             com.liferay.portlet.messageboards.NoSuchMessageFlagException;
235 
236     public com.liferay.portlet.messageboards.model.MBMessageFlag findByU_T_F_Last(
237         long userId, long threadId, int flag,
238         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
239         throws com.liferay.portal.kernel.exception.SystemException,
240             com.liferay.portlet.messageboards.NoSuchMessageFlagException;
241 
242     public com.liferay.portlet.messageboards.model.MBMessageFlag[] findByU_T_F_PrevAndNext(
243         long messageFlagId, long userId, long threadId, int flag,
244         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
245         throws com.liferay.portal.kernel.exception.SystemException,
246             com.liferay.portlet.messageboards.NoSuchMessageFlagException;
247 
248     public com.liferay.portlet.messageboards.model.MBMessageFlag findByU_M_F(
249         long userId, long messageId, int flag)
250         throws com.liferay.portal.kernel.exception.SystemException,
251             com.liferay.portlet.messageboards.NoSuchMessageFlagException;
252 
253     public com.liferay.portlet.messageboards.model.MBMessageFlag fetchByU_M_F(
254         long userId, long messageId, int flag)
255         throws com.liferay.portal.kernel.exception.SystemException;
256 
257     public com.liferay.portlet.messageboards.model.MBMessageFlag fetchByU_M_F(
258         long userId, long messageId, int flag, boolean retrieveFromCache)
259         throws com.liferay.portal.kernel.exception.SystemException;
260 
261     public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findAll()
262         throws com.liferay.portal.kernel.exception.SystemException;
263 
264     public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findAll(
265         int start, int end)
266         throws com.liferay.portal.kernel.exception.SystemException;
267 
268     public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findAll(
269         int start, int end,
270         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
271         throws com.liferay.portal.kernel.exception.SystemException;
272 
273     public void removeByUserId(long userId)
274         throws com.liferay.portal.kernel.exception.SystemException;
275 
276     public void removeByThreadId(long threadId)
277         throws com.liferay.portal.kernel.exception.SystemException;
278 
279     public void removeByMessageId(long messageId)
280         throws com.liferay.portal.kernel.exception.SystemException;
281 
282     public void removeByT_F(long threadId, int flag)
283         throws com.liferay.portal.kernel.exception.SystemException;
284 
285     public void removeByM_F(long messageId, int flag)
286         throws com.liferay.portal.kernel.exception.SystemException;
287 
288     public void removeByU_T_F(long userId, long threadId, int flag)
289         throws com.liferay.portal.kernel.exception.SystemException;
290 
291     public void removeByU_M_F(long userId, long messageId, int flag)
292         throws com.liferay.portal.kernel.exception.SystemException,
293             com.liferay.portlet.messageboards.NoSuchMessageFlagException;
294 
295     public void removeAll()
296         throws com.liferay.portal.kernel.exception.SystemException;
297 
298     public int countByUserId(long userId)
299         throws com.liferay.portal.kernel.exception.SystemException;
300 
301     public int countByThreadId(long threadId)
302         throws com.liferay.portal.kernel.exception.SystemException;
303 
304     public int countByMessageId(long messageId)
305         throws com.liferay.portal.kernel.exception.SystemException;
306 
307     public int countByT_F(long threadId, int flag)
308         throws com.liferay.portal.kernel.exception.SystemException;
309 
310     public int countByM_F(long messageId, int flag)
311         throws com.liferay.portal.kernel.exception.SystemException;
312 
313     public int countByU_T_F(long userId, long threadId, int flag)
314         throws com.liferay.portal.kernel.exception.SystemException;
315 
316     public int countByU_M_F(long userId, long messageId, int flag)
317         throws com.liferay.portal.kernel.exception.SystemException;
318 
319     public int countAll()
320         throws com.liferay.portal.kernel.exception.SystemException;
321 }