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 start, int end)
103 throws com.liferay.portal.SystemException {
104 return getPersistence().findByGroupId(groupId, start, end);
105 }
106
107 public static java.util.List<com.liferay.portlet.messageboards.model.MBBan> findByGroupId(
108 long groupId, int start, int end,
109 com.liferay.portal.kernel.util.OrderByComparator obc)
110 throws com.liferay.portal.SystemException {
111 return getPersistence().findByGroupId(groupId, start, 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 start, int end)
143 throws com.liferay.portal.SystemException {
144 return getPersistence().findByUserId(userId, start, end);
145 }
146
147 public static java.util.List<com.liferay.portlet.messageboards.model.MBBan> findByUserId(
148 long userId, int start, int end,
149 com.liferay.portal.kernel.util.OrderByComparator obc)
150 throws com.liferay.portal.SystemException {
151 return getPersistence().findByUserId(userId, start, 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 start, int end)
183 throws com.liferay.portal.SystemException {
184 return getPersistence().findByBanUserId(banUserId, start, end);
185 }
186
187 public static java.util.List<com.liferay.portlet.messageboards.model.MBBan> findByBanUserId(
188 long banUserId, int start, int end,
189 com.liferay.portal.kernel.util.OrderByComparator obc)
190 throws com.liferay.portal.SystemException {
191 return getPersistence().findByBanUserId(banUserId, start, 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<Object> findWithDynamicQuery(
230 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
231 throws com.liferay.portal.SystemException {
232 return getPersistence().findWithDynamicQuery(dynamicQuery);
233 }
234
235 public static java.util.List<Object> findWithDynamicQuery(
236 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
237 int end) throws com.liferay.portal.SystemException {
238 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
239 }
240
241 public static java.util.List<com.liferay.portlet.messageboards.model.MBBan> findAll()
242 throws com.liferay.portal.SystemException {
243 return getPersistence().findAll();
244 }
245
246 public static java.util.List<com.liferay.portlet.messageboards.model.MBBan> findAll(
247 int start, int end) throws com.liferay.portal.SystemException {
248 return getPersistence().findAll(start, end);
249 }
250
251 public static java.util.List<com.liferay.portlet.messageboards.model.MBBan> findAll(
252 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
253 throws com.liferay.portal.SystemException {
254 return getPersistence().findAll(start, end, obc);
255 }
256
257 public static void removeByGroupId(long groupId)
258 throws com.liferay.portal.SystemException {
259 getPersistence().removeByGroupId(groupId);
260 }
261
262 public static void removeByUserId(long userId)
263 throws com.liferay.portal.SystemException {
264 getPersistence().removeByUserId(userId);
265 }
266
267 public static void removeByBanUserId(long banUserId)
268 throws com.liferay.portal.SystemException {
269 getPersistence().removeByBanUserId(banUserId);
270 }
271
272 public static void removeByG_B(long groupId, long banUserId)
273 throws com.liferay.portal.SystemException,
274 com.liferay.portlet.messageboards.NoSuchBanException {
275 getPersistence().removeByG_B(groupId, banUserId);
276 }
277
278 public static void removeAll() throws com.liferay.portal.SystemException {
279 getPersistence().removeAll();
280 }
281
282 public static int countByGroupId(long groupId)
283 throws com.liferay.portal.SystemException {
284 return getPersistence().countByGroupId(groupId);
285 }
286
287 public static int countByUserId(long userId)
288 throws com.liferay.portal.SystemException {
289 return getPersistence().countByUserId(userId);
290 }
291
292 public static int countByBanUserId(long banUserId)
293 throws com.liferay.portal.SystemException {
294 return getPersistence().countByBanUserId(banUserId);
295 }
296
297 public static int countByG_B(long groupId, long banUserId)
298 throws com.liferay.portal.SystemException {
299 return getPersistence().countByG_B(groupId, banUserId);
300 }
301
302 public static int countAll() throws com.liferay.portal.SystemException {
303 return getPersistence().countAll();
304 }
305
306 public static MBBanPersistence getPersistence() {
307 return _persistence;
308 }
309
310 public void setPersistence(MBBanPersistence persistence) {
311 _persistence = persistence;
312 }
313
314 private static MBBanPersistence _persistence;
315 }