001    /**
002     * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.messageboards.service.persistence;
016    
017    import com.liferay.portal.kernel.exception.SystemException;
018    import com.liferay.portal.service.persistence.BasePersistence;
019    
020    import com.liferay.portlet.messageboards.model.MBBan;
021    
022    /**
023     * The persistence interface for the message boards ban service.
024     *
025     * <p>
026     * Caching information and settings can be found in <code>portal.properties</code>
027     * </p>
028     *
029     * @author Brian Wing Shun Chan
030     * @see MBBanPersistenceImpl
031     * @see MBBanUtil
032     * @generated
033     */
034    public interface MBBanPersistence extends BasePersistence<MBBan> {
035            /*
036             * NOTE FOR DEVELOPERS:
037             *
038             * Never modify or reference this interface directly. Always use {@link MBBanUtil} to access the message boards ban persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.
039             */
040    
041            /**
042            * Caches the message boards ban in the entity cache if it is enabled.
043            *
044            * @param mbBan the message boards ban
045            */
046            public void cacheResult(com.liferay.portlet.messageboards.model.MBBan mbBan);
047    
048            /**
049            * Caches the message boards bans in the entity cache if it is enabled.
050            *
051            * @param mbBans the message boards bans
052            */
053            public void cacheResult(
054                    java.util.List<com.liferay.portlet.messageboards.model.MBBan> mbBans);
055    
056            /**
057            * Creates a new message boards ban with the primary key. Does not add the message boards ban to the database.
058            *
059            * @param banId the primary key for the new message boards ban
060            * @return the new message boards ban
061            */
062            public com.liferay.portlet.messageboards.model.MBBan create(long banId);
063    
064            /**
065            * Removes the message boards ban with the primary key from the database. Also notifies the appropriate model listeners.
066            *
067            * @param banId the primary key of the message boards ban
068            * @return the message boards ban that was removed
069            * @throws com.liferay.portlet.messageboards.NoSuchBanException if a message boards ban with the primary key could not be found
070            * @throws SystemException if a system exception occurred
071            */
072            public com.liferay.portlet.messageboards.model.MBBan remove(long banId)
073                    throws com.liferay.portal.kernel.exception.SystemException,
074                            com.liferay.portlet.messageboards.NoSuchBanException;
075    
076            public com.liferay.portlet.messageboards.model.MBBan updateImpl(
077                    com.liferay.portlet.messageboards.model.MBBan mbBan, boolean merge)
078                    throws com.liferay.portal.kernel.exception.SystemException;
079    
080            /**
081            * Returns the message boards ban with the primary key or throws a {@link com.liferay.portlet.messageboards.NoSuchBanException} if it could not be found.
082            *
083            * @param banId the primary key of the message boards ban
084            * @return the message boards ban
085            * @throws com.liferay.portlet.messageboards.NoSuchBanException if a message boards ban with the primary key could not be found
086            * @throws SystemException if a system exception occurred
087            */
088            public com.liferay.portlet.messageboards.model.MBBan findByPrimaryKey(
089                    long banId)
090                    throws com.liferay.portal.kernel.exception.SystemException,
091                            com.liferay.portlet.messageboards.NoSuchBanException;
092    
093            /**
094            * Returns the message boards ban with the primary key or returns <code>null</code> if it could not be found.
095            *
096            * @param banId the primary key of the message boards ban
097            * @return the message boards ban, or <code>null</code> if a message boards ban with the primary key could not be found
098            * @throws SystemException if a system exception occurred
099            */
100            public com.liferay.portlet.messageboards.model.MBBan fetchByPrimaryKey(
101                    long banId) throws com.liferay.portal.kernel.exception.SystemException;
102    
103            /**
104            * Returns all the message boards bans where groupId = &#63;.
105            *
106            * @param groupId the group ID
107            * @return the matching message boards bans
108            * @throws SystemException if a system exception occurred
109            */
110            public java.util.List<com.liferay.portlet.messageboards.model.MBBan> findByGroupId(
111                    long groupId)
112                    throws com.liferay.portal.kernel.exception.SystemException;
113    
114            /**
115            * Returns a range of all the message boards bans where groupId = &#63;.
116            *
117            * <p>
118            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
119            * </p>
120            *
121            * @param groupId the group ID
122            * @param start the lower bound of the range of message boards bans
123            * @param end the upper bound of the range of message boards bans (not inclusive)
124            * @return the range of matching message boards bans
125            * @throws SystemException if a system exception occurred
126            */
127            public java.util.List<com.liferay.portlet.messageboards.model.MBBan> findByGroupId(
128                    long groupId, int start, int end)
129                    throws com.liferay.portal.kernel.exception.SystemException;
130    
131            /**
132            * Returns an ordered range of all the message boards bans where groupId = &#63;.
133            *
134            * <p>
135            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
136            * </p>
137            *
138            * @param groupId the group ID
139            * @param start the lower bound of the range of message boards bans
140            * @param end the upper bound of the range of message boards bans (not inclusive)
141            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
142            * @return the ordered range of matching message boards bans
143            * @throws SystemException if a system exception occurred
144            */
145            public java.util.List<com.liferay.portlet.messageboards.model.MBBan> findByGroupId(
146                    long groupId, int start, int end,
147                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
148                    throws com.liferay.portal.kernel.exception.SystemException;
149    
150            /**
151            * Returns the first message boards ban in the ordered set where groupId = &#63;.
152            *
153            * <p>
154            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
155            * </p>
156            *
157            * @param groupId the group ID
158            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
159            * @return the first matching message boards ban
160            * @throws com.liferay.portlet.messageboards.NoSuchBanException if a matching message boards ban could not be found
161            * @throws SystemException if a system exception occurred
162            */
163            public com.liferay.portlet.messageboards.model.MBBan findByGroupId_First(
164                    long groupId,
165                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
166                    throws com.liferay.portal.kernel.exception.SystemException,
167                            com.liferay.portlet.messageboards.NoSuchBanException;
168    
169            /**
170            * Returns the last message boards ban in the ordered set where groupId = &#63;.
171            *
172            * <p>
173            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
174            * </p>
175            *
176            * @param groupId the group ID
177            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
178            * @return the last matching message boards ban
179            * @throws com.liferay.portlet.messageboards.NoSuchBanException if a matching message boards ban could not be found
180            * @throws SystemException if a system exception occurred
181            */
182            public com.liferay.portlet.messageboards.model.MBBan findByGroupId_Last(
183                    long groupId,
184                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
185                    throws com.liferay.portal.kernel.exception.SystemException,
186                            com.liferay.portlet.messageboards.NoSuchBanException;
187    
188            /**
189            * Returns the message boards bans before and after the current message boards ban in the ordered set where groupId = &#63;.
190            *
191            * <p>
192            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
193            * </p>
194            *
195            * @param banId the primary key of the current message boards ban
196            * @param groupId the group ID
197            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
198            * @return the previous, current, and next message boards ban
199            * @throws com.liferay.portlet.messageboards.NoSuchBanException if a message boards ban with the primary key could not be found
200            * @throws SystemException if a system exception occurred
201            */
202            public com.liferay.portlet.messageboards.model.MBBan[] findByGroupId_PrevAndNext(
203                    long banId, long groupId,
204                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
205                    throws com.liferay.portal.kernel.exception.SystemException,
206                            com.liferay.portlet.messageboards.NoSuchBanException;
207    
208            /**
209            * Returns all the message boards bans where userId = &#63;.
210            *
211            * @param userId the user ID
212            * @return the matching message boards bans
213            * @throws SystemException if a system exception occurred
214            */
215            public java.util.List<com.liferay.portlet.messageboards.model.MBBan> findByUserId(
216                    long userId) throws com.liferay.portal.kernel.exception.SystemException;
217    
218            /**
219            * Returns a range of all the message boards bans where userId = &#63;.
220            *
221            * <p>
222            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
223            * </p>
224            *
225            * @param userId the user ID
226            * @param start the lower bound of the range of message boards bans
227            * @param end the upper bound of the range of message boards bans (not inclusive)
228            * @return the range of matching message boards bans
229            * @throws SystemException if a system exception occurred
230            */
231            public java.util.List<com.liferay.portlet.messageboards.model.MBBan> findByUserId(
232                    long userId, int start, int end)
233                    throws com.liferay.portal.kernel.exception.SystemException;
234    
235            /**
236            * Returns an ordered range of all the message boards bans where userId = &#63;.
237            *
238            * <p>
239            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
240            * </p>
241            *
242            * @param userId the user ID
243            * @param start the lower bound of the range of message boards bans
244            * @param end the upper bound of the range of message boards bans (not inclusive)
245            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
246            * @return the ordered range of matching message boards bans
247            * @throws SystemException if a system exception occurred
248            */
249            public java.util.List<com.liferay.portlet.messageboards.model.MBBan> findByUserId(
250                    long userId, int start, int end,
251                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
252                    throws com.liferay.portal.kernel.exception.SystemException;
253    
254            /**
255            * Returns the first message boards ban in the ordered set where userId = &#63;.
256            *
257            * <p>
258            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
259            * </p>
260            *
261            * @param userId the user ID
262            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
263            * @return the first matching message boards ban
264            * @throws com.liferay.portlet.messageboards.NoSuchBanException if a matching message boards ban could not be found
265            * @throws SystemException if a system exception occurred
266            */
267            public com.liferay.portlet.messageboards.model.MBBan findByUserId_First(
268                    long userId,
269                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
270                    throws com.liferay.portal.kernel.exception.SystemException,
271                            com.liferay.portlet.messageboards.NoSuchBanException;
272    
273            /**
274            * Returns the last message boards ban in the ordered set where userId = &#63;.
275            *
276            * <p>
277            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
278            * </p>
279            *
280            * @param userId the user ID
281            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
282            * @return the last matching message boards ban
283            * @throws com.liferay.portlet.messageboards.NoSuchBanException if a matching message boards ban could not be found
284            * @throws SystemException if a system exception occurred
285            */
286            public com.liferay.portlet.messageboards.model.MBBan findByUserId_Last(
287                    long userId,
288                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
289                    throws com.liferay.portal.kernel.exception.SystemException,
290                            com.liferay.portlet.messageboards.NoSuchBanException;
291    
292            /**
293            * Returns the message boards bans before and after the current message boards ban in the ordered set where userId = &#63;.
294            *
295            * <p>
296            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
297            * </p>
298            *
299            * @param banId the primary key of the current message boards ban
300            * @param userId the user ID
301            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
302            * @return the previous, current, and next message boards ban
303            * @throws com.liferay.portlet.messageboards.NoSuchBanException if a message boards ban with the primary key could not be found
304            * @throws SystemException if a system exception occurred
305            */
306            public com.liferay.portlet.messageboards.model.MBBan[] findByUserId_PrevAndNext(
307                    long banId, long userId,
308                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
309                    throws com.liferay.portal.kernel.exception.SystemException,
310                            com.liferay.portlet.messageboards.NoSuchBanException;
311    
312            /**
313            * Returns all the message boards bans where banUserId = &#63;.
314            *
315            * @param banUserId the ban user ID
316            * @return the matching message boards bans
317            * @throws SystemException if a system exception occurred
318            */
319            public java.util.List<com.liferay.portlet.messageboards.model.MBBan> findByBanUserId(
320                    long banUserId)
321                    throws com.liferay.portal.kernel.exception.SystemException;
322    
323            /**
324            * Returns a range of all the message boards bans where banUserId = &#63;.
325            *
326            * <p>
327            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
328            * </p>
329            *
330            * @param banUserId the ban user ID
331            * @param start the lower bound of the range of message boards bans
332            * @param end the upper bound of the range of message boards bans (not inclusive)
333            * @return the range of matching message boards bans
334            * @throws SystemException if a system exception occurred
335            */
336            public java.util.List<com.liferay.portlet.messageboards.model.MBBan> findByBanUserId(
337                    long banUserId, int start, int end)
338                    throws com.liferay.portal.kernel.exception.SystemException;
339    
340            /**
341            * Returns an ordered range of all the message boards bans where banUserId = &#63;.
342            *
343            * <p>
344            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
345            * </p>
346            *
347            * @param banUserId the ban user ID
348            * @param start the lower bound of the range of message boards bans
349            * @param end the upper bound of the range of message boards bans (not inclusive)
350            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
351            * @return the ordered range of matching message boards bans
352            * @throws SystemException if a system exception occurred
353            */
354            public java.util.List<com.liferay.portlet.messageboards.model.MBBan> findByBanUserId(
355                    long banUserId, int start, int end,
356                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
357                    throws com.liferay.portal.kernel.exception.SystemException;
358    
359            /**
360            * Returns the first message boards ban in the ordered set where banUserId = &#63;.
361            *
362            * <p>
363            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
364            * </p>
365            *
366            * @param banUserId the ban user ID
367            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
368            * @return the first matching message boards ban
369            * @throws com.liferay.portlet.messageboards.NoSuchBanException if a matching message boards ban could not be found
370            * @throws SystemException if a system exception occurred
371            */
372            public com.liferay.portlet.messageboards.model.MBBan findByBanUserId_First(
373                    long banUserId,
374                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
375                    throws com.liferay.portal.kernel.exception.SystemException,
376                            com.liferay.portlet.messageboards.NoSuchBanException;
377    
378            /**
379            * Returns the last message boards ban in the ordered set where banUserId = &#63;.
380            *
381            * <p>
382            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
383            * </p>
384            *
385            * @param banUserId the ban user ID
386            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
387            * @return the last matching message boards ban
388            * @throws com.liferay.portlet.messageboards.NoSuchBanException if a matching message boards ban could not be found
389            * @throws SystemException if a system exception occurred
390            */
391            public com.liferay.portlet.messageboards.model.MBBan findByBanUserId_Last(
392                    long banUserId,
393                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
394                    throws com.liferay.portal.kernel.exception.SystemException,
395                            com.liferay.portlet.messageboards.NoSuchBanException;
396    
397            /**
398            * Returns the message boards bans before and after the current message boards ban in the ordered set where banUserId = &#63;.
399            *
400            * <p>
401            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
402            * </p>
403            *
404            * @param banId the primary key of the current message boards ban
405            * @param banUserId the ban user ID
406            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
407            * @return the previous, current, and next message boards ban
408            * @throws com.liferay.portlet.messageboards.NoSuchBanException if a message boards ban with the primary key could not be found
409            * @throws SystemException if a system exception occurred
410            */
411            public com.liferay.portlet.messageboards.model.MBBan[] findByBanUserId_PrevAndNext(
412                    long banId, long banUserId,
413                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
414                    throws com.liferay.portal.kernel.exception.SystemException,
415                            com.liferay.portlet.messageboards.NoSuchBanException;
416    
417            /**
418            * Returns the message boards ban where groupId = &#63; and banUserId = &#63; or throws a {@link com.liferay.portlet.messageboards.NoSuchBanException} if it could not be found.
419            *
420            * @param groupId the group ID
421            * @param banUserId the ban user ID
422            * @return the matching message boards ban
423            * @throws com.liferay.portlet.messageboards.NoSuchBanException if a matching message boards ban could not be found
424            * @throws SystemException if a system exception occurred
425            */
426            public com.liferay.portlet.messageboards.model.MBBan findByG_B(
427                    long groupId, long banUserId)
428                    throws com.liferay.portal.kernel.exception.SystemException,
429                            com.liferay.portlet.messageboards.NoSuchBanException;
430    
431            /**
432            * Returns the message boards ban where groupId = &#63; and banUserId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
433            *
434            * @param groupId the group ID
435            * @param banUserId the ban user ID
436            * @return the matching message boards ban, or <code>null</code> if a matching message boards ban could not be found
437            * @throws SystemException if a system exception occurred
438            */
439            public com.liferay.portlet.messageboards.model.MBBan fetchByG_B(
440                    long groupId, long banUserId)
441                    throws com.liferay.portal.kernel.exception.SystemException;
442    
443            /**
444            * Returns the message boards ban where groupId = &#63; and banUserId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
445            *
446            * @param groupId the group ID
447            * @param banUserId the ban user ID
448            * @param retrieveFromCache whether to use the finder cache
449            * @return the matching message boards ban, or <code>null</code> if a matching message boards ban could not be found
450            * @throws SystemException if a system exception occurred
451            */
452            public com.liferay.portlet.messageboards.model.MBBan fetchByG_B(
453                    long groupId, long banUserId, boolean retrieveFromCache)
454                    throws com.liferay.portal.kernel.exception.SystemException;
455    
456            /**
457            * Returns all the message boards bans.
458            *
459            * @return the message boards bans
460            * @throws SystemException if a system exception occurred
461            */
462            public java.util.List<com.liferay.portlet.messageboards.model.MBBan> findAll()
463                    throws com.liferay.portal.kernel.exception.SystemException;
464    
465            /**
466            * Returns a range of all the message boards bans.
467            *
468            * <p>
469            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
470            * </p>
471            *
472            * @param start the lower bound of the range of message boards bans
473            * @param end the upper bound of the range of message boards bans (not inclusive)
474            * @return the range of message boards bans
475            * @throws SystemException if a system exception occurred
476            */
477            public java.util.List<com.liferay.portlet.messageboards.model.MBBan> findAll(
478                    int start, int end)
479                    throws com.liferay.portal.kernel.exception.SystemException;
480    
481            /**
482            * Returns an ordered range of all the message boards bans.
483            *
484            * <p>
485            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
486            * </p>
487            *
488            * @param start the lower bound of the range of message boards bans
489            * @param end the upper bound of the range of message boards bans (not inclusive)
490            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
491            * @return the ordered range of message boards bans
492            * @throws SystemException if a system exception occurred
493            */
494            public java.util.List<com.liferay.portlet.messageboards.model.MBBan> findAll(
495                    int start, int end,
496                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
497                    throws com.liferay.portal.kernel.exception.SystemException;
498    
499            /**
500            * Removes all the message boards bans where groupId = &#63; from the database.
501            *
502            * @param groupId the group ID
503            * @throws SystemException if a system exception occurred
504            */
505            public void removeByGroupId(long groupId)
506                    throws com.liferay.portal.kernel.exception.SystemException;
507    
508            /**
509            * Removes all the message boards bans where userId = &#63; from the database.
510            *
511            * @param userId the user ID
512            * @throws SystemException if a system exception occurred
513            */
514            public void removeByUserId(long userId)
515                    throws com.liferay.portal.kernel.exception.SystemException;
516    
517            /**
518            * Removes all the message boards bans where banUserId = &#63; from the database.
519            *
520            * @param banUserId the ban user ID
521            * @throws SystemException if a system exception occurred
522            */
523            public void removeByBanUserId(long banUserId)
524                    throws com.liferay.portal.kernel.exception.SystemException;
525    
526            /**
527            * Removes the message boards ban where groupId = &#63; and banUserId = &#63; from the database.
528            *
529            * @param groupId the group ID
530            * @param banUserId the ban user ID
531            * @throws SystemException if a system exception occurred
532            */
533            public void removeByG_B(long groupId, long banUserId)
534                    throws com.liferay.portal.kernel.exception.SystemException,
535                            com.liferay.portlet.messageboards.NoSuchBanException;
536    
537            /**
538            * Removes all the message boards bans from the database.
539            *
540            * @throws SystemException if a system exception occurred
541            */
542            public void removeAll()
543                    throws com.liferay.portal.kernel.exception.SystemException;
544    
545            /**
546            * Returns the number of message boards bans where groupId = &#63;.
547            *
548            * @param groupId the group ID
549            * @return the number of matching message boards bans
550            * @throws SystemException if a system exception occurred
551            */
552            public int countByGroupId(long groupId)
553                    throws com.liferay.portal.kernel.exception.SystemException;
554    
555            /**
556            * Returns the number of message boards bans where userId = &#63;.
557            *
558            * @param userId the user ID
559            * @return the number of matching message boards bans
560            * @throws SystemException if a system exception occurred
561            */
562            public int countByUserId(long userId)
563                    throws com.liferay.portal.kernel.exception.SystemException;
564    
565            /**
566            * Returns the number of message boards bans where banUserId = &#63;.
567            *
568            * @param banUserId the ban user ID
569            * @return the number of matching message boards bans
570            * @throws SystemException if a system exception occurred
571            */
572            public int countByBanUserId(long banUserId)
573                    throws com.liferay.portal.kernel.exception.SystemException;
574    
575            /**
576            * Returns the number of message boards bans where groupId = &#63; and banUserId = &#63;.
577            *
578            * @param groupId the group ID
579            * @param banUserId the ban user ID
580            * @return the number of matching message boards bans
581            * @throws SystemException if a system exception occurred
582            */
583            public int countByG_B(long groupId, long banUserId)
584                    throws com.liferay.portal.kernel.exception.SystemException;
585    
586            /**
587            * Returns the number of message boards bans.
588            *
589            * @return the number of message boards bans
590            * @throws SystemException if a system exception occurred
591            */
592            public int countAll()
593                    throws com.liferay.portal.kernel.exception.SystemException;
594    
595            public MBBan remove(MBBan mbBan) throws SystemException;
596    }