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