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