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.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.SystemException,
47              com.liferay.portlet.messageboards.NoSuchMessageFlagException;
48  
49      /**
50       * @deprecated Use {@link BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)}.
51       */
52      public com.liferay.portlet.messageboards.model.MBMessageFlag update(
53          com.liferay.portlet.messageboards.model.MBMessageFlag mbMessageFlag)
54          throws com.liferay.portal.SystemException;
55  
56      public com.liferay.portlet.messageboards.model.MBMessageFlag updateImpl(
57          com.liferay.portlet.messageboards.model.MBMessageFlag mbMessageFlag,
58          boolean merge) throws com.liferay.portal.SystemException;
59  
60      public com.liferay.portlet.messageboards.model.MBMessageFlag findByPrimaryKey(
61          long messageFlagId)
62          throws com.liferay.portal.SystemException,
63              com.liferay.portlet.messageboards.NoSuchMessageFlagException;
64  
65      public com.liferay.portlet.messageboards.model.MBMessageFlag fetchByPrimaryKey(
66          long messageFlagId) throws com.liferay.portal.SystemException;
67  
68      public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByUserId(
69          long userId) throws com.liferay.portal.SystemException;
70  
71      public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByUserId(
72          long userId, int start, int end)
73          throws com.liferay.portal.SystemException;
74  
75      public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByUserId(
76          long userId, 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.MBMessageFlag findByUserId_First(
81          long userId,
82          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
83          throws com.liferay.portal.SystemException,
84              com.liferay.portlet.messageboards.NoSuchMessageFlagException;
85  
86      public com.liferay.portlet.messageboards.model.MBMessageFlag findByUserId_Last(
87          long userId,
88          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
89          throws com.liferay.portal.SystemException,
90              com.liferay.portlet.messageboards.NoSuchMessageFlagException;
91  
92      public com.liferay.portlet.messageboards.model.MBMessageFlag[] findByUserId_PrevAndNext(
93          long messageFlagId, long userId,
94          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
95          throws com.liferay.portal.SystemException,
96              com.liferay.portlet.messageboards.NoSuchMessageFlagException;
97  
98      public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByThreadId(
99          long threadId) throws com.liferay.portal.SystemException;
100 
101     public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByThreadId(
102         long threadId, int start, int end)
103         throws com.liferay.portal.SystemException;
104 
105     public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByThreadId(
106         long threadId, int start, int end,
107         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
108         throws com.liferay.portal.SystemException;
109 
110     public com.liferay.portlet.messageboards.model.MBMessageFlag findByThreadId_First(
111         long threadId,
112         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
113         throws com.liferay.portal.SystemException,
114             com.liferay.portlet.messageboards.NoSuchMessageFlagException;
115 
116     public com.liferay.portlet.messageboards.model.MBMessageFlag findByThreadId_Last(
117         long threadId,
118         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
119         throws com.liferay.portal.SystemException,
120             com.liferay.portlet.messageboards.NoSuchMessageFlagException;
121 
122     public com.liferay.portlet.messageboards.model.MBMessageFlag[] findByThreadId_PrevAndNext(
123         long messageFlagId, long threadId,
124         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
125         throws com.liferay.portal.SystemException,
126             com.liferay.portlet.messageboards.NoSuchMessageFlagException;
127 
128     public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByMessageId(
129         long messageId) throws com.liferay.portal.SystemException;
130 
131     public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByMessageId(
132         long messageId, int start, int end)
133         throws com.liferay.portal.SystemException;
134 
135     public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByMessageId(
136         long messageId, int start, int end,
137         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
138         throws com.liferay.portal.SystemException;
139 
140     public com.liferay.portlet.messageboards.model.MBMessageFlag findByMessageId_First(
141         long messageId,
142         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
143         throws com.liferay.portal.SystemException,
144             com.liferay.portlet.messageboards.NoSuchMessageFlagException;
145 
146     public com.liferay.portlet.messageboards.model.MBMessageFlag findByMessageId_Last(
147         long messageId,
148         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
149         throws com.liferay.portal.SystemException,
150             com.liferay.portlet.messageboards.NoSuchMessageFlagException;
151 
152     public com.liferay.portlet.messageboards.model.MBMessageFlag[] findByMessageId_PrevAndNext(
153         long messageFlagId, long messageId,
154         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
155         throws com.liferay.portal.SystemException,
156             com.liferay.portlet.messageboards.NoSuchMessageFlagException;
157 
158     public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByT_F(
159         long threadId, int flag) throws com.liferay.portal.SystemException;
160 
161     public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByT_F(
162         long threadId, int flag, int start, int end)
163         throws com.liferay.portal.SystemException;
164 
165     public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByT_F(
166         long threadId, int flag, int start, int end,
167         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
168         throws com.liferay.portal.SystemException;
169 
170     public com.liferay.portlet.messageboards.model.MBMessageFlag findByT_F_First(
171         long threadId, int flag,
172         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
173         throws com.liferay.portal.SystemException,
174             com.liferay.portlet.messageboards.NoSuchMessageFlagException;
175 
176     public com.liferay.portlet.messageboards.model.MBMessageFlag findByT_F_Last(
177         long threadId, int flag,
178         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
179         throws com.liferay.portal.SystemException,
180             com.liferay.portlet.messageboards.NoSuchMessageFlagException;
181 
182     public com.liferay.portlet.messageboards.model.MBMessageFlag[] findByT_F_PrevAndNext(
183         long messageFlagId, long threadId, int flag,
184         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
185         throws com.liferay.portal.SystemException,
186             com.liferay.portlet.messageboards.NoSuchMessageFlagException;
187 
188     public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByM_F(
189         long messageId, int flag) throws com.liferay.portal.SystemException;
190 
191     public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByM_F(
192         long messageId, int flag, int start, int end)
193         throws com.liferay.portal.SystemException;
194 
195     public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByM_F(
196         long messageId, int flag, int start, int end,
197         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
198         throws com.liferay.portal.SystemException;
199 
200     public com.liferay.portlet.messageboards.model.MBMessageFlag findByM_F_First(
201         long messageId, int flag,
202         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
203         throws com.liferay.portal.SystemException,
204             com.liferay.portlet.messageboards.NoSuchMessageFlagException;
205 
206     public com.liferay.portlet.messageboards.model.MBMessageFlag findByM_F_Last(
207         long messageId, int flag,
208         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
209         throws com.liferay.portal.SystemException,
210             com.liferay.portlet.messageboards.NoSuchMessageFlagException;
211 
212     public com.liferay.portlet.messageboards.model.MBMessageFlag[] findByM_F_PrevAndNext(
213         long messageFlagId, long messageId, int flag,
214         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
215         throws com.liferay.portal.SystemException,
216             com.liferay.portlet.messageboards.NoSuchMessageFlagException;
217 
218     public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByU_T_F(
219         long userId, long threadId, int flag)
220         throws com.liferay.portal.SystemException;
221 
222     public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByU_T_F(
223         long userId, long threadId, int flag, int start, int end)
224         throws com.liferay.portal.SystemException;
225 
226     public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByU_T_F(
227         long userId, long threadId, int flag, int start, int end,
228         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
229         throws com.liferay.portal.SystemException;
230 
231     public com.liferay.portlet.messageboards.model.MBMessageFlag findByU_T_F_First(
232         long userId, long threadId, int flag,
233         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
234         throws com.liferay.portal.SystemException,
235             com.liferay.portlet.messageboards.NoSuchMessageFlagException;
236 
237     public com.liferay.portlet.messageboards.model.MBMessageFlag findByU_T_F_Last(
238         long userId, long threadId, int flag,
239         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
240         throws com.liferay.portal.SystemException,
241             com.liferay.portlet.messageboards.NoSuchMessageFlagException;
242 
243     public com.liferay.portlet.messageboards.model.MBMessageFlag[] findByU_T_F_PrevAndNext(
244         long messageFlagId, long userId, long threadId, int flag,
245         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
246         throws com.liferay.portal.SystemException,
247             com.liferay.portlet.messageboards.NoSuchMessageFlagException;
248 
249     public com.liferay.portlet.messageboards.model.MBMessageFlag findByU_M_F(
250         long userId, long messageId, int flag)
251         throws com.liferay.portal.SystemException,
252             com.liferay.portlet.messageboards.NoSuchMessageFlagException;
253 
254     public com.liferay.portlet.messageboards.model.MBMessageFlag fetchByU_M_F(
255         long userId, long messageId, int flag)
256         throws com.liferay.portal.SystemException;
257 
258     public com.liferay.portlet.messageboards.model.MBMessageFlag fetchByU_M_F(
259         long userId, long messageId, int flag, boolean retrieveFromCache)
260         throws com.liferay.portal.SystemException;
261 
262     public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findAll()
263         throws com.liferay.portal.SystemException;
264 
265     public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findAll(
266         int start, int end) throws com.liferay.portal.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.SystemException;
272 
273     public void removeByUserId(long userId)
274         throws com.liferay.portal.SystemException;
275 
276     public void removeByThreadId(long threadId)
277         throws com.liferay.portal.SystemException;
278 
279     public void removeByMessageId(long messageId)
280         throws com.liferay.portal.SystemException;
281 
282     public void removeByT_F(long threadId, int flag)
283         throws com.liferay.portal.SystemException;
284 
285     public void removeByM_F(long messageId, int flag)
286         throws com.liferay.portal.SystemException;
287 
288     public void removeByU_T_F(long userId, long threadId, int flag)
289         throws com.liferay.portal.SystemException;
290 
291     public void removeByU_M_F(long userId, long messageId, int flag)
292         throws com.liferay.portal.SystemException,
293             com.liferay.portlet.messageboards.NoSuchMessageFlagException;
294 
295     public void removeAll() throws com.liferay.portal.SystemException;
296 
297     public int countByUserId(long userId)
298         throws com.liferay.portal.SystemException;
299 
300     public int countByThreadId(long threadId)
301         throws com.liferay.portal.SystemException;
302 
303     public int countByMessageId(long messageId)
304         throws com.liferay.portal.SystemException;
305 
306     public int countByT_F(long threadId, int flag)
307         throws com.liferay.portal.SystemException;
308 
309     public int countByM_F(long messageId, int flag)
310         throws com.liferay.portal.SystemException;
311 
312     public int countByU_T_F(long userId, long threadId, int flag)
313         throws com.liferay.portal.SystemException;
314 
315     public int countByU_M_F(long userId, long messageId, int flag)
316         throws com.liferay.portal.SystemException;
317 
318     public int countAll() throws com.liferay.portal.SystemException;
319 }