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