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 findByPrimaryKey(
53 long messageId)
54 throws com.liferay.portal.SystemException,
55 com.liferay.portlet.messageboards.NoSuchMessageException;
56
57 public com.liferay.portlet.messageboards.model.MBMessage fetchByPrimaryKey(
58 long messageId) throws com.liferay.portal.SystemException;
59
60 public java.util.List findByCompanyId(long companyId)
61 throws com.liferay.portal.SystemException;
62
63 public java.util.List findByCompanyId(long companyId, int begin, int end)
64 throws com.liferay.portal.SystemException;
65
66 public java.util.List findByCompanyId(long companyId, int begin, int end,
67 com.liferay.portal.kernel.util.OrderByComparator obc)
68 throws com.liferay.portal.SystemException;
69
70 public com.liferay.portlet.messageboards.model.MBMessage findByCompanyId_First(
71 long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
72 throws com.liferay.portal.SystemException,
73 com.liferay.portlet.messageboards.NoSuchMessageException;
74
75 public com.liferay.portlet.messageboards.model.MBMessage findByCompanyId_Last(
76 long companyId, 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[] findByCompanyId_PrevAndNext(
81 long messageId, long companyId,
82 com.liferay.portal.kernel.util.OrderByComparator obc)
83 throws com.liferay.portal.SystemException,
84 com.liferay.portlet.messageboards.NoSuchMessageException;
85
86 public java.util.List findByCategoryId(long categoryId)
87 throws com.liferay.portal.SystemException;
88
89 public java.util.List findByCategoryId(long categoryId, int begin, int end)
90 throws com.liferay.portal.SystemException;
91
92 public java.util.List findByCategoryId(long categoryId, int begin, int end,
93 com.liferay.portal.kernel.util.OrderByComparator obc)
94 throws com.liferay.portal.SystemException;
95
96 public com.liferay.portlet.messageboards.model.MBMessage findByCategoryId_First(
97 long categoryId, com.liferay.portal.kernel.util.OrderByComparator obc)
98 throws com.liferay.portal.SystemException,
99 com.liferay.portlet.messageboards.NoSuchMessageException;
100
101 public com.liferay.portlet.messageboards.model.MBMessage findByCategoryId_Last(
102 long categoryId, com.liferay.portal.kernel.util.OrderByComparator obc)
103 throws com.liferay.portal.SystemException,
104 com.liferay.portlet.messageboards.NoSuchMessageException;
105
106 public com.liferay.portlet.messageboards.model.MBMessage[] findByCategoryId_PrevAndNext(
107 long messageId, long categoryId,
108 com.liferay.portal.kernel.util.OrderByComparator obc)
109 throws com.liferay.portal.SystemException,
110 com.liferay.portlet.messageboards.NoSuchMessageException;
111
112 public java.util.List findByThreadId(long threadId)
113 throws com.liferay.portal.SystemException;
114
115 public java.util.List findByThreadId(long threadId, int begin, int end)
116 throws com.liferay.portal.SystemException;
117
118 public java.util.List findByThreadId(long threadId, int begin, 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 findByThreadId_First(
123 long threadId, 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 findByThreadId_Last(
128 long threadId, 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[] findByThreadId_PrevAndNext(
133 long messageId, long threadId,
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 findByC_T(long categoryId, long threadId)
139 throws com.liferay.portal.SystemException;
140
141 public java.util.List findByC_T(long categoryId, long threadId, int begin,
142 int end) throws com.liferay.portal.SystemException;
143
144 public java.util.List findByC_T(long categoryId, long threadId, int begin,
145 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
146 throws com.liferay.portal.SystemException;
147
148 public com.liferay.portlet.messageboards.model.MBMessage findByC_T_First(
149 long categoryId, long threadId,
150 com.liferay.portal.kernel.util.OrderByComparator obc)
151 throws com.liferay.portal.SystemException,
152 com.liferay.portlet.messageboards.NoSuchMessageException;
153
154 public com.liferay.portlet.messageboards.model.MBMessage findByC_T_Last(
155 long categoryId, long threadId,
156 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[] findByC_T_PrevAndNext(
161 long messageId, long categoryId, long threadId,
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 findByT_P(long threadId, long parentMessageId)
167 throws com.liferay.portal.SystemException;
168
169 public java.util.List findByT_P(long threadId, long parentMessageId,
170 int begin, int end) throws com.liferay.portal.SystemException;
171
172 public java.util.List findByT_P(long threadId, long parentMessageId,
173 int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
174 throws com.liferay.portal.SystemException;
175
176 public com.liferay.portlet.messageboards.model.MBMessage findByT_P_First(
177 long threadId, long parentMessageId,
178 com.liferay.portal.kernel.util.OrderByComparator obc)
179 throws com.liferay.portal.SystemException,
180 com.liferay.portlet.messageboards.NoSuchMessageException;
181
182 public com.liferay.portlet.messageboards.model.MBMessage findByT_P_Last(
183 long threadId, long parentMessageId,
184 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[] findByT_P_PrevAndNext(
189 long messageId, long threadId, long parentMessageId,
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 findWithDynamicQuery(
195 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
196 throws com.liferay.portal.SystemException;
197
198 public java.util.List findWithDynamicQuery(
199 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
200 int begin, int end) throws com.liferay.portal.SystemException;
201
202 public java.util.List findAll() throws com.liferay.portal.SystemException;
203
204 public java.util.List findAll(int begin, int end)
205 throws com.liferay.portal.SystemException;
206
207 public java.util.List findAll(int begin, int end,
208 com.liferay.portal.kernel.util.OrderByComparator obc)
209 throws com.liferay.portal.SystemException;
210
211 public void removeByCompanyId(long companyId)
212 throws com.liferay.portal.SystemException;
213
214 public void removeByCategoryId(long categoryId)
215 throws com.liferay.portal.SystemException;
216
217 public void removeByThreadId(long threadId)
218 throws com.liferay.portal.SystemException;
219
220 public void removeByC_T(long categoryId, long threadId)
221 throws com.liferay.portal.SystemException;
222
223 public void removeByT_P(long threadId, long parentMessageId)
224 throws com.liferay.portal.SystemException;
225
226 public void removeAll() throws com.liferay.portal.SystemException;
227
228 public int countByCompanyId(long companyId)
229 throws com.liferay.portal.SystemException;
230
231 public int countByCategoryId(long categoryId)
232 throws com.liferay.portal.SystemException;
233
234 public int countByThreadId(long threadId)
235 throws com.liferay.portal.SystemException;
236
237 public int countByC_T(long categoryId, long threadId)
238 throws com.liferay.portal.SystemException;
239
240 public int countByT_P(long threadId, long parentMessageId)
241 throws com.liferay.portal.SystemException;
242
243 public int countAll() throws com.liferay.portal.SystemException;
244 }