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