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 obc)
78          throws com.liferay.portal.SystemException;
79  
80      public com.liferay.portlet.messageboards.model.MBMessageFlag findByUserId_First(
81          long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
82          throws com.liferay.portal.SystemException,
83              com.liferay.portlet.messageboards.NoSuchMessageFlagException;
84  
85      public com.liferay.portlet.messageboards.model.MBMessageFlag findByUserId_Last(
86          long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
87          throws com.liferay.portal.SystemException,
88              com.liferay.portlet.messageboards.NoSuchMessageFlagException;
89  
90      public com.liferay.portlet.messageboards.model.MBMessageFlag[] findByUserId_PrevAndNext(
91          long messageFlagId, long userId,
92          com.liferay.portal.kernel.util.OrderByComparator obc)
93          throws com.liferay.portal.SystemException,
94              com.liferay.portlet.messageboards.NoSuchMessageFlagException;
95  
96      public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByThreadId(
97          long threadId) throws com.liferay.portal.SystemException;
98  
99      public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByThreadId(
100         long threadId, int start, int end)
101         throws com.liferay.portal.SystemException;
102 
103     public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByThreadId(
104         long threadId, 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.MBMessageFlag findByThreadId_First(
109         long threadId, com.liferay.portal.kernel.util.OrderByComparator obc)
110         throws com.liferay.portal.SystemException,
111             com.liferay.portlet.messageboards.NoSuchMessageFlagException;
112 
113     public com.liferay.portlet.messageboards.model.MBMessageFlag findByThreadId_Last(
114         long threadId, com.liferay.portal.kernel.util.OrderByComparator obc)
115         throws com.liferay.portal.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 obc)
121         throws com.liferay.portal.SystemException,
122             com.liferay.portlet.messageboards.NoSuchMessageFlagException;
123 
124     public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByMessageId(
125         long messageId) throws com.liferay.portal.SystemException;
126 
127     public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByMessageId(
128         long messageId, int start, int end)
129         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         com.liferay.portal.kernel.util.OrderByComparator obc)
134         throws com.liferay.portal.SystemException;
135 
136     public com.liferay.portlet.messageboards.model.MBMessageFlag findByMessageId_First(
137         long messageId, com.liferay.portal.kernel.util.OrderByComparator obc)
138         throws com.liferay.portal.SystemException,
139             com.liferay.portlet.messageboards.NoSuchMessageFlagException;
140 
141     public com.liferay.portlet.messageboards.model.MBMessageFlag findByMessageId_Last(
142         long messageId, com.liferay.portal.kernel.util.OrderByComparator obc)
143         throws com.liferay.portal.SystemException,
144             com.liferay.portlet.messageboards.NoSuchMessageFlagException;
145 
146     public com.liferay.portlet.messageboards.model.MBMessageFlag[] findByMessageId_PrevAndNext(
147         long messageFlagId, long messageId,
148         com.liferay.portal.kernel.util.OrderByComparator obc)
149         throws com.liferay.portal.SystemException,
150             com.liferay.portlet.messageboards.NoSuchMessageFlagException;
151 
152     public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByT_F(
153         long threadId, int flag) throws com.liferay.portal.SystemException;
154 
155     public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByT_F(
156         long threadId, int flag, int start, int end)
157         throws com.liferay.portal.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         com.liferay.portal.kernel.util.OrderByComparator obc)
162         throws com.liferay.portal.SystemException;
163 
164     public com.liferay.portlet.messageboards.model.MBMessageFlag findByT_F_First(
165         long threadId, int flag,
166         com.liferay.portal.kernel.util.OrderByComparator obc)
167         throws com.liferay.portal.SystemException,
168             com.liferay.portlet.messageboards.NoSuchMessageFlagException;
169 
170     public com.liferay.portlet.messageboards.model.MBMessageFlag findByT_F_Last(
171         long threadId, int flag,
172         com.liferay.portal.kernel.util.OrderByComparator obc)
173         throws com.liferay.portal.SystemException,
174             com.liferay.portlet.messageboards.NoSuchMessageFlagException;
175 
176     public com.liferay.portlet.messageboards.model.MBMessageFlag[] findByT_F_PrevAndNext(
177         long messageFlagId, long threadId, int flag,
178         com.liferay.portal.kernel.util.OrderByComparator obc)
179         throws com.liferay.portal.SystemException,
180             com.liferay.portlet.messageboards.NoSuchMessageFlagException;
181 
182     public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByM_F(
183         long messageId, int flag) throws com.liferay.portal.SystemException;
184 
185     public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByM_F(
186         long messageId, int flag, int start, int end)
187         throws com.liferay.portal.SystemException;
188 
189     public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByM_F(
190         long messageId, int flag, int start, int end,
191         com.liferay.portal.kernel.util.OrderByComparator obc)
192         throws com.liferay.portal.SystemException;
193 
194     public com.liferay.portlet.messageboards.model.MBMessageFlag findByM_F_First(
195         long messageId, int flag,
196         com.liferay.portal.kernel.util.OrderByComparator obc)
197         throws com.liferay.portal.SystemException,
198             com.liferay.portlet.messageboards.NoSuchMessageFlagException;
199 
200     public com.liferay.portlet.messageboards.model.MBMessageFlag findByM_F_Last(
201         long messageId, int flag,
202         com.liferay.portal.kernel.util.OrderByComparator obc)
203         throws com.liferay.portal.SystemException,
204             com.liferay.portlet.messageboards.NoSuchMessageFlagException;
205 
206     public com.liferay.portlet.messageboards.model.MBMessageFlag[] findByM_F_PrevAndNext(
207         long messageFlagId, long messageId, int flag,
208         com.liferay.portal.kernel.util.OrderByComparator obc)
209         throws com.liferay.portal.SystemException,
210             com.liferay.portlet.messageboards.NoSuchMessageFlagException;
211 
212     public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByU_T_F(
213         long userId, long threadId, int flag)
214         throws com.liferay.portal.SystemException;
215 
216     public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByU_T_F(
217         long userId, long threadId, int flag, int start, int end)
218         throws com.liferay.portal.SystemException;
219 
220     public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByU_T_F(
221         long userId, long threadId, int flag, int start, int end,
222         com.liferay.portal.kernel.util.OrderByComparator obc)
223         throws com.liferay.portal.SystemException;
224 
225     public com.liferay.portlet.messageboards.model.MBMessageFlag findByU_T_F_First(
226         long userId, long threadId, int flag,
227         com.liferay.portal.kernel.util.OrderByComparator obc)
228         throws com.liferay.portal.SystemException,
229             com.liferay.portlet.messageboards.NoSuchMessageFlagException;
230 
231     public com.liferay.portlet.messageboards.model.MBMessageFlag findByU_T_F_Last(
232         long userId, long threadId, int flag,
233         com.liferay.portal.kernel.util.OrderByComparator obc)
234         throws com.liferay.portal.SystemException,
235             com.liferay.portlet.messageboards.NoSuchMessageFlagException;
236 
237     public com.liferay.portlet.messageboards.model.MBMessageFlag[] findByU_T_F_PrevAndNext(
238         long messageFlagId, long userId, long threadId, int flag,
239         com.liferay.portal.kernel.util.OrderByComparator obc)
240         throws com.liferay.portal.SystemException,
241             com.liferay.portlet.messageboards.NoSuchMessageFlagException;
242 
243     public com.liferay.portlet.messageboards.model.MBMessageFlag findByU_M_F(
244         long userId, long messageId, int flag)
245         throws com.liferay.portal.SystemException,
246             com.liferay.portlet.messageboards.NoSuchMessageFlagException;
247 
248     public com.liferay.portlet.messageboards.model.MBMessageFlag fetchByU_M_F(
249         long userId, long messageId, int flag)
250         throws com.liferay.portal.SystemException;
251 
252     public com.liferay.portlet.messageboards.model.MBMessageFlag fetchByU_M_F(
253         long userId, long messageId, int flag, boolean retrieveFromCache)
254         throws com.liferay.portal.SystemException;
255 
256     public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findAll()
257         throws com.liferay.portal.SystemException;
258 
259     public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findAll(
260         int start, int end) throws com.liferay.portal.SystemException;
261 
262     public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findAll(
263         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
264         throws com.liferay.portal.SystemException;
265 
266     public void removeByUserId(long userId)
267         throws com.liferay.portal.SystemException;
268 
269     public void removeByThreadId(long threadId)
270         throws com.liferay.portal.SystemException;
271 
272     public void removeByMessageId(long messageId)
273         throws com.liferay.portal.SystemException;
274 
275     public void removeByT_F(long threadId, int flag)
276         throws com.liferay.portal.SystemException;
277 
278     public void removeByM_F(long messageId, int flag)
279         throws com.liferay.portal.SystemException;
280 
281     public void removeByU_T_F(long userId, long threadId, int flag)
282         throws com.liferay.portal.SystemException;
283 
284     public void removeByU_M_F(long userId, long messageId, int flag)
285         throws com.liferay.portal.SystemException,
286             com.liferay.portlet.messageboards.NoSuchMessageFlagException;
287 
288     public void removeAll() throws com.liferay.portal.SystemException;
289 
290     public int countByUserId(long userId)
291         throws com.liferay.portal.SystemException;
292 
293     public int countByThreadId(long threadId)
294         throws com.liferay.portal.SystemException;
295 
296     public int countByMessageId(long messageId)
297         throws com.liferay.portal.SystemException;
298 
299     public int countByT_F(long threadId, int flag)
300         throws com.liferay.portal.SystemException;
301 
302     public int countByM_F(long messageId, int flag)
303         throws com.liferay.portal.SystemException;
304 
305     public int countByU_T_F(long userId, long threadId, int flag)
306         throws com.liferay.portal.SystemException;
307 
308     public int countByU_M_F(long userId, long messageId, int flag)
309         throws com.liferay.portal.SystemException;
310 
311     public int countAll() throws com.liferay.portal.SystemException;
312 }