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 public com.liferay.portlet.messageboards.model.MBMessage update(
45 com.liferay.portlet.messageboards.model.MBMessage mbMessage)
46 throws com.liferay.portal.SystemException;
47
48 public com.liferay.portlet.messageboards.model.MBMessage update(
49 com.liferay.portlet.messageboards.model.MBMessage mbMessage,
50 boolean merge) throws com.liferay.portal.SystemException;
51
52 public com.liferay.portlet.messageboards.model.MBMessage updateImpl(
53 com.liferay.portlet.messageboards.model.MBMessage mbMessage,
54 boolean merge) throws com.liferay.portal.SystemException;
55
56 public com.liferay.portlet.messageboards.model.MBMessage findByPrimaryKey(
57 long messageId)
58 throws com.liferay.portal.SystemException,
59 com.liferay.portlet.messageboards.NoSuchMessageException;
60
61 public com.liferay.portlet.messageboards.model.MBMessage fetchByPrimaryKey(
62 long messageId) throws com.liferay.portal.SystemException;
63
64 public java.util.List findByUuid(java.lang.String uuid)
65 throws com.liferay.portal.SystemException;
66
67 public java.util.List findByUuid(java.lang.String uuid, int begin, int end)
68 throws com.liferay.portal.SystemException;
69
70 public java.util.List findByUuid(java.lang.String uuid, int begin, int end,
71 com.liferay.portal.kernel.util.OrderByComparator obc)
72 throws com.liferay.portal.SystemException;
73
74 public com.liferay.portlet.messageboards.model.MBMessage findByUuid_First(
75 java.lang.String uuid,
76 com.liferay.portal.kernel.util.OrderByComparator obc)
77 throws com.liferay.portal.SystemException,
78 com.liferay.portlet.messageboards.NoSuchMessageException;
79
80 public com.liferay.portlet.messageboards.model.MBMessage findByUuid_Last(
81 java.lang.String uuid,
82 com.liferay.portal.kernel.util.OrderByComparator obc)
83 throws com.liferay.portal.SystemException,
84 com.liferay.portlet.messageboards.NoSuchMessageException;
85
86 public com.liferay.portlet.messageboards.model.MBMessage[] findByUuid_PrevAndNext(
87 long messageId, java.lang.String uuid,
88 com.liferay.portal.kernel.util.OrderByComparator obc)
89 throws com.liferay.portal.SystemException,
90 com.liferay.portlet.messageboards.NoSuchMessageException;
91
92 public java.util.List findByCompanyId(long companyId)
93 throws com.liferay.portal.SystemException;
94
95 public java.util.List findByCompanyId(long companyId, int begin, int end)
96 throws com.liferay.portal.SystemException;
97
98 public java.util.List findByCompanyId(long companyId, int begin, int end,
99 com.liferay.portal.kernel.util.OrderByComparator obc)
100 throws com.liferay.portal.SystemException;
101
102 public com.liferay.portlet.messageboards.model.MBMessage findByCompanyId_First(
103 long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
104 throws com.liferay.portal.SystemException,
105 com.liferay.portlet.messageboards.NoSuchMessageException;
106
107 public com.liferay.portlet.messageboards.model.MBMessage findByCompanyId_Last(
108 long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
109 throws com.liferay.portal.SystemException,
110 com.liferay.portlet.messageboards.NoSuchMessageException;
111
112 public com.liferay.portlet.messageboards.model.MBMessage[] findByCompanyId_PrevAndNext(
113 long messageId, long companyId,
114 com.liferay.portal.kernel.util.OrderByComparator obc)
115 throws com.liferay.portal.SystemException,
116 com.liferay.portlet.messageboards.NoSuchMessageException;
117
118 public java.util.List findByCategoryId(long categoryId)
119 throws com.liferay.portal.SystemException;
120
121 public java.util.List findByCategoryId(long categoryId, int begin, int end)
122 throws com.liferay.portal.SystemException;
123
124 public java.util.List findByCategoryId(long categoryId, int begin, int end,
125 com.liferay.portal.kernel.util.OrderByComparator obc)
126 throws com.liferay.portal.SystemException;
127
128 public com.liferay.portlet.messageboards.model.MBMessage findByCategoryId_First(
129 long categoryId, com.liferay.portal.kernel.util.OrderByComparator obc)
130 throws com.liferay.portal.SystemException,
131 com.liferay.portlet.messageboards.NoSuchMessageException;
132
133 public com.liferay.portlet.messageboards.model.MBMessage findByCategoryId_Last(
134 long categoryId, com.liferay.portal.kernel.util.OrderByComparator obc)
135 throws com.liferay.portal.SystemException,
136 com.liferay.portlet.messageboards.NoSuchMessageException;
137
138 public com.liferay.portlet.messageboards.model.MBMessage[] findByCategoryId_PrevAndNext(
139 long messageId, long categoryId,
140 com.liferay.portal.kernel.util.OrderByComparator obc)
141 throws com.liferay.portal.SystemException,
142 com.liferay.portlet.messageboards.NoSuchMessageException;
143
144 public java.util.List findByThreadId(long threadId)
145 throws com.liferay.portal.SystemException;
146
147 public java.util.List findByThreadId(long threadId, int begin, int end)
148 throws com.liferay.portal.SystemException;
149
150 public java.util.List findByThreadId(long threadId, int begin, int end,
151 com.liferay.portal.kernel.util.OrderByComparator obc)
152 throws com.liferay.portal.SystemException;
153
154 public com.liferay.portlet.messageboards.model.MBMessage findByThreadId_First(
155 long threadId, com.liferay.portal.kernel.util.OrderByComparator obc)
156 throws com.liferay.portal.SystemException,
157 com.liferay.portlet.messageboards.NoSuchMessageException;
158
159 public com.liferay.portlet.messageboards.model.MBMessage findByThreadId_Last(
160 long threadId, com.liferay.portal.kernel.util.OrderByComparator obc)
161 throws com.liferay.portal.SystemException,
162 com.liferay.portlet.messageboards.NoSuchMessageException;
163
164 public com.liferay.portlet.messageboards.model.MBMessage[] findByThreadId_PrevAndNext(
165 long messageId, long threadId,
166 com.liferay.portal.kernel.util.OrderByComparator obc)
167 throws com.liferay.portal.SystemException,
168 com.liferay.portlet.messageboards.NoSuchMessageException;
169
170 public java.util.List findByC_T(long categoryId, long threadId)
171 throws com.liferay.portal.SystemException;
172
173 public java.util.List findByC_T(long categoryId, long threadId, int begin,
174 int end) throws com.liferay.portal.SystemException;
175
176 public java.util.List findByC_T(long categoryId, long threadId, int begin,
177 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
178 throws com.liferay.portal.SystemException;
179
180 public com.liferay.portlet.messageboards.model.MBMessage findByC_T_First(
181 long categoryId, long threadId,
182 com.liferay.portal.kernel.util.OrderByComparator obc)
183 throws com.liferay.portal.SystemException,
184 com.liferay.portlet.messageboards.NoSuchMessageException;
185
186 public com.liferay.portlet.messageboards.model.MBMessage findByC_T_Last(
187 long categoryId, long threadId,
188 com.liferay.portal.kernel.util.OrderByComparator obc)
189 throws com.liferay.portal.SystemException,
190 com.liferay.portlet.messageboards.NoSuchMessageException;
191
192 public com.liferay.portlet.messageboards.model.MBMessage[] findByC_T_PrevAndNext(
193 long messageId, long categoryId, long threadId,
194 com.liferay.portal.kernel.util.OrderByComparator obc)
195 throws com.liferay.portal.SystemException,
196 com.liferay.portlet.messageboards.NoSuchMessageException;
197
198 public java.util.List findByT_P(long threadId, long parentMessageId)
199 throws com.liferay.portal.SystemException;
200
201 public java.util.List findByT_P(long threadId, long parentMessageId,
202 int begin, int end) throws com.liferay.portal.SystemException;
203
204 public java.util.List findByT_P(long threadId, long parentMessageId,
205 int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
206 throws com.liferay.portal.SystemException;
207
208 public com.liferay.portlet.messageboards.model.MBMessage findByT_P_First(
209 long threadId, long parentMessageId,
210 com.liferay.portal.kernel.util.OrderByComparator obc)
211 throws com.liferay.portal.SystemException,
212 com.liferay.portlet.messageboards.NoSuchMessageException;
213
214 public com.liferay.portlet.messageboards.model.MBMessage findByT_P_Last(
215 long threadId, long parentMessageId,
216 com.liferay.portal.kernel.util.OrderByComparator obc)
217 throws com.liferay.portal.SystemException,
218 com.liferay.portlet.messageboards.NoSuchMessageException;
219
220 public com.liferay.portlet.messageboards.model.MBMessage[] findByT_P_PrevAndNext(
221 long messageId, long threadId, long parentMessageId,
222 com.liferay.portal.kernel.util.OrderByComparator obc)
223 throws com.liferay.portal.SystemException,
224 com.liferay.portlet.messageboards.NoSuchMessageException;
225
226 public java.util.List findWithDynamicQuery(
227 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
228 throws com.liferay.portal.SystemException;
229
230 public java.util.List findWithDynamicQuery(
231 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
232 int begin, int end) throws com.liferay.portal.SystemException;
233
234 public java.util.List findAll() throws com.liferay.portal.SystemException;
235
236 public java.util.List findAll(int begin, int end)
237 throws com.liferay.portal.SystemException;
238
239 public java.util.List findAll(int begin, int end,
240 com.liferay.portal.kernel.util.OrderByComparator obc)
241 throws com.liferay.portal.SystemException;
242
243 public void removeByUuid(java.lang.String uuid)
244 throws com.liferay.portal.SystemException;
245
246 public void removeByCompanyId(long companyId)
247 throws com.liferay.portal.SystemException;
248
249 public void removeByCategoryId(long categoryId)
250 throws com.liferay.portal.SystemException;
251
252 public void removeByThreadId(long threadId)
253 throws com.liferay.portal.SystemException;
254
255 public void removeByC_T(long categoryId, long threadId)
256 throws com.liferay.portal.SystemException;
257
258 public void removeByT_P(long threadId, long parentMessageId)
259 throws com.liferay.portal.SystemException;
260
261 public void removeAll() throws com.liferay.portal.SystemException;
262
263 public int countByUuid(java.lang.String uuid)
264 throws com.liferay.portal.SystemException;
265
266 public int countByCompanyId(long companyId)
267 throws com.liferay.portal.SystemException;
268
269 public int countByCategoryId(long categoryId)
270 throws com.liferay.portal.SystemException;
271
272 public int countByThreadId(long threadId)
273 throws com.liferay.portal.SystemException;
274
275 public int countByC_T(long categoryId, long threadId)
276 throws com.liferay.portal.SystemException;
277
278 public int countByT_P(long threadId, long parentMessageId)
279 throws com.liferay.portal.SystemException;
280
281 public int countAll() throws com.liferay.portal.SystemException;
282 }