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