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
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
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
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            * Returns 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
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            * Returns 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
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            * Returns all the message boards categories where uuid = &#63;.
110            *
111            * @param uuid the uuid
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            * Returns 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
127            * @param start the lower bound of the range of message boards categories
128            * @param end the upper bound of the range of message boards categories (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            * Returns 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
144            * @param start the lower bound of the range of message boards categories
145            * @param end the upper bound of the range of message boards categories (not inclusive)
146            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
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            * Returns 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
163            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
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            * Returns 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
182            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
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            * Returns 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
202            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
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            * Returns 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
217            * @param groupId the group ID
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            * Returns 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
231            * @param groupId the group ID
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            * Returns 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
243            * @param groupId the group ID
244            * @param retrieveFromCache whether to use the finder cache
245            * @return the matching message boards category, or <code>null</code> if a matching message boards category could not be found
246            * @throws SystemException if a system exception occurred
247            */
248            public com.liferay.portlet.messageboards.model.MBCategory fetchByUUID_G(
249                    java.lang.String uuid, long groupId, boolean retrieveFromCache)
250                    throws com.liferay.portal.kernel.exception.SystemException;
251    
252            /**
253            * Returns all the message boards categories where groupId = &#63;.
254            *
255            * @param groupId the group ID
256            * @return the matching message boards categories
257            * @throws SystemException if a system exception occurred
258            */
259            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByGroupId(
260                    long groupId)
261                    throws com.liferay.portal.kernel.exception.SystemException;
262    
263            /**
264            * Returns a range of all the message boards categories where groupId = &#63;.
265            *
266            * <p>
267            * 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.
268            * </p>
269            *
270            * @param groupId the group ID
271            * @param start the lower bound of the range of message boards categories
272            * @param end the upper bound of the range of message boards categories (not inclusive)
273            * @return the range of matching message boards categories
274            * @throws SystemException if a system exception occurred
275            */
276            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByGroupId(
277                    long groupId, int start, int end)
278                    throws com.liferay.portal.kernel.exception.SystemException;
279    
280            /**
281            * Returns an ordered range of all the message boards categories where groupId = &#63;.
282            *
283            * <p>
284            * 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.
285            * </p>
286            *
287            * @param groupId the group ID
288            * @param start the lower bound of the range of message boards categories
289            * @param end the upper bound of the range of message boards categories (not inclusive)
290            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
291            * @return the ordered range of matching message boards categories
292            * @throws SystemException if a system exception occurred
293            */
294            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByGroupId(
295                    long groupId, int start, int end,
296                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
297                    throws com.liferay.portal.kernel.exception.SystemException;
298    
299            /**
300            * Returns the first message boards category in the ordered set where groupId = &#63;.
301            *
302            * <p>
303            * 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.
304            * </p>
305            *
306            * @param groupId the group ID
307            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
308            * @return the first matching message boards category
309            * @throws com.liferay.portlet.messageboards.NoSuchCategoryException if a matching message boards category could not be found
310            * @throws SystemException if a system exception occurred
311            */
312            public com.liferay.portlet.messageboards.model.MBCategory findByGroupId_First(
313                    long groupId,
314                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
315                    throws com.liferay.portal.kernel.exception.SystemException,
316                            com.liferay.portlet.messageboards.NoSuchCategoryException;
317    
318            /**
319            * Returns the last message boards category in the ordered set where groupId = &#63;.
320            *
321            * <p>
322            * 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.
323            * </p>
324            *
325            * @param groupId the group ID
326            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
327            * @return the last matching message boards category
328            * @throws com.liferay.portlet.messageboards.NoSuchCategoryException if a matching message boards category could not be found
329            * @throws SystemException if a system exception occurred
330            */
331            public com.liferay.portlet.messageboards.model.MBCategory findByGroupId_Last(
332                    long groupId,
333                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
334                    throws com.liferay.portal.kernel.exception.SystemException,
335                            com.liferay.portlet.messageboards.NoSuchCategoryException;
336    
337            /**
338            * Returns the message boards categories before and after the current message boards category in the ordered set where groupId = &#63;.
339            *
340            * <p>
341            * 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.
342            * </p>
343            *
344            * @param categoryId the primary key of the current message boards category
345            * @param groupId the group ID
346            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
347            * @return the previous, current, and next message boards category
348            * @throws com.liferay.portlet.messageboards.NoSuchCategoryException if a message boards category with the primary key could not be found
349            * @throws SystemException if a system exception occurred
350            */
351            public com.liferay.portlet.messageboards.model.MBCategory[] findByGroupId_PrevAndNext(
352                    long categoryId, long groupId,
353                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
354                    throws com.liferay.portal.kernel.exception.SystemException,
355                            com.liferay.portlet.messageboards.NoSuchCategoryException;
356    
357            /**
358            * Returns all the message boards categories that the user has permission to view where groupId = &#63;.
359            *
360            * @param groupId the group ID
361            * @return the matching message boards categories that the user has permission to view
362            * @throws SystemException if a system exception occurred
363            */
364            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> filterFindByGroupId(
365                    long groupId)
366                    throws com.liferay.portal.kernel.exception.SystemException;
367    
368            /**
369            * Returns a range of all the message boards categories that the user has permission to view where groupId = &#63;.
370            *
371            * <p>
372            * 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.
373            * </p>
374            *
375            * @param groupId the group ID
376            * @param start the lower bound of the range of message boards categories
377            * @param end the upper bound of the range of message boards categories (not inclusive)
378            * @return the range of matching message boards categories that the user has permission to view
379            * @throws SystemException if a system exception occurred
380            */
381            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> filterFindByGroupId(
382                    long groupId, int start, int end)
383                    throws com.liferay.portal.kernel.exception.SystemException;
384    
385            /**
386            * Returns an ordered range of all the message boards categories that the user has permissions to view where groupId = &#63;.
387            *
388            * <p>
389            * 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.
390            * </p>
391            *
392            * @param groupId the group ID
393            * @param start the lower bound of the range of message boards categories
394            * @param end the upper bound of the range of message boards categories (not inclusive)
395            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
396            * @return the ordered range of matching message boards categories that the user has permission to view
397            * @throws SystemException if a system exception occurred
398            */
399            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> filterFindByGroupId(
400                    long groupId, int start, int end,
401                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
402                    throws com.liferay.portal.kernel.exception.SystemException;
403    
404            /**
405            * Returns the message boards categories before and after the current message boards category in the ordered set of message boards categories that the user has permission to view where groupId = &#63;.
406            *
407            * @param categoryId the primary key of the current message boards category
408            * @param groupId the group ID
409            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
410            * @return the previous, current, and next message boards category
411            * @throws com.liferay.portlet.messageboards.NoSuchCategoryException if a message boards category with the primary key could not be found
412            * @throws SystemException if a system exception occurred
413            */
414            public com.liferay.portlet.messageboards.model.MBCategory[] filterFindByGroupId_PrevAndNext(
415                    long categoryId, long groupId,
416                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
417                    throws com.liferay.portal.kernel.exception.SystemException,
418                            com.liferay.portlet.messageboards.NoSuchCategoryException;
419    
420            /**
421            * Returns all the message boards categories where companyId = &#63;.
422            *
423            * @param companyId the company ID
424            * @return the matching message boards categories
425            * @throws SystemException if a system exception occurred
426            */
427            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByCompanyId(
428                    long companyId)
429                    throws com.liferay.portal.kernel.exception.SystemException;
430    
431            /**
432            * Returns a range of all the message boards categories where companyId = &#63;.
433            *
434            * <p>
435            * 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.
436            * </p>
437            *
438            * @param companyId the company ID
439            * @param start the lower bound of the range of message boards categories
440            * @param end the upper bound of the range of message boards categories (not inclusive)
441            * @return the range of matching message boards categories
442            * @throws SystemException if a system exception occurred
443            */
444            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByCompanyId(
445                    long companyId, int start, int end)
446                    throws com.liferay.portal.kernel.exception.SystemException;
447    
448            /**
449            * Returns an ordered range of all the message boards categories where companyId = &#63;.
450            *
451            * <p>
452            * 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.
453            * </p>
454            *
455            * @param companyId the company ID
456            * @param start the lower bound of the range of message boards categories
457            * @param end the upper bound of the range of message boards categories (not inclusive)
458            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
459            * @return the ordered range of matching message boards categories
460            * @throws SystemException if a system exception occurred
461            */
462            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByCompanyId(
463                    long companyId, int start, int end,
464                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
465                    throws com.liferay.portal.kernel.exception.SystemException;
466    
467            /**
468            * Returns the first message boards category in the ordered set where companyId = &#63;.
469            *
470            * <p>
471            * 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.
472            * </p>
473            *
474            * @param companyId the company ID
475            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
476            * @return the first matching message boards category
477            * @throws com.liferay.portlet.messageboards.NoSuchCategoryException if a matching message boards category could not be found
478            * @throws SystemException if a system exception occurred
479            */
480            public com.liferay.portlet.messageboards.model.MBCategory findByCompanyId_First(
481                    long companyId,
482                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
483                    throws com.liferay.portal.kernel.exception.SystemException,
484                            com.liferay.portlet.messageboards.NoSuchCategoryException;
485    
486            /**
487            * Returns the last message boards category in the ordered set where companyId = &#63;.
488            *
489            * <p>
490            * 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.
491            * </p>
492            *
493            * @param companyId the company ID
494            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
495            * @return the last matching message boards category
496            * @throws com.liferay.portlet.messageboards.NoSuchCategoryException if a matching message boards category could not be found
497            * @throws SystemException if a system exception occurred
498            */
499            public com.liferay.portlet.messageboards.model.MBCategory findByCompanyId_Last(
500                    long companyId,
501                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
502                    throws com.liferay.portal.kernel.exception.SystemException,
503                            com.liferay.portlet.messageboards.NoSuchCategoryException;
504    
505            /**
506            * Returns the message boards categories before and after the current message boards category in the ordered set where companyId = &#63;.
507            *
508            * <p>
509            * 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.
510            * </p>
511            *
512            * @param categoryId the primary key of the current message boards category
513            * @param companyId the company ID
514            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
515            * @return the previous, current, and next message boards category
516            * @throws com.liferay.portlet.messageboards.NoSuchCategoryException if a message boards category with the primary key could not be found
517            * @throws SystemException if a system exception occurred
518            */
519            public com.liferay.portlet.messageboards.model.MBCategory[] findByCompanyId_PrevAndNext(
520                    long categoryId, long companyId,
521                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
522                    throws com.liferay.portal.kernel.exception.SystemException,
523                            com.liferay.portlet.messageboards.NoSuchCategoryException;
524    
525            /**
526            * Returns all the message boards categories where groupId = &#63; and parentCategoryId = &#63;.
527            *
528            * @param groupId the group ID
529            * @param parentCategoryId the parent category ID
530            * @return the matching message boards categories
531            * @throws SystemException if a system exception occurred
532            */
533            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByG_P(
534                    long groupId, long parentCategoryId)
535                    throws com.liferay.portal.kernel.exception.SystemException;
536    
537            /**
538            * Returns a range of all the message boards categories where groupId = &#63; and parentCategoryId = &#63;.
539            *
540            * <p>
541            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
542            * </p>
543            *
544            * @param groupId the group ID
545            * @param parentCategoryId the parent category ID
546            * @param start the lower bound of the range of message boards categories
547            * @param end the upper bound of the range of message boards categories (not inclusive)
548            * @return the range of matching message boards categories
549            * @throws SystemException if a system exception occurred
550            */
551            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByG_P(
552                    long groupId, long parentCategoryId, int start, int end)
553                    throws com.liferay.portal.kernel.exception.SystemException;
554    
555            /**
556            * Returns an ordered range of all the message boards categories where groupId = &#63; and parentCategoryId = &#63;.
557            *
558            * <p>
559            * 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.
560            * </p>
561            *
562            * @param groupId the group ID
563            * @param parentCategoryId the parent category ID
564            * @param start the lower bound of the range of message boards categories
565            * @param end the upper bound of the range of message boards categories (not inclusive)
566            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
567            * @return the ordered range of matching message boards categories
568            * @throws SystemException if a system exception occurred
569            */
570            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByG_P(
571                    long groupId, long parentCategoryId, int start, int end,
572                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
573                    throws com.liferay.portal.kernel.exception.SystemException;
574    
575            /**
576            * Returns the first message boards category in the ordered set where groupId = &#63; and parentCategoryId = &#63;.
577            *
578            * <p>
579            * 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.
580            * </p>
581            *
582            * @param groupId the group ID
583            * @param parentCategoryId the parent category ID
584            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
585            * @return the first matching message boards category
586            * @throws com.liferay.portlet.messageboards.NoSuchCategoryException if a matching message boards category could not be found
587            * @throws SystemException if a system exception occurred
588            */
589            public com.liferay.portlet.messageboards.model.MBCategory findByG_P_First(
590                    long groupId, long parentCategoryId,
591                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
592                    throws com.liferay.portal.kernel.exception.SystemException,
593                            com.liferay.portlet.messageboards.NoSuchCategoryException;
594    
595            /**
596            * Returns the last message boards category in the ordered set where groupId = &#63; and parentCategoryId = &#63;.
597            *
598            * <p>
599            * 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.
600            * </p>
601            *
602            * @param groupId the group ID
603            * @param parentCategoryId the parent category ID
604            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
605            * @return the last matching message boards category
606            * @throws com.liferay.portlet.messageboards.NoSuchCategoryException if a matching message boards category could not be found
607            * @throws SystemException if a system exception occurred
608            */
609            public com.liferay.portlet.messageboards.model.MBCategory findByG_P_Last(
610                    long groupId, long parentCategoryId,
611                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
612                    throws com.liferay.portal.kernel.exception.SystemException,
613                            com.liferay.portlet.messageboards.NoSuchCategoryException;
614    
615            /**
616            * Returns the message boards categories before and after the current message boards category in the ordered set where groupId = &#63; and parentCategoryId = &#63;.
617            *
618            * <p>
619            * 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.
620            * </p>
621            *
622            * @param categoryId the primary key of the current message boards category
623            * @param groupId the group ID
624            * @param parentCategoryId the parent category ID
625            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
626            * @return the previous, current, and next message boards category
627            * @throws com.liferay.portlet.messageboards.NoSuchCategoryException if a message boards category with the primary key could not be found
628            * @throws SystemException if a system exception occurred
629            */
630            public com.liferay.portlet.messageboards.model.MBCategory[] findByG_P_PrevAndNext(
631                    long categoryId, long groupId, long parentCategoryId,
632                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
633                    throws com.liferay.portal.kernel.exception.SystemException,
634                            com.liferay.portlet.messageboards.NoSuchCategoryException;
635    
636            /**
637            * Returns all the message boards categories where groupId = &#63; and parentCategoryId = any &#63;.
638            *
639            * <p>
640            * 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.
641            * </p>
642            *
643            * @param groupId the group ID
644            * @param parentCategoryIds the parent category IDs
645            * @return the matching message boards categories
646            * @throws SystemException if a system exception occurred
647            */
648            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByG_P(
649                    long groupId, long[] parentCategoryIds)
650                    throws com.liferay.portal.kernel.exception.SystemException;
651    
652            /**
653            * Returns a range of all the message boards categories where groupId = &#63; and parentCategoryId = any &#63;.
654            *
655            * <p>
656            * 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.
657            * </p>
658            *
659            * @param groupId the group ID
660            * @param parentCategoryIds the parent category IDs
661            * @param start the lower bound of the range of message boards categories
662            * @param end the upper bound of the range of message boards categories (not inclusive)
663            * @return the range of matching message boards categories
664            * @throws SystemException if a system exception occurred
665            */
666            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByG_P(
667                    long groupId, long[] parentCategoryIds, int start, int end)
668                    throws com.liferay.portal.kernel.exception.SystemException;
669    
670            /**
671            * Returns an ordered range of all the message boards categories where groupId = &#63; and parentCategoryId = any &#63;.
672            *
673            * <p>
674            * 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.
675            * </p>
676            *
677            * @param groupId the group ID
678            * @param parentCategoryIds the parent category IDs
679            * @param start the lower bound of the range of message boards categories
680            * @param end the upper bound of the range of message boards categories (not inclusive)
681            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
682            * @return the ordered range of matching message boards categories
683            * @throws SystemException if a system exception occurred
684            */
685            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByG_P(
686                    long groupId, long[] parentCategoryIds, int start, int end,
687                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
688                    throws com.liferay.portal.kernel.exception.SystemException;
689    
690            /**
691            * Returns all the message boards categories that the user has permission to view where groupId = &#63; and parentCategoryId = &#63;.
692            *
693            * @param groupId the group ID
694            * @param parentCategoryId the parent category ID
695            * @return the matching message boards categories that the user has permission to view
696            * @throws SystemException if a system exception occurred
697            */
698            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> filterFindByG_P(
699                    long groupId, long parentCategoryId)
700                    throws com.liferay.portal.kernel.exception.SystemException;
701    
702            /**
703            * Returns a range of all the message boards categories that the user has permission to view where groupId = &#63; and parentCategoryId = &#63;.
704            *
705            * <p>
706            * 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.
707            * </p>
708            *
709            * @param groupId the group ID
710            * @param parentCategoryId the parent category ID
711            * @param start the lower bound of the range of message boards categories
712            * @param end the upper bound of the range of message boards categories (not inclusive)
713            * @return the range of matching message boards categories that the user has permission to view
714            * @throws SystemException if a system exception occurred
715            */
716            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> filterFindByG_P(
717                    long groupId, long parentCategoryId, int start, int end)
718                    throws com.liferay.portal.kernel.exception.SystemException;
719    
720            /**
721            * Returns an ordered range of all the message boards categories that the user has permissions to view where groupId = &#63; and parentCategoryId = &#63;.
722            *
723            * <p>
724            * 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.
725            * </p>
726            *
727            * @param groupId the group ID
728            * @param parentCategoryId the parent category ID
729            * @param start the lower bound of the range of message boards categories
730            * @param end the upper bound of the range of message boards categories (not inclusive)
731            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
732            * @return the ordered range of matching message boards categories that the user has permission to view
733            * @throws SystemException if a system exception occurred
734            */
735            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> filterFindByG_P(
736                    long groupId, long parentCategoryId, int start, int end,
737                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
738                    throws com.liferay.portal.kernel.exception.SystemException;
739    
740            /**
741            * Returns the message boards categories before and after the current message boards category in the ordered set of message boards categories that the user has permission to view where groupId = &#63; and parentCategoryId = &#63;.
742            *
743            * @param categoryId the primary key of the current message boards category
744            * @param groupId the group ID
745            * @param parentCategoryId the parent category ID
746            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
747            * @return the previous, current, and next message boards category
748            * @throws com.liferay.portlet.messageboards.NoSuchCategoryException if a message boards category with the primary key could not be found
749            * @throws SystemException if a system exception occurred
750            */
751            public com.liferay.portlet.messageboards.model.MBCategory[] filterFindByG_P_PrevAndNext(
752                    long categoryId, long groupId, long parentCategoryId,
753                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
754                    throws com.liferay.portal.kernel.exception.SystemException,
755                            com.liferay.portlet.messageboards.NoSuchCategoryException;
756    
757            /**
758            * Returns all the message boards categories that the user has permission to view where groupId = &#63; and parentCategoryId = any &#63;.
759            *
760            * @param groupId the group ID
761            * @param parentCategoryIds the parent category IDs
762            * @return the 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)
767                    throws com.liferay.portal.kernel.exception.SystemException;
768    
769            /**
770            * Returns a range of all the message boards categories that the user has permission to view where groupId = &#63; and parentCategoryId = any &#63;.
771            *
772            * <p>
773            * 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.
774            * </p>
775            *
776            * @param groupId the group ID
777            * @param parentCategoryIds the parent category IDs
778            * @param start the lower bound of the range of message boards categories
779            * @param end the upper bound of the range of message boards categories (not inclusive)
780            * @return the range of matching message boards categories that the user has permission to view
781            * @throws SystemException if a system exception occurred
782            */
783            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> filterFindByG_P(
784                    long groupId, long[] parentCategoryIds, int start, int end)
785                    throws com.liferay.portal.kernel.exception.SystemException;
786    
787            /**
788            * Returns an ordered range of all the message boards categories that the user has permission to view where groupId = &#63; and parentCategoryId = any &#63;.
789            *
790            * <p>
791            * 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.
792            * </p>
793            *
794            * @param groupId the group ID
795            * @param parentCategoryIds the parent category IDs
796            * @param start the lower bound of the range of message boards categories
797            * @param end the upper bound of the range of message boards categories (not inclusive)
798            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
799            * @return the ordered range of matching message boards categories that the user has permission to view
800            * @throws SystemException if a system exception occurred
801            */
802            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> filterFindByG_P(
803                    long groupId, long[] parentCategoryIds, int start, int end,
804                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
805                    throws com.liferay.portal.kernel.exception.SystemException;
806    
807            /**
808            * Returns all the message boards categories.
809            *
810            * @return the message boards categories
811            * @throws SystemException if a system exception occurred
812            */
813            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findAll()
814                    throws com.liferay.portal.kernel.exception.SystemException;
815    
816            /**
817            * Returns a range of all the message boards categories.
818            *
819            * <p>
820            * 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.
821            * </p>
822            *
823            * @param start the lower bound of the range of message boards categories
824            * @param end the upper bound of the range of message boards categories (not inclusive)
825            * @return the range of message boards categories
826            * @throws SystemException if a system exception occurred
827            */
828            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findAll(
829                    int start, int end)
830                    throws com.liferay.portal.kernel.exception.SystemException;
831    
832            /**
833            * Returns an ordered range of all the message boards categories.
834            *
835            * <p>
836            * 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.
837            * </p>
838            *
839            * @param start the lower bound of the range of message boards categories
840            * @param end the upper bound of the range of message boards categories (not inclusive)
841            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
842            * @return the ordered range of message boards categories
843            * @throws SystemException if a system exception occurred
844            */
845            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findAll(
846                    int start, int end,
847                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
848                    throws com.liferay.portal.kernel.exception.SystemException;
849    
850            /**
851            * Removes all the message boards categories where uuid = &#63; from the database.
852            *
853            * @param uuid the uuid
854            * @throws SystemException if a system exception occurred
855            */
856            public void removeByUuid(java.lang.String uuid)
857                    throws com.liferay.portal.kernel.exception.SystemException;
858    
859            /**
860            * Removes the message boards category where uuid = &#63; and groupId = &#63; from the database.
861            *
862            * @param uuid the uuid
863            * @param groupId the group ID
864            * @throws SystemException if a system exception occurred
865            */
866            public void removeByUUID_G(java.lang.String uuid, long groupId)
867                    throws com.liferay.portal.kernel.exception.SystemException,
868                            com.liferay.portlet.messageboards.NoSuchCategoryException;
869    
870            /**
871            * Removes all the message boards categories where groupId = &#63; from the database.
872            *
873            * @param groupId the group ID
874            * @throws SystemException if a system exception occurred
875            */
876            public void removeByGroupId(long groupId)
877                    throws com.liferay.portal.kernel.exception.SystemException;
878    
879            /**
880            * Removes all the message boards categories where companyId = &#63; from the database.
881            *
882            * @param companyId the company ID
883            * @throws SystemException if a system exception occurred
884            */
885            public void removeByCompanyId(long companyId)
886                    throws com.liferay.portal.kernel.exception.SystemException;
887    
888            /**
889            * Removes all the message boards categories where groupId = &#63; and parentCategoryId = &#63; from the database.
890            *
891            * @param groupId the group ID
892            * @param parentCategoryId the parent category ID
893            * @throws SystemException if a system exception occurred
894            */
895            public void removeByG_P(long groupId, long parentCategoryId)
896                    throws com.liferay.portal.kernel.exception.SystemException;
897    
898            /**
899            * Removes all the message boards categories from the database.
900            *
901            * @throws SystemException if a system exception occurred
902            */
903            public void removeAll()
904                    throws com.liferay.portal.kernel.exception.SystemException;
905    
906            /**
907            * Returns the number of message boards categories where uuid = &#63;.
908            *
909            * @param uuid the uuid
910            * @return the number of matching message boards categories
911            * @throws SystemException if a system exception occurred
912            */
913            public int countByUuid(java.lang.String uuid)
914                    throws com.liferay.portal.kernel.exception.SystemException;
915    
916            /**
917            * Returns the number of message boards categories where uuid = &#63; and groupId = &#63;.
918            *
919            * @param uuid the uuid
920            * @param groupId the group ID
921            * @return the number of matching message boards categories
922            * @throws SystemException if a system exception occurred
923            */
924            public int countByUUID_G(java.lang.String uuid, long groupId)
925                    throws com.liferay.portal.kernel.exception.SystemException;
926    
927            /**
928            * Returns the number of message boards categories where groupId = &#63;.
929            *
930            * @param groupId the group ID
931            * @return the number of matching message boards categories
932            * @throws SystemException if a system exception occurred
933            */
934            public int countByGroupId(long groupId)
935                    throws com.liferay.portal.kernel.exception.SystemException;
936    
937            /**
938            * Returns the number of message boards categories that the user has permission to view where groupId = &#63;.
939            *
940            * @param groupId the group ID
941            * @return the number of matching message boards categories that the user has permission to view
942            * @throws SystemException if a system exception occurred
943            */
944            public int filterCountByGroupId(long groupId)
945                    throws com.liferay.portal.kernel.exception.SystemException;
946    
947            /**
948            * Returns the number of message boards categories where companyId = &#63;.
949            *
950            * @param companyId the company ID
951            * @return the number of matching message boards categories
952            * @throws SystemException if a system exception occurred
953            */
954            public int countByCompanyId(long companyId)
955                    throws com.liferay.portal.kernel.exception.SystemException;
956    
957            /**
958            * Returns the number of message boards categories where groupId = &#63; and parentCategoryId = &#63;.
959            *
960            * @param groupId the group ID
961            * @param parentCategoryId the parent category ID
962            * @return the number of matching message boards categories
963            * @throws SystemException if a system exception occurred
964            */
965            public int countByG_P(long groupId, long parentCategoryId)
966                    throws com.liferay.portal.kernel.exception.SystemException;
967    
968            /**
969            * Returns the number of message boards categories where groupId = &#63; and parentCategoryId = any &#63;.
970            *
971            * @param groupId the group ID
972            * @param parentCategoryIds the parent category IDs
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[] parentCategoryIds)
977                    throws com.liferay.portal.kernel.exception.SystemException;
978    
979            /**
980            * Returns the number of message boards categories that the user has permission to view where groupId = &#63; and parentCategoryId = &#63;.
981            *
982            * @param groupId the group ID
983            * @param parentCategoryId the parent category ID
984            * @return the number of matching message boards categories that the user has permission to view
985            * @throws SystemException if a system exception occurred
986            */
987            public int filterCountByG_P(long groupId, long parentCategoryId)
988                    throws com.liferay.portal.kernel.exception.SystemException;
989    
990            /**
991            * Returns the number of message boards categories that the user has permission to view where groupId = &#63; and parentCategoryId = any &#63;.
992            *
993            * @param groupId the group ID
994            * @param parentCategoryIds the parent category IDs
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[] parentCategoryIds)
999                    throws com.liferay.portal.kernel.exception.SystemException;
1000    
1001            /**
1002            * Returns the number of message boards categories.
1003            *
1004            * @return the number of message boards categories
1005            * @throws SystemException if a system exception occurred
1006            */
1007            public int countAll()
1008                    throws com.liferay.portal.kernel.exception.SystemException;
1009    
1010            public MBCategory remove(MBCategory mbCategory) throws SystemException;
1011    }