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