1
14
15 package com.liferay.portlet.messageboards.service.persistence;
16
17 import com.liferay.portal.service.persistence.BasePersistence;
18
19 import com.liferay.portlet.messageboards.model.MBThread;
20
21
34 public interface MBThreadPersistence extends BasePersistence<MBThread> {
35 public void cacheResult(
36 com.liferay.portlet.messageboards.model.MBThread mbThread);
37
38 public void cacheResult(
39 java.util.List<com.liferay.portlet.messageboards.model.MBThread> mbThreads);
40
41 public com.liferay.portlet.messageboards.model.MBThread create(
42 long threadId);
43
44 public com.liferay.portlet.messageboards.model.MBThread remove(
45 long threadId)
46 throws com.liferay.portal.kernel.exception.SystemException,
47 com.liferay.portlet.messageboards.NoSuchThreadException;
48
49 public com.liferay.portlet.messageboards.model.MBThread updateImpl(
50 com.liferay.portlet.messageboards.model.MBThread mbThread, boolean merge)
51 throws com.liferay.portal.kernel.exception.SystemException;
52
53 public com.liferay.portlet.messageboards.model.MBThread findByPrimaryKey(
54 long threadId)
55 throws com.liferay.portal.kernel.exception.SystemException,
56 com.liferay.portlet.messageboards.NoSuchThreadException;
57
58 public com.liferay.portlet.messageboards.model.MBThread fetchByPrimaryKey(
59 long threadId)
60 throws com.liferay.portal.kernel.exception.SystemException;
61
62 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByGroupId(
63 long groupId)
64 throws com.liferay.portal.kernel.exception.SystemException;
65
66 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByGroupId(
67 long groupId, int start, int end)
68 throws com.liferay.portal.kernel.exception.SystemException;
69
70 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByGroupId(
71 long groupId, int start, int end,
72 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
73 throws com.liferay.portal.kernel.exception.SystemException;
74
75 public com.liferay.portlet.messageboards.model.MBThread findByGroupId_First(
76 long groupId,
77 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
78 throws com.liferay.portal.kernel.exception.SystemException,
79 com.liferay.portlet.messageboards.NoSuchThreadException;
80
81 public com.liferay.portlet.messageboards.model.MBThread findByGroupId_Last(
82 long groupId,
83 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
84 throws com.liferay.portal.kernel.exception.SystemException,
85 com.liferay.portlet.messageboards.NoSuchThreadException;
86
87 public com.liferay.portlet.messageboards.model.MBThread[] findByGroupId_PrevAndNext(
88 long threadId, long groupId,
89 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
90 throws com.liferay.portal.kernel.exception.SystemException,
91 com.liferay.portlet.messageboards.NoSuchThreadException;
92
93 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_C(
94 long groupId, long categoryId)
95 throws com.liferay.portal.kernel.exception.SystemException;
96
97 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_C(
98 long groupId, long categoryId, int start, int end)
99 throws com.liferay.portal.kernel.exception.SystemException;
100
101 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_C(
102 long groupId, long categoryId, int start, int end,
103 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
104 throws com.liferay.portal.kernel.exception.SystemException;
105
106 public com.liferay.portlet.messageboards.model.MBThread findByG_C_First(
107 long groupId, long categoryId,
108 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
109 throws com.liferay.portal.kernel.exception.SystemException,
110 com.liferay.portlet.messageboards.NoSuchThreadException;
111
112 public com.liferay.portlet.messageboards.model.MBThread findByG_C_Last(
113 long groupId, long categoryId,
114 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
115 throws com.liferay.portal.kernel.exception.SystemException,
116 com.liferay.portlet.messageboards.NoSuchThreadException;
117
118 public com.liferay.portlet.messageboards.model.MBThread[] findByG_C_PrevAndNext(
119 long threadId, long groupId, long categoryId,
120 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
121 throws com.liferay.portal.kernel.exception.SystemException,
122 com.liferay.portlet.messageboards.NoSuchThreadException;
123
124 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_S(
125 long groupId, int status)
126 throws com.liferay.portal.kernel.exception.SystemException;
127
128 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_S(
129 long groupId, int status, int start, int end)
130 throws com.liferay.portal.kernel.exception.SystemException;
131
132 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_S(
133 long groupId, int status, int start, int end,
134 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
135 throws com.liferay.portal.kernel.exception.SystemException;
136
137 public com.liferay.portlet.messageboards.model.MBThread findByG_S_First(
138 long groupId, int status,
139 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
140 throws com.liferay.portal.kernel.exception.SystemException,
141 com.liferay.portlet.messageboards.NoSuchThreadException;
142
143 public com.liferay.portlet.messageboards.model.MBThread findByG_S_Last(
144 long groupId, int status,
145 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
146 throws com.liferay.portal.kernel.exception.SystemException,
147 com.liferay.portlet.messageboards.NoSuchThreadException;
148
149 public com.liferay.portlet.messageboards.model.MBThread[] findByG_S_PrevAndNext(
150 long threadId, long groupId, int status,
151 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
152 throws com.liferay.portal.kernel.exception.SystemException,
153 com.liferay.portlet.messageboards.NoSuchThreadException;
154
155 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByC_P(
156 long categoryId, double priority)
157 throws com.liferay.portal.kernel.exception.SystemException;
158
159 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByC_P(
160 long categoryId, double priority, int start, int end)
161 throws com.liferay.portal.kernel.exception.SystemException;
162
163 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByC_P(
164 long categoryId, double priority, int start, int end,
165 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
166 throws com.liferay.portal.kernel.exception.SystemException;
167
168 public com.liferay.portlet.messageboards.model.MBThread findByC_P_First(
169 long categoryId, double priority,
170 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
171 throws com.liferay.portal.kernel.exception.SystemException,
172 com.liferay.portlet.messageboards.NoSuchThreadException;
173
174 public com.liferay.portlet.messageboards.model.MBThread findByC_P_Last(
175 long categoryId, double priority,
176 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
177 throws com.liferay.portal.kernel.exception.SystemException,
178 com.liferay.portlet.messageboards.NoSuchThreadException;
179
180 public com.liferay.portlet.messageboards.model.MBThread[] findByC_P_PrevAndNext(
181 long threadId, long categoryId, double priority,
182 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
183 throws com.liferay.portal.kernel.exception.SystemException,
184 com.liferay.portlet.messageboards.NoSuchThreadException;
185
186 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_C_L(
187 long groupId, long categoryId, java.util.Date lastPostDate)
188 throws com.liferay.portal.kernel.exception.SystemException;
189
190 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_C_L(
191 long groupId, long categoryId, java.util.Date lastPostDate, int start,
192 int end) throws com.liferay.portal.kernel.exception.SystemException;
193
194 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_C_L(
195 long groupId, long categoryId, java.util.Date lastPostDate, int start,
196 int end,
197 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
198 throws com.liferay.portal.kernel.exception.SystemException;
199
200 public com.liferay.portlet.messageboards.model.MBThread findByG_C_L_First(
201 long groupId, long categoryId, java.util.Date lastPostDate,
202 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
203 throws com.liferay.portal.kernel.exception.SystemException,
204 com.liferay.portlet.messageboards.NoSuchThreadException;
205
206 public com.liferay.portlet.messageboards.model.MBThread findByG_C_L_Last(
207 long groupId, long categoryId, java.util.Date lastPostDate,
208 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
209 throws com.liferay.portal.kernel.exception.SystemException,
210 com.liferay.portlet.messageboards.NoSuchThreadException;
211
212 public com.liferay.portlet.messageboards.model.MBThread[] findByG_C_L_PrevAndNext(
213 long threadId, long groupId, long categoryId,
214 java.util.Date lastPostDate,
215 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
216 throws com.liferay.portal.kernel.exception.SystemException,
217 com.liferay.portlet.messageboards.NoSuchThreadException;
218
219 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_C_S(
220 long groupId, long categoryId, int status)
221 throws com.liferay.portal.kernel.exception.SystemException;
222
223 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_C_S(
224 long groupId, long categoryId, int status, int start, int end)
225 throws com.liferay.portal.kernel.exception.SystemException;
226
227 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_C_S(
228 long groupId, long categoryId, int status, int start, int end,
229 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
230 throws com.liferay.portal.kernel.exception.SystemException;
231
232 public com.liferay.portlet.messageboards.model.MBThread findByG_C_S_First(
233 long groupId, long categoryId, int status,
234 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
235 throws com.liferay.portal.kernel.exception.SystemException,
236 com.liferay.portlet.messageboards.NoSuchThreadException;
237
238 public com.liferay.portlet.messageboards.model.MBThread findByG_C_S_Last(
239 long groupId, long categoryId, int status,
240 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
241 throws com.liferay.portal.kernel.exception.SystemException,
242 com.liferay.portlet.messageboards.NoSuchThreadException;
243
244 public com.liferay.portlet.messageboards.model.MBThread[] findByG_C_S_PrevAndNext(
245 long threadId, long groupId, long categoryId, int status,
246 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
247 throws com.liferay.portal.kernel.exception.SystemException,
248 com.liferay.portlet.messageboards.NoSuchThreadException;
249
250 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findAll()
251 throws com.liferay.portal.kernel.exception.SystemException;
252
253 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findAll(
254 int start, int end)
255 throws com.liferay.portal.kernel.exception.SystemException;
256
257 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findAll(
258 int start, int end,
259 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
260 throws com.liferay.portal.kernel.exception.SystemException;
261
262 public void removeByGroupId(long groupId)
263 throws com.liferay.portal.kernel.exception.SystemException;
264
265 public void removeByG_C(long groupId, long categoryId)
266 throws com.liferay.portal.kernel.exception.SystemException;
267
268 public void removeByG_S(long groupId, int status)
269 throws com.liferay.portal.kernel.exception.SystemException;
270
271 public void removeByC_P(long categoryId, double priority)
272 throws com.liferay.portal.kernel.exception.SystemException;
273
274 public void removeByG_C_L(long groupId, long categoryId,
275 java.util.Date lastPostDate)
276 throws com.liferay.portal.kernel.exception.SystemException;
277
278 public void removeByG_C_S(long groupId, long categoryId, int status)
279 throws com.liferay.portal.kernel.exception.SystemException;
280
281 public void removeAll()
282 throws com.liferay.portal.kernel.exception.SystemException;
283
284 public int countByGroupId(long groupId)
285 throws com.liferay.portal.kernel.exception.SystemException;
286
287 public int countByG_C(long groupId, long categoryId)
288 throws com.liferay.portal.kernel.exception.SystemException;
289
290 public int countByG_S(long groupId, int status)
291 throws com.liferay.portal.kernel.exception.SystemException;
292
293 public int countByC_P(long categoryId, double priority)
294 throws com.liferay.portal.kernel.exception.SystemException;
295
296 public int countByG_C_L(long groupId, long categoryId,
297 java.util.Date lastPostDate)
298 throws com.liferay.portal.kernel.exception.SystemException;
299
300 public int countByG_C_S(long groupId, long categoryId, int status)
301 throws com.liferay.portal.kernel.exception.SystemException;
302
303 public int countAll()
304 throws com.liferay.portal.kernel.exception.SystemException;
305 }