001 /** 002 * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved. 003 * 004 * This library is free software; you can redistribute it and/or modify it under 005 * the terms of the GNU Lesser General Public License as published by the Free 006 * Software Foundation; either version 2.1 of the License, or (at your option) 007 * any later version. 008 * 009 * This library is distributed in the hope that it will be useful, but WITHOUT 010 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 011 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 012 * details. 013 */ 014 015 package com.liferay.portlet.messageboards.service.persistence; 016 017 import com.liferay.portal.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, boolean) 099 */ 100 public static MBCategory update(MBCategory mbCategory, boolean merge) 101 throws SystemException { 102 return getPersistence().update(mbCategory, merge); 103 } 104 105 /** 106 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext) 107 */ 108 public static MBCategory update(MBCategory mbCategory, boolean merge, 109 ServiceContext serviceContext) throws SystemException { 110 return getPersistence().update(mbCategory, merge, 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 boolean merge) 162 throws com.liferay.portal.kernel.exception.SystemException { 163 return getPersistence().updateImpl(mbCategory, merge); 164 } 165 166 /** 167 * Returns the message boards category with the primary key or throws a {@link com.liferay.portlet.messageboards.NoSuchCategoryException} if it could not be found. 168 * 169 * @param categoryId the primary key of the message boards category 170 * @return the message boards category 171 * @throws com.liferay.portlet.messageboards.NoSuchCategoryException if a message boards category with the primary key could not be found 172 * @throws SystemException if a system exception occurred 173 */ 174 public static com.liferay.portlet.messageboards.model.MBCategory findByPrimaryKey( 175 long categoryId) 176 throws com.liferay.portal.kernel.exception.SystemException, 177 com.liferay.portlet.messageboards.NoSuchCategoryException { 178 return getPersistence().findByPrimaryKey(categoryId); 179 } 180 181 /** 182 * Returns the message boards category with the primary key or returns <code>null</code> if it could not be found. 183 * 184 * @param categoryId the primary key of the message boards category 185 * @return the message boards category, or <code>null</code> if a message boards category with the primary key could not be found 186 * @throws SystemException if a system exception occurred 187 */ 188 public static com.liferay.portlet.messageboards.model.MBCategory fetchByPrimaryKey( 189 long categoryId) 190 throws com.liferay.portal.kernel.exception.SystemException { 191 return getPersistence().fetchByPrimaryKey(categoryId); 192 } 193 194 /** 195 * Returns all the message boards categories where uuid = ?. 196 * 197 * @param uuid the uuid 198 * @return the matching message boards categories 199 * @throws SystemException if a system exception occurred 200 */ 201 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByUuid( 202 java.lang.String uuid) 203 throws com.liferay.portal.kernel.exception.SystemException { 204 return getPersistence().findByUuid(uuid); 205 } 206 207 /** 208 * Returns a range of all the message boards categories where uuid = ?. 209 * 210 * <p> 211 * 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. 212 * </p> 213 * 214 * @param uuid the uuid 215 * @param start the lower bound of the range of message boards categories 216 * @param end the upper bound of the range of message boards categories (not inclusive) 217 * @return the range of matching message boards categories 218 * @throws SystemException if a system exception occurred 219 */ 220 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByUuid( 221 java.lang.String uuid, int start, int end) 222 throws com.liferay.portal.kernel.exception.SystemException { 223 return getPersistence().findByUuid(uuid, start, end); 224 } 225 226 /** 227 * Returns an ordered range of all the message boards categories where uuid = ?. 228 * 229 * <p> 230 * 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. 231 * </p> 232 * 233 * @param uuid the uuid 234 * @param start the lower bound of the range of message boards categories 235 * @param end the upper bound of the range of message boards categories (not inclusive) 236 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 237 * @return the ordered range of matching message boards categories 238 * @throws SystemException if a system exception occurred 239 */ 240 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByUuid( 241 java.lang.String uuid, int start, int end, 242 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 243 throws com.liferay.portal.kernel.exception.SystemException { 244 return getPersistence().findByUuid(uuid, start, end, orderByComparator); 245 } 246 247 /** 248 * Returns the first message boards category in the ordered set where uuid = ?. 249 * 250 * @param uuid the uuid 251 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 252 * @return the first matching message boards category 253 * @throws com.liferay.portlet.messageboards.NoSuchCategoryException if a matching message boards category could not be found 254 * @throws SystemException if a system exception occurred 255 */ 256 public static com.liferay.portlet.messageboards.model.MBCategory findByUuid_First( 257 java.lang.String uuid, 258 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 259 throws com.liferay.portal.kernel.exception.SystemException, 260 com.liferay.portlet.messageboards.NoSuchCategoryException { 261 return getPersistence().findByUuid_First(uuid, orderByComparator); 262 } 263 264 /** 265 * Returns the first message boards category in the ordered set where uuid = ?. 266 * 267 * @param uuid the uuid 268 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 269 * @return the first matching message boards category, or <code>null</code> if a matching message boards category could not be found 270 * @throws SystemException if a system exception occurred 271 */ 272 public static com.liferay.portlet.messageboards.model.MBCategory fetchByUuid_First( 273 java.lang.String uuid, 274 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 275 throws com.liferay.portal.kernel.exception.SystemException { 276 return getPersistence().fetchByUuid_First(uuid, orderByComparator); 277 } 278 279 /** 280 * Returns the last message boards category in the ordered set where uuid = ?. 281 * 282 * @param uuid the uuid 283 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 284 * @return the last matching message boards category 285 * @throws com.liferay.portlet.messageboards.NoSuchCategoryException if a matching message boards category could not be found 286 * @throws SystemException if a system exception occurred 287 */ 288 public static com.liferay.portlet.messageboards.model.MBCategory findByUuid_Last( 289 java.lang.String uuid, 290 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 291 throws com.liferay.portal.kernel.exception.SystemException, 292 com.liferay.portlet.messageboards.NoSuchCategoryException { 293 return getPersistence().findByUuid_Last(uuid, orderByComparator); 294 } 295 296 /** 297 * Returns the last message boards category in the ordered set where uuid = ?. 298 * 299 * @param uuid the uuid 300 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 301 * @return the last matching message boards category, or <code>null</code> if a matching message boards category could not be found 302 * @throws SystemException if a system exception occurred 303 */ 304 public static com.liferay.portlet.messageboards.model.MBCategory fetchByUuid_Last( 305 java.lang.String uuid, 306 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 307 throws com.liferay.portal.kernel.exception.SystemException { 308 return getPersistence().fetchByUuid_Last(uuid, orderByComparator); 309 } 310 311 /** 312 * Returns the message boards categories before and after the current message boards category in the ordered set where uuid = ?. 313 * 314 * @param categoryId the primary key of the current message boards category 315 * @param uuid the uuid 316 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 317 * @return the previous, current, and next message boards category 318 * @throws com.liferay.portlet.messageboards.NoSuchCategoryException if a message boards category with the primary key could not be found 319 * @throws SystemException if a system exception occurred 320 */ 321 public static com.liferay.portlet.messageboards.model.MBCategory[] findByUuid_PrevAndNext( 322 long categoryId, java.lang.String uuid, 323 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 324 throws com.liferay.portal.kernel.exception.SystemException, 325 com.liferay.portlet.messageboards.NoSuchCategoryException { 326 return getPersistence() 327 .findByUuid_PrevAndNext(categoryId, uuid, orderByComparator); 328 } 329 330 /** 331 * Returns the message boards category where uuid = ? and groupId = ? or throws a {@link com.liferay.portlet.messageboards.NoSuchCategoryException} if it could not be found. 332 * 333 * @param uuid the uuid 334 * @param groupId the group ID 335 * @return the matching message boards category 336 * @throws com.liferay.portlet.messageboards.NoSuchCategoryException if a matching message boards category could not be found 337 * @throws SystemException if a system exception occurred 338 */ 339 public static com.liferay.portlet.messageboards.model.MBCategory findByUUID_G( 340 java.lang.String uuid, long groupId) 341 throws com.liferay.portal.kernel.exception.SystemException, 342 com.liferay.portlet.messageboards.NoSuchCategoryException { 343 return getPersistence().findByUUID_G(uuid, groupId); 344 } 345 346 /** 347 * Returns the message boards category where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 348 * 349 * @param uuid the uuid 350 * @param groupId the group ID 351 * @return the matching message boards category, or <code>null</code> if a matching message boards category could not be found 352 * @throws SystemException if a system exception occurred 353 */ 354 public static com.liferay.portlet.messageboards.model.MBCategory fetchByUUID_G( 355 java.lang.String uuid, long groupId) 356 throws com.liferay.portal.kernel.exception.SystemException { 357 return getPersistence().fetchByUUID_G(uuid, groupId); 358 } 359 360 /** 361 * 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. 362 * 363 * @param uuid the uuid 364 * @param groupId the group ID 365 * @param retrieveFromCache whether to use the finder cache 366 * @return the 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 static com.liferay.portlet.messageboards.model.MBCategory fetchByUUID_G( 370 java.lang.String uuid, long groupId, boolean retrieveFromCache) 371 throws com.liferay.portal.kernel.exception.SystemException { 372 return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache); 373 } 374 375 /** 376 * Returns all the message boards categories where groupId = ?. 377 * 378 * @param groupId the group 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> findByGroupId( 383 long groupId) 384 throws com.liferay.portal.kernel.exception.SystemException { 385 return getPersistence().findByGroupId(groupId); 386 } 387 388 /** 389 * Returns a range of all the message boards categories where groupId = ?. 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 groupId the group ID 396 * @param start the lower bound of the range of message boards categories 397 * @param end the upper bound of the range of message boards categories (not inclusive) 398 * @return the range of matching message boards categories 399 * @throws SystemException if a system exception occurred 400 */ 401 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByGroupId( 402 long groupId, int start, int end) 403 throws com.liferay.portal.kernel.exception.SystemException { 404 return getPersistence().findByGroupId(groupId, start, end); 405 } 406 407 /** 408 * Returns an ordered range of all the message boards categories where groupId = ?. 409 * 410 * <p> 411 * 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. 412 * </p> 413 * 414 * @param groupId the group ID 415 * @param start the lower bound of the range of message boards categories 416 * @param end the upper bound of the range of message boards categories (not inclusive) 417 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 418 * @return the ordered range of matching message boards categories 419 * @throws SystemException if a system exception occurred 420 */ 421 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByGroupId( 422 long groupId, int start, int end, 423 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 424 throws com.liferay.portal.kernel.exception.SystemException { 425 return getPersistence() 426 .findByGroupId(groupId, start, end, orderByComparator); 427 } 428 429 /** 430 * Returns the first message boards category in the ordered set where groupId = ?. 431 * 432 * @param groupId the group ID 433 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 434 * @return the first matching message boards category 435 * @throws com.liferay.portlet.messageboards.NoSuchCategoryException if a matching message boards category could not be found 436 * @throws SystemException if a system exception occurred 437 */ 438 public static com.liferay.portlet.messageboards.model.MBCategory findByGroupId_First( 439 long groupId, 440 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 441 throws com.liferay.portal.kernel.exception.SystemException, 442 com.liferay.portlet.messageboards.NoSuchCategoryException { 443 return getPersistence().findByGroupId_First(groupId, orderByComparator); 444 } 445 446 /** 447 * Returns the first message boards category in the ordered set where groupId = ?. 448 * 449 * @param groupId the group ID 450 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 451 * @return the first matching message boards category, or <code>null</code> if a matching message boards category could not be found 452 * @throws SystemException if a system exception occurred 453 */ 454 public static com.liferay.portlet.messageboards.model.MBCategory fetchByGroupId_First( 455 long groupId, 456 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 457 throws com.liferay.portal.kernel.exception.SystemException { 458 return getPersistence().fetchByGroupId_First(groupId, orderByComparator); 459 } 460 461 /** 462 * Returns the last message boards category in the ordered set where groupId = ?. 463 * 464 * @param groupId the group ID 465 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 466 * @return the last matching message boards category 467 * @throws com.liferay.portlet.messageboards.NoSuchCategoryException if a matching message boards category could not be found 468 * @throws SystemException if a system exception occurred 469 */ 470 public static com.liferay.portlet.messageboards.model.MBCategory findByGroupId_Last( 471 long groupId, 472 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 473 throws com.liferay.portal.kernel.exception.SystemException, 474 com.liferay.portlet.messageboards.NoSuchCategoryException { 475 return getPersistence().findByGroupId_Last(groupId, orderByComparator); 476 } 477 478 /** 479 * Returns the last message boards category in the ordered set where groupId = ?. 480 * 481 * @param groupId the group ID 482 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 483 * @return the last matching message boards category, or <code>null</code> if a matching message boards category could not be found 484 * @throws SystemException if a system exception occurred 485 */ 486 public static com.liferay.portlet.messageboards.model.MBCategory fetchByGroupId_Last( 487 long groupId, 488 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 489 throws com.liferay.portal.kernel.exception.SystemException { 490 return getPersistence().fetchByGroupId_Last(groupId, orderByComparator); 491 } 492 493 /** 494 * Returns the message boards categories before and after the current message boards category in the ordered set where groupId = ?. 495 * 496 * @param categoryId the primary key of the current message boards category 497 * @param groupId the group ID 498 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 499 * @return the previous, current, and next message boards category 500 * @throws com.liferay.portlet.messageboards.NoSuchCategoryException if a message boards category with the primary key could not be found 501 * @throws SystemException if a system exception occurred 502 */ 503 public static com.liferay.portlet.messageboards.model.MBCategory[] findByGroupId_PrevAndNext( 504 long categoryId, long groupId, 505 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 506 throws com.liferay.portal.kernel.exception.SystemException, 507 com.liferay.portlet.messageboards.NoSuchCategoryException { 508 return getPersistence() 509 .findByGroupId_PrevAndNext(categoryId, groupId, 510 orderByComparator); 511 } 512 513 /** 514 * Returns all the message boards categories that the user has permission to view where groupId = ?. 515 * 516 * @param groupId the group ID 517 * @return the matching message boards categories that the user has permission to view 518 * @throws SystemException if a system exception occurred 519 */ 520 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> filterFindByGroupId( 521 long groupId) 522 throws com.liferay.portal.kernel.exception.SystemException { 523 return getPersistence().filterFindByGroupId(groupId); 524 } 525 526 /** 527 * Returns a range of all the message boards categories that the user has permission to view where groupId = ?. 528 * 529 * <p> 530 * 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. 531 * </p> 532 * 533 * @param groupId the group ID 534 * @param start the lower bound of the range of message boards categories 535 * @param end the upper bound of the range of message boards categories (not inclusive) 536 * @return the range of matching message boards categories that the user has permission to view 537 * @throws SystemException if a system exception occurred 538 */ 539 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> filterFindByGroupId( 540 long groupId, int start, int end) 541 throws com.liferay.portal.kernel.exception.SystemException { 542 return getPersistence().filterFindByGroupId(groupId, start, end); 543 } 544 545 /** 546 * Returns an ordered range of all the message boards categories that the user has permissions to view where groupId = ?. 547 * 548 * <p> 549 * 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. 550 * </p> 551 * 552 * @param groupId the group ID 553 * @param start the lower bound of the range of message boards categories 554 * @param end the upper bound of the range of message boards categories (not inclusive) 555 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 556 * @return the ordered range of matching message boards categories that the user has permission to view 557 * @throws SystemException if a system exception occurred 558 */ 559 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> filterFindByGroupId( 560 long groupId, int start, int end, 561 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 562 throws com.liferay.portal.kernel.exception.SystemException { 563 return getPersistence() 564 .filterFindByGroupId(groupId, start, end, orderByComparator); 565 } 566 567 /** 568 * 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 = ?. 569 * 570 * @param categoryId the primary key of the current message boards category 571 * @param groupId the group ID 572 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 573 * @return the previous, current, and next message boards category 574 * @throws com.liferay.portlet.messageboards.NoSuchCategoryException if a message boards category with the primary key could not be found 575 * @throws SystemException if a system exception occurred 576 */ 577 public static com.liferay.portlet.messageboards.model.MBCategory[] filterFindByGroupId_PrevAndNext( 578 long categoryId, long groupId, 579 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 580 throws com.liferay.portal.kernel.exception.SystemException, 581 com.liferay.portlet.messageboards.NoSuchCategoryException { 582 return getPersistence() 583 .filterFindByGroupId_PrevAndNext(categoryId, groupId, 584 orderByComparator); 585 } 586 587 /** 588 * Returns all the message boards categories where companyId = ?. 589 * 590 * @param companyId the company ID 591 * @return the matching message boards categories 592 * @throws SystemException if a system exception occurred 593 */ 594 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByCompanyId( 595 long companyId) 596 throws com.liferay.portal.kernel.exception.SystemException { 597 return getPersistence().findByCompanyId(companyId); 598 } 599 600 /** 601 * Returns a range of all the message boards categories where companyId = ?. 602 * 603 * <p> 604 * 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. 605 * </p> 606 * 607 * @param companyId the company ID 608 * @param start the lower bound of the range of message boards categories 609 * @param end the upper bound of the range of message boards categories (not inclusive) 610 * @return the range of matching message boards categories 611 * @throws SystemException if a system exception occurred 612 */ 613 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByCompanyId( 614 long companyId, int start, int end) 615 throws com.liferay.portal.kernel.exception.SystemException { 616 return getPersistence().findByCompanyId(companyId, start, end); 617 } 618 619 /** 620 * Returns an ordered range of all the message boards categories where companyId = ?. 621 * 622 * <p> 623 * 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. 624 * </p> 625 * 626 * @param companyId the company ID 627 * @param start the lower bound of the range of message boards categories 628 * @param end the upper bound of the range of message boards categories (not inclusive) 629 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 630 * @return the ordered range of matching message boards categories 631 * @throws SystemException if a system exception occurred 632 */ 633 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByCompanyId( 634 long companyId, int start, int end, 635 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 636 throws com.liferay.portal.kernel.exception.SystemException { 637 return getPersistence() 638 .findByCompanyId(companyId, start, end, orderByComparator); 639 } 640 641 /** 642 * Returns the first message boards category in the ordered set where companyId = ?. 643 * 644 * @param companyId the company ID 645 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 646 * @return the first matching message boards category 647 * @throws com.liferay.portlet.messageboards.NoSuchCategoryException if a matching message boards category could not be found 648 * @throws SystemException if a system exception occurred 649 */ 650 public static com.liferay.portlet.messageboards.model.MBCategory findByCompanyId_First( 651 long companyId, 652 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 653 throws com.liferay.portal.kernel.exception.SystemException, 654 com.liferay.portlet.messageboards.NoSuchCategoryException { 655 return getPersistence() 656 .findByCompanyId_First(companyId, orderByComparator); 657 } 658 659 /** 660 * Returns the first message boards category in the ordered set where companyId = ?. 661 * 662 * @param companyId the company ID 663 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 664 * @return the first matching message boards category, or <code>null</code> if a matching message boards category could not be found 665 * @throws SystemException if a system exception occurred 666 */ 667 public static com.liferay.portlet.messageboards.model.MBCategory fetchByCompanyId_First( 668 long companyId, 669 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 670 throws com.liferay.portal.kernel.exception.SystemException { 671 return getPersistence() 672 .fetchByCompanyId_First(companyId, orderByComparator); 673 } 674 675 /** 676 * Returns the last message boards category in the ordered set where companyId = ?. 677 * 678 * @param companyId the company ID 679 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 680 * @return the last matching message boards category 681 * @throws com.liferay.portlet.messageboards.NoSuchCategoryException if a matching message boards category could not be found 682 * @throws SystemException if a system exception occurred 683 */ 684 public static com.liferay.portlet.messageboards.model.MBCategory findByCompanyId_Last( 685 long companyId, 686 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 687 throws com.liferay.portal.kernel.exception.SystemException, 688 com.liferay.portlet.messageboards.NoSuchCategoryException { 689 return getPersistence() 690 .findByCompanyId_Last(companyId, orderByComparator); 691 } 692 693 /** 694 * Returns the last message boards category in the ordered set where companyId = ?. 695 * 696 * @param companyId the company ID 697 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 698 * @return the last matching message boards category, or <code>null</code> if a matching message boards category could not be found 699 * @throws SystemException if a system exception occurred 700 */ 701 public static com.liferay.portlet.messageboards.model.MBCategory fetchByCompanyId_Last( 702 long companyId, 703 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 704 throws com.liferay.portal.kernel.exception.SystemException { 705 return getPersistence() 706 .fetchByCompanyId_Last(companyId, orderByComparator); 707 } 708 709 /** 710 * Returns the message boards categories before and after the current message boards category in the ordered set where companyId = ?. 711 * 712 * @param categoryId the primary key of the current message boards category 713 * @param companyId the company ID 714 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 715 * @return the previous, current, and next message boards category 716 * @throws com.liferay.portlet.messageboards.NoSuchCategoryException if a message boards category with the primary key could not be found 717 * @throws SystemException if a system exception occurred 718 */ 719 public static com.liferay.portlet.messageboards.model.MBCategory[] findByCompanyId_PrevAndNext( 720 long categoryId, long companyId, 721 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 722 throws com.liferay.portal.kernel.exception.SystemException, 723 com.liferay.portlet.messageboards.NoSuchCategoryException { 724 return getPersistence() 725 .findByCompanyId_PrevAndNext(categoryId, companyId, 726 orderByComparator); 727 } 728 729 /** 730 * Returns all the message boards categories where groupId = ? and parentCategoryId = ?. 731 * 732 * @param groupId the group ID 733 * @param parentCategoryId the parent category ID 734 * @return the matching message boards categories 735 * @throws SystemException if a system exception occurred 736 */ 737 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByG_P( 738 long groupId, long parentCategoryId) 739 throws com.liferay.portal.kernel.exception.SystemException { 740 return getPersistence().findByG_P(groupId, parentCategoryId); 741 } 742 743 /** 744 * Returns a range of all the message boards categories where groupId = ? and parentCategoryId = ?. 745 * 746 * <p> 747 * 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. 748 * </p> 749 * 750 * @param groupId the group ID 751 * @param parentCategoryId the parent category ID 752 * @param start the lower bound of the range of message boards categories 753 * @param end the upper bound of the range of message boards categories (not inclusive) 754 * @return the range of matching message boards categories 755 * @throws SystemException if a system exception occurred 756 */ 757 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByG_P( 758 long groupId, long parentCategoryId, int start, int end) 759 throws com.liferay.portal.kernel.exception.SystemException { 760 return getPersistence().findByG_P(groupId, parentCategoryId, start, end); 761 } 762 763 /** 764 * Returns an ordered range of all the message boards categories where groupId = ? and parentCategoryId = ?. 765 * 766 * <p> 767 * 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. 768 * </p> 769 * 770 * @param groupId the group ID 771 * @param parentCategoryId the parent category ID 772 * @param start the lower bound of the range of message boards categories 773 * @param end the upper bound of the range of message boards categories (not inclusive) 774 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 775 * @return the ordered range of matching message boards categories 776 * @throws SystemException if a system exception occurred 777 */ 778 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByG_P( 779 long groupId, long parentCategoryId, int start, int end, 780 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 781 throws com.liferay.portal.kernel.exception.SystemException { 782 return getPersistence() 783 .findByG_P(groupId, parentCategoryId, start, end, 784 orderByComparator); 785 } 786 787 /** 788 * Returns the first message boards category in the ordered set where groupId = ? and parentCategoryId = ?. 789 * 790 * @param groupId the group ID 791 * @param parentCategoryId the parent category ID 792 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 793 * @return the first matching message boards category 794 * @throws com.liferay.portlet.messageboards.NoSuchCategoryException if a matching message boards category could not be found 795 * @throws SystemException if a system exception occurred 796 */ 797 public static com.liferay.portlet.messageboards.model.MBCategory findByG_P_First( 798 long groupId, long parentCategoryId, 799 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 800 throws com.liferay.portal.kernel.exception.SystemException, 801 com.liferay.portlet.messageboards.NoSuchCategoryException { 802 return getPersistence() 803 .findByG_P_First(groupId, parentCategoryId, orderByComparator); 804 } 805 806 /** 807 * Returns the first message boards category in the ordered set where groupId = ? and parentCategoryId = ?. 808 * 809 * @param groupId the group ID 810 * @param parentCategoryId the parent category ID 811 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 812 * @return the first matching message boards category, or <code>null</code> if a matching message boards category could not be found 813 * @throws SystemException if a system exception occurred 814 */ 815 public static com.liferay.portlet.messageboards.model.MBCategory fetchByG_P_First( 816 long groupId, long parentCategoryId, 817 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 818 throws com.liferay.portal.kernel.exception.SystemException { 819 return getPersistence() 820 .fetchByG_P_First(groupId, parentCategoryId, 821 orderByComparator); 822 } 823 824 /** 825 * Returns the last message boards category in the ordered set where groupId = ? and parentCategoryId = ?. 826 * 827 * @param groupId the group ID 828 * @param parentCategoryId the parent category ID 829 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 830 * @return the last matching message boards category 831 * @throws com.liferay.portlet.messageboards.NoSuchCategoryException if a matching message boards category could not be found 832 * @throws SystemException if a system exception occurred 833 */ 834 public static com.liferay.portlet.messageboards.model.MBCategory findByG_P_Last( 835 long groupId, long parentCategoryId, 836 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 837 throws com.liferay.portal.kernel.exception.SystemException, 838 com.liferay.portlet.messageboards.NoSuchCategoryException { 839 return getPersistence() 840 .findByG_P_Last(groupId, parentCategoryId, orderByComparator); 841 } 842 843 /** 844 * Returns the last message boards category in the ordered set where groupId = ? and parentCategoryId = ?. 845 * 846 * @param groupId the group ID 847 * @param parentCategoryId the parent category ID 848 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 849 * @return the last matching message boards category, or <code>null</code> if a matching message boards category could not be found 850 * @throws SystemException if a system exception occurred 851 */ 852 public static com.liferay.portlet.messageboards.model.MBCategory fetchByG_P_Last( 853 long groupId, long parentCategoryId, 854 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 855 throws com.liferay.portal.kernel.exception.SystemException { 856 return getPersistence() 857 .fetchByG_P_Last(groupId, parentCategoryId, orderByComparator); 858 } 859 860 /** 861 * Returns the message boards categories before and after the current message boards category in the ordered set where groupId = ? and parentCategoryId = ?. 862 * 863 * @param categoryId the primary key of the current message boards category 864 * @param groupId the group ID 865 * @param parentCategoryId the parent category ID 866 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 867 * @return the previous, current, and next message boards category 868 * @throws com.liferay.portlet.messageboards.NoSuchCategoryException if a message boards category with the primary key could not be found 869 * @throws SystemException if a system exception occurred 870 */ 871 public static com.liferay.portlet.messageboards.model.MBCategory[] findByG_P_PrevAndNext( 872 long categoryId, long groupId, long parentCategoryId, 873 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 874 throws com.liferay.portal.kernel.exception.SystemException, 875 com.liferay.portlet.messageboards.NoSuchCategoryException { 876 return getPersistence() 877 .findByG_P_PrevAndNext(categoryId, groupId, 878 parentCategoryId, orderByComparator); 879 } 880 881 /** 882 * Returns all the message boards categories where groupId = ? and parentCategoryId = any ?. 883 * 884 * <p> 885 * 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. 886 * </p> 887 * 888 * @param groupId the group ID 889 * @param parentCategoryIds the parent category IDs 890 * @return the matching message boards categories 891 * @throws SystemException if a system exception occurred 892 */ 893 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByG_P( 894 long groupId, long[] parentCategoryIds) 895 throws com.liferay.portal.kernel.exception.SystemException { 896 return getPersistence().findByG_P(groupId, parentCategoryIds); 897 } 898 899 /** 900 * Returns a range of all the message boards categories where groupId = ? and parentCategoryId = any ?. 901 * 902 * <p> 903 * 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. 904 * </p> 905 * 906 * @param groupId the group ID 907 * @param parentCategoryIds the parent category IDs 908 * @param start the lower bound of the range of message boards categories 909 * @param end the upper bound of the range of message boards categories (not inclusive) 910 * @return the range of matching message boards categories 911 * @throws SystemException if a system exception occurred 912 */ 913 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByG_P( 914 long groupId, long[] parentCategoryIds, int start, int end) 915 throws com.liferay.portal.kernel.exception.SystemException { 916 return getPersistence().findByG_P(groupId, parentCategoryIds, start, end); 917 } 918 919 /** 920 * Returns an ordered range of all the message boards categories where groupId = ? and parentCategoryId = any ?. 921 * 922 * <p> 923 * 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. 924 * </p> 925 * 926 * @param groupId the group ID 927 * @param parentCategoryIds the parent category IDs 928 * @param start the lower bound of the range of message boards categories 929 * @param end the upper bound of the range of message boards categories (not inclusive) 930 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 931 * @return the ordered range of matching message boards categories 932 * @throws SystemException if a system exception occurred 933 */ 934 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByG_P( 935 long groupId, long[] parentCategoryIds, int start, int end, 936 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 937 throws com.liferay.portal.kernel.exception.SystemException { 938 return getPersistence() 939 .findByG_P(groupId, parentCategoryIds, start, end, 940 orderByComparator); 941 } 942 943 /** 944 * Returns all the message boards categories that the user has permission to view where groupId = ? and parentCategoryId = ?. 945 * 946 * @param groupId the group ID 947 * @param parentCategoryId the parent category ID 948 * @return the matching message boards categories that the user has permission to view 949 * @throws SystemException if a system exception occurred 950 */ 951 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> filterFindByG_P( 952 long groupId, long parentCategoryId) 953 throws com.liferay.portal.kernel.exception.SystemException { 954 return getPersistence().filterFindByG_P(groupId, parentCategoryId); 955 } 956 957 /** 958 * Returns a range of all the message boards categories that the user has permission to view where groupId = ? and parentCategoryId = ?. 959 * 960 * <p> 961 * 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. 962 * </p> 963 * 964 * @param groupId the group ID 965 * @param parentCategoryId the parent category ID 966 * @param start the lower bound of the range of message boards categories 967 * @param end the upper bound of the range of message boards categories (not inclusive) 968 * @return the range of matching message boards categories that the user has permission to view 969 * @throws SystemException if a system exception occurred 970 */ 971 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> filterFindByG_P( 972 long groupId, long parentCategoryId, int start, int end) 973 throws com.liferay.portal.kernel.exception.SystemException { 974 return getPersistence() 975 .filterFindByG_P(groupId, parentCategoryId, start, end); 976 } 977 978 /** 979 * Returns an ordered range of all the message boards categories that the user has permissions to view where groupId = ? and parentCategoryId = ?. 980 * 981 * <p> 982 * 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. 983 * </p> 984 * 985 * @param groupId the group ID 986 * @param parentCategoryId the parent category ID 987 * @param start the lower bound of the range of message boards categories 988 * @param end the upper bound of the range of message boards categories (not inclusive) 989 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 990 * @return the ordered range of matching message boards categories that the user has permission to view 991 * @throws SystemException if a system exception occurred 992 */ 993 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> filterFindByG_P( 994 long groupId, long parentCategoryId, int start, int end, 995 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 996 throws com.liferay.portal.kernel.exception.SystemException { 997 return getPersistence() 998 .filterFindByG_P(groupId, parentCategoryId, start, end, 999 orderByComparator); 1000 } 1001 1002 /** 1003 * 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 = ?. 1004 * 1005 * @param categoryId the primary key of the current message boards category 1006 * @param groupId the group ID 1007 * @param parentCategoryId the parent category ID 1008 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1009 * @return the previous, current, and next message boards category 1010 * @throws com.liferay.portlet.messageboards.NoSuchCategoryException if a message boards category with the primary key could not be found 1011 * @throws SystemException if a system exception occurred 1012 */ 1013 public static com.liferay.portlet.messageboards.model.MBCategory[] filterFindByG_P_PrevAndNext( 1014 long categoryId, long groupId, long parentCategoryId, 1015 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1016 throws com.liferay.portal.kernel.exception.SystemException, 1017 com.liferay.portlet.messageboards.NoSuchCategoryException { 1018 return getPersistence() 1019 .filterFindByG_P_PrevAndNext(categoryId, groupId, 1020 parentCategoryId, orderByComparator); 1021 } 1022 1023 /** 1024 * Returns all the message boards categories that the user has permission to view where groupId = ? and parentCategoryId = any ?. 1025 * 1026 * @param groupId the group ID 1027 * @param parentCategoryIds the parent category IDs 1028 * @return the matching message boards categories that the user has permission to view 1029 * @throws SystemException if a system exception occurred 1030 */ 1031 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> filterFindByG_P( 1032 long groupId, long[] parentCategoryIds) 1033 throws com.liferay.portal.kernel.exception.SystemException { 1034 return getPersistence().filterFindByG_P(groupId, parentCategoryIds); 1035 } 1036 1037 /** 1038 * Returns a range of all the message boards categories that the user has permission to view where groupId = ? and parentCategoryId = any ?. 1039 * 1040 * <p> 1041 * 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. 1042 * </p> 1043 * 1044 * @param groupId the group ID 1045 * @param parentCategoryIds the parent category IDs 1046 * @param start the lower bound of the range of message boards categories 1047 * @param end the upper bound of the range of message boards categories (not inclusive) 1048 * @return the range of matching message boards categories that the user has permission to view 1049 * @throws SystemException if a system exception occurred 1050 */ 1051 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> filterFindByG_P( 1052 long groupId, long[] parentCategoryIds, int start, int end) 1053 throws com.liferay.portal.kernel.exception.SystemException { 1054 return getPersistence() 1055 .filterFindByG_P(groupId, parentCategoryIds, start, end); 1056 } 1057 1058 /** 1059 * Returns an ordered range of all the message boards categories that the user has permission to view where groupId = ? and parentCategoryId = any ?. 1060 * 1061 * <p> 1062 * 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. 1063 * </p> 1064 * 1065 * @param groupId the group ID 1066 * @param parentCategoryIds the parent category IDs 1067 * @param start the lower bound of the range of message boards categories 1068 * @param end the upper bound of the range of message boards categories (not inclusive) 1069 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1070 * @return the ordered range of matching message boards categories that the user has permission to view 1071 * @throws SystemException if a system exception occurred 1072 */ 1073 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> filterFindByG_P( 1074 long groupId, long[] parentCategoryIds, int start, int end, 1075 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1076 throws com.liferay.portal.kernel.exception.SystemException { 1077 return getPersistence() 1078 .filterFindByG_P(groupId, parentCategoryIds, start, end, 1079 orderByComparator); 1080 } 1081 1082 /** 1083 * Returns all the message boards categories. 1084 * 1085 * @return the message boards categories 1086 * @throws SystemException if a system exception occurred 1087 */ 1088 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findAll() 1089 throws com.liferay.portal.kernel.exception.SystemException { 1090 return getPersistence().findAll(); 1091 } 1092 1093 /** 1094 * Returns a range of all the message boards categories. 1095 * 1096 * <p> 1097 * 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. 1098 * </p> 1099 * 1100 * @param start the lower bound of the range of message boards categories 1101 * @param end the upper bound of the range of message boards categories (not inclusive) 1102 * @return the range of message boards categories 1103 * @throws SystemException if a system exception occurred 1104 */ 1105 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findAll( 1106 int start, int end) 1107 throws com.liferay.portal.kernel.exception.SystemException { 1108 return getPersistence().findAll(start, end); 1109 } 1110 1111 /** 1112 * Returns an ordered range of all the message boards categories. 1113 * 1114 * <p> 1115 * 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. 1116 * </p> 1117 * 1118 * @param start the lower bound of the range of message boards categories 1119 * @param end the upper bound of the range of message boards categories (not inclusive) 1120 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1121 * @return the ordered range of message boards categories 1122 * @throws SystemException if a system exception occurred 1123 */ 1124 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findAll( 1125 int start, int end, 1126 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1127 throws com.liferay.portal.kernel.exception.SystemException { 1128 return getPersistence().findAll(start, end, orderByComparator); 1129 } 1130 1131 /** 1132 * Removes all the message boards categories where uuid = ? from the database. 1133 * 1134 * @param uuid the uuid 1135 * @throws SystemException if a system exception occurred 1136 */ 1137 public static void removeByUuid(java.lang.String uuid) 1138 throws com.liferay.portal.kernel.exception.SystemException { 1139 getPersistence().removeByUuid(uuid); 1140 } 1141 1142 /** 1143 * Removes the message boards category where uuid = ? and groupId = ? from the database. 1144 * 1145 * @param uuid the uuid 1146 * @param groupId the group ID 1147 * @return the message boards category that was removed 1148 * @throws SystemException if a system exception occurred 1149 */ 1150 public static com.liferay.portlet.messageboards.model.MBCategory removeByUUID_G( 1151 java.lang.String uuid, long groupId) 1152 throws com.liferay.portal.kernel.exception.SystemException, 1153 com.liferay.portlet.messageboards.NoSuchCategoryException { 1154 return getPersistence().removeByUUID_G(uuid, groupId); 1155 } 1156 1157 /** 1158 * Removes all the message boards categories where groupId = ? from the database. 1159 * 1160 * @param groupId the group ID 1161 * @throws SystemException if a system exception occurred 1162 */ 1163 public static void removeByGroupId(long groupId) 1164 throws com.liferay.portal.kernel.exception.SystemException { 1165 getPersistence().removeByGroupId(groupId); 1166 } 1167 1168 /** 1169 * Removes all the message boards categories where companyId = ? from the database. 1170 * 1171 * @param companyId the company ID 1172 * @throws SystemException if a system exception occurred 1173 */ 1174 public static void removeByCompanyId(long companyId) 1175 throws com.liferay.portal.kernel.exception.SystemException { 1176 getPersistence().removeByCompanyId(companyId); 1177 } 1178 1179 /** 1180 * Removes all the message boards categories where groupId = ? and parentCategoryId = ? from the database. 1181 * 1182 * @param groupId the group ID 1183 * @param parentCategoryId the parent category ID 1184 * @throws SystemException if a system exception occurred 1185 */ 1186 public static void removeByG_P(long groupId, long parentCategoryId) 1187 throws com.liferay.portal.kernel.exception.SystemException { 1188 getPersistence().removeByG_P(groupId, parentCategoryId); 1189 } 1190 1191 /** 1192 * Removes all the message boards categories from the database. 1193 * 1194 * @throws SystemException if a system exception occurred 1195 */ 1196 public static void removeAll() 1197 throws com.liferay.portal.kernel.exception.SystemException { 1198 getPersistence().removeAll(); 1199 } 1200 1201 /** 1202 * Returns the number of message boards categories where uuid = ?. 1203 * 1204 * @param uuid the uuid 1205 * @return the number of matching message boards categories 1206 * @throws SystemException if a system exception occurred 1207 */ 1208 public static int countByUuid(java.lang.String uuid) 1209 throws com.liferay.portal.kernel.exception.SystemException { 1210 return getPersistence().countByUuid(uuid); 1211 } 1212 1213 /** 1214 * Returns the number of message boards categories where uuid = ? and groupId = ?. 1215 * 1216 * @param uuid the uuid 1217 * @param groupId the group ID 1218 * @return the number of matching message boards categories 1219 * @throws SystemException if a system exception occurred 1220 */ 1221 public static int countByUUID_G(java.lang.String uuid, long groupId) 1222 throws com.liferay.portal.kernel.exception.SystemException { 1223 return getPersistence().countByUUID_G(uuid, groupId); 1224 } 1225 1226 /** 1227 * Returns the number of message boards categories where groupId = ?. 1228 * 1229 * @param groupId the group ID 1230 * @return the number of matching message boards categories 1231 * @throws SystemException if a system exception occurred 1232 */ 1233 public static int countByGroupId(long groupId) 1234 throws com.liferay.portal.kernel.exception.SystemException { 1235 return getPersistence().countByGroupId(groupId); 1236 } 1237 1238 /** 1239 * Returns the number of message boards categories that the user has permission to view where groupId = ?. 1240 * 1241 * @param groupId the group ID 1242 * @return the number of matching message boards categories that the user has permission to view 1243 * @throws SystemException if a system exception occurred 1244 */ 1245 public static int filterCountByGroupId(long groupId) 1246 throws com.liferay.portal.kernel.exception.SystemException { 1247 return getPersistence().filterCountByGroupId(groupId); 1248 } 1249 1250 /** 1251 * Returns the number of message boards categories where companyId = ?. 1252 * 1253 * @param companyId the company ID 1254 * @return the number of matching message boards categories 1255 * @throws SystemException if a system exception occurred 1256 */ 1257 public static int countByCompanyId(long companyId) 1258 throws com.liferay.portal.kernel.exception.SystemException { 1259 return getPersistence().countByCompanyId(companyId); 1260 } 1261 1262 /** 1263 * Returns the number of message boards categories where groupId = ? and parentCategoryId = ?. 1264 * 1265 * @param groupId the group ID 1266 * @param parentCategoryId the parent category ID 1267 * @return the number of matching message boards categories 1268 * @throws SystemException if a system exception occurred 1269 */ 1270 public static int countByG_P(long groupId, long parentCategoryId) 1271 throws com.liferay.portal.kernel.exception.SystemException { 1272 return getPersistence().countByG_P(groupId, parentCategoryId); 1273 } 1274 1275 /** 1276 * Returns the number of message boards categories where groupId = ? and parentCategoryId = any ?. 1277 * 1278 * @param groupId the group ID 1279 * @param parentCategoryIds the parent category IDs 1280 * @return the number of matching message boards categories 1281 * @throws SystemException if a system exception occurred 1282 */ 1283 public static int countByG_P(long groupId, long[] parentCategoryIds) 1284 throws com.liferay.portal.kernel.exception.SystemException { 1285 return getPersistence().countByG_P(groupId, parentCategoryIds); 1286 } 1287 1288 /** 1289 * Returns the number of message boards categories that the user has permission to view where groupId = ? and parentCategoryId = ?. 1290 * 1291 * @param groupId the group ID 1292 * @param parentCategoryId the parent category ID 1293 * @return the number of matching message boards categories that the user has permission to view 1294 * @throws SystemException if a system exception occurred 1295 */ 1296 public static int filterCountByG_P(long groupId, long parentCategoryId) 1297 throws com.liferay.portal.kernel.exception.SystemException { 1298 return getPersistence().filterCountByG_P(groupId, parentCategoryId); 1299 } 1300 1301 /** 1302 * Returns the number of message boards categories that the user has permission to view where groupId = ? and parentCategoryId = any ?. 1303 * 1304 * @param groupId the group ID 1305 * @param parentCategoryIds the parent category IDs 1306 * @return the number of matching message boards categories that the user has permission to view 1307 * @throws SystemException if a system exception occurred 1308 */ 1309 public static int filterCountByG_P(long groupId, long[] parentCategoryIds) 1310 throws com.liferay.portal.kernel.exception.SystemException { 1311 return getPersistence().filterCountByG_P(groupId, parentCategoryIds); 1312 } 1313 1314 /** 1315 * Returns the number of message boards categories. 1316 * 1317 * @return the number of message boards categories 1318 * @throws SystemException if a system exception occurred 1319 */ 1320 public static int countAll() 1321 throws com.liferay.portal.kernel.exception.SystemException { 1322 return getPersistence().countAll(); 1323 } 1324 1325 public static MBCategoryPersistence getPersistence() { 1326 if (_persistence == null) { 1327 _persistence = (MBCategoryPersistence)PortalBeanLocatorUtil.locate(MBCategoryPersistence.class.getName()); 1328 1329 ReferenceRegistry.registerReference(MBCategoryUtil.class, 1330 "_persistence"); 1331 } 1332 1333 return _persistence; 1334 } 1335 1336 /** 1337 * @deprecated 1338 */ 1339 public void setPersistence(MBCategoryPersistence persistence) { 1340 } 1341 1342 private static MBCategoryPersistence _persistence; 1343 }