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.kernel.bean.PortalBeanLocatorUtil; 018 import com.liferay.portal.kernel.dao.orm.DynamicQuery; 019 import com.liferay.portal.kernel.exception.SystemException; 020 import com.liferay.portal.kernel.util.OrderByComparator; 021 import com.liferay.portal.kernel.util.ReferenceRegistry; 022 import com.liferay.portal.service.ServiceContext; 023 024 import com.liferay.portlet.messageboards.model.MBCategory; 025 026 import java.util.List; 027 028 /** 029 * The persistence utility for the message boards category service. This utility wraps {@link MBCategoryPersistenceImpl} and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class. 030 * 031 * <p> 032 * Caching information and settings can be found in <code>portal.properties</code> 033 * </p> 034 * 035 * @author Brian Wing Shun Chan 036 * @see MBCategoryPersistence 037 * @see MBCategoryPersistenceImpl 038 * @generated 039 */ 040 public class MBCategoryUtil { 041 /* 042 * NOTE FOR DEVELOPERS: 043 * 044 * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class. 045 */ 046 047 /** 048 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache() 049 */ 050 public static void clearCache() { 051 getPersistence().clearCache(); 052 } 053 054 /** 055 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel) 056 */ 057 public static void clearCache(MBCategory mbCategory) { 058 getPersistence().clearCache(mbCategory); 059 } 060 061 /** 062 * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery) 063 */ 064 public long countWithDynamicQuery(DynamicQuery dynamicQuery) 065 throws SystemException { 066 return getPersistence().countWithDynamicQuery(dynamicQuery); 067 } 068 069 /** 070 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery) 071 */ 072 public static List<MBCategory> findWithDynamicQuery( 073 DynamicQuery dynamicQuery) throws SystemException { 074 return getPersistence().findWithDynamicQuery(dynamicQuery); 075 } 076 077 /** 078 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int) 079 */ 080 public static List<MBCategory> findWithDynamicQuery( 081 DynamicQuery dynamicQuery, int start, int end) 082 throws SystemException { 083 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end); 084 } 085 086 /** 087 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator) 088 */ 089 public static List<MBCategory> findWithDynamicQuery( 090 DynamicQuery dynamicQuery, int start, int end, 091 OrderByComparator orderByComparator) throws SystemException { 092 return getPersistence() 093 .findWithDynamicQuery(dynamicQuery, start, end, 094 orderByComparator); 095 } 096 097 /** 098 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel) 099 */ 100 public static MBCategory update(MBCategory mbCategory) 101 throws SystemException { 102 return getPersistence().update(mbCategory); 103 } 104 105 /** 106 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, ServiceContext) 107 */ 108 public static MBCategory update(MBCategory mbCategory, 109 ServiceContext serviceContext) throws SystemException { 110 return getPersistence().update(mbCategory, serviceContext); 111 } 112 113 /** 114 * Caches the message boards category in the entity cache if it is enabled. 115 * 116 * @param mbCategory the message boards category 117 */ 118 public static void cacheResult( 119 com.liferay.portlet.messageboards.model.MBCategory mbCategory) { 120 getPersistence().cacheResult(mbCategory); 121 } 122 123 /** 124 * Caches the message boards categories in the entity cache if it is enabled. 125 * 126 * @param mbCategories the message boards categories 127 */ 128 public static void cacheResult( 129 java.util.List<com.liferay.portlet.messageboards.model.MBCategory> mbCategories) { 130 getPersistence().cacheResult(mbCategories); 131 } 132 133 /** 134 * Creates a new message boards category with the primary key. Does not add the message boards category to the database. 135 * 136 * @param categoryId the primary key for the new message boards category 137 * @return the new message boards category 138 */ 139 public static com.liferay.portlet.messageboards.model.MBCategory create( 140 long categoryId) { 141 return getPersistence().create(categoryId); 142 } 143 144 /** 145 * Removes the message boards category with the primary key from the database. Also notifies the appropriate model listeners. 146 * 147 * @param categoryId the primary key of the message boards category 148 * @return the message boards category that was removed 149 * @throws com.liferay.portlet.messageboards.NoSuchCategoryException if a message boards category with the primary key could not be found 150 * @throws SystemException if a system exception occurred 151 */ 152 public static com.liferay.portlet.messageboards.model.MBCategory remove( 153 long categoryId) 154 throws com.liferay.portal.kernel.exception.SystemException, 155 com.liferay.portlet.messageboards.NoSuchCategoryException { 156 return getPersistence().remove(categoryId); 157 } 158 159 public static com.liferay.portlet.messageboards.model.MBCategory updateImpl( 160 com.liferay.portlet.messageboards.model.MBCategory mbCategory) 161 throws com.liferay.portal.kernel.exception.SystemException { 162 return getPersistence().updateImpl(mbCategory); 163 } 164 165 /** 166 * Returns the message boards category with the primary key or throws a {@link com.liferay.portlet.messageboards.NoSuchCategoryException} if it could not be found. 167 * 168 * @param categoryId the primary key of the message boards category 169 * @return the message boards category 170 * @throws com.liferay.portlet.messageboards.NoSuchCategoryException if a message boards category with the primary key could not be found 171 * @throws SystemException if a system exception occurred 172 */ 173 public static com.liferay.portlet.messageboards.model.MBCategory findByPrimaryKey( 174 long categoryId) 175 throws com.liferay.portal.kernel.exception.SystemException, 176 com.liferay.portlet.messageboards.NoSuchCategoryException { 177 return getPersistence().findByPrimaryKey(categoryId); 178 } 179 180 /** 181 * Returns the message boards category with the primary key or returns <code>null</code> if it could not be found. 182 * 183 * @param categoryId the primary key of the message boards category 184 * @return the message boards category, or <code>null</code> if a message boards category with the primary key could not be found 185 * @throws SystemException if a system exception occurred 186 */ 187 public static com.liferay.portlet.messageboards.model.MBCategory fetchByPrimaryKey( 188 long categoryId) 189 throws com.liferay.portal.kernel.exception.SystemException { 190 return getPersistence().fetchByPrimaryKey(categoryId); 191 } 192 193 /** 194 * Returns all the message boards categories where uuid = ?. 195 * 196 * @param uuid the uuid 197 * @return the matching message boards categories 198 * @throws SystemException if a system exception occurred 199 */ 200 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByUuid( 201 java.lang.String uuid) 202 throws com.liferay.portal.kernel.exception.SystemException { 203 return getPersistence().findByUuid(uuid); 204 } 205 206 /** 207 * Returns a range of all the message boards categories where uuid = ?. 208 * 209 * <p> 210 * 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. 211 * </p> 212 * 213 * @param uuid the uuid 214 * @param start the lower bound of the range of message boards categories 215 * @param end the upper bound of the range of message boards categories (not inclusive) 216 * @return the range of matching message boards categories 217 * @throws SystemException if a system exception occurred 218 */ 219 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByUuid( 220 java.lang.String uuid, int start, int end) 221 throws com.liferay.portal.kernel.exception.SystemException { 222 return getPersistence().findByUuid(uuid, start, end); 223 } 224 225 /** 226 * Returns an ordered range of all the message boards categories where uuid = ?. 227 * 228 * <p> 229 * 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. 230 * </p> 231 * 232 * @param uuid the uuid 233 * @param start the lower bound of the range of message boards categories 234 * @param end the upper bound of the range of message boards categories (not inclusive) 235 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 236 * @return the ordered range of matching message boards categories 237 * @throws SystemException if a system exception occurred 238 */ 239 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByUuid( 240 java.lang.String uuid, int start, int end, 241 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 242 throws com.liferay.portal.kernel.exception.SystemException { 243 return getPersistence().findByUuid(uuid, start, end, orderByComparator); 244 } 245 246 /** 247 * Returns the first message boards category in the ordered set where uuid = ?. 248 * 249 * @param uuid the uuid 250 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 251 * @return the first matching message boards category 252 * @throws com.liferay.portlet.messageboards.NoSuchCategoryException if a matching message boards category could not be found 253 * @throws SystemException if a system exception occurred 254 */ 255 public static com.liferay.portlet.messageboards.model.MBCategory findByUuid_First( 256 java.lang.String uuid, 257 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 258 throws com.liferay.portal.kernel.exception.SystemException, 259 com.liferay.portlet.messageboards.NoSuchCategoryException { 260 return getPersistence().findByUuid_First(uuid, orderByComparator); 261 } 262 263 /** 264 * Returns the first message boards category in the ordered set where uuid = ?. 265 * 266 * @param uuid the uuid 267 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 268 * @return the first matching message boards category, or <code>null</code> if a matching message boards category could not be found 269 * @throws SystemException if a system exception occurred 270 */ 271 public static com.liferay.portlet.messageboards.model.MBCategory fetchByUuid_First( 272 java.lang.String uuid, 273 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 274 throws com.liferay.portal.kernel.exception.SystemException { 275 return getPersistence().fetchByUuid_First(uuid, orderByComparator); 276 } 277 278 /** 279 * Returns the last message boards category in the ordered set where uuid = ?. 280 * 281 * @param uuid the uuid 282 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 283 * @return the last matching message boards category 284 * @throws com.liferay.portlet.messageboards.NoSuchCategoryException if a matching message boards category could not be found 285 * @throws SystemException if a system exception occurred 286 */ 287 public static com.liferay.portlet.messageboards.model.MBCategory findByUuid_Last( 288 java.lang.String uuid, 289 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 290 throws com.liferay.portal.kernel.exception.SystemException, 291 com.liferay.portlet.messageboards.NoSuchCategoryException { 292 return getPersistence().findByUuid_Last(uuid, orderByComparator); 293 } 294 295 /** 296 * Returns the last message boards category in the ordered set where uuid = ?. 297 * 298 * @param uuid the uuid 299 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 300 * @return the last matching message boards category, or <code>null</code> if a matching message boards category could not be found 301 * @throws SystemException if a system exception occurred 302 */ 303 public static com.liferay.portlet.messageboards.model.MBCategory fetchByUuid_Last( 304 java.lang.String uuid, 305 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 306 throws com.liferay.portal.kernel.exception.SystemException { 307 return getPersistence().fetchByUuid_Last(uuid, orderByComparator); 308 } 309 310 /** 311 * Returns the message boards categories before and after the current message boards category in the ordered set where uuid = ?. 312 * 313 * @param categoryId the primary key of the current message boards category 314 * @param uuid the uuid 315 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 316 * @return the previous, current, and next message boards category 317 * @throws com.liferay.portlet.messageboards.NoSuchCategoryException if a message boards category with the primary key could not be found 318 * @throws SystemException if a system exception occurred 319 */ 320 public static com.liferay.portlet.messageboards.model.MBCategory[] findByUuid_PrevAndNext( 321 long categoryId, java.lang.String uuid, 322 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 323 throws com.liferay.portal.kernel.exception.SystemException, 324 com.liferay.portlet.messageboards.NoSuchCategoryException { 325 return getPersistence() 326 .findByUuid_PrevAndNext(categoryId, uuid, orderByComparator); 327 } 328 329 /** 330 * Returns the message boards category where uuid = ? and groupId = ? or throws a {@link com.liferay.portlet.messageboards.NoSuchCategoryException} if it could not be found. 331 * 332 * @param uuid the uuid 333 * @param groupId the group ID 334 * @return the matching message boards category 335 * @throws com.liferay.portlet.messageboards.NoSuchCategoryException if a matching message boards category could not be found 336 * @throws SystemException if a system exception occurred 337 */ 338 public static com.liferay.portlet.messageboards.model.MBCategory findByUUID_G( 339 java.lang.String uuid, long groupId) 340 throws com.liferay.portal.kernel.exception.SystemException, 341 com.liferay.portlet.messageboards.NoSuchCategoryException { 342 return getPersistence().findByUUID_G(uuid, groupId); 343 } 344 345 /** 346 * Returns the message boards category where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 347 * 348 * @param uuid the uuid 349 * @param groupId the group ID 350 * @return the matching message boards category, or <code>null</code> if a matching message boards category could not be found 351 * @throws SystemException if a system exception occurred 352 */ 353 public static com.liferay.portlet.messageboards.model.MBCategory fetchByUUID_G( 354 java.lang.String uuid, long groupId) 355 throws com.liferay.portal.kernel.exception.SystemException { 356 return getPersistence().fetchByUUID_G(uuid, groupId); 357 } 358 359 /** 360 * 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. 361 * 362 * @param uuid the uuid 363 * @param groupId the group ID 364 * @param retrieveFromCache whether to use the finder cache 365 * @return the matching message boards category, or <code>null</code> if a matching message boards category could not be found 366 * @throws SystemException if a system exception occurred 367 */ 368 public static com.liferay.portlet.messageboards.model.MBCategory fetchByUUID_G( 369 java.lang.String uuid, long groupId, boolean retrieveFromCache) 370 throws com.liferay.portal.kernel.exception.SystemException { 371 return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache); 372 } 373 374 /** 375 * Returns all the message boards categories where uuid = ? and companyId = ?. 376 * 377 * @param uuid the uuid 378 * @param companyId the company ID 379 * @return the matching message boards categories 380 * @throws SystemException if a system exception occurred 381 */ 382 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByUuid_C( 383 java.lang.String uuid, long companyId) 384 throws com.liferay.portal.kernel.exception.SystemException { 385 return getPersistence().findByUuid_C(uuid, companyId); 386 } 387 388 /** 389 * Returns a range of all the message boards categories where uuid = ? and companyId = ?. 390 * 391 * <p> 392 * 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. 393 * </p> 394 * 395 * @param uuid the uuid 396 * @param companyId the company ID 397 * @param start the lower bound of the range of message boards categories 398 * @param end the upper bound of the range of message boards categories (not inclusive) 399 * @return the range of matching message boards categories 400 * @throws SystemException if a system exception occurred 401 */ 402 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByUuid_C( 403 java.lang.String uuid, long companyId, int start, int end) 404 throws com.liferay.portal.kernel.exception.SystemException { 405 return getPersistence().findByUuid_C(uuid, companyId, start, end); 406 } 407 408 /** 409 * Returns an ordered range of all the message boards categories where uuid = ? and companyId = ?. 410 * 411 * <p> 412 * 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. 413 * </p> 414 * 415 * @param uuid the uuid 416 * @param companyId the company ID 417 * @param start the lower bound of the range of message boards categories 418 * @param end the upper bound of the range of message boards categories (not inclusive) 419 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 420 * @return the ordered range of matching message boards categories 421 * @throws SystemException if a system exception occurred 422 */ 423 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByUuid_C( 424 java.lang.String uuid, long companyId, int start, int end, 425 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 426 throws com.liferay.portal.kernel.exception.SystemException { 427 return getPersistence() 428 .findByUuid_C(uuid, companyId, start, end, orderByComparator); 429 } 430 431 /** 432 * Returns the first message boards category in the ordered set where uuid = ? and companyId = ?. 433 * 434 * @param uuid the uuid 435 * @param companyId the company ID 436 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 437 * @return the first matching message boards category 438 * @throws com.liferay.portlet.messageboards.NoSuchCategoryException if a matching message boards category could not be found 439 * @throws SystemException if a system exception occurred 440 */ 441 public static com.liferay.portlet.messageboards.model.MBCategory findByUuid_C_First( 442 java.lang.String uuid, long companyId, 443 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 444 throws com.liferay.portal.kernel.exception.SystemException, 445 com.liferay.portlet.messageboards.NoSuchCategoryException { 446 return getPersistence() 447 .findByUuid_C_First(uuid, companyId, orderByComparator); 448 } 449 450 /** 451 * Returns the first message boards category in the ordered set where uuid = ? and companyId = ?. 452 * 453 * @param uuid the uuid 454 * @param companyId the company ID 455 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 456 * @return the first matching message boards category, or <code>null</code> if a matching message boards category could not be found 457 * @throws SystemException if a system exception occurred 458 */ 459 public static com.liferay.portlet.messageboards.model.MBCategory fetchByUuid_C_First( 460 java.lang.String uuid, long companyId, 461 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 462 throws com.liferay.portal.kernel.exception.SystemException { 463 return getPersistence() 464 .fetchByUuid_C_First(uuid, companyId, orderByComparator); 465 } 466 467 /** 468 * Returns the last message boards category in the ordered set where uuid = ? and companyId = ?. 469 * 470 * @param uuid the uuid 471 * @param companyId the company ID 472 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 473 * @return the last matching message boards category 474 * @throws com.liferay.portlet.messageboards.NoSuchCategoryException if a matching message boards category could not be found 475 * @throws SystemException if a system exception occurred 476 */ 477 public static com.liferay.portlet.messageboards.model.MBCategory findByUuid_C_Last( 478 java.lang.String uuid, long companyId, 479 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 480 throws com.liferay.portal.kernel.exception.SystemException, 481 com.liferay.portlet.messageboards.NoSuchCategoryException { 482 return getPersistence() 483 .findByUuid_C_Last(uuid, companyId, orderByComparator); 484 } 485 486 /** 487 * Returns the last message boards category in the ordered set where uuid = ? and companyId = ?. 488 * 489 * @param uuid the uuid 490 * @param companyId the company ID 491 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 492 * @return the last matching message boards category, or <code>null</code> if a matching message boards category could not be found 493 * @throws SystemException if a system exception occurred 494 */ 495 public static com.liferay.portlet.messageboards.model.MBCategory fetchByUuid_C_Last( 496 java.lang.String uuid, long companyId, 497 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 498 throws com.liferay.portal.kernel.exception.SystemException { 499 return getPersistence() 500 .fetchByUuid_C_Last(uuid, companyId, orderByComparator); 501 } 502 503 /** 504 * Returns the message boards categories before and after the current message boards category in the ordered set where uuid = ? and companyId = ?. 505 * 506 * @param categoryId the primary key of the current message boards category 507 * @param uuid the uuid 508 * @param companyId the company ID 509 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 510 * @return the previous, current, and next message boards category 511 * @throws com.liferay.portlet.messageboards.NoSuchCategoryException if a message boards category with the primary key could not be found 512 * @throws SystemException if a system exception occurred 513 */ 514 public static com.liferay.portlet.messageboards.model.MBCategory[] findByUuid_C_PrevAndNext( 515 long categoryId, java.lang.String uuid, long companyId, 516 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 517 throws com.liferay.portal.kernel.exception.SystemException, 518 com.liferay.portlet.messageboards.NoSuchCategoryException { 519 return getPersistence() 520 .findByUuid_C_PrevAndNext(categoryId, uuid, companyId, 521 orderByComparator); 522 } 523 524 /** 525 * Returns all the message boards categories where groupId = ?. 526 * 527 * @param groupId the group ID 528 * @return the matching message boards categories 529 * @throws SystemException if a system exception occurred 530 */ 531 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByGroupId( 532 long groupId) 533 throws com.liferay.portal.kernel.exception.SystemException { 534 return getPersistence().findByGroupId(groupId); 535 } 536 537 /** 538 * Returns a range of all the message boards categories where groupId = ?. 539 * 540 * <p> 541 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 542 * </p> 543 * 544 * @param groupId the group ID 545 * @param start the lower bound of the range of message boards categories 546 * @param end the upper bound of the range of message boards categories (not inclusive) 547 * @return the range of matching message boards categories 548 * @throws SystemException if a system exception occurred 549 */ 550 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByGroupId( 551 long groupId, int start, int end) 552 throws com.liferay.portal.kernel.exception.SystemException { 553 return getPersistence().findByGroupId(groupId, start, end); 554 } 555 556 /** 557 * Returns an ordered range of all the message boards categories where groupId = ?. 558 * 559 * <p> 560 * 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. 561 * </p> 562 * 563 * @param groupId the group ID 564 * @param start the lower bound of the range of message boards categories 565 * @param end the upper bound of the range of message boards categories (not inclusive) 566 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 567 * @return the ordered range of matching message boards categories 568 * @throws SystemException if a system exception occurred 569 */ 570 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByGroupId( 571 long groupId, int start, int end, 572 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 573 throws com.liferay.portal.kernel.exception.SystemException { 574 return getPersistence() 575 .findByGroupId(groupId, start, end, orderByComparator); 576 } 577 578 /** 579 * Returns the first message boards category in the ordered set where groupId = ?. 580 * 581 * @param groupId the group ID 582 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 583 * @return the first matching message boards category 584 * @throws com.liferay.portlet.messageboards.NoSuchCategoryException if a matching message boards category could not be found 585 * @throws SystemException if a system exception occurred 586 */ 587 public static com.liferay.portlet.messageboards.model.MBCategory findByGroupId_First( 588 long groupId, 589 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 590 throws com.liferay.portal.kernel.exception.SystemException, 591 com.liferay.portlet.messageboards.NoSuchCategoryException { 592 return getPersistence().findByGroupId_First(groupId, orderByComparator); 593 } 594 595 /** 596 * Returns the first message boards category in the ordered set where groupId = ?. 597 * 598 * @param groupId the group ID 599 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 600 * @return the first matching message boards category, or <code>null</code> if a matching message boards category could not be found 601 * @throws SystemException if a system exception occurred 602 */ 603 public static com.liferay.portlet.messageboards.model.MBCategory fetchByGroupId_First( 604 long groupId, 605 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 606 throws com.liferay.portal.kernel.exception.SystemException { 607 return getPersistence().fetchByGroupId_First(groupId, orderByComparator); 608 } 609 610 /** 611 * Returns the last message boards category in the ordered set where groupId = ?. 612 * 613 * @param groupId the group ID 614 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 615 * @return the last matching message boards category 616 * @throws com.liferay.portlet.messageboards.NoSuchCategoryException if a matching message boards category could not be found 617 * @throws SystemException if a system exception occurred 618 */ 619 public static com.liferay.portlet.messageboards.model.MBCategory findByGroupId_Last( 620 long groupId, 621 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 622 throws com.liferay.portal.kernel.exception.SystemException, 623 com.liferay.portlet.messageboards.NoSuchCategoryException { 624 return getPersistence().findByGroupId_Last(groupId, orderByComparator); 625 } 626 627 /** 628 * Returns the last message boards category in the ordered set where groupId = ?. 629 * 630 * @param groupId the group ID 631 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 632 * @return the last matching message boards category, or <code>null</code> if a matching message boards category could not be found 633 * @throws SystemException if a system exception occurred 634 */ 635 public static com.liferay.portlet.messageboards.model.MBCategory fetchByGroupId_Last( 636 long groupId, 637 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 638 throws com.liferay.portal.kernel.exception.SystemException { 639 return getPersistence().fetchByGroupId_Last(groupId, orderByComparator); 640 } 641 642 /** 643 * Returns the message boards categories before and after the current message boards category in the ordered set where groupId = ?. 644 * 645 * @param categoryId the primary key of the current message boards category 646 * @param groupId the group ID 647 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 648 * @return the previous, current, and next message boards category 649 * @throws com.liferay.portlet.messageboards.NoSuchCategoryException if a message boards category with the primary key could not be found 650 * @throws SystemException if a system exception occurred 651 */ 652 public static com.liferay.portlet.messageboards.model.MBCategory[] findByGroupId_PrevAndNext( 653 long categoryId, long groupId, 654 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 655 throws com.liferay.portal.kernel.exception.SystemException, 656 com.liferay.portlet.messageboards.NoSuchCategoryException { 657 return getPersistence() 658 .findByGroupId_PrevAndNext(categoryId, groupId, 659 orderByComparator); 660 } 661 662 /** 663 * Returns all the message boards categories that the user has permission to view where groupId = ?. 664 * 665 * @param groupId the group ID 666 * @return the matching message boards categories that the user has permission to view 667 * @throws SystemException if a system exception occurred 668 */ 669 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> filterFindByGroupId( 670 long groupId) 671 throws com.liferay.portal.kernel.exception.SystemException { 672 return getPersistence().filterFindByGroupId(groupId); 673 } 674 675 /** 676 * Returns a range of all the message boards categories that the user has permission to view where groupId = ?. 677 * 678 * <p> 679 * 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. 680 * </p> 681 * 682 * @param groupId the group ID 683 * @param start the lower bound of the range of message boards categories 684 * @param end the upper bound of the range of message boards categories (not inclusive) 685 * @return the range of matching message boards categories that the user has permission to view 686 * @throws SystemException if a system exception occurred 687 */ 688 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> filterFindByGroupId( 689 long groupId, int start, int end) 690 throws com.liferay.portal.kernel.exception.SystemException { 691 return getPersistence().filterFindByGroupId(groupId, start, end); 692 } 693 694 /** 695 * Returns an ordered range of all the message boards categories that the user has permissions to view where groupId = ?. 696 * 697 * <p> 698 * 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. 699 * </p> 700 * 701 * @param groupId the group ID 702 * @param start the lower bound of the range of message boards categories 703 * @param end the upper bound of the range of message boards categories (not inclusive) 704 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 705 * @return the ordered range of matching message boards categories that the user has permission to view 706 * @throws SystemException if a system exception occurred 707 */ 708 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> filterFindByGroupId( 709 long groupId, int start, int end, 710 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 711 throws com.liferay.portal.kernel.exception.SystemException { 712 return getPersistence() 713 .filterFindByGroupId(groupId, start, end, orderByComparator); 714 } 715 716 /** 717 * 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 = ?. 718 * 719 * @param categoryId the primary key of the current message boards category 720 * @param groupId the group ID 721 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 722 * @return the previous, current, and next message boards category 723 * @throws com.liferay.portlet.messageboards.NoSuchCategoryException if a message boards category with the primary key could not be found 724 * @throws SystemException if a system exception occurred 725 */ 726 public static com.liferay.portlet.messageboards.model.MBCategory[] filterFindByGroupId_PrevAndNext( 727 long categoryId, long groupId, 728 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 729 throws com.liferay.portal.kernel.exception.SystemException, 730 com.liferay.portlet.messageboards.NoSuchCategoryException { 731 return getPersistence() 732 .filterFindByGroupId_PrevAndNext(categoryId, groupId, 733 orderByComparator); 734 } 735 736 /** 737 * Returns all the message boards categories where companyId = ?. 738 * 739 * @param companyId the company ID 740 * @return the matching message boards categories 741 * @throws SystemException if a system exception occurred 742 */ 743 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByCompanyId( 744 long companyId) 745 throws com.liferay.portal.kernel.exception.SystemException { 746 return getPersistence().findByCompanyId(companyId); 747 } 748 749 /** 750 * Returns a range of all the message boards categories where companyId = ?. 751 * 752 * <p> 753 * 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. 754 * </p> 755 * 756 * @param companyId the company ID 757 * @param start the lower bound of the range of message boards categories 758 * @param end the upper bound of the range of message boards categories (not inclusive) 759 * @return the range of matching message boards categories 760 * @throws SystemException if a system exception occurred 761 */ 762 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByCompanyId( 763 long companyId, int start, int end) 764 throws com.liferay.portal.kernel.exception.SystemException { 765 return getPersistence().findByCompanyId(companyId, start, end); 766 } 767 768 /** 769 * Returns an ordered range of all the message boards categories where companyId = ?. 770 * 771 * <p> 772 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 773 * </p> 774 * 775 * @param companyId the company ID 776 * @param start the lower bound of the range of message boards categories 777 * @param end the upper bound of the range of message boards categories (not inclusive) 778 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 779 * @return the ordered range of matching message boards categories 780 * @throws SystemException if a system exception occurred 781 */ 782 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByCompanyId( 783 long companyId, int start, int end, 784 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 785 throws com.liferay.portal.kernel.exception.SystemException { 786 return getPersistence() 787 .findByCompanyId(companyId, start, end, orderByComparator); 788 } 789 790 /** 791 * Returns the first message boards category in the ordered set where companyId = ?. 792 * 793 * @param companyId the company ID 794 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 795 * @return the first matching message boards category 796 * @throws com.liferay.portlet.messageboards.NoSuchCategoryException if a matching message boards category could not be found 797 * @throws SystemException if a system exception occurred 798 */ 799 public static com.liferay.portlet.messageboards.model.MBCategory findByCompanyId_First( 800 long companyId, 801 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 802 throws com.liferay.portal.kernel.exception.SystemException, 803 com.liferay.portlet.messageboards.NoSuchCategoryException { 804 return getPersistence() 805 .findByCompanyId_First(companyId, orderByComparator); 806 } 807 808 /** 809 * Returns the first message boards category in the ordered set where companyId = ?. 810 * 811 * @param companyId the company ID 812 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 813 * @return the first matching message boards category, or <code>null</code> if a matching message boards category could not be found 814 * @throws SystemException if a system exception occurred 815 */ 816 public static com.liferay.portlet.messageboards.model.MBCategory fetchByCompanyId_First( 817 long companyId, 818 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 819 throws com.liferay.portal.kernel.exception.SystemException { 820 return getPersistence() 821 .fetchByCompanyId_First(companyId, orderByComparator); 822 } 823 824 /** 825 * Returns the last message boards category in the ordered set where companyId = ?. 826 * 827 * @param companyId the company ID 828 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 829 * @return the last matching message boards category 830 * @throws com.liferay.portlet.messageboards.NoSuchCategoryException if a matching message boards category could not be found 831 * @throws SystemException if a system exception occurred 832 */ 833 public static com.liferay.portlet.messageboards.model.MBCategory findByCompanyId_Last( 834 long companyId, 835 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 836 throws com.liferay.portal.kernel.exception.SystemException, 837 com.liferay.portlet.messageboards.NoSuchCategoryException { 838 return getPersistence() 839 .findByCompanyId_Last(companyId, orderByComparator); 840 } 841 842 /** 843 * Returns the last message boards category in the ordered set where companyId = ?. 844 * 845 * @param companyId the company ID 846 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 847 * @return the last matching message boards category, or <code>null</code> if a matching message boards category could not be found 848 * @throws SystemException if a system exception occurred 849 */ 850 public static com.liferay.portlet.messageboards.model.MBCategory fetchByCompanyId_Last( 851 long companyId, 852 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 853 throws com.liferay.portal.kernel.exception.SystemException { 854 return getPersistence() 855 .fetchByCompanyId_Last(companyId, orderByComparator); 856 } 857 858 /** 859 * Returns the message boards categories before and after the current message boards category in the ordered set where companyId = ?. 860 * 861 * @param categoryId the primary key of the current message boards category 862 * @param companyId the company ID 863 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 864 * @return the previous, current, and next message boards category 865 * @throws com.liferay.portlet.messageboards.NoSuchCategoryException if a message boards category with the primary key could not be found 866 * @throws SystemException if a system exception occurred 867 */ 868 public static com.liferay.portlet.messageboards.model.MBCategory[] findByCompanyId_PrevAndNext( 869 long categoryId, long companyId, 870 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 871 throws com.liferay.portal.kernel.exception.SystemException, 872 com.liferay.portlet.messageboards.NoSuchCategoryException { 873 return getPersistence() 874 .findByCompanyId_PrevAndNext(categoryId, companyId, 875 orderByComparator); 876 } 877 878 /** 879 * Returns all the message boards categories where groupId = ? and parentCategoryId = ?. 880 * 881 * @param groupId the group ID 882 * @param parentCategoryId the parent category ID 883 * @return the matching message boards categories 884 * @throws SystemException if a system exception occurred 885 */ 886 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByG_P( 887 long groupId, long parentCategoryId) 888 throws com.liferay.portal.kernel.exception.SystemException { 889 return getPersistence().findByG_P(groupId, parentCategoryId); 890 } 891 892 /** 893 * Returns a range of all the message boards categories where groupId = ? and parentCategoryId = ?. 894 * 895 * <p> 896 * 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. 897 * </p> 898 * 899 * @param groupId the group ID 900 * @param parentCategoryId the parent category ID 901 * @param start the lower bound of the range of message boards categories 902 * @param end the upper bound of the range of message boards categories (not inclusive) 903 * @return the range of matching message boards categories 904 * @throws SystemException if a system exception occurred 905 */ 906 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByG_P( 907 long groupId, long parentCategoryId, int start, int end) 908 throws com.liferay.portal.kernel.exception.SystemException { 909 return getPersistence().findByG_P(groupId, parentCategoryId, start, end); 910 } 911 912 /** 913 * Returns an ordered range of all the message boards categories where groupId = ? and parentCategoryId = ?. 914 * 915 * <p> 916 * 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. 917 * </p> 918 * 919 * @param groupId the group ID 920 * @param parentCategoryId the parent category ID 921 * @param start the lower bound of the range of message boards categories 922 * @param end the upper bound of the range of message boards categories (not inclusive) 923 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 924 * @return the ordered range of matching message boards categories 925 * @throws SystemException if a system exception occurred 926 */ 927 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByG_P( 928 long groupId, long parentCategoryId, int start, int end, 929 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 930 throws com.liferay.portal.kernel.exception.SystemException { 931 return getPersistence() 932 .findByG_P(groupId, parentCategoryId, start, end, 933 orderByComparator); 934 } 935 936 /** 937 * Returns the first message boards category in the ordered set where groupId = ? and parentCategoryId = ?. 938 * 939 * @param groupId the group ID 940 * @param parentCategoryId the parent category ID 941 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 942 * @return the first matching message boards category 943 * @throws com.liferay.portlet.messageboards.NoSuchCategoryException if a matching message boards category could not be found 944 * @throws SystemException if a system exception occurred 945 */ 946 public static com.liferay.portlet.messageboards.model.MBCategory findByG_P_First( 947 long groupId, long parentCategoryId, 948 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 949 throws com.liferay.portal.kernel.exception.SystemException, 950 com.liferay.portlet.messageboards.NoSuchCategoryException { 951 return getPersistence() 952 .findByG_P_First(groupId, parentCategoryId, orderByComparator); 953 } 954 955 /** 956 * Returns the first message boards category in the ordered set where groupId = ? and parentCategoryId = ?. 957 * 958 * @param groupId the group ID 959 * @param parentCategoryId the parent category ID 960 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 961 * @return the first matching message boards category, or <code>null</code> if a matching message boards category could not be found 962 * @throws SystemException if a system exception occurred 963 */ 964 public static com.liferay.portlet.messageboards.model.MBCategory fetchByG_P_First( 965 long groupId, long parentCategoryId, 966 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 967 throws com.liferay.portal.kernel.exception.SystemException { 968 return getPersistence() 969 .fetchByG_P_First(groupId, parentCategoryId, 970 orderByComparator); 971 } 972 973 /** 974 * Returns the last message boards category in the ordered set where groupId = ? and parentCategoryId = ?. 975 * 976 * @param groupId the group ID 977 * @param parentCategoryId the parent category ID 978 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 979 * @return the last matching message boards category 980 * @throws com.liferay.portlet.messageboards.NoSuchCategoryException if a matching message boards category could not be found 981 * @throws SystemException if a system exception occurred 982 */ 983 public static com.liferay.portlet.messageboards.model.MBCategory findByG_P_Last( 984 long groupId, long parentCategoryId, 985 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 986 throws com.liferay.portal.kernel.exception.SystemException, 987 com.liferay.portlet.messageboards.NoSuchCategoryException { 988 return getPersistence() 989 .findByG_P_Last(groupId, parentCategoryId, orderByComparator); 990 } 991 992 /** 993 * Returns the last message boards category in the ordered set where groupId = ? and parentCategoryId = ?. 994 * 995 * @param groupId the group ID 996 * @param parentCategoryId the parent category ID 997 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 998 * @return the last matching message boards category, or <code>null</code> if a matching message boards category could not be found 999 * @throws SystemException if a system exception occurred 1000 */ 1001 public static com.liferay.portlet.messageboards.model.MBCategory fetchByG_P_Last( 1002 long groupId, long parentCategoryId, 1003 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1004 throws com.liferay.portal.kernel.exception.SystemException { 1005 return getPersistence() 1006 .fetchByG_P_Last(groupId, parentCategoryId, orderByComparator); 1007 } 1008 1009 /** 1010 * Returns the message boards categories before and after the current message boards category in the ordered set where groupId = ? and parentCategoryId = ?. 1011 * 1012 * @param categoryId the primary key of the current message boards category 1013 * @param groupId the group ID 1014 * @param parentCategoryId the parent category ID 1015 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1016 * @return the previous, current, and next message boards category 1017 * @throws com.liferay.portlet.messageboards.NoSuchCategoryException if a message boards category with the primary key could not be found 1018 * @throws SystemException if a system exception occurred 1019 */ 1020 public static com.liferay.portlet.messageboards.model.MBCategory[] findByG_P_PrevAndNext( 1021 long categoryId, long groupId, long parentCategoryId, 1022 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1023 throws com.liferay.portal.kernel.exception.SystemException, 1024 com.liferay.portlet.messageboards.NoSuchCategoryException { 1025 return getPersistence() 1026 .findByG_P_PrevAndNext(categoryId, groupId, 1027 parentCategoryId, orderByComparator); 1028 } 1029 1030 /** 1031 * Returns all the message boards categories where groupId = ? and parentCategoryId = any ?. 1032 * 1033 * <p> 1034 * 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. 1035 * </p> 1036 * 1037 * @param groupId the group ID 1038 * @param parentCategoryIds the parent category IDs 1039 * @return the matching message boards categories 1040 * @throws SystemException if a system exception occurred 1041 */ 1042 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByG_P( 1043 long groupId, long[] parentCategoryIds) 1044 throws com.liferay.portal.kernel.exception.SystemException { 1045 return getPersistence().findByG_P(groupId, parentCategoryIds); 1046 } 1047 1048 /** 1049 * Returns a range of all the message boards categories where groupId = ? and parentCategoryId = any ?. 1050 * 1051 * <p> 1052 * 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. 1053 * </p> 1054 * 1055 * @param groupId the group ID 1056 * @param parentCategoryIds the parent category IDs 1057 * @param start the lower bound of the range of message boards categories 1058 * @param end the upper bound of the range of message boards categories (not inclusive) 1059 * @return the range of matching message boards categories 1060 * @throws SystemException if a system exception occurred 1061 */ 1062 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByG_P( 1063 long groupId, long[] parentCategoryIds, int start, int end) 1064 throws com.liferay.portal.kernel.exception.SystemException { 1065 return getPersistence().findByG_P(groupId, parentCategoryIds, start, end); 1066 } 1067 1068 /** 1069 * Returns an ordered range of all the message boards categories where groupId = ? and parentCategoryId = any ?. 1070 * 1071 * <p> 1072 * 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. 1073 * </p> 1074 * 1075 * @param groupId the group ID 1076 * @param parentCategoryIds the parent category IDs 1077 * @param start the lower bound of the range of message boards categories 1078 * @param end the upper bound of the range of message boards categories (not inclusive) 1079 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1080 * @return the ordered range of matching message boards categories 1081 * @throws SystemException if a system exception occurred 1082 */ 1083 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByG_P( 1084 long groupId, long[] parentCategoryIds, int start, int end, 1085 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1086 throws com.liferay.portal.kernel.exception.SystemException { 1087 return getPersistence() 1088 .findByG_P(groupId, parentCategoryIds, start, end, 1089 orderByComparator); 1090 } 1091 1092 /** 1093 * Returns all the message boards categories that the user has permission to view where groupId = ? and parentCategoryId = ?. 1094 * 1095 * @param groupId the group ID 1096 * @param parentCategoryId the parent category ID 1097 * @return the matching message boards categories that the user has permission to view 1098 * @throws SystemException if a system exception occurred 1099 */ 1100 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> filterFindByG_P( 1101 long groupId, long parentCategoryId) 1102 throws com.liferay.portal.kernel.exception.SystemException { 1103 return getPersistence().filterFindByG_P(groupId, parentCategoryId); 1104 } 1105 1106 /** 1107 * Returns a range of all the message boards categories that the user has permission to view where groupId = ? and parentCategoryId = ?. 1108 * 1109 * <p> 1110 * 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. 1111 * </p> 1112 * 1113 * @param groupId the group ID 1114 * @param parentCategoryId the parent category ID 1115 * @param start the lower bound of the range of message boards categories 1116 * @param end the upper bound of the range of message boards categories (not inclusive) 1117 * @return the range of matching message boards categories that the user has permission to view 1118 * @throws SystemException if a system exception occurred 1119 */ 1120 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> filterFindByG_P( 1121 long groupId, long parentCategoryId, int start, int end) 1122 throws com.liferay.portal.kernel.exception.SystemException { 1123 return getPersistence() 1124 .filterFindByG_P(groupId, parentCategoryId, start, end); 1125 } 1126 1127 /** 1128 * Returns an ordered range of all the message boards categories that the user has permissions to view where groupId = ? and parentCategoryId = ?. 1129 * 1130 * <p> 1131 * 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. 1132 * </p> 1133 * 1134 * @param groupId the group ID 1135 * @param parentCategoryId the parent category ID 1136 * @param start the lower bound of the range of message boards categories 1137 * @param end the upper bound of the range of message boards categories (not inclusive) 1138 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1139 * @return the ordered range of matching message boards categories that the user has permission to view 1140 * @throws SystemException if a system exception occurred 1141 */ 1142 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> filterFindByG_P( 1143 long groupId, long parentCategoryId, int start, int end, 1144 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1145 throws com.liferay.portal.kernel.exception.SystemException { 1146 return getPersistence() 1147 .filterFindByG_P(groupId, parentCategoryId, start, end, 1148 orderByComparator); 1149 } 1150 1151 /** 1152 * 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 = ?. 1153 * 1154 * @param categoryId the primary key of the current message boards category 1155 * @param groupId the group ID 1156 * @param parentCategoryId the parent category ID 1157 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1158 * @return the previous, current, and next message boards category 1159 * @throws com.liferay.portlet.messageboards.NoSuchCategoryException if a message boards category with the primary key could not be found 1160 * @throws SystemException if a system exception occurred 1161 */ 1162 public static com.liferay.portlet.messageboards.model.MBCategory[] filterFindByG_P_PrevAndNext( 1163 long categoryId, long groupId, long parentCategoryId, 1164 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1165 throws com.liferay.portal.kernel.exception.SystemException, 1166 com.liferay.portlet.messageboards.NoSuchCategoryException { 1167 return getPersistence() 1168 .filterFindByG_P_PrevAndNext(categoryId, groupId, 1169 parentCategoryId, orderByComparator); 1170 } 1171 1172 /** 1173 * Returns all the message boards categories that the user has permission to view where groupId = ? and parentCategoryId = any ?. 1174 * 1175 * @param groupId the group ID 1176 * @param parentCategoryIds the parent category IDs 1177 * @return the matching message boards categories that the user has permission to view 1178 * @throws SystemException if a system exception occurred 1179 */ 1180 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> filterFindByG_P( 1181 long groupId, long[] parentCategoryIds) 1182 throws com.liferay.portal.kernel.exception.SystemException { 1183 return getPersistence().filterFindByG_P(groupId, parentCategoryIds); 1184 } 1185 1186 /** 1187 * Returns a range of all the message boards categories that the user has permission to view where groupId = ? and parentCategoryId = any ?. 1188 * 1189 * <p> 1190 * 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. 1191 * </p> 1192 * 1193 * @param groupId the group ID 1194 * @param parentCategoryIds the parent category IDs 1195 * @param start the lower bound of the range of message boards categories 1196 * @param end the upper bound of the range of message boards categories (not inclusive) 1197 * @return the range of matching message boards categories that the user has permission to view 1198 * @throws SystemException if a system exception occurred 1199 */ 1200 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> filterFindByG_P( 1201 long groupId, long[] parentCategoryIds, int start, int end) 1202 throws com.liferay.portal.kernel.exception.SystemException { 1203 return getPersistence() 1204 .filterFindByG_P(groupId, parentCategoryIds, start, end); 1205 } 1206 1207 /** 1208 * Returns an ordered range of all the message boards categories that the user has permission to view where groupId = ? and parentCategoryId = any ?. 1209 * 1210 * <p> 1211 * 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. 1212 * </p> 1213 * 1214 * @param groupId the group ID 1215 * @param parentCategoryIds the parent category IDs 1216 * @param start the lower bound of the range of message boards categories 1217 * @param end the upper bound of the range of message boards categories (not inclusive) 1218 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1219 * @return the ordered range of matching message boards categories that the user has permission to view 1220 * @throws SystemException if a system exception occurred 1221 */ 1222 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> filterFindByG_P( 1223 long groupId, long[] parentCategoryIds, int start, int end, 1224 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1225 throws com.liferay.portal.kernel.exception.SystemException { 1226 return getPersistence() 1227 .filterFindByG_P(groupId, parentCategoryIds, start, end, 1228 orderByComparator); 1229 } 1230 1231 /** 1232 * Returns all the message boards categories. 1233 * 1234 * @return the message boards categories 1235 * @throws SystemException if a system exception occurred 1236 */ 1237 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findAll() 1238 throws com.liferay.portal.kernel.exception.SystemException { 1239 return getPersistence().findAll(); 1240 } 1241 1242 /** 1243 * Returns a range of all the message boards categories. 1244 * 1245 * <p> 1246 * 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. 1247 * </p> 1248 * 1249 * @param start the lower bound of the range of message boards categories 1250 * @param end the upper bound of the range of message boards categories (not inclusive) 1251 * @return the range of message boards categories 1252 * @throws SystemException if a system exception occurred 1253 */ 1254 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findAll( 1255 int start, int end) 1256 throws com.liferay.portal.kernel.exception.SystemException { 1257 return getPersistence().findAll(start, end); 1258 } 1259 1260 /** 1261 * Returns an ordered range of all the message boards categories. 1262 * 1263 * <p> 1264 * 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. 1265 * </p> 1266 * 1267 * @param start the lower bound of the range of message boards categories 1268 * @param end the upper bound of the range of message boards categories (not inclusive) 1269 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1270 * @return the ordered range of message boards categories 1271 * @throws SystemException if a system exception occurred 1272 */ 1273 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findAll( 1274 int start, int end, 1275 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1276 throws com.liferay.portal.kernel.exception.SystemException { 1277 return getPersistence().findAll(start, end, orderByComparator); 1278 } 1279 1280 /** 1281 * Removes all the message boards categories where uuid = ? from the database. 1282 * 1283 * @param uuid the uuid 1284 * @throws SystemException if a system exception occurred 1285 */ 1286 public static void removeByUuid(java.lang.String uuid) 1287 throws com.liferay.portal.kernel.exception.SystemException { 1288 getPersistence().removeByUuid(uuid); 1289 } 1290 1291 /** 1292 * Removes the message boards category where uuid = ? and groupId = ? from the database. 1293 * 1294 * @param uuid the uuid 1295 * @param groupId the group ID 1296 * @return the message boards category that was removed 1297 * @throws SystemException if a system exception occurred 1298 */ 1299 public static com.liferay.portlet.messageboards.model.MBCategory removeByUUID_G( 1300 java.lang.String uuid, long groupId) 1301 throws com.liferay.portal.kernel.exception.SystemException, 1302 com.liferay.portlet.messageboards.NoSuchCategoryException { 1303 return getPersistence().removeByUUID_G(uuid, groupId); 1304 } 1305 1306 /** 1307 * Removes all the message boards categories where uuid = ? and companyId = ? from the database. 1308 * 1309 * @param uuid the uuid 1310 * @param companyId the company ID 1311 * @throws SystemException if a system exception occurred 1312 */ 1313 public static void removeByUuid_C(java.lang.String uuid, long companyId) 1314 throws com.liferay.portal.kernel.exception.SystemException { 1315 getPersistence().removeByUuid_C(uuid, companyId); 1316 } 1317 1318 /** 1319 * Removes all the message boards categories where groupId = ? from the database. 1320 * 1321 * @param groupId the group ID 1322 * @throws SystemException if a system exception occurred 1323 */ 1324 public static void removeByGroupId(long groupId) 1325 throws com.liferay.portal.kernel.exception.SystemException { 1326 getPersistence().removeByGroupId(groupId); 1327 } 1328 1329 /** 1330 * Removes all the message boards categories where companyId = ? from the database. 1331 * 1332 * @param companyId the company ID 1333 * @throws SystemException if a system exception occurred 1334 */ 1335 public static void removeByCompanyId(long companyId) 1336 throws com.liferay.portal.kernel.exception.SystemException { 1337 getPersistence().removeByCompanyId(companyId); 1338 } 1339 1340 /** 1341 * Removes all the message boards categories where groupId = ? and parentCategoryId = ? from the database. 1342 * 1343 * @param groupId the group ID 1344 * @param parentCategoryId the parent category ID 1345 * @throws SystemException if a system exception occurred 1346 */ 1347 public static void removeByG_P(long groupId, long parentCategoryId) 1348 throws com.liferay.portal.kernel.exception.SystemException { 1349 getPersistence().removeByG_P(groupId, parentCategoryId); 1350 } 1351 1352 /** 1353 * Removes all the message boards categories from the database. 1354 * 1355 * @throws SystemException if a system exception occurred 1356 */ 1357 public static void removeAll() 1358 throws com.liferay.portal.kernel.exception.SystemException { 1359 getPersistence().removeAll(); 1360 } 1361 1362 /** 1363 * Returns the number of message boards categories where uuid = ?. 1364 * 1365 * @param uuid the uuid 1366 * @return the number of matching message boards categories 1367 * @throws SystemException if a system exception occurred 1368 */ 1369 public static int countByUuid(java.lang.String uuid) 1370 throws com.liferay.portal.kernel.exception.SystemException { 1371 return getPersistence().countByUuid(uuid); 1372 } 1373 1374 /** 1375 * Returns the number of message boards categories where uuid = ? and groupId = ?. 1376 * 1377 * @param uuid the uuid 1378 * @param groupId the group ID 1379 * @return the number of matching message boards categories 1380 * @throws SystemException if a system exception occurred 1381 */ 1382 public static int countByUUID_G(java.lang.String uuid, long groupId) 1383 throws com.liferay.portal.kernel.exception.SystemException { 1384 return getPersistence().countByUUID_G(uuid, groupId); 1385 } 1386 1387 /** 1388 * Returns the number of message boards categories where uuid = ? and companyId = ?. 1389 * 1390 * @param uuid the uuid 1391 * @param companyId the company ID 1392 * @return the number of matching message boards categories 1393 * @throws SystemException if a system exception occurred 1394 */ 1395 public static int countByUuid_C(java.lang.String uuid, long companyId) 1396 throws com.liferay.portal.kernel.exception.SystemException { 1397 return getPersistence().countByUuid_C(uuid, companyId); 1398 } 1399 1400 /** 1401 * Returns the number of message boards categories where groupId = ?. 1402 * 1403 * @param groupId the group ID 1404 * @return the number of matching message boards categories 1405 * @throws SystemException if a system exception occurred 1406 */ 1407 public static int countByGroupId(long groupId) 1408 throws com.liferay.portal.kernel.exception.SystemException { 1409 return getPersistence().countByGroupId(groupId); 1410 } 1411 1412 /** 1413 * Returns the number of message boards categories that the user has permission to view where groupId = ?. 1414 * 1415 * @param groupId the group ID 1416 * @return the number of matching message boards categories that the user has permission to view 1417 * @throws SystemException if a system exception occurred 1418 */ 1419 public static int filterCountByGroupId(long groupId) 1420 throws com.liferay.portal.kernel.exception.SystemException { 1421 return getPersistence().filterCountByGroupId(groupId); 1422 } 1423 1424 /** 1425 * Returns the number of message boards categories where companyId = ?. 1426 * 1427 * @param companyId the company ID 1428 * @return the number of matching message boards categories 1429 * @throws SystemException if a system exception occurred 1430 */ 1431 public static int countByCompanyId(long companyId) 1432 throws com.liferay.portal.kernel.exception.SystemException { 1433 return getPersistence().countByCompanyId(companyId); 1434 } 1435 1436 /** 1437 * Returns the number of message boards categories where groupId = ? and parentCategoryId = ?. 1438 * 1439 * @param groupId the group ID 1440 * @param parentCategoryId the parent category ID 1441 * @return the number of matching message boards categories 1442 * @throws SystemException if a system exception occurred 1443 */ 1444 public static int countByG_P(long groupId, long parentCategoryId) 1445 throws com.liferay.portal.kernel.exception.SystemException { 1446 return getPersistence().countByG_P(groupId, parentCategoryId); 1447 } 1448 1449 /** 1450 * Returns the number of message boards categories where groupId = ? and parentCategoryId = any ?. 1451 * 1452 * @param groupId the group ID 1453 * @param parentCategoryIds the parent category IDs 1454 * @return the number of matching message boards categories 1455 * @throws SystemException if a system exception occurred 1456 */ 1457 public static int countByG_P(long groupId, long[] parentCategoryIds) 1458 throws com.liferay.portal.kernel.exception.SystemException { 1459 return getPersistence().countByG_P(groupId, parentCategoryIds); 1460 } 1461 1462 /** 1463 * Returns the number of message boards categories that the user has permission to view where groupId = ? and parentCategoryId = ?. 1464 * 1465 * @param groupId the group ID 1466 * @param parentCategoryId the parent category ID 1467 * @return the number of matching message boards categories that the user has permission to view 1468 * @throws SystemException if a system exception occurred 1469 */ 1470 public static int filterCountByG_P(long groupId, long parentCategoryId) 1471 throws com.liferay.portal.kernel.exception.SystemException { 1472 return getPersistence().filterCountByG_P(groupId, parentCategoryId); 1473 } 1474 1475 /** 1476 * Returns the number of message boards categories that the user has permission to view where groupId = ? and parentCategoryId = any ?. 1477 * 1478 * @param groupId the group ID 1479 * @param parentCategoryIds the parent category IDs 1480 * @return the number of matching message boards categories that the user has permission to view 1481 * @throws SystemException if a system exception occurred 1482 */ 1483 public static int filterCountByG_P(long groupId, long[] parentCategoryIds) 1484 throws com.liferay.portal.kernel.exception.SystemException { 1485 return getPersistence().filterCountByG_P(groupId, parentCategoryIds); 1486 } 1487 1488 /** 1489 * Returns the number of message boards categories. 1490 * 1491 * @return the number of message boards categories 1492 * @throws SystemException if a system exception occurred 1493 */ 1494 public static int countAll() 1495 throws com.liferay.portal.kernel.exception.SystemException { 1496 return getPersistence().countAll(); 1497 } 1498 1499 public static MBCategoryPersistence getPersistence() { 1500 if (_persistence == null) { 1501 _persistence = (MBCategoryPersistence)PortalBeanLocatorUtil.locate(MBCategoryPersistence.class.getName()); 1502 1503 ReferenceRegistry.registerReference(MBCategoryUtil.class, 1504 "_persistence"); 1505 } 1506 1507 return _persistence; 1508 } 1509 1510 /** 1511 * @deprecated 1512 */ 1513 public void setPersistence(MBCategoryPersistence persistence) { 1514 } 1515 1516 private static MBCategoryPersistence _persistence; 1517 }