001
014
015 package com.liferay.portlet.messageboards.service.persistence;
016
017 import com.liferay.portal.service.persistence.BasePersistence;
018
019 import com.liferay.portlet.messageboards.model.MBMessageFlag;
020
021
027 public interface MBMessageFlagPersistence extends BasePersistence<MBMessageFlag> {
028 public void cacheResult(
029 com.liferay.portlet.messageboards.model.MBMessageFlag mbMessageFlag);
030
031 public void cacheResult(
032 java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> mbMessageFlags);
033
034 public com.liferay.portlet.messageboards.model.MBMessageFlag create(
035 long messageFlagId);
036
037 public com.liferay.portlet.messageboards.model.MBMessageFlag remove(
038 long messageFlagId)
039 throws com.liferay.portal.kernel.exception.SystemException,
040 com.liferay.portlet.messageboards.NoSuchMessageFlagException;
041
042 public com.liferay.portlet.messageboards.model.MBMessageFlag updateImpl(
043 com.liferay.portlet.messageboards.model.MBMessageFlag mbMessageFlag,
044 boolean merge)
045 throws com.liferay.portal.kernel.exception.SystemException;
046
047 public com.liferay.portlet.messageboards.model.MBMessageFlag findByPrimaryKey(
048 long messageFlagId)
049 throws com.liferay.portal.kernel.exception.SystemException,
050 com.liferay.portlet.messageboards.NoSuchMessageFlagException;
051
052 public com.liferay.portlet.messageboards.model.MBMessageFlag fetchByPrimaryKey(
053 long messageFlagId)
054 throws com.liferay.portal.kernel.exception.SystemException;
055
056 public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByUserId(
057 long userId) throws com.liferay.portal.kernel.exception.SystemException;
058
059 public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByUserId(
060 long userId, int start, int end)
061 throws com.liferay.portal.kernel.exception.SystemException;
062
063 public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByUserId(
064 long userId, int start, int end,
065 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
066 throws com.liferay.portal.kernel.exception.SystemException;
067
068 public com.liferay.portlet.messageboards.model.MBMessageFlag findByUserId_First(
069 long userId,
070 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
071 throws com.liferay.portal.kernel.exception.SystemException,
072 com.liferay.portlet.messageboards.NoSuchMessageFlagException;
073
074 public com.liferay.portlet.messageboards.model.MBMessageFlag findByUserId_Last(
075 long userId,
076 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
077 throws com.liferay.portal.kernel.exception.SystemException,
078 com.liferay.portlet.messageboards.NoSuchMessageFlagException;
079
080 public com.liferay.portlet.messageboards.model.MBMessageFlag[] findByUserId_PrevAndNext(
081 long messageFlagId, long userId,
082 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
083 throws com.liferay.portal.kernel.exception.SystemException,
084 com.liferay.portlet.messageboards.NoSuchMessageFlagException;
085
086 public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByThreadId(
087 long threadId)
088 throws com.liferay.portal.kernel.exception.SystemException;
089
090 public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByThreadId(
091 long threadId, int start, int end)
092 throws com.liferay.portal.kernel.exception.SystemException;
093
094 public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByThreadId(
095 long threadId, int start, int end,
096 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
097 throws com.liferay.portal.kernel.exception.SystemException;
098
099 public com.liferay.portlet.messageboards.model.MBMessageFlag findByThreadId_First(
100 long threadId,
101 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
102 throws com.liferay.portal.kernel.exception.SystemException,
103 com.liferay.portlet.messageboards.NoSuchMessageFlagException;
104
105 public com.liferay.portlet.messageboards.model.MBMessageFlag findByThreadId_Last(
106 long threadId,
107 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
108 throws com.liferay.portal.kernel.exception.SystemException,
109 com.liferay.portlet.messageboards.NoSuchMessageFlagException;
110
111 public com.liferay.portlet.messageboards.model.MBMessageFlag[] findByThreadId_PrevAndNext(
112 long messageFlagId, long threadId,
113 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
114 throws com.liferay.portal.kernel.exception.SystemException,
115 com.liferay.portlet.messageboards.NoSuchMessageFlagException;
116
117 public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByMessageId(
118 long messageId)
119 throws com.liferay.portal.kernel.exception.SystemException;
120
121 public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByMessageId(
122 long messageId, int start, int end)
123 throws com.liferay.portal.kernel.exception.SystemException;
124
125 public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByMessageId(
126 long messageId, int start, int end,
127 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
128 throws com.liferay.portal.kernel.exception.SystemException;
129
130 public com.liferay.portlet.messageboards.model.MBMessageFlag findByMessageId_First(
131 long messageId,
132 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
133 throws com.liferay.portal.kernel.exception.SystemException,
134 com.liferay.portlet.messageboards.NoSuchMessageFlagException;
135
136 public com.liferay.portlet.messageboards.model.MBMessageFlag findByMessageId_Last(
137 long messageId,
138 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
139 throws com.liferay.portal.kernel.exception.SystemException,
140 com.liferay.portlet.messageboards.NoSuchMessageFlagException;
141
142 public com.liferay.portlet.messageboards.model.MBMessageFlag[] findByMessageId_PrevAndNext(
143 long messageFlagId, long messageId,
144 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
145 throws com.liferay.portal.kernel.exception.SystemException,
146 com.liferay.portlet.messageboards.NoSuchMessageFlagException;
147
148 public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByT_F(
149 long threadId, int flag)
150 throws com.liferay.portal.kernel.exception.SystemException;
151
152 public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByT_F(
153 long threadId, int flag, int start, int end)
154 throws com.liferay.portal.kernel.exception.SystemException;
155
156 public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByT_F(
157 long threadId, int flag, int start, int end,
158 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
159 throws com.liferay.portal.kernel.exception.SystemException;
160
161 public com.liferay.portlet.messageboards.model.MBMessageFlag findByT_F_First(
162 long threadId, int flag,
163 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
164 throws com.liferay.portal.kernel.exception.SystemException,
165 com.liferay.portlet.messageboards.NoSuchMessageFlagException;
166
167 public com.liferay.portlet.messageboards.model.MBMessageFlag findByT_F_Last(
168 long threadId, int flag,
169 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
170 throws com.liferay.portal.kernel.exception.SystemException,
171 com.liferay.portlet.messageboards.NoSuchMessageFlagException;
172
173 public com.liferay.portlet.messageboards.model.MBMessageFlag[] findByT_F_PrevAndNext(
174 long messageFlagId, long threadId, int flag,
175 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
176 throws com.liferay.portal.kernel.exception.SystemException,
177 com.liferay.portlet.messageboards.NoSuchMessageFlagException;
178
179 public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByM_F(
180 long messageId, int flag)
181 throws com.liferay.portal.kernel.exception.SystemException;
182
183 public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByM_F(
184 long messageId, int flag, int start, int end)
185 throws com.liferay.portal.kernel.exception.SystemException;
186
187 public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByM_F(
188 long messageId, int flag, int start, int end,
189 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
190 throws com.liferay.portal.kernel.exception.SystemException;
191
192 public com.liferay.portlet.messageboards.model.MBMessageFlag findByM_F_First(
193 long messageId, int flag,
194 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
195 throws com.liferay.portal.kernel.exception.SystemException,
196 com.liferay.portlet.messageboards.NoSuchMessageFlagException;
197
198 public com.liferay.portlet.messageboards.model.MBMessageFlag findByM_F_Last(
199 long messageId, int flag,
200 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
201 throws com.liferay.portal.kernel.exception.SystemException,
202 com.liferay.portlet.messageboards.NoSuchMessageFlagException;
203
204 public com.liferay.portlet.messageboards.model.MBMessageFlag[] findByM_F_PrevAndNext(
205 long messageFlagId, long messageId, int flag,
206 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
207 throws com.liferay.portal.kernel.exception.SystemException,
208 com.liferay.portlet.messageboards.NoSuchMessageFlagException;
209
210 public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByU_T_F(
211 long userId, long threadId, int flag)
212 throws com.liferay.portal.kernel.exception.SystemException;
213
214 public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByU_T_F(
215 long userId, long threadId, int flag, int start, int end)
216 throws com.liferay.portal.kernel.exception.SystemException;
217
218 public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByU_T_F(
219 long userId, long threadId, int flag, int start, int end,
220 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
221 throws com.liferay.portal.kernel.exception.SystemException;
222
223 public com.liferay.portlet.messageboards.model.MBMessageFlag findByU_T_F_First(
224 long userId, long threadId, int flag,
225 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
226 throws com.liferay.portal.kernel.exception.SystemException,
227 com.liferay.portlet.messageboards.NoSuchMessageFlagException;
228
229 public com.liferay.portlet.messageboards.model.MBMessageFlag findByU_T_F_Last(
230 long userId, long threadId, int flag,
231 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
232 throws com.liferay.portal.kernel.exception.SystemException,
233 com.liferay.portlet.messageboards.NoSuchMessageFlagException;
234
235 public com.liferay.portlet.messageboards.model.MBMessageFlag[] findByU_T_F_PrevAndNext(
236 long messageFlagId, long userId, long threadId, int flag,
237 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
238 throws com.liferay.portal.kernel.exception.SystemException,
239 com.liferay.portlet.messageboards.NoSuchMessageFlagException;
240
241 public com.liferay.portlet.messageboards.model.MBMessageFlag findByU_M_F(
242 long userId, long messageId, int flag)
243 throws com.liferay.portal.kernel.exception.SystemException,
244 com.liferay.portlet.messageboards.NoSuchMessageFlagException;
245
246 public com.liferay.portlet.messageboards.model.MBMessageFlag fetchByU_M_F(
247 long userId, long messageId, int flag)
248 throws com.liferay.portal.kernel.exception.SystemException;
249
250 public com.liferay.portlet.messageboards.model.MBMessageFlag fetchByU_M_F(
251 long userId, long messageId, int flag, boolean retrieveFromCache)
252 throws com.liferay.portal.kernel.exception.SystemException;
253
254 public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findAll()
255 throws com.liferay.portal.kernel.exception.SystemException;
256
257 public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findAll(
258 int start, int end)
259 throws com.liferay.portal.kernel.exception.SystemException;
260
261 public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findAll(
262 int start, int end,
263 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
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 }