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