001 /** 002 * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved. 003 * 004 * This library is free software; you can redistribute it and/or modify it under 005 * the terms of the GNU Lesser General Public License as published by the Free 006 * Software Foundation; either version 2.1 of the License, or (at your option) 007 * any later version. 008 * 009 * This library is distributed in the hope that it will be useful, but WITHOUT 010 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 011 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 012 * details. 013 */ 014 015 package com.liferay.portlet.messageboards.service.persistence; 016 017 import aQute.bnd.annotation.ProviderType; 018 019 import com.liferay.portal.service.persistence.BasePersistence; 020 021 import com.liferay.portlet.messageboards.model.MBBan; 022 023 /** 024 * The persistence interface for the message boards ban service. 025 * 026 * <p> 027 * Caching information and settings can be found in <code>portal.properties</code> 028 * </p> 029 * 030 * @author Brian Wing Shun Chan 031 * @see MBBanPersistenceImpl 032 * @see MBBanUtil 033 * @generated 034 */ 035 @ProviderType 036 public interface MBBanPersistence extends BasePersistence<MBBan> { 037 /* 038 * NOTE FOR DEVELOPERS: 039 * 040 * 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. 041 */ 042 043 /** 044 * Returns all the message boards bans where uuid = ?. 045 * 046 * @param uuid the uuid 047 * @return the matching message boards bans 048 * @throws SystemException if a system exception occurred 049 */ 050 public java.util.List<com.liferay.portlet.messageboards.model.MBBan> findByUuid( 051 java.lang.String uuid) 052 throws com.liferay.portal.kernel.exception.SystemException; 053 054 /** 055 * Returns a range of all the message boards bans where uuid = ?. 056 * 057 * <p> 058 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.messageboards.model.impl.MBBanModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 059 * </p> 060 * 061 * @param uuid the uuid 062 * @param start the lower bound of the range of message boards bans 063 * @param end the upper bound of the range of message boards bans (not inclusive) 064 * @return the range of matching message boards bans 065 * @throws SystemException if a system exception occurred 066 */ 067 public java.util.List<com.liferay.portlet.messageboards.model.MBBan> findByUuid( 068 java.lang.String uuid, int start, int end) 069 throws com.liferay.portal.kernel.exception.SystemException; 070 071 /** 072 * Returns an ordered range of all the message boards bans where uuid = ?. 073 * 074 * <p> 075 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.messageboards.model.impl.MBBanModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 076 * </p> 077 * 078 * @param uuid the uuid 079 * @param start the lower bound of the range of message boards bans 080 * @param end the upper bound of the range of message boards bans (not inclusive) 081 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 082 * @return the ordered range of matching message boards bans 083 * @throws SystemException if a system exception occurred 084 */ 085 public java.util.List<com.liferay.portlet.messageboards.model.MBBan> findByUuid( 086 java.lang.String uuid, int start, int end, 087 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 088 throws com.liferay.portal.kernel.exception.SystemException; 089 090 /** 091 * Returns the first message boards ban in the ordered set where uuid = ?. 092 * 093 * @param uuid the uuid 094 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 095 * @return the first matching message boards ban 096 * @throws com.liferay.portlet.messageboards.NoSuchBanException if a matching message boards ban could not be found 097 * @throws SystemException if a system exception occurred 098 */ 099 public com.liferay.portlet.messageboards.model.MBBan findByUuid_First( 100 java.lang.String uuid, 101 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 102 throws com.liferay.portal.kernel.exception.SystemException, 103 com.liferay.portlet.messageboards.NoSuchBanException; 104 105 /** 106 * Returns the first message boards ban in the ordered set where uuid = ?. 107 * 108 * @param uuid the uuid 109 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 110 * @return the first matching message boards ban, or <code>null</code> if a matching message boards ban could not be found 111 * @throws SystemException if a system exception occurred 112 */ 113 public com.liferay.portlet.messageboards.model.MBBan fetchByUuid_First( 114 java.lang.String uuid, 115 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 116 throws com.liferay.portal.kernel.exception.SystemException; 117 118 /** 119 * Returns the last message boards ban in the ordered set where uuid = ?. 120 * 121 * @param uuid the uuid 122 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 123 * @return the last matching message boards ban 124 * @throws com.liferay.portlet.messageboards.NoSuchBanException if a matching message boards ban could not be found 125 * @throws SystemException if a system exception occurred 126 */ 127 public com.liferay.portlet.messageboards.model.MBBan findByUuid_Last( 128 java.lang.String uuid, 129 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 130 throws com.liferay.portal.kernel.exception.SystemException, 131 com.liferay.portlet.messageboards.NoSuchBanException; 132 133 /** 134 * Returns the last message boards ban in the ordered set where uuid = ?. 135 * 136 * @param uuid the uuid 137 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 138 * @return the last matching message boards ban, or <code>null</code> if a matching message boards ban could not be found 139 * @throws SystemException if a system exception occurred 140 */ 141 public com.liferay.portlet.messageboards.model.MBBan fetchByUuid_Last( 142 java.lang.String uuid, 143 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 144 throws com.liferay.portal.kernel.exception.SystemException; 145 146 /** 147 * Returns the message boards bans before and after the current message boards ban in the ordered set where uuid = ?. 148 * 149 * @param banId the primary key of the current message boards ban 150 * @param uuid the uuid 151 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 152 * @return the previous, current, and next message boards ban 153 * @throws com.liferay.portlet.messageboards.NoSuchBanException if a message boards ban with the primary key could not be found 154 * @throws SystemException if a system exception occurred 155 */ 156 public com.liferay.portlet.messageboards.model.MBBan[] findByUuid_PrevAndNext( 157 long banId, java.lang.String uuid, 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 * Removes all the message boards bans where uuid = ? from the database. 164 * 165 * @param uuid the uuid 166 * @throws SystemException if a system exception occurred 167 */ 168 public void removeByUuid(java.lang.String uuid) 169 throws com.liferay.portal.kernel.exception.SystemException; 170 171 /** 172 * Returns the number of message boards bans where uuid = ?. 173 * 174 * @param uuid the uuid 175 * @return the number of matching message boards bans 176 * @throws SystemException if a system exception occurred 177 */ 178 public int countByUuid(java.lang.String uuid) 179 throws com.liferay.portal.kernel.exception.SystemException; 180 181 /** 182 * Returns the message boards ban where uuid = ? and groupId = ? or throws a {@link com.liferay.portlet.messageboards.NoSuchBanException} if it could not be found. 183 * 184 * @param uuid the uuid 185 * @param groupId the group ID 186 * @return the matching message boards ban 187 * @throws com.liferay.portlet.messageboards.NoSuchBanException if a matching message boards ban could not be found 188 * @throws SystemException if a system exception occurred 189 */ 190 public com.liferay.portlet.messageboards.model.MBBan findByUUID_G( 191 java.lang.String uuid, long groupId) 192 throws com.liferay.portal.kernel.exception.SystemException, 193 com.liferay.portlet.messageboards.NoSuchBanException; 194 195 /** 196 * Returns the message boards ban where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 197 * 198 * @param uuid the uuid 199 * @param groupId the group ID 200 * @return the matching message boards ban, or <code>null</code> if a matching message boards ban could not be found 201 * @throws SystemException if a system exception occurred 202 */ 203 public com.liferay.portlet.messageboards.model.MBBan fetchByUUID_G( 204 java.lang.String uuid, long groupId) 205 throws com.liferay.portal.kernel.exception.SystemException; 206 207 /** 208 * Returns the message boards ban where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 209 * 210 * @param uuid the uuid 211 * @param groupId the group ID 212 * @param retrieveFromCache whether to use the finder cache 213 * @return the matching message boards ban, or <code>null</code> if a matching message boards ban could not be found 214 * @throws SystemException if a system exception occurred 215 */ 216 public com.liferay.portlet.messageboards.model.MBBan fetchByUUID_G( 217 java.lang.String uuid, long groupId, boolean retrieveFromCache) 218 throws com.liferay.portal.kernel.exception.SystemException; 219 220 /** 221 * Removes the message boards ban where uuid = ? and groupId = ? from the database. 222 * 223 * @param uuid the uuid 224 * @param groupId the group ID 225 * @return the message boards ban that was removed 226 * @throws SystemException if a system exception occurred 227 */ 228 public com.liferay.portlet.messageboards.model.MBBan removeByUUID_G( 229 java.lang.String uuid, long groupId) 230 throws com.liferay.portal.kernel.exception.SystemException, 231 com.liferay.portlet.messageboards.NoSuchBanException; 232 233 /** 234 * Returns the number of message boards bans where uuid = ? and groupId = ?. 235 * 236 * @param uuid the uuid 237 * @param groupId the group ID 238 * @return the number of matching message boards bans 239 * @throws SystemException if a system exception occurred 240 */ 241 public int countByUUID_G(java.lang.String uuid, long groupId) 242 throws com.liferay.portal.kernel.exception.SystemException; 243 244 /** 245 * Returns all the message boards bans where uuid = ? and companyId = ?. 246 * 247 * @param uuid the uuid 248 * @param companyId the company ID 249 * @return the matching message boards bans 250 * @throws SystemException if a system exception occurred 251 */ 252 public java.util.List<com.liferay.portlet.messageboards.model.MBBan> findByUuid_C( 253 java.lang.String uuid, long companyId) 254 throws com.liferay.portal.kernel.exception.SystemException; 255 256 /** 257 * Returns a range of all the message boards bans where uuid = ? and companyId = ?. 258 * 259 * <p> 260 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.messageboards.model.impl.MBBanModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 261 * </p> 262 * 263 * @param uuid the uuid 264 * @param companyId the company ID 265 * @param start the lower bound of the range of message boards bans 266 * @param end the upper bound of the range of message boards bans (not inclusive) 267 * @return the range of matching message boards bans 268 * @throws SystemException if a system exception occurred 269 */ 270 public java.util.List<com.liferay.portlet.messageboards.model.MBBan> findByUuid_C( 271 java.lang.String uuid, long companyId, int start, int end) 272 throws com.liferay.portal.kernel.exception.SystemException; 273 274 /** 275 * Returns an ordered range of all the message boards bans where uuid = ? and companyId = ?. 276 * 277 * <p> 278 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.messageboards.model.impl.MBBanModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 279 * </p> 280 * 281 * @param uuid the uuid 282 * @param companyId the company ID 283 * @param start the lower bound of the range of message boards bans 284 * @param end the upper bound of the range of message boards bans (not inclusive) 285 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 286 * @return the ordered range of matching message boards bans 287 * @throws SystemException if a system exception occurred 288 */ 289 public java.util.List<com.liferay.portlet.messageboards.model.MBBan> findByUuid_C( 290 java.lang.String uuid, long companyId, int start, int end, 291 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 292 throws com.liferay.portal.kernel.exception.SystemException; 293 294 /** 295 * Returns the first message boards ban in the ordered set where uuid = ? and companyId = ?. 296 * 297 * @param uuid the uuid 298 * @param companyId the company ID 299 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 300 * @return the first matching message boards ban 301 * @throws com.liferay.portlet.messageboards.NoSuchBanException if a matching message boards ban could not be found 302 * @throws SystemException if a system exception occurred 303 */ 304 public com.liferay.portlet.messageboards.model.MBBan findByUuid_C_First( 305 java.lang.String uuid, long companyId, 306 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 307 throws com.liferay.portal.kernel.exception.SystemException, 308 com.liferay.portlet.messageboards.NoSuchBanException; 309 310 /** 311 * Returns the first message boards ban in the ordered set where uuid = ? and companyId = ?. 312 * 313 * @param uuid the uuid 314 * @param companyId the company ID 315 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 316 * @return the first matching message boards ban, or <code>null</code> if a matching message boards ban could not be found 317 * @throws SystemException if a system exception occurred 318 */ 319 public com.liferay.portlet.messageboards.model.MBBan fetchByUuid_C_First( 320 java.lang.String uuid, long companyId, 321 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 322 throws com.liferay.portal.kernel.exception.SystemException; 323 324 /** 325 * Returns the last message boards ban in the ordered set where uuid = ? and companyId = ?. 326 * 327 * @param uuid the uuid 328 * @param companyId the company ID 329 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 330 * @return the last matching message boards ban 331 * @throws com.liferay.portlet.messageboards.NoSuchBanException if a matching message boards ban could not be found 332 * @throws SystemException if a system exception occurred 333 */ 334 public com.liferay.portlet.messageboards.model.MBBan findByUuid_C_Last( 335 java.lang.String uuid, long companyId, 336 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 337 throws com.liferay.portal.kernel.exception.SystemException, 338 com.liferay.portlet.messageboards.NoSuchBanException; 339 340 /** 341 * Returns the last message boards ban in the ordered set where uuid = ? and companyId = ?. 342 * 343 * @param uuid the uuid 344 * @param companyId the company ID 345 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 346 * @return the last matching message boards ban, or <code>null</code> if a matching message boards ban could not be found 347 * @throws SystemException if a system exception occurred 348 */ 349 public com.liferay.portlet.messageboards.model.MBBan fetchByUuid_C_Last( 350 java.lang.String uuid, long companyId, 351 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 352 throws com.liferay.portal.kernel.exception.SystemException; 353 354 /** 355 * Returns the message boards bans before and after the current message boards ban in the ordered set where uuid = ? and companyId = ?. 356 * 357 * @param banId the primary key of the current message boards ban 358 * @param uuid the uuid 359 * @param companyId the company ID 360 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 361 * @return the previous, current, and next message boards ban 362 * @throws com.liferay.portlet.messageboards.NoSuchBanException if a message boards ban with the primary key could not be found 363 * @throws SystemException if a system exception occurred 364 */ 365 public com.liferay.portlet.messageboards.model.MBBan[] findByUuid_C_PrevAndNext( 366 long banId, java.lang.String uuid, long companyId, 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 * Removes all the message boards bans where uuid = ? and companyId = ? from the database. 373 * 374 * @param uuid the uuid 375 * @param companyId the company ID 376 * @throws SystemException if a system exception occurred 377 */ 378 public void removeByUuid_C(java.lang.String uuid, long companyId) 379 throws com.liferay.portal.kernel.exception.SystemException; 380 381 /** 382 * Returns the number of message boards bans where uuid = ? and companyId = ?. 383 * 384 * @param uuid the uuid 385 * @param companyId the company ID 386 * @return the number of matching message boards bans 387 * @throws SystemException if a system exception occurred 388 */ 389 public int countByUuid_C(java.lang.String uuid, long companyId) 390 throws com.liferay.portal.kernel.exception.SystemException; 391 392 /** 393 * Returns all the message boards bans where groupId = ?. 394 * 395 * @param groupId the group ID 396 * @return the matching message boards bans 397 * @throws SystemException if a system exception occurred 398 */ 399 public java.util.List<com.liferay.portlet.messageboards.model.MBBan> findByGroupId( 400 long groupId) 401 throws com.liferay.portal.kernel.exception.SystemException; 402 403 /** 404 * Returns a range of all the message boards bans where groupId = ?. 405 * 406 * <p> 407 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.messageboards.model.impl.MBBanModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 408 * </p> 409 * 410 * @param groupId the group ID 411 * @param start the lower bound of the range of message boards bans 412 * @param end the upper bound of the range of message boards bans (not inclusive) 413 * @return the range of matching message boards bans 414 * @throws SystemException if a system exception occurred 415 */ 416 public java.util.List<com.liferay.portlet.messageboards.model.MBBan> findByGroupId( 417 long groupId, int start, int end) 418 throws com.liferay.portal.kernel.exception.SystemException; 419 420 /** 421 * Returns an ordered range of all the message boards bans where groupId = ?. 422 * 423 * <p> 424 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.messageboards.model.impl.MBBanModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 425 * </p> 426 * 427 * @param groupId the group ID 428 * @param start the lower bound of the range of message boards bans 429 * @param end the upper bound of the range of message boards bans (not inclusive) 430 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 431 * @return the ordered range of matching message boards bans 432 * @throws SystemException if a system exception occurred 433 */ 434 public java.util.List<com.liferay.portlet.messageboards.model.MBBan> findByGroupId( 435 long groupId, int start, int end, 436 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 437 throws com.liferay.portal.kernel.exception.SystemException; 438 439 /** 440 * Returns the first message boards ban in the ordered set where groupId = ?. 441 * 442 * @param groupId the group ID 443 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 444 * @return the first matching message boards ban 445 * @throws com.liferay.portlet.messageboards.NoSuchBanException 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 findByGroupId_First( 449 long groupId, 450 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 451 throws com.liferay.portal.kernel.exception.SystemException, 452 com.liferay.portlet.messageboards.NoSuchBanException; 453 454 /** 455 * Returns the first message boards ban in the ordered set where groupId = ?. 456 * 457 * @param groupId the group ID 458 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 459 * @return the first matching message boards ban, or <code>null</code> if a matching message boards ban could not be found 460 * @throws SystemException if a system exception occurred 461 */ 462 public com.liferay.portlet.messageboards.model.MBBan fetchByGroupId_First( 463 long groupId, 464 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 465 throws com.liferay.portal.kernel.exception.SystemException; 466 467 /** 468 * Returns the last message boards ban in the ordered set where groupId = ?. 469 * 470 * @param groupId the group ID 471 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 472 * @return the last matching message boards ban 473 * @throws com.liferay.portlet.messageboards.NoSuchBanException if a matching message boards ban could not be found 474 * @throws SystemException if a system exception occurred 475 */ 476 public com.liferay.portlet.messageboards.model.MBBan findByGroupId_Last( 477 long groupId, 478 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 479 throws com.liferay.portal.kernel.exception.SystemException, 480 com.liferay.portlet.messageboards.NoSuchBanException; 481 482 /** 483 * Returns the last message boards ban in the ordered set where groupId = ?. 484 * 485 * @param groupId the group ID 486 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 487 * @return the last matching message boards ban, or <code>null</code> if a matching message boards ban could not be found 488 * @throws SystemException if a system exception occurred 489 */ 490 public com.liferay.portlet.messageboards.model.MBBan fetchByGroupId_Last( 491 long groupId, 492 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 493 throws com.liferay.portal.kernel.exception.SystemException; 494 495 /** 496 * Returns the message boards bans before and after the current message boards ban in the ordered set where groupId = ?. 497 * 498 * @param banId the primary key of the current message boards ban 499 * @param groupId the group ID 500 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 501 * @return the previous, current, and next message boards ban 502 * @throws com.liferay.portlet.messageboards.NoSuchBanException if a message boards ban with the primary key could not be found 503 * @throws SystemException if a system exception occurred 504 */ 505 public com.liferay.portlet.messageboards.model.MBBan[] findByGroupId_PrevAndNext( 506 long banId, long groupId, 507 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 508 throws com.liferay.portal.kernel.exception.SystemException, 509 com.liferay.portlet.messageboards.NoSuchBanException; 510 511 /** 512 * Removes all the message boards bans where groupId = ? from the database. 513 * 514 * @param groupId the group ID 515 * @throws SystemException if a system exception occurred 516 */ 517 public void removeByGroupId(long groupId) 518 throws com.liferay.portal.kernel.exception.SystemException; 519 520 /** 521 * Returns the number of message boards bans where groupId = ?. 522 * 523 * @param groupId the group ID 524 * @return the number of matching message boards bans 525 * @throws SystemException if a system exception occurred 526 */ 527 public int countByGroupId(long groupId) 528 throws com.liferay.portal.kernel.exception.SystemException; 529 530 /** 531 * Returns all the message boards bans where userId = ?. 532 * 533 * @param userId the user ID 534 * @return the matching message boards bans 535 * @throws SystemException if a system exception occurred 536 */ 537 public java.util.List<com.liferay.portlet.messageboards.model.MBBan> findByUserId( 538 long userId) throws com.liferay.portal.kernel.exception.SystemException; 539 540 /** 541 * Returns a range of all the message boards bans where userId = ?. 542 * 543 * <p> 544 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.messageboards.model.impl.MBBanModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 545 * </p> 546 * 547 * @param userId the user ID 548 * @param start the lower bound of the range of message boards bans 549 * @param end the upper bound of the range of message boards bans (not inclusive) 550 * @return the range of matching message boards bans 551 * @throws SystemException if a system exception occurred 552 */ 553 public java.util.List<com.liferay.portlet.messageboards.model.MBBan> findByUserId( 554 long userId, int start, int end) 555 throws com.liferay.portal.kernel.exception.SystemException; 556 557 /** 558 * Returns an ordered range of all the message boards bans where userId = ?. 559 * 560 * <p> 561 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.messageboards.model.impl.MBBanModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 562 * </p> 563 * 564 * @param userId the user ID 565 * @param start the lower bound of the range of message boards bans 566 * @param end the upper bound of the range of message boards bans (not inclusive) 567 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 568 * @return the ordered range of matching message boards bans 569 * @throws SystemException if a system exception occurred 570 */ 571 public java.util.List<com.liferay.portlet.messageboards.model.MBBan> findByUserId( 572 long userId, int start, int end, 573 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 574 throws com.liferay.portal.kernel.exception.SystemException; 575 576 /** 577 * Returns the first message boards ban in the ordered set where userId = ?. 578 * 579 * @param userId the user ID 580 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 581 * @return the first matching message boards ban 582 * @throws com.liferay.portlet.messageboards.NoSuchBanException if a matching message boards ban could not be found 583 * @throws SystemException if a system exception occurred 584 */ 585 public com.liferay.portlet.messageboards.model.MBBan findByUserId_First( 586 long userId, 587 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 588 throws com.liferay.portal.kernel.exception.SystemException, 589 com.liferay.portlet.messageboards.NoSuchBanException; 590 591 /** 592 * Returns the first message boards ban in the ordered set where userId = ?. 593 * 594 * @param userId the user ID 595 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 596 * @return the first matching message boards ban, or <code>null</code> if a matching message boards ban could not be found 597 * @throws SystemException if a system exception occurred 598 */ 599 public com.liferay.portlet.messageboards.model.MBBan fetchByUserId_First( 600 long userId, 601 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 602 throws com.liferay.portal.kernel.exception.SystemException; 603 604 /** 605 * Returns the last message boards ban in the ordered set where userId = ?. 606 * 607 * @param userId the user ID 608 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 609 * @return the last matching message boards ban 610 * @throws com.liferay.portlet.messageboards.NoSuchBanException if a matching message boards ban could not be found 611 * @throws SystemException if a system exception occurred 612 */ 613 public com.liferay.portlet.messageboards.model.MBBan findByUserId_Last( 614 long userId, 615 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 616 throws com.liferay.portal.kernel.exception.SystemException, 617 com.liferay.portlet.messageboards.NoSuchBanException; 618 619 /** 620 * Returns the last message boards ban in the ordered set where userId = ?. 621 * 622 * @param userId the user ID 623 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 624 * @return the last matching message boards ban, or <code>null</code> if a matching message boards ban could not be found 625 * @throws SystemException if a system exception occurred 626 */ 627 public com.liferay.portlet.messageboards.model.MBBan fetchByUserId_Last( 628 long userId, 629 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 630 throws com.liferay.portal.kernel.exception.SystemException; 631 632 /** 633 * Returns the message boards bans before and after the current message boards ban in the ordered set where userId = ?. 634 * 635 * @param banId the primary key of the current message boards ban 636 * @param userId the user ID 637 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 638 * @return the previous, current, and next message boards ban 639 * @throws com.liferay.portlet.messageboards.NoSuchBanException if a message boards ban with the primary key could not be found 640 * @throws SystemException if a system exception occurred 641 */ 642 public com.liferay.portlet.messageboards.model.MBBan[] findByUserId_PrevAndNext( 643 long banId, long userId, 644 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 645 throws com.liferay.portal.kernel.exception.SystemException, 646 com.liferay.portlet.messageboards.NoSuchBanException; 647 648 /** 649 * Removes all the message boards bans where userId = ? from the database. 650 * 651 * @param userId the user ID 652 * @throws SystemException if a system exception occurred 653 */ 654 public void removeByUserId(long userId) 655 throws com.liferay.portal.kernel.exception.SystemException; 656 657 /** 658 * Returns the number of message boards bans where userId = ?. 659 * 660 * @param userId the user ID 661 * @return the number of matching message boards bans 662 * @throws SystemException if a system exception occurred 663 */ 664 public int countByUserId(long userId) 665 throws com.liferay.portal.kernel.exception.SystemException; 666 667 /** 668 * Returns all the message boards bans where banUserId = ?. 669 * 670 * @param banUserId the ban user ID 671 * @return the matching message boards bans 672 * @throws SystemException if a system exception occurred 673 */ 674 public java.util.List<com.liferay.portlet.messageboards.model.MBBan> findByBanUserId( 675 long banUserId) 676 throws com.liferay.portal.kernel.exception.SystemException; 677 678 /** 679 * Returns a range of all the message boards bans where banUserId = ?. 680 * 681 * <p> 682 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.messageboards.model.impl.MBBanModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 683 * </p> 684 * 685 * @param banUserId the ban user ID 686 * @param start the lower bound of the range of message boards bans 687 * @param end the upper bound of the range of message boards bans (not inclusive) 688 * @return the range of matching message boards bans 689 * @throws SystemException if a system exception occurred 690 */ 691 public java.util.List<com.liferay.portlet.messageboards.model.MBBan> findByBanUserId( 692 long banUserId, int start, int end) 693 throws com.liferay.portal.kernel.exception.SystemException; 694 695 /** 696 * Returns an ordered range of all the message boards bans where banUserId = ?. 697 * 698 * <p> 699 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.messageboards.model.impl.MBBanModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 700 * </p> 701 * 702 * @param banUserId the ban user ID 703 * @param start the lower bound of the range of message boards bans 704 * @param end the upper bound of the range of message boards bans (not inclusive) 705 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 706 * @return the ordered range of matching message boards bans 707 * @throws SystemException if a system exception occurred 708 */ 709 public java.util.List<com.liferay.portlet.messageboards.model.MBBan> findByBanUserId( 710 long banUserId, int start, int end, 711 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 712 throws com.liferay.portal.kernel.exception.SystemException; 713 714 /** 715 * Returns the first message boards ban in the ordered set where banUserId = ?. 716 * 717 * @param banUserId the ban user ID 718 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 719 * @return the first matching message boards ban 720 * @throws com.liferay.portlet.messageboards.NoSuchBanException if a matching message boards ban could not be found 721 * @throws SystemException if a system exception occurred 722 */ 723 public com.liferay.portlet.messageboards.model.MBBan findByBanUserId_First( 724 long banUserId, 725 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 726 throws com.liferay.portal.kernel.exception.SystemException, 727 com.liferay.portlet.messageboards.NoSuchBanException; 728 729 /** 730 * Returns the first message boards ban in the ordered set where banUserId = ?. 731 * 732 * @param banUserId the ban user ID 733 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 734 * @return the first matching message boards ban, or <code>null</code> if a matching message boards ban could not be found 735 * @throws SystemException if a system exception occurred 736 */ 737 public com.liferay.portlet.messageboards.model.MBBan fetchByBanUserId_First( 738 long banUserId, 739 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 740 throws com.liferay.portal.kernel.exception.SystemException; 741 742 /** 743 * Returns the last message boards ban in the ordered set where banUserId = ?. 744 * 745 * @param banUserId the ban user ID 746 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 747 * @return the last matching message boards ban 748 * @throws com.liferay.portlet.messageboards.NoSuchBanException if a matching message boards ban could not be found 749 * @throws SystemException if a system exception occurred 750 */ 751 public com.liferay.portlet.messageboards.model.MBBan findByBanUserId_Last( 752 long banUserId, 753 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 754 throws com.liferay.portal.kernel.exception.SystemException, 755 com.liferay.portlet.messageboards.NoSuchBanException; 756 757 /** 758 * Returns the last message boards ban in the ordered set where banUserId = ?. 759 * 760 * @param banUserId the ban user ID 761 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 762 * @return the last matching message boards ban, or <code>null</code> if a matching message boards ban could not be found 763 * @throws SystemException if a system exception occurred 764 */ 765 public com.liferay.portlet.messageboards.model.MBBan fetchByBanUserId_Last( 766 long banUserId, 767 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 768 throws com.liferay.portal.kernel.exception.SystemException; 769 770 /** 771 * Returns the message boards bans before and after the current message boards ban in the ordered set where banUserId = ?. 772 * 773 * @param banId the primary key of the current message boards ban 774 * @param banUserId the ban user ID 775 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 776 * @return the previous, current, and next message boards ban 777 * @throws com.liferay.portlet.messageboards.NoSuchBanException if a message boards ban with the primary key could not be found 778 * @throws SystemException if a system exception occurred 779 */ 780 public com.liferay.portlet.messageboards.model.MBBan[] findByBanUserId_PrevAndNext( 781 long banId, long banUserId, 782 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 783 throws com.liferay.portal.kernel.exception.SystemException, 784 com.liferay.portlet.messageboards.NoSuchBanException; 785 786 /** 787 * Removes all the message boards bans where banUserId = ? from the database. 788 * 789 * @param banUserId the ban user ID 790 * @throws SystemException if a system exception occurred 791 */ 792 public void removeByBanUserId(long banUserId) 793 throws com.liferay.portal.kernel.exception.SystemException; 794 795 /** 796 * Returns the number of message boards bans where banUserId = ?. 797 * 798 * @param banUserId the ban user ID 799 * @return the number of matching message boards bans 800 * @throws SystemException if a system exception occurred 801 */ 802 public int countByBanUserId(long banUserId) 803 throws com.liferay.portal.kernel.exception.SystemException; 804 805 /** 806 * Returns the message boards ban where groupId = ? and banUserId = ? or throws a {@link com.liferay.portlet.messageboards.NoSuchBanException} if it could not be found. 807 * 808 * @param groupId the group ID 809 * @param banUserId the ban user ID 810 * @return the matching message boards ban 811 * @throws com.liferay.portlet.messageboards.NoSuchBanException if a matching message boards ban could not be found 812 * @throws SystemException if a system exception occurred 813 */ 814 public com.liferay.portlet.messageboards.model.MBBan findByG_B( 815 long groupId, long banUserId) 816 throws com.liferay.portal.kernel.exception.SystemException, 817 com.liferay.portlet.messageboards.NoSuchBanException; 818 819 /** 820 * Returns the message boards ban where groupId = ? and banUserId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 821 * 822 * @param groupId the group ID 823 * @param banUserId the ban user ID 824 * @return the matching message boards ban, or <code>null</code> if a matching message boards ban could not be found 825 * @throws SystemException if a system exception occurred 826 */ 827 public com.liferay.portlet.messageboards.model.MBBan fetchByG_B( 828 long groupId, long banUserId) 829 throws com.liferay.portal.kernel.exception.SystemException; 830 831 /** 832 * Returns the message boards ban where groupId = ? and banUserId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 833 * 834 * @param groupId the group ID 835 * @param banUserId the ban user ID 836 * @param retrieveFromCache whether to use the finder cache 837 * @return the matching message boards ban, or <code>null</code> if a matching message boards ban could not be found 838 * @throws SystemException if a system exception occurred 839 */ 840 public com.liferay.portlet.messageboards.model.MBBan fetchByG_B( 841 long groupId, long banUserId, boolean retrieveFromCache) 842 throws com.liferay.portal.kernel.exception.SystemException; 843 844 /** 845 * Removes the message boards ban where groupId = ? and banUserId = ? from the database. 846 * 847 * @param groupId the group ID 848 * @param banUserId the ban user ID 849 * @return the message boards ban that was removed 850 * @throws SystemException if a system exception occurred 851 */ 852 public com.liferay.portlet.messageboards.model.MBBan removeByG_B( 853 long groupId, long banUserId) 854 throws com.liferay.portal.kernel.exception.SystemException, 855 com.liferay.portlet.messageboards.NoSuchBanException; 856 857 /** 858 * Returns the number of message boards bans where groupId = ? and banUserId = ?. 859 * 860 * @param groupId the group ID 861 * @param banUserId the ban user ID 862 * @return the number of matching message boards bans 863 * @throws SystemException if a system exception occurred 864 */ 865 public int countByG_B(long groupId, long banUserId) 866 throws com.liferay.portal.kernel.exception.SystemException; 867 868 /** 869 * Caches the message boards ban in the entity cache if it is enabled. 870 * 871 * @param mbBan the message boards ban 872 */ 873 public void cacheResult(com.liferay.portlet.messageboards.model.MBBan mbBan); 874 875 /** 876 * Caches the message boards bans in the entity cache if it is enabled. 877 * 878 * @param mbBans the message boards bans 879 */ 880 public void cacheResult( 881 java.util.List<com.liferay.portlet.messageboards.model.MBBan> mbBans); 882 883 /** 884 * Creates a new message boards ban with the primary key. Does not add the message boards ban to the database. 885 * 886 * @param banId the primary key for the new message boards ban 887 * @return the new message boards ban 888 */ 889 public com.liferay.portlet.messageboards.model.MBBan create(long banId); 890 891 /** 892 * Removes the message boards ban with the primary key from the database. Also notifies the appropriate model listeners. 893 * 894 * @param banId the primary key of the message boards ban 895 * @return the message boards ban that was removed 896 * @throws com.liferay.portlet.messageboards.NoSuchBanException if a message boards ban with the primary key could not be found 897 * @throws SystemException if a system exception occurred 898 */ 899 public com.liferay.portlet.messageboards.model.MBBan remove(long banId) 900 throws com.liferay.portal.kernel.exception.SystemException, 901 com.liferay.portlet.messageboards.NoSuchBanException; 902 903 public com.liferay.portlet.messageboards.model.MBBan updateImpl( 904 com.liferay.portlet.messageboards.model.MBBan mbBan) 905 throws com.liferay.portal.kernel.exception.SystemException; 906 907 /** 908 * Returns the message boards ban with the primary key or throws a {@link com.liferay.portlet.messageboards.NoSuchBanException} if it could not be found. 909 * 910 * @param banId the primary key of the message boards ban 911 * @return the message boards ban 912 * @throws com.liferay.portlet.messageboards.NoSuchBanException if a message boards ban with the primary key could not be found 913 * @throws SystemException if a system exception occurred 914 */ 915 public com.liferay.portlet.messageboards.model.MBBan findByPrimaryKey( 916 long banId) 917 throws com.liferay.portal.kernel.exception.SystemException, 918 com.liferay.portlet.messageboards.NoSuchBanException; 919 920 /** 921 * Returns the message boards ban with the primary key or returns <code>null</code> if it could not be found. 922 * 923 * @param banId the primary key of the message boards ban 924 * @return the message boards ban, or <code>null</code> if a message boards ban with the primary key could not be found 925 * @throws SystemException if a system exception occurred 926 */ 927 public com.liferay.portlet.messageboards.model.MBBan fetchByPrimaryKey( 928 long banId) throws com.liferay.portal.kernel.exception.SystemException; 929 930 /** 931 * Returns all the message boards bans. 932 * 933 * @return the message boards bans 934 * @throws SystemException if a system exception occurred 935 */ 936 public java.util.List<com.liferay.portlet.messageboards.model.MBBan> findAll() 937 throws com.liferay.portal.kernel.exception.SystemException; 938 939 /** 940 * Returns a range of all the message boards bans. 941 * 942 * <p> 943 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.messageboards.model.impl.MBBanModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 944 * </p> 945 * 946 * @param start the lower bound of the range of message boards bans 947 * @param end the upper bound of the range of message boards bans (not inclusive) 948 * @return the range of message boards bans 949 * @throws SystemException if a system exception occurred 950 */ 951 public java.util.List<com.liferay.portlet.messageboards.model.MBBan> findAll( 952 int start, int end) 953 throws com.liferay.portal.kernel.exception.SystemException; 954 955 /** 956 * Returns an ordered range of all the message boards bans. 957 * 958 * <p> 959 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.messageboards.model.impl.MBBanModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 960 * </p> 961 * 962 * @param start the lower bound of the range of message boards bans 963 * @param end the upper bound of the range of message boards bans (not inclusive) 964 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 965 * @return the ordered range of message boards bans 966 * @throws SystemException if a system exception occurred 967 */ 968 public java.util.List<com.liferay.portlet.messageboards.model.MBBan> findAll( 969 int start, int end, 970 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 971 throws com.liferay.portal.kernel.exception.SystemException; 972 973 /** 974 * Removes all the message boards bans from the database. 975 * 976 * @throws SystemException if a system exception occurred 977 */ 978 public void removeAll() 979 throws com.liferay.portal.kernel.exception.SystemException; 980 981 /** 982 * Returns the number of message boards bans. 983 * 984 * @return the number of message boards bans 985 * @throws SystemException if a system exception occurred 986 */ 987 public int countAll() 988 throws com.liferay.portal.kernel.exception.SystemException; 989 }