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