1
22
23 package com.liferay.portlet.messageboards.service.persistence;
24
25 import com.liferay.portal.PortalException;
26 import com.liferay.portal.SystemException;
27 import com.liferay.portal.kernel.annotation.Propagation;
28 import com.liferay.portal.kernel.annotation.Transactional;
29
30
36 @Transactional(rollbackFor = {
37 PortalException.class, SystemException.class})
38 public interface MBMessagePersistence {
39 public com.liferay.portlet.messageboards.model.MBMessage create(
40 long messageId);
41
42 public com.liferay.portlet.messageboards.model.MBMessage remove(
43 long messageId)
44 throws com.liferay.portal.SystemException,
45 com.liferay.portlet.messageboards.NoSuchMessageException;
46
47 public com.liferay.portlet.messageboards.model.MBMessage remove(
48 com.liferay.portlet.messageboards.model.MBMessage mbMessage)
49 throws com.liferay.portal.SystemException;
50
51
54 public com.liferay.portlet.messageboards.model.MBMessage update(
55 com.liferay.portlet.messageboards.model.MBMessage mbMessage)
56 throws com.liferay.portal.SystemException;
57
58
71 public com.liferay.portlet.messageboards.model.MBMessage update(
72 com.liferay.portlet.messageboards.model.MBMessage mbMessage,
73 boolean merge) throws com.liferay.portal.SystemException;
74
75 public com.liferay.portlet.messageboards.model.MBMessage updateImpl(
76 com.liferay.portlet.messageboards.model.MBMessage mbMessage,
77 boolean merge) throws com.liferay.portal.SystemException;
78
79 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
80 public com.liferay.portlet.messageboards.model.MBMessage findByPrimaryKey(
81 long messageId)
82 throws com.liferay.portal.SystemException,
83 com.liferay.portlet.messageboards.NoSuchMessageException;
84
85 public com.liferay.portlet.messageboards.model.MBMessage fetchByPrimaryKey(
86 long messageId) throws com.liferay.portal.SystemException;
87
88 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
89 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByUuid(
90 java.lang.String uuid) throws com.liferay.portal.SystemException;
91
92 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
93 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByUuid(
94 java.lang.String uuid, int start, int end)
95 throws com.liferay.portal.SystemException;
96
97 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
98 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByUuid(
99 java.lang.String uuid, int start, int end,
100 com.liferay.portal.kernel.util.OrderByComparator obc)
101 throws com.liferay.portal.SystemException;
102
103 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
104 public com.liferay.portlet.messageboards.model.MBMessage findByUuid_First(
105 java.lang.String uuid,
106 com.liferay.portal.kernel.util.OrderByComparator obc)
107 throws com.liferay.portal.SystemException,
108 com.liferay.portlet.messageboards.NoSuchMessageException;
109
110 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
111 public com.liferay.portlet.messageboards.model.MBMessage findByUuid_Last(
112 java.lang.String uuid,
113 com.liferay.portal.kernel.util.OrderByComparator obc)
114 throws com.liferay.portal.SystemException,
115 com.liferay.portlet.messageboards.NoSuchMessageException;
116
117 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
118 public com.liferay.portlet.messageboards.model.MBMessage[] findByUuid_PrevAndNext(
119 long messageId, java.lang.String uuid,
120 com.liferay.portal.kernel.util.OrderByComparator obc)
121 throws com.liferay.portal.SystemException,
122 com.liferay.portlet.messageboards.NoSuchMessageException;
123
124 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
125 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByCompanyId(
126 long companyId) throws com.liferay.portal.SystemException;
127
128 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
129 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByCompanyId(
130 long companyId, int start, int end)
131 throws com.liferay.portal.SystemException;
132
133 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
134 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByCompanyId(
135 long companyId, int start, int end,
136 com.liferay.portal.kernel.util.OrderByComparator obc)
137 throws com.liferay.portal.SystemException;
138
139 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
140 public com.liferay.portlet.messageboards.model.MBMessage findByCompanyId_First(
141 long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
142 throws com.liferay.portal.SystemException,
143 com.liferay.portlet.messageboards.NoSuchMessageException;
144
145 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
146 public com.liferay.portlet.messageboards.model.MBMessage findByCompanyId_Last(
147 long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
148 throws com.liferay.portal.SystemException,
149 com.liferay.portlet.messageboards.NoSuchMessageException;
150
151 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
152 public com.liferay.portlet.messageboards.model.MBMessage[] findByCompanyId_PrevAndNext(
153 long messageId, long companyId,
154 com.liferay.portal.kernel.util.OrderByComparator obc)
155 throws com.liferay.portal.SystemException,
156 com.liferay.portlet.messageboards.NoSuchMessageException;
157
158 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
159 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByCategoryId(
160 long categoryId) throws com.liferay.portal.SystemException;
161
162 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
163 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByCategoryId(
164 long categoryId, int start, int end)
165 throws com.liferay.portal.SystemException;
166
167 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
168 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByCategoryId(
169 long categoryId, int start, int end,
170 com.liferay.portal.kernel.util.OrderByComparator obc)
171 throws com.liferay.portal.SystemException;
172
173 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
174 public com.liferay.portlet.messageboards.model.MBMessage findByCategoryId_First(
175 long categoryId, com.liferay.portal.kernel.util.OrderByComparator obc)
176 throws com.liferay.portal.SystemException,
177 com.liferay.portlet.messageboards.NoSuchMessageException;
178
179 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
180 public com.liferay.portlet.messageboards.model.MBMessage findByCategoryId_Last(
181 long categoryId, com.liferay.portal.kernel.util.OrderByComparator obc)
182 throws com.liferay.portal.SystemException,
183 com.liferay.portlet.messageboards.NoSuchMessageException;
184
185 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
186 public com.liferay.portlet.messageboards.model.MBMessage[] findByCategoryId_PrevAndNext(
187 long messageId, long categoryId,
188 com.liferay.portal.kernel.util.OrderByComparator obc)
189 throws com.liferay.portal.SystemException,
190 com.liferay.portlet.messageboards.NoSuchMessageException;
191
192 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
193 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByThreadId(
194 long threadId) throws com.liferay.portal.SystemException;
195
196 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
197 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByThreadId(
198 long threadId, int start, int end)
199 throws com.liferay.portal.SystemException;
200
201 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
202 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByThreadId(
203 long threadId, int start, int end,
204 com.liferay.portal.kernel.util.OrderByComparator obc)
205 throws com.liferay.portal.SystemException;
206
207 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
208 public com.liferay.portlet.messageboards.model.MBMessage findByThreadId_First(
209 long threadId, com.liferay.portal.kernel.util.OrderByComparator obc)
210 throws com.liferay.portal.SystemException,
211 com.liferay.portlet.messageboards.NoSuchMessageException;
212
213 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
214 public com.liferay.portlet.messageboards.model.MBMessage findByThreadId_Last(
215 long threadId, com.liferay.portal.kernel.util.OrderByComparator obc)
216 throws com.liferay.portal.SystemException,
217 com.liferay.portlet.messageboards.NoSuchMessageException;
218
219 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
220 public com.liferay.portlet.messageboards.model.MBMessage[] findByThreadId_PrevAndNext(
221 long messageId, long threadId,
222 com.liferay.portal.kernel.util.OrderByComparator obc)
223 throws com.liferay.portal.SystemException,
224 com.liferay.portlet.messageboards.NoSuchMessageException;
225
226 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
227 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByC_T(
228 long categoryId, long threadId)
229 throws com.liferay.portal.SystemException;
230
231 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
232 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByC_T(
233 long categoryId, long threadId, int start, int end)
234 throws com.liferay.portal.SystemException;
235
236 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
237 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByC_T(
238 long categoryId, long threadId, int start, int end,
239 com.liferay.portal.kernel.util.OrderByComparator obc)
240 throws com.liferay.portal.SystemException;
241
242 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
243 public com.liferay.portlet.messageboards.model.MBMessage findByC_T_First(
244 long categoryId, long threadId,
245 com.liferay.portal.kernel.util.OrderByComparator obc)
246 throws com.liferay.portal.SystemException,
247 com.liferay.portlet.messageboards.NoSuchMessageException;
248
249 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
250 public com.liferay.portlet.messageboards.model.MBMessage findByC_T_Last(
251 long categoryId, long threadId,
252 com.liferay.portal.kernel.util.OrderByComparator obc)
253 throws com.liferay.portal.SystemException,
254 com.liferay.portlet.messageboards.NoSuchMessageException;
255
256 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
257 public com.liferay.portlet.messageboards.model.MBMessage[] findByC_T_PrevAndNext(
258 long messageId, long categoryId, long threadId,
259 com.liferay.portal.kernel.util.OrderByComparator obc)
260 throws com.liferay.portal.SystemException,
261 com.liferay.portlet.messageboards.NoSuchMessageException;
262
263 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
264 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByT_P(
265 long threadId, long parentMessageId)
266 throws com.liferay.portal.SystemException;
267
268 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
269 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByT_P(
270 long threadId, long parentMessageId, int start, int end)
271 throws com.liferay.portal.SystemException;
272
273 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
274 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByT_P(
275 long threadId, long parentMessageId, int start, int end,
276 com.liferay.portal.kernel.util.OrderByComparator obc)
277 throws com.liferay.portal.SystemException;
278
279 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
280 public com.liferay.portlet.messageboards.model.MBMessage findByT_P_First(
281 long threadId, long parentMessageId,
282 com.liferay.portal.kernel.util.OrderByComparator obc)
283 throws com.liferay.portal.SystemException,
284 com.liferay.portlet.messageboards.NoSuchMessageException;
285
286 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
287 public com.liferay.portlet.messageboards.model.MBMessage findByT_P_Last(
288 long threadId, long parentMessageId,
289 com.liferay.portal.kernel.util.OrderByComparator obc)
290 throws com.liferay.portal.SystemException,
291 com.liferay.portlet.messageboards.NoSuchMessageException;
292
293 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
294 public com.liferay.portlet.messageboards.model.MBMessage[] findByT_P_PrevAndNext(
295 long messageId, long threadId, long parentMessageId,
296 com.liferay.portal.kernel.util.OrderByComparator obc)
297 throws com.liferay.portal.SystemException,
298 com.liferay.portlet.messageboards.NoSuchMessageException;
299
300 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
301 public java.util.List<Object> findWithDynamicQuery(
302 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
303 throws com.liferay.portal.SystemException;
304
305 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
306 public java.util.List<Object> findWithDynamicQuery(
307 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
308 int end) throws com.liferay.portal.SystemException;
309
310 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
311 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findAll()
312 throws com.liferay.portal.SystemException;
313
314 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
315 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findAll(
316 int start, int end) throws com.liferay.portal.SystemException;
317
318 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
319 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findAll(
320 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
321 throws com.liferay.portal.SystemException;
322
323 public void removeByUuid(java.lang.String uuid)
324 throws com.liferay.portal.SystemException;
325
326 public void removeByCompanyId(long companyId)
327 throws com.liferay.portal.SystemException;
328
329 public void removeByCategoryId(long categoryId)
330 throws com.liferay.portal.SystemException;
331
332 public void removeByThreadId(long threadId)
333 throws com.liferay.portal.SystemException;
334
335 public void removeByC_T(long categoryId, long threadId)
336 throws com.liferay.portal.SystemException;
337
338 public void removeByT_P(long threadId, long parentMessageId)
339 throws com.liferay.portal.SystemException;
340
341 public void removeAll() throws com.liferay.portal.SystemException;
342
343 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
344 public int countByUuid(java.lang.String uuid)
345 throws com.liferay.portal.SystemException;
346
347 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
348 public int countByCompanyId(long companyId)
349 throws com.liferay.portal.SystemException;
350
351 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
352 public int countByCategoryId(long categoryId)
353 throws com.liferay.portal.SystemException;
354
355 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
356 public int countByThreadId(long threadId)
357 throws com.liferay.portal.SystemException;
358
359 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
360 public int countByC_T(long categoryId, long threadId)
361 throws com.liferay.portal.SystemException;
362
363 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
364 public int countByT_P(long threadId, long parentMessageId)
365 throws com.liferay.portal.SystemException;
366
367 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
368 public int countAll() throws com.liferay.portal.SystemException;
369
370 public void registerListener(
371 com.liferay.portal.model.ModelListener listener);
372
373 public void unregisterListener(
374 com.liferay.portal.model.ModelListener listener);
375 }