1
14
15 package com.liferay.portlet.messageboards.service.persistence;
16
17 import com.liferay.portal.SystemException;
18 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
19 import com.liferay.portal.kernel.dao.orm.DynamicQuery;
20
21 import com.liferay.portlet.messageboards.model.MBBan;
22
23 import java.util.List;
24
25
38 public class MBBanUtil {
39
42 public static void clearCache() {
43 getPersistence().clearCache();
44 }
45
46
49 public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery)
50 throws SystemException {
51 return getPersistence().findWithDynamicQuery(dynamicQuery);
52 }
53
54
57 public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery,
58 int start, int end) throws SystemException {
59 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
60 }
61
62
65 public static MBBan remove(MBBan mbBan) throws SystemException {
66 return getPersistence().remove(mbBan);
67 }
68
69
72 public static MBBan update(MBBan mbBan, boolean merge)
73 throws SystemException {
74 return getPersistence().update(mbBan, merge);
75 }
76
77 public static void cacheResult(
78 com.liferay.portlet.messageboards.model.MBBan mbBan) {
79 getPersistence().cacheResult(mbBan);
80 }
81
82 public static void cacheResult(
83 java.util.List<com.liferay.portlet.messageboards.model.MBBan> mbBans) {
84 getPersistence().cacheResult(mbBans);
85 }
86
87 public static com.liferay.portlet.messageboards.model.MBBan create(
88 long banId) {
89 return getPersistence().create(banId);
90 }
91
92 public static com.liferay.portlet.messageboards.model.MBBan remove(
93 long banId)
94 throws com.liferay.portal.SystemException,
95 com.liferay.portlet.messageboards.NoSuchBanException {
96 return getPersistence().remove(banId);
97 }
98
99
102 public static com.liferay.portlet.messageboards.model.MBBan update(
103 com.liferay.portlet.messageboards.model.MBBan mbBan)
104 throws com.liferay.portal.SystemException {
105 return getPersistence().update(mbBan);
106 }
107
108 public static com.liferay.portlet.messageboards.model.MBBan updateImpl(
109 com.liferay.portlet.messageboards.model.MBBan mbBan, boolean merge)
110 throws com.liferay.portal.SystemException {
111 return getPersistence().updateImpl(mbBan, merge);
112 }
113
114 public static com.liferay.portlet.messageboards.model.MBBan findByPrimaryKey(
115 long banId)
116 throws com.liferay.portal.SystemException,
117 com.liferay.portlet.messageboards.NoSuchBanException {
118 return getPersistence().findByPrimaryKey(banId);
119 }
120
121 public static com.liferay.portlet.messageboards.model.MBBan fetchByPrimaryKey(
122 long banId) throws com.liferay.portal.SystemException {
123 return getPersistence().fetchByPrimaryKey(banId);
124 }
125
126 public static java.util.List<com.liferay.portlet.messageboards.model.MBBan> findByGroupId(
127 long groupId) throws com.liferay.portal.SystemException {
128 return getPersistence().findByGroupId(groupId);
129 }
130
131 public static java.util.List<com.liferay.portlet.messageboards.model.MBBan> findByGroupId(
132 long groupId, int start, int end)
133 throws com.liferay.portal.SystemException {
134 return getPersistence().findByGroupId(groupId, start, end);
135 }
136
137 public static java.util.List<com.liferay.portlet.messageboards.model.MBBan> findByGroupId(
138 long groupId, int start, int end,
139 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
140 throws com.liferay.portal.SystemException {
141 return getPersistence()
142 .findByGroupId(groupId, start, end, orderByComparator);
143 }
144
145 public static com.liferay.portlet.messageboards.model.MBBan findByGroupId_First(
146 long groupId,
147 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
148 throws com.liferay.portal.SystemException,
149 com.liferay.portlet.messageboards.NoSuchBanException {
150 return getPersistence().findByGroupId_First(groupId, orderByComparator);
151 }
152
153 public static com.liferay.portlet.messageboards.model.MBBan findByGroupId_Last(
154 long groupId,
155 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
156 throws com.liferay.portal.SystemException,
157 com.liferay.portlet.messageboards.NoSuchBanException {
158 return getPersistence().findByGroupId_Last(groupId, orderByComparator);
159 }
160
161 public static com.liferay.portlet.messageboards.model.MBBan[] findByGroupId_PrevAndNext(
162 long banId, long groupId,
163 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
164 throws com.liferay.portal.SystemException,
165 com.liferay.portlet.messageboards.NoSuchBanException {
166 return getPersistence()
167 .findByGroupId_PrevAndNext(banId, groupId, orderByComparator);
168 }
169
170 public static java.util.List<com.liferay.portlet.messageboards.model.MBBan> findByUserId(
171 long userId) throws com.liferay.portal.SystemException {
172 return getPersistence().findByUserId(userId);
173 }
174
175 public static java.util.List<com.liferay.portlet.messageboards.model.MBBan> findByUserId(
176 long userId, int start, int end)
177 throws com.liferay.portal.SystemException {
178 return getPersistence().findByUserId(userId, start, end);
179 }
180
181 public static java.util.List<com.liferay.portlet.messageboards.model.MBBan> findByUserId(
182 long userId, int start, int end,
183 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
184 throws com.liferay.portal.SystemException {
185 return getPersistence()
186 .findByUserId(userId, start, end, orderByComparator);
187 }
188
189 public static com.liferay.portlet.messageboards.model.MBBan findByUserId_First(
190 long userId,
191 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
192 throws com.liferay.portal.SystemException,
193 com.liferay.portlet.messageboards.NoSuchBanException {
194 return getPersistence().findByUserId_First(userId, orderByComparator);
195 }
196
197 public static com.liferay.portlet.messageboards.model.MBBan findByUserId_Last(
198 long userId,
199 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
200 throws com.liferay.portal.SystemException,
201 com.liferay.portlet.messageboards.NoSuchBanException {
202 return getPersistence().findByUserId_Last(userId, orderByComparator);
203 }
204
205 public static com.liferay.portlet.messageboards.model.MBBan[] findByUserId_PrevAndNext(
206 long banId, long userId,
207 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
208 throws com.liferay.portal.SystemException,
209 com.liferay.portlet.messageboards.NoSuchBanException {
210 return getPersistence()
211 .findByUserId_PrevAndNext(banId, userId, orderByComparator);
212 }
213
214 public static java.util.List<com.liferay.portlet.messageboards.model.MBBan> findByBanUserId(
215 long banUserId) throws com.liferay.portal.SystemException {
216 return getPersistence().findByBanUserId(banUserId);
217 }
218
219 public static java.util.List<com.liferay.portlet.messageboards.model.MBBan> findByBanUserId(
220 long banUserId, int start, int end)
221 throws com.liferay.portal.SystemException {
222 return getPersistence().findByBanUserId(banUserId, start, end);
223 }
224
225 public static java.util.List<com.liferay.portlet.messageboards.model.MBBan> findByBanUserId(
226 long banUserId, int start, int end,
227 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
228 throws com.liferay.portal.SystemException {
229 return getPersistence()
230 .findByBanUserId(banUserId, start, end, orderByComparator);
231 }
232
233 public static com.liferay.portlet.messageboards.model.MBBan findByBanUserId_First(
234 long banUserId,
235 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
236 throws com.liferay.portal.SystemException,
237 com.liferay.portlet.messageboards.NoSuchBanException {
238 return getPersistence()
239 .findByBanUserId_First(banUserId, orderByComparator);
240 }
241
242 public static com.liferay.portlet.messageboards.model.MBBan findByBanUserId_Last(
243 long banUserId,
244 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
245 throws com.liferay.portal.SystemException,
246 com.liferay.portlet.messageboards.NoSuchBanException {
247 return getPersistence()
248 .findByBanUserId_Last(banUserId, orderByComparator);
249 }
250
251 public static com.liferay.portlet.messageboards.model.MBBan[] findByBanUserId_PrevAndNext(
252 long banId, long banUserId,
253 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
254 throws com.liferay.portal.SystemException,
255 com.liferay.portlet.messageboards.NoSuchBanException {
256 return getPersistence()
257 .findByBanUserId_PrevAndNext(banId, banUserId,
258 orderByComparator);
259 }
260
261 public static com.liferay.portlet.messageboards.model.MBBan findByG_B(
262 long groupId, long banUserId)
263 throws com.liferay.portal.SystemException,
264 com.liferay.portlet.messageboards.NoSuchBanException {
265 return getPersistence().findByG_B(groupId, banUserId);
266 }
267
268 public static com.liferay.portlet.messageboards.model.MBBan fetchByG_B(
269 long groupId, long banUserId) throws com.liferay.portal.SystemException {
270 return getPersistence().fetchByG_B(groupId, banUserId);
271 }
272
273 public static com.liferay.portlet.messageboards.model.MBBan fetchByG_B(
274 long groupId, long banUserId, boolean retrieveFromCache)
275 throws com.liferay.portal.SystemException {
276 return getPersistence().fetchByG_B(groupId, banUserId, retrieveFromCache);
277 }
278
279 public static java.util.List<com.liferay.portlet.messageboards.model.MBBan> findAll()
280 throws com.liferay.portal.SystemException {
281 return getPersistence().findAll();
282 }
283
284 public static java.util.List<com.liferay.portlet.messageboards.model.MBBan> findAll(
285 int start, int end) throws com.liferay.portal.SystemException {
286 return getPersistence().findAll(start, end);
287 }
288
289 public static java.util.List<com.liferay.portlet.messageboards.model.MBBan> findAll(
290 int start, int end,
291 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
292 throws com.liferay.portal.SystemException {
293 return getPersistence().findAll(start, end, orderByComparator);
294 }
295
296 public static void removeByGroupId(long groupId)
297 throws com.liferay.portal.SystemException {
298 getPersistence().removeByGroupId(groupId);
299 }
300
301 public static void removeByUserId(long userId)
302 throws com.liferay.portal.SystemException {
303 getPersistence().removeByUserId(userId);
304 }
305
306 public static void removeByBanUserId(long banUserId)
307 throws com.liferay.portal.SystemException {
308 getPersistence().removeByBanUserId(banUserId);
309 }
310
311 public static void removeByG_B(long groupId, long banUserId)
312 throws com.liferay.portal.SystemException,
313 com.liferay.portlet.messageboards.NoSuchBanException {
314 getPersistence().removeByG_B(groupId, banUserId);
315 }
316
317 public static void removeAll() throws com.liferay.portal.SystemException {
318 getPersistence().removeAll();
319 }
320
321 public static int countByGroupId(long groupId)
322 throws com.liferay.portal.SystemException {
323 return getPersistence().countByGroupId(groupId);
324 }
325
326 public static int countByUserId(long userId)
327 throws com.liferay.portal.SystemException {
328 return getPersistence().countByUserId(userId);
329 }
330
331 public static int countByBanUserId(long banUserId)
332 throws com.liferay.portal.SystemException {
333 return getPersistence().countByBanUserId(banUserId);
334 }
335
336 public static int countByG_B(long groupId, long banUserId)
337 throws com.liferay.portal.SystemException {
338 return getPersistence().countByG_B(groupId, banUserId);
339 }
340
341 public static int countAll() throws com.liferay.portal.SystemException {
342 return getPersistence().countAll();
343 }
344
345 public static MBBanPersistence getPersistence() {
346 if (_persistence == null) {
347 _persistence = (MBBanPersistence)PortalBeanLocatorUtil.locate(MBBanPersistence.class.getName());
348 }
349
350 return _persistence;
351 }
352
353 public void setPersistence(MBBanPersistence persistence) {
354 _persistence = persistence;
355 }
356
357 private static MBBanPersistence _persistence;
358 }