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