001    /**
002     * Copyright (c) 2000-2013 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            * Returns all the message boards bans where uuid = &#63;.
042            *
043            * @param uuid the uuid
044            * @return the matching message boards bans
045            * @throws SystemException if a system exception occurred
046            */
047            public java.util.List<com.liferay.portlet.messageboards.model.MBBan> findByUuid(
048                    java.lang.String uuid)
049                    throws com.liferay.portal.kernel.exception.SystemException;
050    
051            /**
052            * Returns a range of all the message boards bans where uuid = &#63;.
053            *
054            * <p>
055            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.messageboards.model.impl.MBBanModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
056            * </p>
057            *
058            * @param uuid the uuid
059            * @param start the lower bound of the range of message boards bans
060            * @param end the upper bound of the range of message boards bans (not inclusive)
061            * @return the range of matching message boards bans
062            * @throws SystemException if a system exception occurred
063            */
064            public java.util.List<com.liferay.portlet.messageboards.model.MBBan> findByUuid(
065                    java.lang.String uuid, int start, int end)
066                    throws com.liferay.portal.kernel.exception.SystemException;
067    
068            /**
069            * Returns an ordered range of all the message boards bans where uuid = &#63;.
070            *
071            * <p>
072            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.messageboards.model.impl.MBBanModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
073            * </p>
074            *
075            * @param uuid the uuid
076            * @param start the lower bound of the range of message boards bans
077            * @param end the upper bound of the range of message boards bans (not inclusive)
078            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
079            * @return the ordered range of matching message boards bans
080            * @throws SystemException if a system exception occurred
081            */
082            public java.util.List<com.liferay.portlet.messageboards.model.MBBan> findByUuid(
083                    java.lang.String uuid, int start, int end,
084                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
085                    throws com.liferay.portal.kernel.exception.SystemException;
086    
087            /**
088            * Returns the first message boards ban in the ordered set where uuid = &#63;.
089            *
090            * @param uuid the uuid
091            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
092            * @return the first matching message boards ban
093            * @throws com.liferay.portlet.messageboards.NoSuchBanException if a matching message boards ban could not be found
094            * @throws SystemException if a system exception occurred
095            */
096            public com.liferay.portlet.messageboards.model.MBBan findByUuid_First(
097                    java.lang.String uuid,
098                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
099                    throws com.liferay.portal.kernel.exception.SystemException,
100                            com.liferay.portlet.messageboards.NoSuchBanException;
101    
102            /**
103            * Returns the first message boards ban in the ordered set where uuid = &#63;.
104            *
105            * @param uuid the uuid
106            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
107            * @return the first matching message boards ban, or <code>null</code> if a matching message boards ban could not be found
108            * @throws SystemException if a system exception occurred
109            */
110            public com.liferay.portlet.messageboards.model.MBBan fetchByUuid_First(
111                    java.lang.String uuid,
112                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
113                    throws com.liferay.portal.kernel.exception.SystemException;
114    
115            /**
116            * Returns the last message boards ban in the ordered set where uuid = &#63;.
117            *
118            * @param uuid the uuid
119            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
120            * @return the last matching message boards ban
121            * @throws com.liferay.portlet.messageboards.NoSuchBanException if a matching message boards ban could not be found
122            * @throws SystemException if a system exception occurred
123            */
124            public com.liferay.portlet.messageboards.model.MBBan findByUuid_Last(
125                    java.lang.String uuid,
126                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
127                    throws com.liferay.portal.kernel.exception.SystemException,
128                            com.liferay.portlet.messageboards.NoSuchBanException;
129    
130            /**
131            * Returns the last message boards ban in the ordered set where uuid = &#63;.
132            *
133            * @param uuid the uuid
134            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
135            * @return the last matching message boards ban, or <code>null</code> if a matching message boards ban could not be found
136            * @throws SystemException if a system exception occurred
137            */
138            public com.liferay.portlet.messageboards.model.MBBan fetchByUuid_Last(
139                    java.lang.String uuid,
140                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
141                    throws com.liferay.portal.kernel.exception.SystemException;
142    
143            /**
144            * Returns the message boards bans before and after the current message boards ban in the ordered set where uuid = &#63;.
145            *
146            * @param banId the primary key of the current message boards ban
147            * @param uuid the uuid
148            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
149            * @return the previous, current, and next message boards ban
150            * @throws com.liferay.portlet.messageboards.NoSuchBanException if a message boards ban with the primary key could not be found
151            * @throws SystemException if a system exception occurred
152            */
153            public com.liferay.portlet.messageboards.model.MBBan[] findByUuid_PrevAndNext(
154                    long banId, java.lang.String uuid,
155                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
156                    throws com.liferay.portal.kernel.exception.SystemException,
157                            com.liferay.portlet.messageboards.NoSuchBanException;
158    
159            /**
160            * Removes all the message boards bans where uuid = &#63; from the database.
161            *
162            * @param uuid the uuid
163            * @throws SystemException if a system exception occurred
164            */
165            public void removeByUuid(java.lang.String uuid)
166                    throws com.liferay.portal.kernel.exception.SystemException;
167    
168            /**
169            * Returns the number of message boards bans where uuid = &#63;.
170            *
171            * @param uuid the uuid
172            * @return the number of matching message boards bans
173            * @throws SystemException if a system exception occurred
174            */
175            public int countByUuid(java.lang.String uuid)
176                    throws com.liferay.portal.kernel.exception.SystemException;
177    
178            /**
179            * Returns the message boards ban where uuid = &#63; and groupId = &#63; or throws a {@link com.liferay.portlet.messageboards.NoSuchBanException} if it could not be found.
180            *
181            * @param uuid the uuid
182            * @param groupId the group ID
183            * @return the matching message boards ban
184            * @throws com.liferay.portlet.messageboards.NoSuchBanException if a matching message boards ban could not be found
185            * @throws SystemException if a system exception occurred
186            */
187            public com.liferay.portlet.messageboards.model.MBBan findByUUID_G(
188                    java.lang.String uuid, long groupId)
189                    throws com.liferay.portal.kernel.exception.SystemException,
190                            com.liferay.portlet.messageboards.NoSuchBanException;
191    
192            /**
193            * Returns the message boards ban where uuid = &#63; and groupId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
194            *
195            * @param uuid the uuid
196            * @param groupId the group ID
197            * @return the matching message boards ban, or <code>null</code> if a matching message boards ban could not be found
198            * @throws SystemException if a system exception occurred
199            */
200            public com.liferay.portlet.messageboards.model.MBBan fetchByUUID_G(
201                    java.lang.String uuid, long groupId)
202                    throws com.liferay.portal.kernel.exception.SystemException;
203    
204            /**
205            * Returns the message boards ban where uuid = &#63; and groupId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
206            *
207            * @param uuid the uuid
208            * @param groupId the group ID
209            * @param retrieveFromCache whether to use the finder cache
210            * @return the matching message boards ban, or <code>null</code> if a matching message boards ban could not be found
211            * @throws SystemException if a system exception occurred
212            */
213            public com.liferay.portlet.messageboards.model.MBBan fetchByUUID_G(
214                    java.lang.String uuid, long groupId, boolean retrieveFromCache)
215                    throws com.liferay.portal.kernel.exception.SystemException;
216    
217            /**
218            * Removes the message boards ban where uuid = &#63; and groupId = &#63; from the database.
219            *
220            * @param uuid the uuid
221            * @param groupId the group ID
222            * @return the message boards ban that was removed
223            * @throws SystemException if a system exception occurred
224            */
225            public com.liferay.portlet.messageboards.model.MBBan removeByUUID_G(
226                    java.lang.String uuid, long groupId)
227                    throws com.liferay.portal.kernel.exception.SystemException,
228                            com.liferay.portlet.messageboards.NoSuchBanException;
229    
230            /**
231            * Returns the number of message boards bans where uuid = &#63; and groupId = &#63;.
232            *
233            * @param uuid the uuid
234            * @param groupId the group ID
235            * @return the number of matching message boards bans
236            * @throws SystemException if a system exception occurred
237            */
238            public int countByUUID_G(java.lang.String uuid, long groupId)
239                    throws com.liferay.portal.kernel.exception.SystemException;
240    
241            /**
242            * Returns all the message boards bans where uuid = &#63; and companyId = &#63;.
243            *
244            * @param uuid the uuid
245            * @param companyId the company ID
246            * @return the matching message boards bans
247            * @throws SystemException if a system exception occurred
248            */
249            public java.util.List<com.liferay.portlet.messageboards.model.MBBan> findByUuid_C(
250                    java.lang.String uuid, long companyId)
251                    throws com.liferay.portal.kernel.exception.SystemException;
252    
253            /**
254            * Returns a range of all the message boards bans where uuid = &#63; and companyId = &#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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.messageboards.model.impl.MBBanModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
258            * </p>
259            *
260            * @param uuid the uuid
261            * @param companyId the company ID
262            * @param start the lower bound of the range of message boards bans
263            * @param end the upper bound of the range of message boards bans (not inclusive)
264            * @return the range of matching message boards bans
265            * @throws SystemException if a system exception occurred
266            */
267            public java.util.List<com.liferay.portlet.messageboards.model.MBBan> findByUuid_C(
268                    java.lang.String uuid, long companyId, int start, int end)
269                    throws com.liferay.portal.kernel.exception.SystemException;
270    
271            /**
272            * Returns an ordered range of all the message boards bans where uuid = &#63; and companyId = &#63;.
273            *
274            * <p>
275            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.messageboards.model.impl.MBBanModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
276            * </p>
277            *
278            * @param uuid the uuid
279            * @param companyId the company ID
280            * @param start the lower bound of the range of message boards bans
281            * @param end the upper bound of the range of message boards bans (not inclusive)
282            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
283            * @return the ordered range of matching message boards bans
284            * @throws SystemException if a system exception occurred
285            */
286            public java.util.List<com.liferay.portlet.messageboards.model.MBBan> findByUuid_C(
287                    java.lang.String uuid, long companyId, int start, int end,
288                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
289                    throws com.liferay.portal.kernel.exception.SystemException;
290    
291            /**
292            * Returns the first message boards ban in the ordered set where uuid = &#63; and companyId = &#63;.
293            *
294            * @param uuid the uuid
295            * @param companyId the company ID
296            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
297            * @return the first matching message boards ban
298            * @throws com.liferay.portlet.messageboards.NoSuchBanException if a matching message boards ban could not be found
299            * @throws SystemException if a system exception occurred
300            */
301            public com.liferay.portlet.messageboards.model.MBBan findByUuid_C_First(
302                    java.lang.String uuid, long companyId,
303                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
304                    throws com.liferay.portal.kernel.exception.SystemException,
305                            com.liferay.portlet.messageboards.NoSuchBanException;
306    
307            /**
308            * Returns the first message boards ban in the ordered set where uuid = &#63; and companyId = &#63;.
309            *
310            * @param uuid the uuid
311            * @param companyId the company ID
312            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
313            * @return the first matching message boards ban, or <code>null</code> if a matching message boards ban could not be found
314            * @throws SystemException if a system exception occurred
315            */
316            public com.liferay.portlet.messageboards.model.MBBan fetchByUuid_C_First(
317                    java.lang.String uuid, long companyId,
318                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
319                    throws com.liferay.portal.kernel.exception.SystemException;
320    
321            /**
322            * Returns the last message boards ban in the ordered set where uuid = &#63; and companyId = &#63;.
323            *
324            * @param uuid the uuid
325            * @param companyId the company ID
326            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
327            * @return the last matching message boards ban
328            * @throws com.liferay.portlet.messageboards.NoSuchBanException if a matching message boards ban could not be found
329            * @throws SystemException if a system exception occurred
330            */
331            public com.liferay.portlet.messageboards.model.MBBan findByUuid_C_Last(
332                    java.lang.String uuid, long companyId,
333                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
334                    throws com.liferay.portal.kernel.exception.SystemException,
335                            com.liferay.portlet.messageboards.NoSuchBanException;
336    
337            /**
338            * Returns the last message boards ban in the ordered set where uuid = &#63; and companyId = &#63;.
339            *
340            * @param uuid the uuid
341            * @param companyId the company ID
342            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
343            * @return the last matching message boards ban, or <code>null</code> if a matching message boards ban could not be found
344            * @throws SystemException if a system exception occurred
345            */
346            public com.liferay.portlet.messageboards.model.MBBan fetchByUuid_C_Last(
347                    java.lang.String uuid, long companyId,
348                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
349                    throws com.liferay.portal.kernel.exception.SystemException;
350    
351            /**
352            * Returns the message boards bans before and after the current message boards ban in the ordered set where uuid = &#63; and companyId = &#63;.
353            *
354            * @param banId the primary key of the current message boards ban
355            * @param uuid the uuid
356            * @param companyId the company ID
357            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
358            * @return the previous, current, and next message boards ban
359            * @throws com.liferay.portlet.messageboards.NoSuchBanException if a message boards ban with the primary key could not be found
360            * @throws SystemException if a system exception occurred
361            */
362            public com.liferay.portlet.messageboards.model.MBBan[] findByUuid_C_PrevAndNext(
363                    long banId, java.lang.String uuid, long companyId,
364                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
365                    throws com.liferay.portal.kernel.exception.SystemException,
366                            com.liferay.portlet.messageboards.NoSuchBanException;
367    
368            /**
369            * Removes all the message boards bans where uuid = &#63; and companyId = &#63; from the database.
370            *
371            * @param uuid the uuid
372            * @param companyId the company ID
373            * @throws SystemException if a system exception occurred
374            */
375            public void removeByUuid_C(java.lang.String uuid, long companyId)
376                    throws com.liferay.portal.kernel.exception.SystemException;
377    
378            /**
379            * Returns the number of message boards bans where uuid = &#63; and companyId = &#63;.
380            *
381            * @param uuid the uuid
382            * @param companyId the company ID
383            * @return the number of matching message boards bans
384            * @throws SystemException if a system exception occurred
385            */
386            public int countByUuid_C(java.lang.String uuid, long companyId)
387                    throws com.liferay.portal.kernel.exception.SystemException;
388    
389            /**
390            * Returns all the message boards bans where groupId = &#63;.
391            *
392            * @param groupId the group ID
393            * @return the matching message boards bans
394            * @throws SystemException if a system exception occurred
395            */
396            public java.util.List<com.liferay.portlet.messageboards.model.MBBan> findByGroupId(
397                    long groupId)
398                    throws com.liferay.portal.kernel.exception.SystemException;
399    
400            /**
401            * Returns a range of all the message boards bans where groupId = &#63;.
402            *
403            * <p>
404            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.messageboards.model.impl.MBBanModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
405            * </p>
406            *
407            * @param groupId the group ID
408            * @param start the lower bound of the range of message boards bans
409            * @param end the upper bound of the range of message boards bans (not inclusive)
410            * @return the range of matching message boards bans
411            * @throws SystemException if a system exception occurred
412            */
413            public java.util.List<com.liferay.portlet.messageboards.model.MBBan> findByGroupId(
414                    long groupId, int start, int end)
415                    throws com.liferay.portal.kernel.exception.SystemException;
416    
417            /**
418            * Returns an ordered range of all the message boards bans where groupId = &#63;.
419            *
420            * <p>
421            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.messageboards.model.impl.MBBanModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
422            * </p>
423            *
424            * @param groupId the group ID
425            * @param start the lower bound of the range of message boards bans
426            * @param end the upper bound of the range of message boards bans (not inclusive)
427            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
428            * @return the ordered range of matching message boards bans
429            * @throws SystemException if a system exception occurred
430            */
431            public java.util.List<com.liferay.portlet.messageboards.model.MBBan> findByGroupId(
432                    long groupId, int start, int end,
433                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
434                    throws com.liferay.portal.kernel.exception.SystemException;
435    
436            /**
437            * Returns the first message boards ban in the ordered set where groupId = &#63;.
438            *
439            * @param groupId the group ID
440            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
441            * @return the first matching message boards ban
442            * @throws com.liferay.portlet.messageboards.NoSuchBanException if a matching message boards ban could not be found
443            * @throws SystemException if a system exception occurred
444            */
445            public com.liferay.portlet.messageboards.model.MBBan findByGroupId_First(
446                    long groupId,
447                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
448                    throws com.liferay.portal.kernel.exception.SystemException,
449                            com.liferay.portlet.messageboards.NoSuchBanException;
450    
451            /**
452            * Returns the first message boards ban in the ordered set where groupId = &#63;.
453            *
454            * @param groupId the group ID
455            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
456            * @return the first matching message boards ban, or <code>null</code> if a matching message boards ban could not be found
457            * @throws SystemException if a system exception occurred
458            */
459            public com.liferay.portlet.messageboards.model.MBBan fetchByGroupId_First(
460                    long groupId,
461                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
462                    throws com.liferay.portal.kernel.exception.SystemException;
463    
464            /**
465            * Returns the last message boards ban in the ordered set where groupId = &#63;.
466            *
467            * @param groupId the group ID
468            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
469            * @return the last matching message boards ban
470            * @throws com.liferay.portlet.messageboards.NoSuchBanException if a matching message boards ban could not be found
471            * @throws SystemException if a system exception occurred
472            */
473            public com.liferay.portlet.messageboards.model.MBBan findByGroupId_Last(
474                    long groupId,
475                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
476                    throws com.liferay.portal.kernel.exception.SystemException,
477                            com.liferay.portlet.messageboards.NoSuchBanException;
478    
479            /**
480            * Returns the last message boards ban in the ordered set where groupId = &#63;.
481            *
482            * @param groupId the group ID
483            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
484            * @return the last matching message boards ban, or <code>null</code> if a matching message boards ban could not be found
485            * @throws SystemException if a system exception occurred
486            */
487            public com.liferay.portlet.messageboards.model.MBBan fetchByGroupId_Last(
488                    long groupId,
489                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
490                    throws com.liferay.portal.kernel.exception.SystemException;
491    
492            /**
493            * Returns the message boards bans before and after the current message boards ban in the ordered set where groupId = &#63;.
494            *
495            * @param banId the primary key of the current message boards ban
496            * @param groupId the group ID
497            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
498            * @return the previous, current, and next message boards ban
499            * @throws com.liferay.portlet.messageboards.NoSuchBanException if a message boards ban with the primary key could not be found
500            * @throws SystemException if a system exception occurred
501            */
502            public com.liferay.portlet.messageboards.model.MBBan[] findByGroupId_PrevAndNext(
503                    long banId, long groupId,
504                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
505                    throws com.liferay.portal.kernel.exception.SystemException,
506                            com.liferay.portlet.messageboards.NoSuchBanException;
507    
508            /**
509            * Removes all the message boards bans where groupId = &#63; from the database.
510            *
511            * @param groupId the group ID
512            * @throws SystemException if a system exception occurred
513            */
514            public void removeByGroupId(long groupId)
515                    throws com.liferay.portal.kernel.exception.SystemException;
516    
517            /**
518            * Returns the number of message boards bans where groupId = &#63;.
519            *
520            * @param groupId the group ID
521            * @return the number of matching message boards bans
522            * @throws SystemException if a system exception occurred
523            */
524            public int countByGroupId(long groupId)
525                    throws com.liferay.portal.kernel.exception.SystemException;
526    
527            /**
528            * Returns all the message boards bans where userId = &#63;.
529            *
530            * @param userId the user ID
531            * @return the matching message boards bans
532            * @throws SystemException if a system exception occurred
533            */
534            public java.util.List<com.liferay.portlet.messageboards.model.MBBan> findByUserId(
535                    long userId) throws com.liferay.portal.kernel.exception.SystemException;
536    
537            /**
538            * Returns a range of all the message boards bans where userId = &#63;.
539            *
540            * <p>
541            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.messageboards.model.impl.MBBanModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
542            * </p>
543            *
544            * @param userId the user ID
545            * @param start the lower bound of the range of message boards bans
546            * @param end the upper bound of the range of message boards bans (not inclusive)
547            * @return the range of matching message boards bans
548            * @throws SystemException if a system exception occurred
549            */
550            public java.util.List<com.liferay.portlet.messageboards.model.MBBan> findByUserId(
551                    long userId, int start, int end)
552                    throws com.liferay.portal.kernel.exception.SystemException;
553    
554            /**
555            * Returns an ordered range of all the message boards bans where userId = &#63;.
556            *
557            * <p>
558            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.messageboards.model.impl.MBBanModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
559            * </p>
560            *
561            * @param userId the user ID
562            * @param start the lower bound of the range of message boards bans
563            * @param end the upper bound of the range of message boards bans (not inclusive)
564            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
565            * @return the ordered range of matching message boards bans
566            * @throws SystemException if a system exception occurred
567            */
568            public java.util.List<com.liferay.portlet.messageboards.model.MBBan> findByUserId(
569                    long userId, int start, int end,
570                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
571                    throws com.liferay.portal.kernel.exception.SystemException;
572    
573            /**
574            * Returns the first message boards ban in the ordered set where userId = &#63;.
575            *
576            * @param userId the user ID
577            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
578            * @return the first matching message boards ban
579            * @throws com.liferay.portlet.messageboards.NoSuchBanException if a matching message boards ban could not be found
580            * @throws SystemException if a system exception occurred
581            */
582            public com.liferay.portlet.messageboards.model.MBBan findByUserId_First(
583                    long userId,
584                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
585                    throws com.liferay.portal.kernel.exception.SystemException,
586                            com.liferay.portlet.messageboards.NoSuchBanException;
587    
588            /**
589            * Returns the first message boards ban in the ordered set where userId = &#63;.
590            *
591            * @param userId the user ID
592            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
593            * @return the first matching message boards ban, or <code>null</code> if a matching message boards ban could not be found
594            * @throws SystemException if a system exception occurred
595            */
596            public com.liferay.portlet.messageboards.model.MBBan fetchByUserId_First(
597                    long userId,
598                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
599                    throws com.liferay.portal.kernel.exception.SystemException;
600    
601            /**
602            * Returns the last message boards ban in the ordered set where userId = &#63;.
603            *
604            * @param userId the user ID
605            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
606            * @return the last matching message boards ban
607            * @throws com.liferay.portlet.messageboards.NoSuchBanException if a matching message boards ban could not be found
608            * @throws SystemException if a system exception occurred
609            */
610            public com.liferay.portlet.messageboards.model.MBBan findByUserId_Last(
611                    long userId,
612                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
613                    throws com.liferay.portal.kernel.exception.SystemException,
614                            com.liferay.portlet.messageboards.NoSuchBanException;
615    
616            /**
617            * Returns the last message boards ban in the ordered set where userId = &#63;.
618            *
619            * @param userId the user ID
620            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
621            * @return the last matching message boards ban, or <code>null</code> if a matching message boards ban could not be found
622            * @throws SystemException if a system exception occurred
623            */
624            public com.liferay.portlet.messageboards.model.MBBan fetchByUserId_Last(
625                    long userId,
626                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
627                    throws com.liferay.portal.kernel.exception.SystemException;
628    
629            /**
630            * Returns the message boards bans before and after the current message boards ban in the ordered set where userId = &#63;.
631            *
632            * @param banId the primary key of the current message boards ban
633            * @param userId the user ID
634            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
635            * @return the previous, current, and next message boards ban
636            * @throws com.liferay.portlet.messageboards.NoSuchBanException if a message boards ban with the primary key could not be found
637            * @throws SystemException if a system exception occurred
638            */
639            public com.liferay.portlet.messageboards.model.MBBan[] findByUserId_PrevAndNext(
640                    long banId, long userId,
641                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
642                    throws com.liferay.portal.kernel.exception.SystemException,
643                            com.liferay.portlet.messageboards.NoSuchBanException;
644    
645            /**
646            * Removes all the message boards bans where userId = &#63; from the database.
647            *
648            * @param userId the user ID
649            * @throws SystemException if a system exception occurred
650            */
651            public void removeByUserId(long userId)
652                    throws com.liferay.portal.kernel.exception.SystemException;
653    
654            /**
655            * Returns the number of message boards bans where userId = &#63;.
656            *
657            * @param userId the user ID
658            * @return the number of matching message boards bans
659            * @throws SystemException if a system exception occurred
660            */
661            public int countByUserId(long userId)
662                    throws com.liferay.portal.kernel.exception.SystemException;
663    
664            /**
665            * Returns all the message boards bans where banUserId = &#63;.
666            *
667            * @param banUserId the ban user ID
668            * @return the matching message boards bans
669            * @throws SystemException if a system exception occurred
670            */
671            public java.util.List<com.liferay.portlet.messageboards.model.MBBan> findByBanUserId(
672                    long banUserId)
673                    throws com.liferay.portal.kernel.exception.SystemException;
674    
675            /**
676            * Returns a range of all the message boards bans where banUserId = &#63;.
677            *
678            * <p>
679            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.messageboards.model.impl.MBBanModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
680            * </p>
681            *
682            * @param banUserId the ban user ID
683            * @param start the lower bound of the range of message boards bans
684            * @param end the upper bound of the range of message boards bans (not inclusive)
685            * @return the range of matching message boards bans
686            * @throws SystemException if a system exception occurred
687            */
688            public java.util.List<com.liferay.portlet.messageboards.model.MBBan> findByBanUserId(
689                    long banUserId, int start, int end)
690                    throws com.liferay.portal.kernel.exception.SystemException;
691    
692            /**
693            * Returns an ordered range of all the message boards bans where banUserId = &#63;.
694            *
695            * <p>
696            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.messageboards.model.impl.MBBanModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
697            * </p>
698            *
699            * @param banUserId the ban user ID
700            * @param start the lower bound of the range of message boards bans
701            * @param end the upper bound of the range of message boards bans (not inclusive)
702            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
703            * @return the ordered range of matching message boards bans
704            * @throws SystemException if a system exception occurred
705            */
706            public java.util.List<com.liferay.portlet.messageboards.model.MBBan> findByBanUserId(
707                    long banUserId, int start, int end,
708                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
709                    throws com.liferay.portal.kernel.exception.SystemException;
710    
711            /**
712            * Returns the first message boards ban in the ordered set where banUserId = &#63;.
713            *
714            * @param banUserId the ban user ID
715            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
716            * @return the first matching message boards ban
717            * @throws com.liferay.portlet.messageboards.NoSuchBanException if a matching message boards ban could not be found
718            * @throws SystemException if a system exception occurred
719            */
720            public com.liferay.portlet.messageboards.model.MBBan findByBanUserId_First(
721                    long banUserId,
722                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
723                    throws com.liferay.portal.kernel.exception.SystemException,
724                            com.liferay.portlet.messageboards.NoSuchBanException;
725    
726            /**
727            * Returns the first message boards ban in the ordered set where banUserId = &#63;.
728            *
729            * @param banUserId the ban user ID
730            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
731            * @return the first matching message boards ban, or <code>null</code> if a matching message boards ban could not be found
732            * @throws SystemException if a system exception occurred
733            */
734            public com.liferay.portlet.messageboards.model.MBBan fetchByBanUserId_First(
735                    long banUserId,
736                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
737                    throws com.liferay.portal.kernel.exception.SystemException;
738    
739            /**
740            * Returns the last message boards ban in the ordered set where banUserId = &#63;.
741            *
742            * @param banUserId the ban user ID
743            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
744            * @return the last matching message boards ban
745            * @throws com.liferay.portlet.messageboards.NoSuchBanException if a matching message boards ban could not be found
746            * @throws SystemException if a system exception occurred
747            */
748            public com.liferay.portlet.messageboards.model.MBBan findByBanUserId_Last(
749                    long banUserId,
750                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
751                    throws com.liferay.portal.kernel.exception.SystemException,
752                            com.liferay.portlet.messageboards.NoSuchBanException;
753    
754            /**
755            * Returns the last message boards ban in the ordered set where banUserId = &#63;.
756            *
757            * @param banUserId the ban user ID
758            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
759            * @return the last matching message boards ban, or <code>null</code> if a matching message boards ban could not be found
760            * @throws SystemException if a system exception occurred
761            */
762            public com.liferay.portlet.messageboards.model.MBBan fetchByBanUserId_Last(
763                    long banUserId,
764                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
765                    throws com.liferay.portal.kernel.exception.SystemException;
766    
767            /**
768            * Returns the message boards bans before and after the current message boards ban in the ordered set where banUserId = &#63;.
769            *
770            * @param banId the primary key of the current message boards ban
771            * @param banUserId the ban user ID
772            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
773            * @return the previous, current, and next message boards ban
774            * @throws com.liferay.portlet.messageboards.NoSuchBanException if a message boards ban with the primary key could not be found
775            * @throws SystemException if a system exception occurred
776            */
777            public com.liferay.portlet.messageboards.model.MBBan[] findByBanUserId_PrevAndNext(
778                    long banId, long banUserId,
779                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
780                    throws com.liferay.portal.kernel.exception.SystemException,
781                            com.liferay.portlet.messageboards.NoSuchBanException;
782    
783            /**
784            * Removes all the message boards bans where banUserId = &#63; from the database.
785            *
786            * @param banUserId the ban user ID
787            * @throws SystemException if a system exception occurred
788            */
789            public void removeByBanUserId(long banUserId)
790                    throws com.liferay.portal.kernel.exception.SystemException;
791    
792            /**
793            * Returns the number of message boards bans where banUserId = &#63;.
794            *
795            * @param banUserId the ban user ID
796            * @return the number of matching message boards bans
797            * @throws SystemException if a system exception occurred
798            */
799            public int countByBanUserId(long banUserId)
800                    throws com.liferay.portal.kernel.exception.SystemException;
801    
802            /**
803            * 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.
804            *
805            * @param groupId the group ID
806            * @param banUserId the ban user ID
807            * @return the matching message boards ban
808            * @throws com.liferay.portlet.messageboards.NoSuchBanException if a matching message boards ban could not be found
809            * @throws SystemException if a system exception occurred
810            */
811            public com.liferay.portlet.messageboards.model.MBBan findByG_B(
812                    long groupId, long banUserId)
813                    throws com.liferay.portal.kernel.exception.SystemException,
814                            com.liferay.portlet.messageboards.NoSuchBanException;
815    
816            /**
817            * 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.
818            *
819            * @param groupId the group ID
820            * @param banUserId the ban user ID
821            * @return the matching message boards ban, or <code>null</code> if a matching message boards ban could not be found
822            * @throws SystemException if a system exception occurred
823            */
824            public com.liferay.portlet.messageboards.model.MBBan fetchByG_B(
825                    long groupId, long banUserId)
826                    throws com.liferay.portal.kernel.exception.SystemException;
827    
828            /**
829            * 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.
830            *
831            * @param groupId the group ID
832            * @param banUserId the ban user ID
833            * @param retrieveFromCache whether to use the finder cache
834            * @return the matching message boards ban, or <code>null</code> if a matching message boards ban could not be found
835            * @throws SystemException if a system exception occurred
836            */
837            public com.liferay.portlet.messageboards.model.MBBan fetchByG_B(
838                    long groupId, long banUserId, boolean retrieveFromCache)
839                    throws com.liferay.portal.kernel.exception.SystemException;
840    
841            /**
842            * Removes the message boards ban where groupId = &#63; and banUserId = &#63; from the database.
843            *
844            * @param groupId the group ID
845            * @param banUserId the ban user ID
846            * @return the message boards ban that was removed
847            * @throws SystemException if a system exception occurred
848            */
849            public com.liferay.portlet.messageboards.model.MBBan removeByG_B(
850                    long groupId, long banUserId)
851                    throws com.liferay.portal.kernel.exception.SystemException,
852                            com.liferay.portlet.messageboards.NoSuchBanException;
853    
854            /**
855            * Returns the number of message boards bans where groupId = &#63; and banUserId = &#63;.
856            *
857            * @param groupId the group ID
858            * @param banUserId the ban user ID
859            * @return the number of matching message boards bans
860            * @throws SystemException if a system exception occurred
861            */
862            public int countByG_B(long groupId, long banUserId)
863                    throws com.liferay.portal.kernel.exception.SystemException;
864    
865            /**
866            * Caches the message boards ban in the entity cache if it is enabled.
867            *
868            * @param mbBan the message boards ban
869            */
870            public void cacheResult(com.liferay.portlet.messageboards.model.MBBan mbBan);
871    
872            /**
873            * Caches the message boards bans in the entity cache if it is enabled.
874            *
875            * @param mbBans the message boards bans
876            */
877            public void cacheResult(
878                    java.util.List<com.liferay.portlet.messageboards.model.MBBan> mbBans);
879    
880            /**
881            * Creates a new message boards ban with the primary key. Does not add the message boards ban to the database.
882            *
883            * @param banId the primary key for the new message boards ban
884            * @return the new message boards ban
885            */
886            public com.liferay.portlet.messageboards.model.MBBan create(long banId);
887    
888            /**
889            * Removes the message boards ban with the primary key from the database. Also notifies the appropriate model listeners.
890            *
891            * @param banId the primary key of the message boards ban
892            * @return the message boards ban that was removed
893            * @throws com.liferay.portlet.messageboards.NoSuchBanException if a message boards ban with the primary key could not be found
894            * @throws SystemException if a system exception occurred
895            */
896            public com.liferay.portlet.messageboards.model.MBBan remove(long banId)
897                    throws com.liferay.portal.kernel.exception.SystemException,
898                            com.liferay.portlet.messageboards.NoSuchBanException;
899    
900            public com.liferay.portlet.messageboards.model.MBBan updateImpl(
901                    com.liferay.portlet.messageboards.model.MBBan mbBan)
902                    throws com.liferay.portal.kernel.exception.SystemException;
903    
904            /**
905            * Returns the message boards ban with the primary key or throws a {@link com.liferay.portlet.messageboards.NoSuchBanException} if it could not be found.
906            *
907            * @param banId the primary key of the message boards ban
908            * @return the message boards ban
909            * @throws com.liferay.portlet.messageboards.NoSuchBanException if a message boards ban with the primary key could not be found
910            * @throws SystemException if a system exception occurred
911            */
912            public com.liferay.portlet.messageboards.model.MBBan findByPrimaryKey(
913                    long banId)
914                    throws com.liferay.portal.kernel.exception.SystemException,
915                            com.liferay.portlet.messageboards.NoSuchBanException;
916    
917            /**
918            * Returns the message boards ban with the primary key or returns <code>null</code> if it could not be found.
919            *
920            * @param banId the primary key of the message boards ban
921            * @return the message boards ban, or <code>null</code> if a message boards ban with the primary key could not be found
922            * @throws SystemException if a system exception occurred
923            */
924            public com.liferay.portlet.messageboards.model.MBBan fetchByPrimaryKey(
925                    long banId) throws com.liferay.portal.kernel.exception.SystemException;
926    
927            /**
928            * Returns all the message boards bans.
929            *
930            * @return the message boards bans
931            * @throws SystemException if a system exception occurred
932            */
933            public java.util.List<com.liferay.portlet.messageboards.model.MBBan> findAll()
934                    throws com.liferay.portal.kernel.exception.SystemException;
935    
936            /**
937            * Returns a range of all the message boards bans.
938            *
939            * <p>
940            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.messageboards.model.impl.MBBanModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
941            * </p>
942            *
943            * @param start the lower bound of the range of message boards bans
944            * @param end the upper bound of the range of message boards bans (not inclusive)
945            * @return the range of message boards bans
946            * @throws SystemException if a system exception occurred
947            */
948            public java.util.List<com.liferay.portlet.messageboards.model.MBBan> findAll(
949                    int start, int end)
950                    throws com.liferay.portal.kernel.exception.SystemException;
951    
952            /**
953            * Returns an ordered range of all the message boards bans.
954            *
955            * <p>
956            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.messageboards.model.impl.MBBanModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
957            * </p>
958            *
959            * @param start the lower bound of the range of message boards bans
960            * @param end the upper bound of the range of message boards bans (not inclusive)
961            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
962            * @return the ordered range of message boards bans
963            * @throws SystemException if a system exception occurred
964            */
965            public java.util.List<com.liferay.portlet.messageboards.model.MBBan> findAll(
966                    int start, int end,
967                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
968                    throws com.liferay.portal.kernel.exception.SystemException;
969    
970            /**
971            * Removes all the message boards bans from the database.
972            *
973            * @throws SystemException if a system exception occurred
974            */
975            public void removeAll()
976                    throws com.liferay.portal.kernel.exception.SystemException;
977    
978            /**
979            * Returns the number of message boards bans.
980            *
981            * @return the number of message boards bans
982            * @throws SystemException if a system exception occurred
983            */
984            public int countAll()
985                    throws com.liferay.portal.kernel.exception.SystemException;
986    }