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 obc)
132 throws com.liferay.portal.kernel.exception.SystemException {
133 return getPersistence().findByGroupId(groupId, start, end, obc);
134 }
135
136 public static com.liferay.portlet.messageboards.model.MBBan findByGroupId_First(
137 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
138 throws com.liferay.portal.kernel.exception.SystemException,
139 com.liferay.portlet.messageboards.NoSuchBanException {
140 return getPersistence().findByGroupId_First(groupId, obc);
141 }
142
143 public static com.liferay.portlet.messageboards.model.MBBan findByGroupId_Last(
144 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
145 throws com.liferay.portal.kernel.exception.SystemException,
146 com.liferay.portlet.messageboards.NoSuchBanException {
147 return getPersistence().findByGroupId_Last(groupId, obc);
148 }
149
150 public static com.liferay.portlet.messageboards.model.MBBan[] findByGroupId_PrevAndNext(
151 long banId, long groupId,
152 com.liferay.portal.kernel.util.OrderByComparator obc)
153 throws com.liferay.portal.kernel.exception.SystemException,
154 com.liferay.portlet.messageboards.NoSuchBanException {
155 return getPersistence().findByGroupId_PrevAndNext(banId, groupId, obc);
156 }
157
158 public static java.util.List<com.liferay.portlet.messageboards.model.MBBan> findByUserId(
159 long userId) throws com.liferay.portal.kernel.exception.SystemException {
160 return getPersistence().findByUserId(userId);
161 }
162
163 public static java.util.List<com.liferay.portlet.messageboards.model.MBBan> findByUserId(
164 long userId, int start, int end)
165 throws com.liferay.portal.kernel.exception.SystemException {
166 return getPersistence().findByUserId(userId, start, end);
167 }
168
169 public static java.util.List<com.liferay.portlet.messageboards.model.MBBan> findByUserId(
170 long userId, int start, int end,
171 com.liferay.portal.kernel.util.OrderByComparator obc)
172 throws com.liferay.portal.kernel.exception.SystemException {
173 return getPersistence().findByUserId(userId, start, end, obc);
174 }
175
176 public static com.liferay.portlet.messageboards.model.MBBan findByUserId_First(
177 long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
178 throws com.liferay.portal.kernel.exception.SystemException,
179 com.liferay.portlet.messageboards.NoSuchBanException {
180 return getPersistence().findByUserId_First(userId, obc);
181 }
182
183 public static com.liferay.portlet.messageboards.model.MBBan findByUserId_Last(
184 long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
185 throws com.liferay.portal.kernel.exception.SystemException,
186 com.liferay.portlet.messageboards.NoSuchBanException {
187 return getPersistence().findByUserId_Last(userId, obc);
188 }
189
190 public static com.liferay.portlet.messageboards.model.MBBan[] findByUserId_PrevAndNext(
191 long banId, long userId,
192 com.liferay.portal.kernel.util.OrderByComparator obc)
193 throws com.liferay.portal.kernel.exception.SystemException,
194 com.liferay.portlet.messageboards.NoSuchBanException {
195 return getPersistence().findByUserId_PrevAndNext(banId, userId, obc);
196 }
197
198 public static java.util.List<com.liferay.portlet.messageboards.model.MBBan> findByBanUserId(
199 long banUserId)
200 throws com.liferay.portal.kernel.exception.SystemException {
201 return getPersistence().findByBanUserId(banUserId);
202 }
203
204 public static java.util.List<com.liferay.portlet.messageboards.model.MBBan> findByBanUserId(
205 long banUserId, int start, int end)
206 throws com.liferay.portal.kernel.exception.SystemException {
207 return getPersistence().findByBanUserId(banUserId, start, end);
208 }
209
210 public static java.util.List<com.liferay.portlet.messageboards.model.MBBan> findByBanUserId(
211 long banUserId, int start, int end,
212 com.liferay.portal.kernel.util.OrderByComparator obc)
213 throws com.liferay.portal.kernel.exception.SystemException {
214 return getPersistence().findByBanUserId(banUserId, start, end, obc);
215 }
216
217 public static com.liferay.portlet.messageboards.model.MBBan findByBanUserId_First(
218 long banUserId, com.liferay.portal.kernel.util.OrderByComparator obc)
219 throws com.liferay.portal.kernel.exception.SystemException,
220 com.liferay.portlet.messageboards.NoSuchBanException {
221 return getPersistence().findByBanUserId_First(banUserId, obc);
222 }
223
224 public static com.liferay.portlet.messageboards.model.MBBan findByBanUserId_Last(
225 long banUserId, com.liferay.portal.kernel.util.OrderByComparator obc)
226 throws com.liferay.portal.kernel.exception.SystemException,
227 com.liferay.portlet.messageboards.NoSuchBanException {
228 return getPersistence().findByBanUserId_Last(banUserId, obc);
229 }
230
231 public static com.liferay.portlet.messageboards.model.MBBan[] findByBanUserId_PrevAndNext(
232 long banId, long banUserId,
233 com.liferay.portal.kernel.util.OrderByComparator obc)
234 throws com.liferay.portal.kernel.exception.SystemException,
235 com.liferay.portlet.messageboards.NoSuchBanException {
236 return getPersistence()
237 .findByBanUserId_PrevAndNext(banId, banUserId, obc);
238 }
239
240 public static com.liferay.portlet.messageboards.model.MBBan findByG_B(
241 long groupId, long banUserId)
242 throws com.liferay.portal.kernel.exception.SystemException,
243 com.liferay.portlet.messageboards.NoSuchBanException {
244 return getPersistence().findByG_B(groupId, banUserId);
245 }
246
247 public static com.liferay.portlet.messageboards.model.MBBan fetchByG_B(
248 long groupId, long banUserId)
249 throws com.liferay.portal.kernel.exception.SystemException {
250 return getPersistence().fetchByG_B(groupId, banUserId);
251 }
252
253 public static com.liferay.portlet.messageboards.model.MBBan fetchByG_B(
254 long groupId, long banUserId, boolean retrieveFromCache)
255 throws com.liferay.portal.kernel.exception.SystemException {
256 return getPersistence().fetchByG_B(groupId, banUserId, retrieveFromCache);
257 }
258
259 public static java.util.List<com.liferay.portlet.messageboards.model.MBBan> findAll()
260 throws com.liferay.portal.kernel.exception.SystemException {
261 return getPersistence().findAll();
262 }
263
264 public static java.util.List<com.liferay.portlet.messageboards.model.MBBan> findAll(
265 int start, int end)
266 throws com.liferay.portal.kernel.exception.SystemException {
267 return getPersistence().findAll(start, end);
268 }
269
270 public static java.util.List<com.liferay.portlet.messageboards.model.MBBan> findAll(
271 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
272 throws com.liferay.portal.kernel.exception.SystemException {
273 return getPersistence().findAll(start, end, obc);
274 }
275
276 public static void removeByGroupId(long groupId)
277 throws com.liferay.portal.kernel.exception.SystemException {
278 getPersistence().removeByGroupId(groupId);
279 }
280
281 public static void removeByUserId(long userId)
282 throws com.liferay.portal.kernel.exception.SystemException {
283 getPersistence().removeByUserId(userId);
284 }
285
286 public static void removeByBanUserId(long banUserId)
287 throws com.liferay.portal.kernel.exception.SystemException {
288 getPersistence().removeByBanUserId(banUserId);
289 }
290
291 public static void removeByG_B(long groupId, long banUserId)
292 throws com.liferay.portal.kernel.exception.SystemException,
293 com.liferay.portlet.messageboards.NoSuchBanException {
294 getPersistence().removeByG_B(groupId, banUserId);
295 }
296
297 public static void removeAll()
298 throws com.liferay.portal.kernel.exception.SystemException {
299 getPersistence().removeAll();
300 }
301
302 public static int countByGroupId(long groupId)
303 throws com.liferay.portal.kernel.exception.SystemException {
304 return getPersistence().countByGroupId(groupId);
305 }
306
307 public static int countByUserId(long userId)
308 throws com.liferay.portal.kernel.exception.SystemException {
309 return getPersistence().countByUserId(userId);
310 }
311
312 public static int countByBanUserId(long banUserId)
313 throws com.liferay.portal.kernel.exception.SystemException {
314 return getPersistence().countByBanUserId(banUserId);
315 }
316
317 public static int countByG_B(long groupId, long banUserId)
318 throws com.liferay.portal.kernel.exception.SystemException {
319 return getPersistence().countByG_B(groupId, banUserId);
320 }
321
322 public static int countAll()
323 throws com.liferay.portal.kernel.exception.SystemException {
324 return getPersistence().countAll();
325 }
326
327 public static MBBanPersistence getPersistence() {
328 if (_persistence == null) {
329 _persistence = (MBBanPersistence)PortalBeanLocatorUtil.locate(MBBanPersistence.class.getName());
330 }
331
332 return _persistence;
333 }
334
335 public void setPersistence(MBBanPersistence persistence) {
336 _persistence = persistence;
337 }
338
339 private static MBBanPersistence _persistence;
340 }