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