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 throws com.liferay.portal.kernel.exception.SystemException; 081 082 /** 083 * Returns the message boards category with the primary key or throws a {@link com.liferay.portlet.messageboards.NoSuchCategoryException} if it could not be found. 084 * 085 * @param categoryId the primary key of the message boards category 086 * @return the message boards category 087 * @throws com.liferay.portlet.messageboards.NoSuchCategoryException if a message boards category with the primary key could not be found 088 * @throws SystemException if a system exception occurred 089 */ 090 public com.liferay.portlet.messageboards.model.MBCategory findByPrimaryKey( 091 long categoryId) 092 throws com.liferay.portal.kernel.exception.SystemException, 093 com.liferay.portlet.messageboards.NoSuchCategoryException; 094 095 /** 096 * Returns the message boards category with the primary key or returns <code>null</code> if it could not be found. 097 * 098 * @param categoryId the primary key of the message boards category 099 * @return the message boards category, or <code>null</code> if a message boards category with the primary key could not be found 100 * @throws SystemException if a system exception occurred 101 */ 102 public com.liferay.portlet.messageboards.model.MBCategory fetchByPrimaryKey( 103 long categoryId) 104 throws com.liferay.portal.kernel.exception.SystemException; 105 106 /** 107 * Returns all the message boards categories where uuid = ?. 108 * 109 * @param uuid the uuid 110 * @return the matching message boards categories 111 * @throws SystemException if a system exception occurred 112 */ 113 public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByUuid( 114 java.lang.String uuid) 115 throws com.liferay.portal.kernel.exception.SystemException; 116 117 /** 118 * Returns a range of all the message boards categories where uuid = ?. 119 * 120 * <p> 121 * 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. 122 * </p> 123 * 124 * @param uuid the uuid 125 * @param start the lower bound of the range of message boards categories 126 * @param end the upper bound of the range of message boards categories (not inclusive) 127 * @return the range of matching message boards categories 128 * @throws SystemException if a system exception occurred 129 */ 130 public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByUuid( 131 java.lang.String uuid, int start, int end) 132 throws com.liferay.portal.kernel.exception.SystemException; 133 134 /** 135 * Returns an ordered range of all the message boards categories where uuid = ?. 136 * 137 * <p> 138 * 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. 139 * </p> 140 * 141 * @param uuid the uuid 142 * @param start the lower bound of the range of message boards categories 143 * @param end the upper bound of the range of message boards categories (not inclusive) 144 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 145 * @return the ordered range of matching message boards categories 146 * @throws SystemException if a system exception occurred 147 */ 148 public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByUuid( 149 java.lang.String uuid, int start, int end, 150 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 151 throws com.liferay.portal.kernel.exception.SystemException; 152 153 /** 154 * Returns the first message boards category in the ordered set where uuid = ?. 155 * 156 * @param uuid the uuid 157 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 158 * @return the first matching message boards category 159 * @throws com.liferay.portlet.messageboards.NoSuchCategoryException if a matching message boards category could not be found 160 * @throws SystemException if a system exception occurred 161 */ 162 public com.liferay.portlet.messageboards.model.MBCategory findByUuid_First( 163 java.lang.String uuid, 164 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 165 throws com.liferay.portal.kernel.exception.SystemException, 166 com.liferay.portlet.messageboards.NoSuchCategoryException; 167 168 /** 169 * Returns the first message boards category in the ordered set where uuid = ?. 170 * 171 * @param uuid the uuid 172 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 173 * @return the first matching message boards category, or <code>null</code> if a matching message boards category could not be found 174 * @throws SystemException if a system exception occurred 175 */ 176 public com.liferay.portlet.messageboards.model.MBCategory fetchByUuid_First( 177 java.lang.String uuid, 178 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 179 throws com.liferay.portal.kernel.exception.SystemException; 180 181 /** 182 * Returns the last message boards category in the ordered set where uuid = ?. 183 * 184 * @param uuid the uuid 185 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 186 * @return the last matching message boards category 187 * @throws com.liferay.portlet.messageboards.NoSuchCategoryException if a matching message boards category could not be found 188 * @throws SystemException if a system exception occurred 189 */ 190 public com.liferay.portlet.messageboards.model.MBCategory findByUuid_Last( 191 java.lang.String uuid, 192 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 193 throws com.liferay.portal.kernel.exception.SystemException, 194 com.liferay.portlet.messageboards.NoSuchCategoryException; 195 196 /** 197 * Returns the last message boards category in the ordered set where uuid = ?. 198 * 199 * @param uuid the uuid 200 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 201 * @return the last matching message boards category, or <code>null</code> if a matching message boards category could not be found 202 * @throws SystemException if a system exception occurred 203 */ 204 public com.liferay.portlet.messageboards.model.MBCategory fetchByUuid_Last( 205 java.lang.String uuid, 206 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 207 throws com.liferay.portal.kernel.exception.SystemException; 208 209 /** 210 * Returns the message boards categories before and after the current message boards category in the ordered set where uuid = ?. 211 * 212 * @param categoryId the primary key of the current message boards category 213 * @param uuid the uuid 214 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 215 * @return the previous, current, and next message boards category 216 * @throws com.liferay.portlet.messageboards.NoSuchCategoryException if a message boards category with the primary key could not be found 217 * @throws SystemException if a system exception occurred 218 */ 219 public com.liferay.portlet.messageboards.model.MBCategory[] findByUuid_PrevAndNext( 220 long categoryId, java.lang.String uuid, 221 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 222 throws com.liferay.portal.kernel.exception.SystemException, 223 com.liferay.portlet.messageboards.NoSuchCategoryException; 224 225 /** 226 * Returns the message boards category where uuid = ? and groupId = ? or throws a {@link com.liferay.portlet.messageboards.NoSuchCategoryException} if it could not be found. 227 * 228 * @param uuid the uuid 229 * @param groupId the group ID 230 * @return the matching message boards category 231 * @throws com.liferay.portlet.messageboards.NoSuchCategoryException 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 findByUUID_G( 235 java.lang.String uuid, long groupId) 236 throws com.liferay.portal.kernel.exception.SystemException, 237 com.liferay.portlet.messageboards.NoSuchCategoryException; 238 239 /** 240 * Returns the message boards category where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 241 * 242 * @param uuid the uuid 243 * @param groupId the group ID 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) 249 throws com.liferay.portal.kernel.exception.SystemException; 250 251 /** 252 * 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. 253 * 254 * @param uuid the uuid 255 * @param groupId the group ID 256 * @param retrieveFromCache whether to use the finder cache 257 * @return the matching message boards category, or <code>null</code> if a matching message boards category could not be found 258 * @throws SystemException if a system exception occurred 259 */ 260 public com.liferay.portlet.messageboards.model.MBCategory fetchByUUID_G( 261 java.lang.String uuid, long groupId, boolean retrieveFromCache) 262 throws com.liferay.portal.kernel.exception.SystemException; 263 264 /** 265 * Returns all the message boards categories where uuid = ? and companyId = ?. 266 * 267 * @param uuid the uuid 268 * @param companyId the company 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> findByUuid_C( 273 java.lang.String uuid, long companyId) 274 throws com.liferay.portal.kernel.exception.SystemException; 275 276 /** 277 * Returns a range of all the message boards categories where uuid = ? and companyId = ?. 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 uuid the uuid 284 * @param companyId the company ID 285 * @param start the lower bound of the range of message boards categories 286 * @param end the upper bound of the range of message boards categories (not inclusive) 287 * @return the range of matching message boards categories 288 * @throws SystemException if a system exception occurred 289 */ 290 public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByUuid_C( 291 java.lang.String uuid, long companyId, int start, int end) 292 throws com.liferay.portal.kernel.exception.SystemException; 293 294 /** 295 * Returns an ordered range of all the message boards categories where uuid = ? and companyId = ?. 296 * 297 * <p> 298 * 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. 299 * </p> 300 * 301 * @param uuid the uuid 302 * @param companyId the company ID 303 * @param start the lower bound of the range of message boards categories 304 * @param end the upper bound of the range of message boards categories (not inclusive) 305 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 306 * @return the ordered range of matching message boards categories 307 * @throws SystemException if a system exception occurred 308 */ 309 public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByUuid_C( 310 java.lang.String uuid, long companyId, int start, int end, 311 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 312 throws com.liferay.portal.kernel.exception.SystemException; 313 314 /** 315 * Returns the first message boards category in the ordered set where uuid = ? and companyId = ?. 316 * 317 * @param uuid the uuid 318 * @param companyId the company ID 319 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 320 * @return the first matching message boards category 321 * @throws com.liferay.portlet.messageboards.NoSuchCategoryException if a matching message boards category could not be found 322 * @throws SystemException if a system exception occurred 323 */ 324 public com.liferay.portlet.messageboards.model.MBCategory findByUuid_C_First( 325 java.lang.String uuid, long companyId, 326 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 327 throws com.liferay.portal.kernel.exception.SystemException, 328 com.liferay.portlet.messageboards.NoSuchCategoryException; 329 330 /** 331 * Returns the first message boards category in the ordered set where uuid = ? and companyId = ?. 332 * 333 * @param uuid the uuid 334 * @param companyId the company ID 335 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 336 * @return the first matching message boards category, or <code>null</code> if a matching message boards category could not be found 337 * @throws SystemException if a system exception occurred 338 */ 339 public com.liferay.portlet.messageboards.model.MBCategory fetchByUuid_C_First( 340 java.lang.String uuid, long companyId, 341 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 342 throws com.liferay.portal.kernel.exception.SystemException; 343 344 /** 345 * Returns the last message boards category in the ordered set where uuid = ? and companyId = ?. 346 * 347 * @param uuid the uuid 348 * @param companyId the company ID 349 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 350 * @return the last matching message boards category 351 * @throws com.liferay.portlet.messageboards.NoSuchCategoryException if a matching message boards category could not be found 352 * @throws SystemException if a system exception occurred 353 */ 354 public com.liferay.portlet.messageboards.model.MBCategory findByUuid_C_Last( 355 java.lang.String uuid, long companyId, 356 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 357 throws com.liferay.portal.kernel.exception.SystemException, 358 com.liferay.portlet.messageboards.NoSuchCategoryException; 359 360 /** 361 * Returns the last message boards category in the ordered set where uuid = ? and companyId = ?. 362 * 363 * @param uuid the uuid 364 * @param companyId the company ID 365 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 366 * @return the last matching message boards category, or <code>null</code> if a matching message boards category could not be found 367 * @throws SystemException if a system exception occurred 368 */ 369 public com.liferay.portlet.messageboards.model.MBCategory fetchByUuid_C_Last( 370 java.lang.String uuid, long companyId, 371 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 372 throws com.liferay.portal.kernel.exception.SystemException; 373 374 /** 375 * Returns the message boards categories before and after the current message boards category in the ordered set where uuid = ? and companyId = ?. 376 * 377 * @param categoryId the primary key of the current message boards category 378 * @param uuid the uuid 379 * @param companyId the company ID 380 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 381 * @return the previous, current, and next message boards category 382 * @throws com.liferay.portlet.messageboards.NoSuchCategoryException if a message boards category with the primary key could not be found 383 * @throws SystemException if a system exception occurred 384 */ 385 public com.liferay.portlet.messageboards.model.MBCategory[] findByUuid_C_PrevAndNext( 386 long categoryId, java.lang.String uuid, long companyId, 387 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 388 throws com.liferay.portal.kernel.exception.SystemException, 389 com.liferay.portlet.messageboards.NoSuchCategoryException; 390 391 /** 392 * Returns all the message boards categories where groupId = ?. 393 * 394 * @param groupId the group ID 395 * @return the matching message boards categories 396 * @throws SystemException if a system exception occurred 397 */ 398 public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByGroupId( 399 long groupId) 400 throws com.liferay.portal.kernel.exception.SystemException; 401 402 /** 403 * Returns a range of all the message boards categories where groupId = ?. 404 * 405 * <p> 406 * 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. 407 * </p> 408 * 409 * @param groupId the group ID 410 * @param start the lower bound of the range of message boards categories 411 * @param end the upper bound of the range of message boards categories (not inclusive) 412 * @return the range of matching message boards categories 413 * @throws SystemException if a system exception occurred 414 */ 415 public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByGroupId( 416 long groupId, int start, int end) 417 throws com.liferay.portal.kernel.exception.SystemException; 418 419 /** 420 * Returns an ordered range of all the message boards categories where groupId = ?. 421 * 422 * <p> 423 * 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. 424 * </p> 425 * 426 * @param groupId the group ID 427 * @param start the lower bound of the range of message boards categories 428 * @param end the upper bound of the range of message boards categories (not inclusive) 429 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 430 * @return the ordered range of matching message boards categories 431 * @throws SystemException if a system exception occurred 432 */ 433 public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByGroupId( 434 long groupId, int start, int end, 435 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 436 throws com.liferay.portal.kernel.exception.SystemException; 437 438 /** 439 * Returns the first message boards category in the ordered set where groupId = ?. 440 * 441 * @param groupId the group ID 442 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 443 * @return the first matching message boards category 444 * @throws com.liferay.portlet.messageboards.NoSuchCategoryException if a matching message boards category could not be found 445 * @throws SystemException if a system exception occurred 446 */ 447 public com.liferay.portlet.messageboards.model.MBCategory findByGroupId_First( 448 long groupId, 449 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 450 throws com.liferay.portal.kernel.exception.SystemException, 451 com.liferay.portlet.messageboards.NoSuchCategoryException; 452 453 /** 454 * Returns the first message boards category in the ordered set where groupId = ?. 455 * 456 * @param groupId the group ID 457 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 458 * @return the first matching message boards category, or <code>null</code> if a matching message boards category could not be found 459 * @throws SystemException if a system exception occurred 460 */ 461 public com.liferay.portlet.messageboards.model.MBCategory fetchByGroupId_First( 462 long groupId, 463 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 464 throws com.liferay.portal.kernel.exception.SystemException; 465 466 /** 467 * Returns the last message boards category in the ordered set where groupId = ?. 468 * 469 * @param groupId the group ID 470 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 471 * @return the last matching message boards category 472 * @throws com.liferay.portlet.messageboards.NoSuchCategoryException if a matching message boards category could not be found 473 * @throws SystemException if a system exception occurred 474 */ 475 public com.liferay.portlet.messageboards.model.MBCategory findByGroupId_Last( 476 long groupId, 477 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 478 throws com.liferay.portal.kernel.exception.SystemException, 479 com.liferay.portlet.messageboards.NoSuchCategoryException; 480 481 /** 482 * Returns the last message boards category in the ordered set where groupId = ?. 483 * 484 * @param groupId the group ID 485 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 486 * @return the last matching message boards category, or <code>null</code> if a matching message boards category could not be found 487 * @throws SystemException if a system exception occurred 488 */ 489 public com.liferay.portlet.messageboards.model.MBCategory fetchByGroupId_Last( 490 long groupId, 491 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 492 throws com.liferay.portal.kernel.exception.SystemException; 493 494 /** 495 * Returns the message boards categories before and after the current message boards category in the ordered set where groupId = ?. 496 * 497 * @param categoryId the primary key of the current message boards category 498 * @param groupId the group ID 499 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 500 * @return the previous, current, and next message boards category 501 * @throws com.liferay.portlet.messageboards.NoSuchCategoryException if a message boards category with the primary key could not be found 502 * @throws SystemException if a system exception occurred 503 */ 504 public com.liferay.portlet.messageboards.model.MBCategory[] findByGroupId_PrevAndNext( 505 long categoryId, long groupId, 506 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 507 throws com.liferay.portal.kernel.exception.SystemException, 508 com.liferay.portlet.messageboards.NoSuchCategoryException; 509 510 /** 511 * Returns all the message boards categories that the user has permission to view where groupId = ?. 512 * 513 * @param groupId the group ID 514 * @return the matching message boards categories that the user has permission to view 515 * @throws SystemException if a system exception occurred 516 */ 517 public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> filterFindByGroupId( 518 long groupId) 519 throws com.liferay.portal.kernel.exception.SystemException; 520 521 /** 522 * Returns a range of all the message boards categories that the user has permission to view where groupId = ?. 523 * 524 * <p> 525 * 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. 526 * </p> 527 * 528 * @param groupId the group ID 529 * @param start the lower bound of the range of message boards categories 530 * @param end the upper bound of the range of message boards categories (not inclusive) 531 * @return the range of matching message boards categories that the user has permission to view 532 * @throws SystemException if a system exception occurred 533 */ 534 public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> filterFindByGroupId( 535 long groupId, int start, int end) 536 throws com.liferay.portal.kernel.exception.SystemException; 537 538 /** 539 * Returns an ordered range of all the message boards categories that the user has permissions to view where groupId = ?. 540 * 541 * <p> 542 * 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. 543 * </p> 544 * 545 * @param groupId the group ID 546 * @param start the lower bound of the range of message boards categories 547 * @param end the upper bound of the range of message boards categories (not inclusive) 548 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 549 * @return the ordered range of matching message boards categories that the user has permission to view 550 * @throws SystemException if a system exception occurred 551 */ 552 public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> filterFindByGroupId( 553 long groupId, int start, int end, 554 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 555 throws com.liferay.portal.kernel.exception.SystemException; 556 557 /** 558 * 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 = ?. 559 * 560 * @param categoryId the primary key of the current message boards category 561 * @param groupId the group ID 562 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 563 * @return the previous, current, and next message boards category 564 * @throws com.liferay.portlet.messageboards.NoSuchCategoryException if a message boards category with the primary key could not be found 565 * @throws SystemException if a system exception occurred 566 */ 567 public com.liferay.portlet.messageboards.model.MBCategory[] filterFindByGroupId_PrevAndNext( 568 long categoryId, long groupId, 569 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 570 throws com.liferay.portal.kernel.exception.SystemException, 571 com.liferay.portlet.messageboards.NoSuchCategoryException; 572 573 /** 574 * Returns all the message boards categories where companyId = ?. 575 * 576 * @param companyId the company ID 577 * @return the matching message boards categories 578 * @throws SystemException if a system exception occurred 579 */ 580 public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByCompanyId( 581 long companyId) 582 throws com.liferay.portal.kernel.exception.SystemException; 583 584 /** 585 * Returns a range of all the message boards categories where companyId = ?. 586 * 587 * <p> 588 * 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. 589 * </p> 590 * 591 * @param companyId the company ID 592 * @param start the lower bound of the range of message boards categories 593 * @param end the upper bound of the range of message boards categories (not inclusive) 594 * @return the range of matching message boards categories 595 * @throws SystemException if a system exception occurred 596 */ 597 public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByCompanyId( 598 long companyId, int start, int end) 599 throws com.liferay.portal.kernel.exception.SystemException; 600 601 /** 602 * Returns an ordered range of all the message boards categories where companyId = ?. 603 * 604 * <p> 605 * 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. 606 * </p> 607 * 608 * @param companyId the company ID 609 * @param start the lower bound of the range of message boards categories 610 * @param end the upper bound of the range of message boards categories (not inclusive) 611 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 612 * @return the ordered range of matching message boards categories 613 * @throws SystemException if a system exception occurred 614 */ 615 public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByCompanyId( 616 long companyId, int start, int end, 617 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 618 throws com.liferay.portal.kernel.exception.SystemException; 619 620 /** 621 * Returns the first message boards category in the ordered set where companyId = ?. 622 * 623 * @param companyId the company ID 624 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 625 * @return the first matching message boards category 626 * @throws com.liferay.portlet.messageboards.NoSuchCategoryException if a matching message boards category could not be found 627 * @throws SystemException if a system exception occurred 628 */ 629 public com.liferay.portlet.messageboards.model.MBCategory findByCompanyId_First( 630 long companyId, 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 the first message boards category in the ordered set where companyId = ?. 637 * 638 * @param companyId the company ID 639 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 640 * @return the first matching message boards category, or <code>null</code> if a matching message boards category could not be found 641 * @throws SystemException if a system exception occurred 642 */ 643 public com.liferay.portlet.messageboards.model.MBCategory fetchByCompanyId_First( 644 long companyId, 645 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 646 throws com.liferay.portal.kernel.exception.SystemException; 647 648 /** 649 * Returns the last message boards category in the ordered set where companyId = ?. 650 * 651 * @param companyId the company ID 652 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 653 * @return the last matching message boards category 654 * @throws com.liferay.portlet.messageboards.NoSuchCategoryException if a matching message boards category could not be found 655 * @throws SystemException if a system exception occurred 656 */ 657 public com.liferay.portlet.messageboards.model.MBCategory findByCompanyId_Last( 658 long companyId, 659 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 660 throws com.liferay.portal.kernel.exception.SystemException, 661 com.liferay.portlet.messageboards.NoSuchCategoryException; 662 663 /** 664 * Returns the last message boards category in the ordered set where companyId = ?. 665 * 666 * @param companyId the company 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 fetchByCompanyId_Last( 672 long companyId, 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 companyId = ?. 678 * 679 * @param categoryId the primary key of the current message boards category 680 * @param companyId the company ID 681 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 682 * @return the previous, current, and next message boards category 683 * @throws com.liferay.portlet.messageboards.NoSuchCategoryException if a message boards category with the primary key could not be found 684 * @throws SystemException if a system exception occurred 685 */ 686 public com.liferay.portlet.messageboards.model.MBCategory[] findByCompanyId_PrevAndNext( 687 long categoryId, long companyId, 688 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 689 throws com.liferay.portal.kernel.exception.SystemException, 690 com.liferay.portlet.messageboards.NoSuchCategoryException; 691 692 /** 693 * Returns all the message boards categories where groupId = ? and parentCategoryId = ?. 694 * 695 * @param groupId the group ID 696 * @param parentCategoryId the parent category ID 697 * @return the matching message boards categories 698 * @throws SystemException if a system exception occurred 699 */ 700 public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByG_P( 701 long groupId, long parentCategoryId) 702 throws com.liferay.portal.kernel.exception.SystemException; 703 704 /** 705 * Returns a range of all the message boards categories where groupId = ? and parentCategoryId = ?. 706 * 707 * <p> 708 * 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. 709 * </p> 710 * 711 * @param groupId the group ID 712 * @param parentCategoryId the parent category ID 713 * @param start the lower bound of the range of message boards categories 714 * @param end the upper bound of the range of message boards categories (not inclusive) 715 * @return the range of matching message boards categories 716 * @throws SystemException if a system exception occurred 717 */ 718 public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByG_P( 719 long groupId, long parentCategoryId, int start, int end) 720 throws com.liferay.portal.kernel.exception.SystemException; 721 722 /** 723 * Returns an ordered range of all the message boards categories where groupId = ? and parentCategoryId = ?. 724 * 725 * <p> 726 * 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. 727 * </p> 728 * 729 * @param groupId the group ID 730 * @param parentCategoryId the parent category ID 731 * @param start the lower bound of the range of message boards categories 732 * @param end the upper bound of the range of message boards categories (not inclusive) 733 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 734 * @return the ordered range of matching message boards categories 735 * @throws SystemException if a system exception occurred 736 */ 737 public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByG_P( 738 long groupId, long parentCategoryId, int start, int end, 739 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 740 throws com.liferay.portal.kernel.exception.SystemException; 741 742 /** 743 * Returns the first message boards category in the ordered set where groupId = ? and parentCategoryId = ?. 744 * 745 * @param groupId the group ID 746 * @param parentCategoryId the parent category ID 747 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 748 * @return the first matching message boards category 749 * @throws com.liferay.portlet.messageboards.NoSuchCategoryException if a matching message boards category could not be found 750 * @throws SystemException if a system exception occurred 751 */ 752 public com.liferay.portlet.messageboards.model.MBCategory findByG_P_First( 753 long groupId, long parentCategoryId, 754 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 755 throws com.liferay.portal.kernel.exception.SystemException, 756 com.liferay.portlet.messageboards.NoSuchCategoryException; 757 758 /** 759 * Returns the first message boards category in the ordered set where groupId = ? and parentCategoryId = ?. 760 * 761 * @param groupId the group ID 762 * @param parentCategoryId the parent category ID 763 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 764 * @return the first matching message boards category, or <code>null</code> if a matching message boards category could not be found 765 * @throws SystemException if a system exception occurred 766 */ 767 public com.liferay.portlet.messageboards.model.MBCategory fetchByG_P_First( 768 long groupId, long parentCategoryId, 769 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 770 throws com.liferay.portal.kernel.exception.SystemException; 771 772 /** 773 * Returns the last message boards category in the ordered set where groupId = ? and parentCategoryId = ?. 774 * 775 * @param groupId the group ID 776 * @param parentCategoryId the parent category ID 777 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 778 * @return the last matching message boards category 779 * @throws com.liferay.portlet.messageboards.NoSuchCategoryException if a matching message boards category could not be found 780 * @throws SystemException if a system exception occurred 781 */ 782 public com.liferay.portlet.messageboards.model.MBCategory findByG_P_Last( 783 long groupId, long parentCategoryId, 784 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 785 throws com.liferay.portal.kernel.exception.SystemException, 786 com.liferay.portlet.messageboards.NoSuchCategoryException; 787 788 /** 789 * Returns the last message boards category in the ordered set where groupId = ? and parentCategoryId = ?. 790 * 791 * @param groupId the group ID 792 * @param parentCategoryId the parent category ID 793 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 794 * @return the last matching message boards category, or <code>null</code> if a matching message boards category could not be found 795 * @throws SystemException if a system exception occurred 796 */ 797 public com.liferay.portlet.messageboards.model.MBCategory fetchByG_P_Last( 798 long groupId, long parentCategoryId, 799 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 800 throws com.liferay.portal.kernel.exception.SystemException; 801 802 /** 803 * Returns the message boards categories before and after the current message boards category in the ordered set where groupId = ? and parentCategoryId = ?. 804 * 805 * @param categoryId the primary key of the current message boards category 806 * @param groupId the group ID 807 * @param parentCategoryId the parent category ID 808 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 809 * @return the previous, current, and next message boards category 810 * @throws com.liferay.portlet.messageboards.NoSuchCategoryException if a message boards category with the primary key could not be found 811 * @throws SystemException if a system exception occurred 812 */ 813 public com.liferay.portlet.messageboards.model.MBCategory[] findByG_P_PrevAndNext( 814 long categoryId, long groupId, long parentCategoryId, 815 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 816 throws com.liferay.portal.kernel.exception.SystemException, 817 com.liferay.portlet.messageboards.NoSuchCategoryException; 818 819 /** 820 * Returns all the message boards categories where groupId = ? and parentCategoryId = any ?. 821 * 822 * <p> 823 * 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. 824 * </p> 825 * 826 * @param groupId the group ID 827 * @param parentCategoryIds the parent category IDs 828 * @return the matching message boards categories 829 * @throws SystemException if a system exception occurred 830 */ 831 public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByG_P( 832 long groupId, long[] parentCategoryIds) 833 throws com.liferay.portal.kernel.exception.SystemException; 834 835 /** 836 * Returns a range of all the message boards categories where groupId = ? and parentCategoryId = any ?. 837 * 838 * <p> 839 * 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. 840 * </p> 841 * 842 * @param groupId the group ID 843 * @param parentCategoryIds the parent category IDs 844 * @param start the lower bound of the range of message boards categories 845 * @param end the upper bound of the range of message boards categories (not inclusive) 846 * @return the range of matching message boards categories 847 * @throws SystemException if a system exception occurred 848 */ 849 public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByG_P( 850 long groupId, long[] parentCategoryIds, int start, int end) 851 throws com.liferay.portal.kernel.exception.SystemException; 852 853 /** 854 * Returns an ordered range of all the message boards categories where groupId = ? and parentCategoryId = any ?. 855 * 856 * <p> 857 * 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. 858 * </p> 859 * 860 * @param groupId the group ID 861 * @param parentCategoryIds the parent category IDs 862 * @param start the lower bound of the range of message boards categories 863 * @param end the upper bound of the range of message boards categories (not inclusive) 864 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 865 * @return the ordered range of matching message boards categories 866 * @throws SystemException if a system exception occurred 867 */ 868 public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByG_P( 869 long groupId, long[] parentCategoryIds, int start, int end, 870 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 871 throws com.liferay.portal.kernel.exception.SystemException; 872 873 /** 874 * Returns all the message boards categories that the user has permission to view where groupId = ? and parentCategoryId = ?. 875 * 876 * @param groupId the group ID 877 * @param parentCategoryId the parent category ID 878 * @return the matching message boards categories that the user has permission to view 879 * @throws SystemException if a system exception occurred 880 */ 881 public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> filterFindByG_P( 882 long groupId, long parentCategoryId) 883 throws com.liferay.portal.kernel.exception.SystemException; 884 885 /** 886 * Returns a range of all the message boards categories that the user has permission to view where groupId = ? and parentCategoryId = ?. 887 * 888 * <p> 889 * 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. 890 * </p> 891 * 892 * @param groupId the group ID 893 * @param parentCategoryId the parent category ID 894 * @param start the lower bound of the range of message boards categories 895 * @param end the upper bound of the range of message boards categories (not inclusive) 896 * @return the range of matching message boards categories that the user has permission to view 897 * @throws SystemException if a system exception occurred 898 */ 899 public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> filterFindByG_P( 900 long groupId, long parentCategoryId, int start, int end) 901 throws com.liferay.portal.kernel.exception.SystemException; 902 903 /** 904 * Returns an ordered range of all the message boards categories that the user has permissions to view where groupId = ? and parentCategoryId = ?. 905 * 906 * <p> 907 * 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. 908 * </p> 909 * 910 * @param groupId the group ID 911 * @param parentCategoryId the parent category ID 912 * @param start the lower bound of the range of message boards categories 913 * @param end the upper bound of the range of message boards categories (not inclusive) 914 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 915 * @return the ordered range of matching message boards categories that the user has permission to view 916 * @throws SystemException if a system exception occurred 917 */ 918 public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> filterFindByG_P( 919 long groupId, long parentCategoryId, int start, int end, 920 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 921 throws com.liferay.portal.kernel.exception.SystemException; 922 923 /** 924 * 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 = ?. 925 * 926 * @param categoryId the primary key of the current message boards category 927 * @param groupId the group ID 928 * @param parentCategoryId the parent category ID 929 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 930 * @return the previous, current, and next message boards category 931 * @throws com.liferay.portlet.messageboards.NoSuchCategoryException if a message boards category with the primary key could not be found 932 * @throws SystemException if a system exception occurred 933 */ 934 public com.liferay.portlet.messageboards.model.MBCategory[] filterFindByG_P_PrevAndNext( 935 long categoryId, long groupId, long parentCategoryId, 936 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 937 throws com.liferay.portal.kernel.exception.SystemException, 938 com.liferay.portlet.messageboards.NoSuchCategoryException; 939 940 /** 941 * Returns all the message boards categories that the user has permission to view where groupId = ? and parentCategoryId = any ?. 942 * 943 * @param groupId the group ID 944 * @param parentCategoryIds the parent category IDs 945 * @return the matching message boards categories that the user has permission to view 946 * @throws SystemException if a system exception occurred 947 */ 948 public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> filterFindByG_P( 949 long groupId, long[] parentCategoryIds) 950 throws com.liferay.portal.kernel.exception.SystemException; 951 952 /** 953 * Returns a range of all the message boards categories that the user has permission to view where groupId = ? and parentCategoryId = any ?. 954 * 955 * <p> 956 * 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. 957 * </p> 958 * 959 * @param groupId the group ID 960 * @param parentCategoryIds the parent category IDs 961 * @param start the lower bound of the range of message boards categories 962 * @param end the upper bound of the range of message boards categories (not inclusive) 963 * @return the range of matching message boards categories that the user has permission to view 964 * @throws SystemException if a system exception occurred 965 */ 966 public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> filterFindByG_P( 967 long groupId, long[] parentCategoryIds, int start, int end) 968 throws com.liferay.portal.kernel.exception.SystemException; 969 970 /** 971 * Returns an ordered range of all the message boards categories that the user has permission to view where groupId = ? and parentCategoryId = any ?. 972 * 973 * <p> 974 * 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. 975 * </p> 976 * 977 * @param groupId the group ID 978 * @param parentCategoryIds the parent category IDs 979 * @param start the lower bound of the range of message boards categories 980 * @param end the upper bound of the range of message boards categories (not inclusive) 981 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 982 * @return the ordered range of matching message boards categories that the user has permission to view 983 * @throws SystemException if a system exception occurred 984 */ 985 public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> filterFindByG_P( 986 long groupId, long[] parentCategoryIds, int start, int end, 987 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 988 throws com.liferay.portal.kernel.exception.SystemException; 989 990 /** 991 * Returns all the message boards categories. 992 * 993 * @return the message boards categories 994 * @throws SystemException if a system exception occurred 995 */ 996 public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findAll() 997 throws com.liferay.portal.kernel.exception.SystemException; 998 999 /** 1000 * Returns a range of all the message boards categories. 1001 * 1002 * <p> 1003 * 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. 1004 * </p> 1005 * 1006 * @param start the lower bound of the range of message boards categories 1007 * @param end the upper bound of the range of message boards categories (not inclusive) 1008 * @return the range of message boards categories 1009 * @throws SystemException if a system exception occurred 1010 */ 1011 public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findAll( 1012 int start, int end) 1013 throws com.liferay.portal.kernel.exception.SystemException; 1014 1015 /** 1016 * Returns an ordered range of all the message boards categories. 1017 * 1018 * <p> 1019 * 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. 1020 * </p> 1021 * 1022 * @param start the lower bound of the range of message boards categories 1023 * @param end the upper bound of the range of message boards categories (not inclusive) 1024 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1025 * @return the ordered range of message boards categories 1026 * @throws SystemException if a system exception occurred 1027 */ 1028 public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findAll( 1029 int start, int end, 1030 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1031 throws com.liferay.portal.kernel.exception.SystemException; 1032 1033 /** 1034 * Removes all the message boards categories where uuid = ? from the database. 1035 * 1036 * @param uuid the uuid 1037 * @throws SystemException if a system exception occurred 1038 */ 1039 public void removeByUuid(java.lang.String uuid) 1040 throws com.liferay.portal.kernel.exception.SystemException; 1041 1042 /** 1043 * Removes the message boards category where uuid = ? and groupId = ? from the database. 1044 * 1045 * @param uuid the uuid 1046 * @param groupId the group ID 1047 * @return the message boards category that was removed 1048 * @throws SystemException if a system exception occurred 1049 */ 1050 public com.liferay.portlet.messageboards.model.MBCategory removeByUUID_G( 1051 java.lang.String uuid, long groupId) 1052 throws com.liferay.portal.kernel.exception.SystemException, 1053 com.liferay.portlet.messageboards.NoSuchCategoryException; 1054 1055 /** 1056 * Removes all the message boards categories where uuid = ? and companyId = ? from the database. 1057 * 1058 * @param uuid the uuid 1059 * @param companyId the company ID 1060 * @throws SystemException if a system exception occurred 1061 */ 1062 public void removeByUuid_C(java.lang.String uuid, long companyId) 1063 throws com.liferay.portal.kernel.exception.SystemException; 1064 1065 /** 1066 * Removes all the message boards categories where groupId = ? from the database. 1067 * 1068 * @param groupId the group ID 1069 * @throws SystemException if a system exception occurred 1070 */ 1071 public void removeByGroupId(long groupId) 1072 throws com.liferay.portal.kernel.exception.SystemException; 1073 1074 /** 1075 * Removes all the message boards categories where companyId = ? from the database. 1076 * 1077 * @param companyId the company ID 1078 * @throws SystemException if a system exception occurred 1079 */ 1080 public void removeByCompanyId(long companyId) 1081 throws com.liferay.portal.kernel.exception.SystemException; 1082 1083 /** 1084 * Removes all the message boards categories where groupId = ? and parentCategoryId = ? from the database. 1085 * 1086 * @param groupId the group ID 1087 * @param parentCategoryId the parent category ID 1088 * @throws SystemException if a system exception occurred 1089 */ 1090 public void removeByG_P(long groupId, long parentCategoryId) 1091 throws com.liferay.portal.kernel.exception.SystemException; 1092 1093 /** 1094 * Removes all the message boards categories from the database. 1095 * 1096 * @throws SystemException if a system exception occurred 1097 */ 1098 public void removeAll() 1099 throws com.liferay.portal.kernel.exception.SystemException; 1100 1101 /** 1102 * Returns the number of message boards categories where uuid = ?. 1103 * 1104 * @param uuid the uuid 1105 * @return the number of matching message boards categories 1106 * @throws SystemException if a system exception occurred 1107 */ 1108 public int countByUuid(java.lang.String uuid) 1109 throws com.liferay.portal.kernel.exception.SystemException; 1110 1111 /** 1112 * Returns the number of message boards categories where uuid = ? and groupId = ?. 1113 * 1114 * @param uuid the uuid 1115 * @param groupId the group ID 1116 * @return the number of matching message boards categories 1117 * @throws SystemException if a system exception occurred 1118 */ 1119 public int countByUUID_G(java.lang.String uuid, long groupId) 1120 throws com.liferay.portal.kernel.exception.SystemException; 1121 1122 /** 1123 * Returns the number of message boards categories where uuid = ? and companyId = ?. 1124 * 1125 * @param uuid the uuid 1126 * @param companyId the company ID 1127 * @return the number of matching message boards categories 1128 * @throws SystemException if a system exception occurred 1129 */ 1130 public int countByUuid_C(java.lang.String uuid, long companyId) 1131 throws com.liferay.portal.kernel.exception.SystemException; 1132 1133 /** 1134 * Returns the number of message boards categories where groupId = ?. 1135 * 1136 * @param groupId the group ID 1137 * @return the number of matching message boards categories 1138 * @throws SystemException if a system exception occurred 1139 */ 1140 public int countByGroupId(long groupId) 1141 throws com.liferay.portal.kernel.exception.SystemException; 1142 1143 /** 1144 * Returns the number of message boards categories that the user has permission to view where groupId = ?. 1145 * 1146 * @param groupId the group ID 1147 * @return the number of matching message boards categories that the user has permission to view 1148 * @throws SystemException if a system exception occurred 1149 */ 1150 public int filterCountByGroupId(long groupId) 1151 throws com.liferay.portal.kernel.exception.SystemException; 1152 1153 /** 1154 * Returns the number of message boards categories where companyId = ?. 1155 * 1156 * @param companyId the company ID 1157 * @return the number of matching message boards categories 1158 * @throws SystemException if a system exception occurred 1159 */ 1160 public int countByCompanyId(long companyId) 1161 throws com.liferay.portal.kernel.exception.SystemException; 1162 1163 /** 1164 * Returns the number of message boards categories where groupId = ? and parentCategoryId = ?. 1165 * 1166 * @param groupId the group ID 1167 * @param parentCategoryId the parent category ID 1168 * @return the number of matching message boards categories 1169 * @throws SystemException if a system exception occurred 1170 */ 1171 public int countByG_P(long groupId, long parentCategoryId) 1172 throws com.liferay.portal.kernel.exception.SystemException; 1173 1174 /** 1175 * Returns the number of message boards categories where groupId = ? and parentCategoryId = any ?. 1176 * 1177 * @param groupId the group ID 1178 * @param parentCategoryIds the parent category IDs 1179 * @return the number of matching message boards categories 1180 * @throws SystemException if a system exception occurred 1181 */ 1182 public int countByG_P(long groupId, long[] parentCategoryIds) 1183 throws com.liferay.portal.kernel.exception.SystemException; 1184 1185 /** 1186 * Returns the number of message boards categories that the user has permission to view where groupId = ? and parentCategoryId = ?. 1187 * 1188 * @param groupId the group ID 1189 * @param parentCategoryId the parent category ID 1190 * @return the number of matching message boards categories that the user has permission to view 1191 * @throws SystemException if a system exception occurred 1192 */ 1193 public int filterCountByG_P(long groupId, long parentCategoryId) 1194 throws com.liferay.portal.kernel.exception.SystemException; 1195 1196 /** 1197 * Returns the number of message boards categories that the user has permission to view where groupId = ? and parentCategoryId = any ?. 1198 * 1199 * @param groupId the group ID 1200 * @param parentCategoryIds the parent category IDs 1201 * @return the number of matching message boards categories that the user has permission to view 1202 * @throws SystemException if a system exception occurred 1203 */ 1204 public int filterCountByG_P(long groupId, long[] parentCategoryIds) 1205 throws com.liferay.portal.kernel.exception.SystemException; 1206 1207 /** 1208 * Returns the number of message boards categories. 1209 * 1210 * @return the number of message boards categories 1211 * @throws SystemException if a system exception occurred 1212 */ 1213 public int countAll() 1214 throws com.liferay.portal.kernel.exception.SystemException; 1215 }