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