1
22
23 package com.liferay.portlet.messageboards.service.persistence;
24
25
31 public class MBThreadUtil {
32 public static void cacheResult(
33 com.liferay.portlet.messageboards.model.MBThread mbThread) {
34 getPersistence().cacheResult(mbThread);
35 }
36
37 public static void cacheResult(
38 java.util.List<com.liferay.portlet.messageboards.model.MBThread> mbThreads) {
39 getPersistence().cacheResult(mbThreads);
40 }
41
42 public static void clearCache() {
43 getPersistence().clearCache();
44 }
45
46 public static com.liferay.portlet.messageboards.model.MBThread create(
47 long threadId) {
48 return getPersistence().create(threadId);
49 }
50
51 public static com.liferay.portlet.messageboards.model.MBThread remove(
52 long threadId)
53 throws com.liferay.portal.SystemException,
54 com.liferay.portlet.messageboards.NoSuchThreadException {
55 return getPersistence().remove(threadId);
56 }
57
58 public static com.liferay.portlet.messageboards.model.MBThread remove(
59 com.liferay.portlet.messageboards.model.MBThread mbThread)
60 throws com.liferay.portal.SystemException {
61 return getPersistence().remove(mbThread);
62 }
63
64
67 public static com.liferay.portlet.messageboards.model.MBThread update(
68 com.liferay.portlet.messageboards.model.MBThread mbThread)
69 throws com.liferay.portal.SystemException {
70 return getPersistence().update(mbThread);
71 }
72
73
86 public static com.liferay.portlet.messageboards.model.MBThread update(
87 com.liferay.portlet.messageboards.model.MBThread mbThread, boolean merge)
88 throws com.liferay.portal.SystemException {
89 return getPersistence().update(mbThread, merge);
90 }
91
92 public static com.liferay.portlet.messageboards.model.MBThread updateImpl(
93 com.liferay.portlet.messageboards.model.MBThread mbThread, boolean merge)
94 throws com.liferay.portal.SystemException {
95 return getPersistence().updateImpl(mbThread, merge);
96 }
97
98 public static com.liferay.portlet.messageboards.model.MBThread findByPrimaryKey(
99 long threadId)
100 throws com.liferay.portal.SystemException,
101 com.liferay.portlet.messageboards.NoSuchThreadException {
102 return getPersistence().findByPrimaryKey(threadId);
103 }
104
105 public static com.liferay.portlet.messageboards.model.MBThread fetchByPrimaryKey(
106 long threadId) throws com.liferay.portal.SystemException {
107 return getPersistence().fetchByPrimaryKey(threadId);
108 }
109
110 public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByGroupId(
111 long groupId) throws com.liferay.portal.SystemException {
112 return getPersistence().findByGroupId(groupId);
113 }
114
115 public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByGroupId(
116 long groupId, int start, int end)
117 throws com.liferay.portal.SystemException {
118 return getPersistence().findByGroupId(groupId, start, end);
119 }
120
121 public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByGroupId(
122 long groupId, int start, int end,
123 com.liferay.portal.kernel.util.OrderByComparator obc)
124 throws com.liferay.portal.SystemException {
125 return getPersistence().findByGroupId(groupId, start, end, obc);
126 }
127
128 public static com.liferay.portlet.messageboards.model.MBThread findByGroupId_First(
129 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
130 throws com.liferay.portal.SystemException,
131 com.liferay.portlet.messageboards.NoSuchThreadException {
132 return getPersistence().findByGroupId_First(groupId, obc);
133 }
134
135 public static com.liferay.portlet.messageboards.model.MBThread findByGroupId_Last(
136 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
137 throws com.liferay.portal.SystemException,
138 com.liferay.portlet.messageboards.NoSuchThreadException {
139 return getPersistence().findByGroupId_Last(groupId, obc);
140 }
141
142 public static com.liferay.portlet.messageboards.model.MBThread[] findByGroupId_PrevAndNext(
143 long threadId, long groupId,
144 com.liferay.portal.kernel.util.OrderByComparator obc)
145 throws com.liferay.portal.SystemException,
146 com.liferay.portlet.messageboards.NoSuchThreadException {
147 return getPersistence().findByGroupId_PrevAndNext(threadId, groupId, obc);
148 }
149
150 public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByCategoryId(
151 long categoryId) throws com.liferay.portal.SystemException {
152 return getPersistence().findByCategoryId(categoryId);
153 }
154
155 public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByCategoryId(
156 long categoryId, int start, int end)
157 throws com.liferay.portal.SystemException {
158 return getPersistence().findByCategoryId(categoryId, start, end);
159 }
160
161 public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByCategoryId(
162 long categoryId, int start, int end,
163 com.liferay.portal.kernel.util.OrderByComparator obc)
164 throws com.liferay.portal.SystemException {
165 return getPersistence().findByCategoryId(categoryId, start, end, obc);
166 }
167
168 public static com.liferay.portlet.messageboards.model.MBThread findByCategoryId_First(
169 long categoryId, com.liferay.portal.kernel.util.OrderByComparator obc)
170 throws com.liferay.portal.SystemException,
171 com.liferay.portlet.messageboards.NoSuchThreadException {
172 return getPersistence().findByCategoryId_First(categoryId, obc);
173 }
174
175 public static com.liferay.portlet.messageboards.model.MBThread findByCategoryId_Last(
176 long categoryId, com.liferay.portal.kernel.util.OrderByComparator obc)
177 throws com.liferay.portal.SystemException,
178 com.liferay.portlet.messageboards.NoSuchThreadException {
179 return getPersistence().findByCategoryId_Last(categoryId, obc);
180 }
181
182 public static com.liferay.portlet.messageboards.model.MBThread[] findByCategoryId_PrevAndNext(
183 long threadId, long categoryId,
184 com.liferay.portal.kernel.util.OrderByComparator obc)
185 throws com.liferay.portal.SystemException,
186 com.liferay.portlet.messageboards.NoSuchThreadException {
187 return getPersistence()
188 .findByCategoryId_PrevAndNext(threadId, categoryId, obc);
189 }
190
191 public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByC_L(
192 long categoryId, java.util.Date lastPostDate)
193 throws com.liferay.portal.SystemException {
194 return getPersistence().findByC_L(categoryId, lastPostDate);
195 }
196
197 public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByC_L(
198 long categoryId, java.util.Date lastPostDate, int start, int end)
199 throws com.liferay.portal.SystemException {
200 return getPersistence().findByC_L(categoryId, lastPostDate, start, end);
201 }
202
203 public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByC_L(
204 long categoryId, java.util.Date lastPostDate, int start, int end,
205 com.liferay.portal.kernel.util.OrderByComparator obc)
206 throws com.liferay.portal.SystemException {
207 return getPersistence()
208 .findByC_L(categoryId, lastPostDate, start, end, obc);
209 }
210
211 public static com.liferay.portlet.messageboards.model.MBThread findByC_L_First(
212 long categoryId, java.util.Date lastPostDate,
213 com.liferay.portal.kernel.util.OrderByComparator obc)
214 throws com.liferay.portal.SystemException,
215 com.liferay.portlet.messageboards.NoSuchThreadException {
216 return getPersistence().findByC_L_First(categoryId, lastPostDate, obc);
217 }
218
219 public static com.liferay.portlet.messageboards.model.MBThread findByC_L_Last(
220 long categoryId, java.util.Date lastPostDate,
221 com.liferay.portal.kernel.util.OrderByComparator obc)
222 throws com.liferay.portal.SystemException,
223 com.liferay.portlet.messageboards.NoSuchThreadException {
224 return getPersistence().findByC_L_Last(categoryId, lastPostDate, obc);
225 }
226
227 public static com.liferay.portlet.messageboards.model.MBThread[] findByC_L_PrevAndNext(
228 long threadId, long categoryId, java.util.Date lastPostDate,
229 com.liferay.portal.kernel.util.OrderByComparator obc)
230 throws com.liferay.portal.SystemException,
231 com.liferay.portlet.messageboards.NoSuchThreadException {
232 return getPersistence()
233 .findByC_L_PrevAndNext(threadId, categoryId, lastPostDate,
234 obc);
235 }
236
237 public static java.util.List<Object> findWithDynamicQuery(
238 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
239 throws com.liferay.portal.SystemException {
240 return getPersistence().findWithDynamicQuery(dynamicQuery);
241 }
242
243 public static java.util.List<Object> findWithDynamicQuery(
244 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
245 int end) throws com.liferay.portal.SystemException {
246 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
247 }
248
249 public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> findAll()
250 throws com.liferay.portal.SystemException {
251 return getPersistence().findAll();
252 }
253
254 public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> findAll(
255 int start, int end) throws com.liferay.portal.SystemException {
256 return getPersistence().findAll(start, end);
257 }
258
259 public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> findAll(
260 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
261 throws com.liferay.portal.SystemException {
262 return getPersistence().findAll(start, end, obc);
263 }
264
265 public static void removeByGroupId(long groupId)
266 throws com.liferay.portal.SystemException {
267 getPersistence().removeByGroupId(groupId);
268 }
269
270 public static void removeByCategoryId(long categoryId)
271 throws com.liferay.portal.SystemException {
272 getPersistence().removeByCategoryId(categoryId);
273 }
274
275 public static void removeByC_L(long categoryId, java.util.Date lastPostDate)
276 throws com.liferay.portal.SystemException {
277 getPersistence().removeByC_L(categoryId, lastPostDate);
278 }
279
280 public static void removeAll() throws com.liferay.portal.SystemException {
281 getPersistence().removeAll();
282 }
283
284 public static int countByGroupId(long groupId)
285 throws com.liferay.portal.SystemException {
286 return getPersistence().countByGroupId(groupId);
287 }
288
289 public static int countByCategoryId(long categoryId)
290 throws com.liferay.portal.SystemException {
291 return getPersistence().countByCategoryId(categoryId);
292 }
293
294 public static int countByC_L(long categoryId, java.util.Date lastPostDate)
295 throws com.liferay.portal.SystemException {
296 return getPersistence().countByC_L(categoryId, lastPostDate);
297 }
298
299 public static int countAll() throws com.liferay.portal.SystemException {
300 return getPersistence().countAll();
301 }
302
303 public static MBThreadPersistence getPersistence() {
304 return _persistence;
305 }
306
307 public void setPersistence(MBThreadPersistence persistence) {
308 _persistence = persistence;
309 }
310
311 private static MBThreadPersistence _persistence;
312 }