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