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