1
22
23 package com.liferay.portlet.messageboards.service.persistence;
24
25
31 public interface MBMessagePersistence {
32 public com.liferay.portlet.messageboards.model.MBMessage create(
33 long messageId);
34
35 public com.liferay.portlet.messageboards.model.MBMessage remove(
36 long messageId)
37 throws com.liferay.portal.SystemException,
38 com.liferay.portlet.messageboards.NoSuchMessageException;
39
40 public com.liferay.portlet.messageboards.model.MBMessage remove(
41 com.liferay.portlet.messageboards.model.MBMessage mbMessage)
42 throws com.liferay.portal.SystemException;
43
44
47 public com.liferay.portlet.messageboards.model.MBMessage update(
48 com.liferay.portlet.messageboards.model.MBMessage mbMessage)
49 throws com.liferay.portal.SystemException;
50
51
64 public com.liferay.portlet.messageboards.model.MBMessage update(
65 com.liferay.portlet.messageboards.model.MBMessage mbMessage,
66 boolean merge) throws com.liferay.portal.SystemException;
67
68 public com.liferay.portlet.messageboards.model.MBMessage updateImpl(
69 com.liferay.portlet.messageboards.model.MBMessage mbMessage,
70 boolean merge) throws com.liferay.portal.SystemException;
71
72 public com.liferay.portlet.messageboards.model.MBMessage findByPrimaryKey(
73 long messageId)
74 throws com.liferay.portal.SystemException,
75 com.liferay.portlet.messageboards.NoSuchMessageException;
76
77 public com.liferay.portlet.messageboards.model.MBMessage fetchByPrimaryKey(
78 long messageId) throws com.liferay.portal.SystemException;
79
80 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByUuid(
81 java.lang.String uuid) throws com.liferay.portal.SystemException;
82
83 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByUuid(
84 java.lang.String uuid, int start, int end)
85 throws com.liferay.portal.SystemException;
86
87 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByUuid(
88 java.lang.String uuid, int start, int end,
89 com.liferay.portal.kernel.util.OrderByComparator obc)
90 throws com.liferay.portal.SystemException;
91
92 public com.liferay.portlet.messageboards.model.MBMessage findByUuid_First(
93 java.lang.String uuid,
94 com.liferay.portal.kernel.util.OrderByComparator obc)
95 throws com.liferay.portal.SystemException,
96 com.liferay.portlet.messageboards.NoSuchMessageException;
97
98 public com.liferay.portlet.messageboards.model.MBMessage findByUuid_Last(
99 java.lang.String uuid,
100 com.liferay.portal.kernel.util.OrderByComparator obc)
101 throws com.liferay.portal.SystemException,
102 com.liferay.portlet.messageboards.NoSuchMessageException;
103
104 public com.liferay.portlet.messageboards.model.MBMessage[] findByUuid_PrevAndNext(
105 long messageId, 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 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByCompanyId(
111 long companyId) throws com.liferay.portal.SystemException;
112
113 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByCompanyId(
114 long companyId, int start, int end)
115 throws com.liferay.portal.SystemException;
116
117 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByCompanyId(
118 long companyId, int start, int end,
119 com.liferay.portal.kernel.util.OrderByComparator obc)
120 throws com.liferay.portal.SystemException;
121
122 public com.liferay.portlet.messageboards.model.MBMessage findByCompanyId_First(
123 long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
124 throws com.liferay.portal.SystemException,
125 com.liferay.portlet.messageboards.NoSuchMessageException;
126
127 public com.liferay.portlet.messageboards.model.MBMessage findByCompanyId_Last(
128 long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
129 throws com.liferay.portal.SystemException,
130 com.liferay.portlet.messageboards.NoSuchMessageException;
131
132 public com.liferay.portlet.messageboards.model.MBMessage[] findByCompanyId_PrevAndNext(
133 long messageId, long companyId,
134 com.liferay.portal.kernel.util.OrderByComparator obc)
135 throws com.liferay.portal.SystemException,
136 com.liferay.portlet.messageboards.NoSuchMessageException;
137
138 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByCategoryId(
139 long categoryId) throws com.liferay.portal.SystemException;
140
141 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByCategoryId(
142 long categoryId, int start, int end)
143 throws com.liferay.portal.SystemException;
144
145 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByCategoryId(
146 long categoryId, int start, int end,
147 com.liferay.portal.kernel.util.OrderByComparator obc)
148 throws com.liferay.portal.SystemException;
149
150 public com.liferay.portlet.messageboards.model.MBMessage findByCategoryId_First(
151 long categoryId, com.liferay.portal.kernel.util.OrderByComparator obc)
152 throws com.liferay.portal.SystemException,
153 com.liferay.portlet.messageboards.NoSuchMessageException;
154
155 public com.liferay.portlet.messageboards.model.MBMessage findByCategoryId_Last(
156 long categoryId, com.liferay.portal.kernel.util.OrderByComparator obc)
157 throws com.liferay.portal.SystemException,
158 com.liferay.portlet.messageboards.NoSuchMessageException;
159
160 public com.liferay.portlet.messageboards.model.MBMessage[] findByCategoryId_PrevAndNext(
161 long messageId, long categoryId,
162 com.liferay.portal.kernel.util.OrderByComparator obc)
163 throws com.liferay.portal.SystemException,
164 com.liferay.portlet.messageboards.NoSuchMessageException;
165
166 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByThreadId(
167 long threadId) throws com.liferay.portal.SystemException;
168
169 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByThreadId(
170 long threadId, int start, int end)
171 throws com.liferay.portal.SystemException;
172
173 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByThreadId(
174 long threadId, int start, int end,
175 com.liferay.portal.kernel.util.OrderByComparator obc)
176 throws com.liferay.portal.SystemException;
177
178 public com.liferay.portlet.messageboards.model.MBMessage findByThreadId_First(
179 long threadId, com.liferay.portal.kernel.util.OrderByComparator obc)
180 throws com.liferay.portal.SystemException,
181 com.liferay.portlet.messageboards.NoSuchMessageException;
182
183 public com.liferay.portlet.messageboards.model.MBMessage findByThreadId_Last(
184 long threadId, com.liferay.portal.kernel.util.OrderByComparator obc)
185 throws com.liferay.portal.SystemException,
186 com.liferay.portlet.messageboards.NoSuchMessageException;
187
188 public com.liferay.portlet.messageboards.model.MBMessage[] findByThreadId_PrevAndNext(
189 long messageId, long threadId,
190 com.liferay.portal.kernel.util.OrderByComparator obc)
191 throws com.liferay.portal.SystemException,
192 com.liferay.portlet.messageboards.NoSuchMessageException;
193
194 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByC_T(
195 long categoryId, long threadId)
196 throws com.liferay.portal.SystemException;
197
198 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByC_T(
199 long categoryId, long threadId, int start, int end)
200 throws com.liferay.portal.SystemException;
201
202 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByC_T(
203 long categoryId, long threadId, int start, int end,
204 com.liferay.portal.kernel.util.OrderByComparator obc)
205 throws com.liferay.portal.SystemException;
206
207 public com.liferay.portlet.messageboards.model.MBMessage findByC_T_First(
208 long categoryId, long threadId,
209 com.liferay.portal.kernel.util.OrderByComparator obc)
210 throws com.liferay.portal.SystemException,
211 com.liferay.portlet.messageboards.NoSuchMessageException;
212
213 public com.liferay.portlet.messageboards.model.MBMessage findByC_T_Last(
214 long categoryId, long threadId,
215 com.liferay.portal.kernel.util.OrderByComparator obc)
216 throws com.liferay.portal.SystemException,
217 com.liferay.portlet.messageboards.NoSuchMessageException;
218
219 public com.liferay.portlet.messageboards.model.MBMessage[] findByC_T_PrevAndNext(
220 long messageId, long categoryId, long threadId,
221 com.liferay.portal.kernel.util.OrderByComparator obc)
222 throws com.liferay.portal.SystemException,
223 com.liferay.portlet.messageboards.NoSuchMessageException;
224
225 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByT_P(
226 long threadId, long parentMessageId)
227 throws com.liferay.portal.SystemException;
228
229 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByT_P(
230 long threadId, long parentMessageId, int start, int end)
231 throws com.liferay.portal.SystemException;
232
233 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByT_P(
234 long threadId, long parentMessageId, int start, int end,
235 com.liferay.portal.kernel.util.OrderByComparator obc)
236 throws com.liferay.portal.SystemException;
237
238 public com.liferay.portlet.messageboards.model.MBMessage findByT_P_First(
239 long threadId, long parentMessageId,
240 com.liferay.portal.kernel.util.OrderByComparator obc)
241 throws com.liferay.portal.SystemException,
242 com.liferay.portlet.messageboards.NoSuchMessageException;
243
244 public com.liferay.portlet.messageboards.model.MBMessage findByT_P_Last(
245 long threadId, long parentMessageId,
246 com.liferay.portal.kernel.util.OrderByComparator obc)
247 throws com.liferay.portal.SystemException,
248 com.liferay.portlet.messageboards.NoSuchMessageException;
249
250 public com.liferay.portlet.messageboards.model.MBMessage[] findByT_P_PrevAndNext(
251 long messageId, long threadId, long parentMessageId,
252 com.liferay.portal.kernel.util.OrderByComparator obc)
253 throws com.liferay.portal.SystemException,
254 com.liferay.portlet.messageboards.NoSuchMessageException;
255
256 public java.util.List<Object> findWithDynamicQuery(
257 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
258 throws com.liferay.portal.SystemException;
259
260 public java.util.List<Object> findWithDynamicQuery(
261 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
262 int end) throws com.liferay.portal.SystemException;
263
264 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findAll()
265 throws com.liferay.portal.SystemException;
266
267 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findAll(
268 int start, int end) throws com.liferay.portal.SystemException;
269
270 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findAll(
271 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
272 throws com.liferay.portal.SystemException;
273
274 public void removeByUuid(java.lang.String uuid)
275 throws com.liferay.portal.SystemException;
276
277 public void removeByCompanyId(long companyId)
278 throws com.liferay.portal.SystemException;
279
280 public void removeByCategoryId(long categoryId)
281 throws com.liferay.portal.SystemException;
282
283 public void removeByThreadId(long threadId)
284 throws com.liferay.portal.SystemException;
285
286 public void removeByC_T(long categoryId, long threadId)
287 throws com.liferay.portal.SystemException;
288
289 public void removeByT_P(long threadId, long parentMessageId)
290 throws com.liferay.portal.SystemException;
291
292 public void removeAll() throws com.liferay.portal.SystemException;
293
294 public int countByUuid(java.lang.String uuid)
295 throws com.liferay.portal.SystemException;
296
297 public int countByCompanyId(long companyId)
298 throws com.liferay.portal.SystemException;
299
300 public int countByCategoryId(long categoryId)
301 throws com.liferay.portal.SystemException;
302
303 public int countByThreadId(long threadId)
304 throws com.liferay.portal.SystemException;
305
306 public int countByC_T(long categoryId, long threadId)
307 throws com.liferay.portal.SystemException;
308
309 public int countByT_P(long threadId, long parentMessageId)
310 throws com.liferay.portal.SystemException;
311
312 public int countAll() throws com.liferay.portal.SystemException;
313
314 public void registerListener(
315 com.liferay.portal.model.ModelListener listener);
316
317 public void unregisterListener(
318 com.liferay.portal.model.ModelListener listener);
319 }