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