001 /** 002 * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved. 003 * 004 * This library is free software; you can redistribute it and/or modify it under 005 * the terms of the GNU Lesser General Public License as published by the Free 006 * Software Foundation; either version 2.1 of the License, or (at your option) 007 * any later version. 008 * 009 * This library is distributed in the hope that it will be useful, but WITHOUT 010 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 011 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 012 * details. 013 */ 014 015 package com.liferay.portlet.messageboards.service.persistence; 016 017 import com.liferay.portal.service.persistence.BasePersistence; 018 019 import com.liferay.portlet.messageboards.model.MBBan; 020 021 /** 022 * The persistence interface for the message boards ban service. 023 * 024 * <p> 025 * Never modify this interface directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regnerate this interface. 026 * </p> 027 * 028 * @author Brian Wing Shun Chan 029 * @see MBBanPersistenceImpl 030 * @see MBBanUtil 031 * @generated 032 */ 033 public interface MBBanPersistence extends BasePersistence<MBBan> { 034 /** 035 * Caches the message boards ban in the entity cache if it is enabled. 036 * 037 * @param mbBan the message boards ban to cache 038 */ 039 public void cacheResult(com.liferay.portlet.messageboards.model.MBBan mbBan); 040 041 /** 042 * Caches the message boards bans in the entity cache if it is enabled. 043 * 044 * @param mbBans the message boards bans to cache 045 */ 046 public void cacheResult( 047 java.util.List<com.liferay.portlet.messageboards.model.MBBan> mbBans); 048 049 /** 050 * Creates a new message boards ban with the primary key. 051 * 052 * @param banId the primary key for the new message boards ban 053 * @return the new message boards ban 054 */ 055 public com.liferay.portlet.messageboards.model.MBBan create(long banId); 056 057 /** 058 * Removes the message boards ban with the primary key from the database. Also notifies the appropriate model listeners. 059 * 060 * @param banId the primary key of the message boards ban to remove 061 * @return the message boards ban that was removed 062 * @throws com.liferay.portlet.messageboards.NoSuchBanException if a message boards ban with the primary key could not be found 063 * @throws SystemException if a system exception occurred 064 */ 065 public com.liferay.portlet.messageboards.model.MBBan remove(long banId) 066 throws com.liferay.portal.kernel.exception.SystemException, 067 com.liferay.portlet.messageboards.NoSuchBanException; 068 069 public com.liferay.portlet.messageboards.model.MBBan updateImpl( 070 com.liferay.portlet.messageboards.model.MBBan mbBan, boolean merge) 071 throws com.liferay.portal.kernel.exception.SystemException; 072 073 /** 074 * Finds the message boards ban with the primary key or throws a {@link com.liferay.portlet.messageboards.NoSuchBanException} if it could not be found. 075 * 076 * @param banId the primary key of the message boards ban to find 077 * @return the message boards ban 078 * @throws com.liferay.portlet.messageboards.NoSuchBanException if a message boards ban with the primary key could not be found 079 * @throws SystemException if a system exception occurred 080 */ 081 public com.liferay.portlet.messageboards.model.MBBan findByPrimaryKey( 082 long banId) 083 throws com.liferay.portal.kernel.exception.SystemException, 084 com.liferay.portlet.messageboards.NoSuchBanException; 085 086 /** 087 * Finds the message boards ban with the primary key or returns <code>null</code> if it could not be found. 088 * 089 * @param banId the primary key of the message boards ban to find 090 * @return the message boards ban, or <code>null</code> if a message boards ban with the primary key could not be found 091 * @throws SystemException if a system exception occurred 092 */ 093 public com.liferay.portlet.messageboards.model.MBBan fetchByPrimaryKey( 094 long banId) throws com.liferay.portal.kernel.exception.SystemException; 095 096 /** 097 * Finds all the message boards bans where groupId = ?. 098 * 099 * @param groupId the group id to search with 100 * @return the matching message boards bans 101 * @throws SystemException if a system exception occurred 102 */ 103 public java.util.List<com.liferay.portlet.messageboards.model.MBBan> findByGroupId( 104 long groupId) 105 throws com.liferay.portal.kernel.exception.SystemException; 106 107 /** 108 * Finds a range of all the message boards bans where groupId = ?. 109 * 110 * <p> 111 * 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. 112 * </p> 113 * 114 * @param groupId the group id to search with 115 * @param start the lower bound of the range of message boards bans to return 116 * @param end the upper bound of the range of message boards bans to return (not inclusive) 117 * @return the range of matching message boards bans 118 * @throws SystemException if a system exception occurred 119 */ 120 public java.util.List<com.liferay.portlet.messageboards.model.MBBan> findByGroupId( 121 long groupId, int start, int end) 122 throws com.liferay.portal.kernel.exception.SystemException; 123 124 /** 125 * Finds an ordered range of all the message boards bans where groupId = ?. 126 * 127 * <p> 128 * 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. 129 * </p> 130 * 131 * @param groupId the group id to search with 132 * @param start the lower bound of the range of message boards bans to return 133 * @param end the upper bound of the range of message boards bans to return (not inclusive) 134 * @param orderByComparator the comparator to order the results by 135 * @return the ordered range of matching message boards bans 136 * @throws SystemException if a system exception occurred 137 */ 138 public java.util.List<com.liferay.portlet.messageboards.model.MBBan> findByGroupId( 139 long groupId, int start, int end, 140 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 141 throws com.liferay.portal.kernel.exception.SystemException; 142 143 /** 144 * Finds the first message boards ban in the ordered set where groupId = ?. 145 * 146 * <p> 147 * 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. 148 * </p> 149 * 150 * @param groupId the group id to search with 151 * @param orderByComparator the comparator to order the set by 152 * @return the first matching message boards ban 153 * @throws com.liferay.portlet.messageboards.NoSuchBanException if a matching message boards ban could not be found 154 * @throws SystemException if a system exception occurred 155 */ 156 public com.liferay.portlet.messageboards.model.MBBan findByGroupId_First( 157 long groupId, 158 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 159 throws com.liferay.portal.kernel.exception.SystemException, 160 com.liferay.portlet.messageboards.NoSuchBanException; 161 162 /** 163 * Finds the last message boards ban in the ordered set where groupId = ?. 164 * 165 * <p> 166 * 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. 167 * </p> 168 * 169 * @param groupId the group id to search with 170 * @param orderByComparator the comparator to order the set by 171 * @return the last matching message boards ban 172 * @throws com.liferay.portlet.messageboards.NoSuchBanException if a matching message boards ban could not be found 173 * @throws SystemException if a system exception occurred 174 */ 175 public com.liferay.portlet.messageboards.model.MBBan findByGroupId_Last( 176 long groupId, 177 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 178 throws com.liferay.portal.kernel.exception.SystemException, 179 com.liferay.portlet.messageboards.NoSuchBanException; 180 181 /** 182 * Finds the message boards bans before and after the current message boards ban in the ordered set where groupId = ?. 183 * 184 * <p> 185 * 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. 186 * </p> 187 * 188 * @param banId the primary key of the current message boards ban 189 * @param groupId the group id to search with 190 * @param orderByComparator the comparator to order the set by 191 * @return the previous, current, and next message boards ban 192 * @throws com.liferay.portlet.messageboards.NoSuchBanException if a message boards ban with the primary key could not be found 193 * @throws SystemException if a system exception occurred 194 */ 195 public com.liferay.portlet.messageboards.model.MBBan[] findByGroupId_PrevAndNext( 196 long banId, long groupId, 197 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 198 throws com.liferay.portal.kernel.exception.SystemException, 199 com.liferay.portlet.messageboards.NoSuchBanException; 200 201 /** 202 * Finds all the message boards bans where userId = ?. 203 * 204 * @param userId the user id to search with 205 * @return the matching message boards bans 206 * @throws SystemException if a system exception occurred 207 */ 208 public java.util.List<com.liferay.portlet.messageboards.model.MBBan> findByUserId( 209 long userId) throws com.liferay.portal.kernel.exception.SystemException; 210 211 /** 212 * Finds a range of all the message boards bans where userId = ?. 213 * 214 * <p> 215 * 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. 216 * </p> 217 * 218 * @param userId the user id to search with 219 * @param start the lower bound of the range of message boards bans to return 220 * @param end the upper bound of the range of message boards bans to return (not inclusive) 221 * @return the range of matching message boards bans 222 * @throws SystemException if a system exception occurred 223 */ 224 public java.util.List<com.liferay.portlet.messageboards.model.MBBan> findByUserId( 225 long userId, int start, int end) 226 throws com.liferay.portal.kernel.exception.SystemException; 227 228 /** 229 * Finds an ordered range of all the message boards bans where userId = ?. 230 * 231 * <p> 232 * 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. 233 * </p> 234 * 235 * @param userId the user id to search with 236 * @param start the lower bound of the range of message boards bans to return 237 * @param end the upper bound of the range of message boards bans to return (not inclusive) 238 * @param orderByComparator the comparator to order the results by 239 * @return the ordered range of matching message boards bans 240 * @throws SystemException if a system exception occurred 241 */ 242 public java.util.List<com.liferay.portlet.messageboards.model.MBBan> findByUserId( 243 long userId, int start, int end, 244 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 245 throws com.liferay.portal.kernel.exception.SystemException; 246 247 /** 248 * Finds the first message boards ban in the ordered set where userId = ?. 249 * 250 * <p> 251 * 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. 252 * </p> 253 * 254 * @param userId the user id to search with 255 * @param orderByComparator the comparator to order the set by 256 * @return the first matching message boards ban 257 * @throws com.liferay.portlet.messageboards.NoSuchBanException if a matching message boards ban could not be found 258 * @throws SystemException if a system exception occurred 259 */ 260 public com.liferay.portlet.messageboards.model.MBBan findByUserId_First( 261 long userId, 262 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 263 throws com.liferay.portal.kernel.exception.SystemException, 264 com.liferay.portlet.messageboards.NoSuchBanException; 265 266 /** 267 * Finds the last message boards ban in the ordered set where userId = ?. 268 * 269 * <p> 270 * 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. 271 * </p> 272 * 273 * @param userId the user id to search with 274 * @param orderByComparator the comparator to order the set by 275 * @return the last matching message boards ban 276 * @throws com.liferay.portlet.messageboards.NoSuchBanException if a matching message boards ban could not be found 277 * @throws SystemException if a system exception occurred 278 */ 279 public com.liferay.portlet.messageboards.model.MBBan findByUserId_Last( 280 long userId, 281 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 282 throws com.liferay.portal.kernel.exception.SystemException, 283 com.liferay.portlet.messageboards.NoSuchBanException; 284 285 /** 286 * Finds the message boards bans before and after the current message boards ban in the ordered set where userId = ?. 287 * 288 * <p> 289 * 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. 290 * </p> 291 * 292 * @param banId the primary key of the current message boards ban 293 * @param userId the user id to search with 294 * @param orderByComparator the comparator to order the set by 295 * @return the previous, current, and next message boards ban 296 * @throws com.liferay.portlet.messageboards.NoSuchBanException if a message boards ban with the primary key could not be found 297 * @throws SystemException if a system exception occurred 298 */ 299 public com.liferay.portlet.messageboards.model.MBBan[] findByUserId_PrevAndNext( 300 long banId, long userId, 301 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 302 throws com.liferay.portal.kernel.exception.SystemException, 303 com.liferay.portlet.messageboards.NoSuchBanException; 304 305 /** 306 * Finds all the message boards bans where banUserId = ?. 307 * 308 * @param banUserId the ban user id to search with 309 * @return the matching message boards bans 310 * @throws SystemException if a system exception occurred 311 */ 312 public java.util.List<com.liferay.portlet.messageboards.model.MBBan> findByBanUserId( 313 long banUserId) 314 throws com.liferay.portal.kernel.exception.SystemException; 315 316 /** 317 * Finds a range of all the message boards bans where banUserId = ?. 318 * 319 * <p> 320 * 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. 321 * </p> 322 * 323 * @param banUserId the ban user id to search with 324 * @param start the lower bound of the range of message boards bans to return 325 * @param end the upper bound of the range of message boards bans to return (not inclusive) 326 * @return the range of matching message boards bans 327 * @throws SystemException if a system exception occurred 328 */ 329 public java.util.List<com.liferay.portlet.messageboards.model.MBBan> findByBanUserId( 330 long banUserId, int start, int end) 331 throws com.liferay.portal.kernel.exception.SystemException; 332 333 /** 334 * Finds an ordered range of all the message boards bans where banUserId = ?. 335 * 336 * <p> 337 * 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. 338 * </p> 339 * 340 * @param banUserId the ban user id to search with 341 * @param start the lower bound of the range of message boards bans to return 342 * @param end the upper bound of the range of message boards bans to return (not inclusive) 343 * @param orderByComparator the comparator to order the results by 344 * @return the ordered range of matching message boards bans 345 * @throws SystemException if a system exception occurred 346 */ 347 public java.util.List<com.liferay.portlet.messageboards.model.MBBan> findByBanUserId( 348 long banUserId, int start, int end, 349 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 350 throws com.liferay.portal.kernel.exception.SystemException; 351 352 /** 353 * Finds the first message boards ban in the ordered set where banUserId = ?. 354 * 355 * <p> 356 * 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. 357 * </p> 358 * 359 * @param banUserId the ban user id to search with 360 * @param orderByComparator the comparator to order the set by 361 * @return the first matching message boards ban 362 * @throws com.liferay.portlet.messageboards.NoSuchBanException if a matching message boards ban could not be found 363 * @throws SystemException if a system exception occurred 364 */ 365 public com.liferay.portlet.messageboards.model.MBBan findByBanUserId_First( 366 long banUserId, 367 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 368 throws com.liferay.portal.kernel.exception.SystemException, 369 com.liferay.portlet.messageboards.NoSuchBanException; 370 371 /** 372 * Finds the last message boards ban in the ordered set where banUserId = ?. 373 * 374 * <p> 375 * 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. 376 * </p> 377 * 378 * @param banUserId the ban user id to search with 379 * @param orderByComparator the comparator to order the set by 380 * @return the last matching message boards ban 381 * @throws com.liferay.portlet.messageboards.NoSuchBanException if a matching message boards ban could not be found 382 * @throws SystemException if a system exception occurred 383 */ 384 public com.liferay.portlet.messageboards.model.MBBan findByBanUserId_Last( 385 long banUserId, 386 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 387 throws com.liferay.portal.kernel.exception.SystemException, 388 com.liferay.portlet.messageboards.NoSuchBanException; 389 390 /** 391 * Finds the message boards bans before and after the current message boards ban in the ordered set where banUserId = ?. 392 * 393 * <p> 394 * 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. 395 * </p> 396 * 397 * @param banId the primary key of the current message boards ban 398 * @param banUserId the ban user id to search with 399 * @param orderByComparator the comparator to order the set by 400 * @return the previous, current, and next message boards ban 401 * @throws com.liferay.portlet.messageboards.NoSuchBanException if a message boards ban with the primary key could not be found 402 * @throws SystemException if a system exception occurred 403 */ 404 public com.liferay.portlet.messageboards.model.MBBan[] findByBanUserId_PrevAndNext( 405 long banId, long banUserId, 406 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 407 throws com.liferay.portal.kernel.exception.SystemException, 408 com.liferay.portlet.messageboards.NoSuchBanException; 409 410 /** 411 * Finds the message boards ban where groupId = ? and banUserId = ? or throws a {@link com.liferay.portlet.messageboards.NoSuchBanException} if it could not be found. 412 * 413 * @param groupId the group id to search with 414 * @param banUserId the ban user id to search with 415 * @return the matching message boards ban 416 * @throws com.liferay.portlet.messageboards.NoSuchBanException if a matching message boards ban could not be found 417 * @throws SystemException if a system exception occurred 418 */ 419 public com.liferay.portlet.messageboards.model.MBBan findByG_B( 420 long groupId, long banUserId) 421 throws com.liferay.portal.kernel.exception.SystemException, 422 com.liferay.portlet.messageboards.NoSuchBanException; 423 424 /** 425 * Finds the message boards ban where groupId = ? and banUserId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 426 * 427 * @param groupId the group id to search with 428 * @param banUserId the ban user id to search with 429 * @return the matching message boards ban, or <code>null</code> if a matching message boards ban could not be found 430 * @throws SystemException if a system exception occurred 431 */ 432 public com.liferay.portlet.messageboards.model.MBBan fetchByG_B( 433 long groupId, long banUserId) 434 throws com.liferay.portal.kernel.exception.SystemException; 435 436 /** 437 * Finds the message boards ban where groupId = ? and banUserId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 438 * 439 * @param groupId the group id to search with 440 * @param banUserId the ban user id to search with 441 * @return the matching message boards ban, or <code>null</code> if a matching message boards ban could not be found 442 * @throws SystemException if a system exception occurred 443 */ 444 public com.liferay.portlet.messageboards.model.MBBan fetchByG_B( 445 long groupId, long banUserId, boolean retrieveFromCache) 446 throws com.liferay.portal.kernel.exception.SystemException; 447 448 /** 449 * Finds all the message boards bans. 450 * 451 * @return the message boards bans 452 * @throws SystemException if a system exception occurred 453 */ 454 public java.util.List<com.liferay.portlet.messageboards.model.MBBan> findAll() 455 throws com.liferay.portal.kernel.exception.SystemException; 456 457 /** 458 * Finds a range of all the message boards bans. 459 * 460 * <p> 461 * 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. 462 * </p> 463 * 464 * @param start the lower bound of the range of message boards bans to return 465 * @param end the upper bound of the range of message boards bans to return (not inclusive) 466 * @return the range of message boards bans 467 * @throws SystemException if a system exception occurred 468 */ 469 public java.util.List<com.liferay.portlet.messageboards.model.MBBan> findAll( 470 int start, int end) 471 throws com.liferay.portal.kernel.exception.SystemException; 472 473 /** 474 * Finds an ordered range of all the message boards bans. 475 * 476 * <p> 477 * 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. 478 * </p> 479 * 480 * @param start the lower bound of the range of message boards bans to return 481 * @param end the upper bound of the range of message boards bans to return (not inclusive) 482 * @param orderByComparator the comparator to order the results by 483 * @return the ordered range of message boards bans 484 * @throws SystemException if a system exception occurred 485 */ 486 public java.util.List<com.liferay.portlet.messageboards.model.MBBan> findAll( 487 int start, int end, 488 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 489 throws com.liferay.portal.kernel.exception.SystemException; 490 491 /** 492 * Removes all the message boards bans where groupId = ? from the database. 493 * 494 * @param groupId the group id to search with 495 * @throws SystemException if a system exception occurred 496 */ 497 public void removeByGroupId(long groupId) 498 throws com.liferay.portal.kernel.exception.SystemException; 499 500 /** 501 * Removes all the message boards bans where userId = ? from the database. 502 * 503 * @param userId the user id to search with 504 * @throws SystemException if a system exception occurred 505 */ 506 public void removeByUserId(long userId) 507 throws com.liferay.portal.kernel.exception.SystemException; 508 509 /** 510 * Removes all the message boards bans where banUserId = ? from the database. 511 * 512 * @param banUserId the ban user id to search with 513 * @throws SystemException if a system exception occurred 514 */ 515 public void removeByBanUserId(long banUserId) 516 throws com.liferay.portal.kernel.exception.SystemException; 517 518 /** 519 * Removes the message boards ban where groupId = ? and banUserId = ? from the database. 520 * 521 * @param groupId the group id to search with 522 * @param banUserId the ban user id to search with 523 * @throws SystemException if a system exception occurred 524 */ 525 public void removeByG_B(long groupId, long banUserId) 526 throws com.liferay.portal.kernel.exception.SystemException, 527 com.liferay.portlet.messageboards.NoSuchBanException; 528 529 /** 530 * Removes all the message boards bans from the database. 531 * 532 * @throws SystemException if a system exception occurred 533 */ 534 public void removeAll() 535 throws com.liferay.portal.kernel.exception.SystemException; 536 537 /** 538 * Counts all the message boards bans where groupId = ?. 539 * 540 * @param groupId the group id to search with 541 * @return the number of matching message boards bans 542 * @throws SystemException if a system exception occurred 543 */ 544 public int countByGroupId(long groupId) 545 throws com.liferay.portal.kernel.exception.SystemException; 546 547 /** 548 * Counts all the message boards bans where userId = ?. 549 * 550 * @param userId the user id to search with 551 * @return the number of matching message boards bans 552 * @throws SystemException if a system exception occurred 553 */ 554 public int countByUserId(long userId) 555 throws com.liferay.portal.kernel.exception.SystemException; 556 557 /** 558 * Counts all the message boards bans where banUserId = ?. 559 * 560 * @param banUserId the ban user id to search with 561 * @return the number of matching message boards bans 562 * @throws SystemException if a system exception occurred 563 */ 564 public int countByBanUserId(long banUserId) 565 throws com.liferay.portal.kernel.exception.SystemException; 566 567 /** 568 * Counts all the message boards bans where groupId = ? and banUserId = ?. 569 * 570 * @param groupId the group id to search with 571 * @param banUserId the ban user id to search with 572 * @return the number of matching message boards bans 573 * @throws SystemException if a system exception occurred 574 */ 575 public int countByG_B(long groupId, long banUserId) 576 throws com.liferay.portal.kernel.exception.SystemException; 577 578 /** 579 * Counts all the message boards bans. 580 * 581 * @return the number of message boards bans 582 * @throws SystemException if a system exception occurred 583 */ 584 public int countAll() 585 throws com.liferay.portal.kernel.exception.SystemException; 586 }