001 /** 002 * Copyright (c) 2000-present 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 com.liferay.portlet.messageboards.service.persistence.impl.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 */ 049 public java.util.List<MBBan> findByUuid(java.lang.String uuid); 050 051 /** 052 * Returns a range of all the message boards bans where uuid = ?. 053 * 054 * <p> 055 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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. 056 * </p> 057 * 058 * @param uuid the uuid 059 * @param start the lower bound of the range of message boards bans 060 * @param end the upper bound of the range of message boards bans (not inclusive) 061 * @return the range of matching message boards bans 062 */ 063 public java.util.List<MBBan> findByUuid(java.lang.String uuid, int start, 064 int end); 065 066 /** 067 * Returns an ordered range of all the message boards bans where uuid = ?. 068 * 069 * <p> 070 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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. 071 * </p> 072 * 073 * @param uuid the uuid 074 * @param start the lower bound of the range of message boards bans 075 * @param end the upper bound of the range of message boards bans (not inclusive) 076 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 077 * @return the ordered range of matching message boards bans 078 */ 079 public java.util.List<MBBan> findByUuid(java.lang.String uuid, int start, 080 int end, 081 com.liferay.portal.kernel.util.OrderByComparator<MBBan> orderByComparator); 082 083 /** 084 * Returns the first message boards ban in the ordered set where uuid = ?. 085 * 086 * @param uuid the uuid 087 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 088 * @return the first matching message boards ban 089 * @throws NoSuchBanException if a matching message boards ban could not be found 090 */ 091 public MBBan findByUuid_First(java.lang.String uuid, 092 com.liferay.portal.kernel.util.OrderByComparator<MBBan> orderByComparator) 093 throws com.liferay.portlet.messageboards.NoSuchBanException; 094 095 /** 096 * Returns the first message boards ban in the ordered set where uuid = ?. 097 * 098 * @param uuid the uuid 099 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 100 * @return the first matching message boards ban, or <code>null</code> if a matching message boards ban could not be found 101 */ 102 public MBBan fetchByUuid_First(java.lang.String uuid, 103 com.liferay.portal.kernel.util.OrderByComparator<MBBan> orderByComparator); 104 105 /** 106 * Returns the last 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 last matching message boards ban 111 * @throws NoSuchBanException if a matching message boards ban could not be found 112 */ 113 public MBBan findByUuid_Last(java.lang.String uuid, 114 com.liferay.portal.kernel.util.OrderByComparator<MBBan> orderByComparator) 115 throws com.liferay.portlet.messageboards.NoSuchBanException; 116 117 /** 118 * Returns the last message boards ban in the ordered set where uuid = ?. 119 * 120 * @param uuid the uuid 121 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 122 * @return the last matching message boards ban, or <code>null</code> if a matching message boards ban could not be found 123 */ 124 public MBBan fetchByUuid_Last(java.lang.String uuid, 125 com.liferay.portal.kernel.util.OrderByComparator<MBBan> orderByComparator); 126 127 /** 128 * Returns the message boards bans before and after the current message boards ban in the ordered set where uuid = ?. 129 * 130 * @param banId the primary key of the current message boards ban 131 * @param uuid the uuid 132 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 133 * @return the previous, current, and next message boards ban 134 * @throws NoSuchBanException if a message boards ban with the primary key could not be found 135 */ 136 public MBBan[] findByUuid_PrevAndNext(long banId, java.lang.String uuid, 137 com.liferay.portal.kernel.util.OrderByComparator<MBBan> orderByComparator) 138 throws com.liferay.portlet.messageboards.NoSuchBanException; 139 140 /** 141 * Removes all the message boards bans where uuid = ? from the database. 142 * 143 * @param uuid the uuid 144 */ 145 public void removeByUuid(java.lang.String uuid); 146 147 /** 148 * Returns the number of message boards bans where uuid = ?. 149 * 150 * @param uuid the uuid 151 * @return the number of matching message boards bans 152 */ 153 public int countByUuid(java.lang.String uuid); 154 155 /** 156 * Returns the message boards ban where uuid = ? and groupId = ? or throws a {@link NoSuchBanException} if it could not be found. 157 * 158 * @param uuid the uuid 159 * @param groupId the group ID 160 * @return the matching message boards ban 161 * @throws NoSuchBanException if a matching message boards ban could not be found 162 */ 163 public MBBan findByUUID_G(java.lang.String uuid, long groupId) 164 throws com.liferay.portlet.messageboards.NoSuchBanException; 165 166 /** 167 * Returns the message boards ban where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 168 * 169 * @param uuid the uuid 170 * @param groupId the group ID 171 * @return the matching message boards ban, or <code>null</code> if a matching message boards ban could not be found 172 */ 173 public MBBan fetchByUUID_G(java.lang.String uuid, long groupId); 174 175 /** 176 * 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. 177 * 178 * @param uuid the uuid 179 * @param groupId the group ID 180 * @param retrieveFromCache whether to use the finder cache 181 * @return the matching message boards ban, or <code>null</code> if a matching message boards ban could not be found 182 */ 183 public MBBan fetchByUUID_G(java.lang.String uuid, long groupId, 184 boolean retrieveFromCache); 185 186 /** 187 * Removes the message boards ban where uuid = ? and groupId = ? from the database. 188 * 189 * @param uuid the uuid 190 * @param groupId the group ID 191 * @return the message boards ban that was removed 192 */ 193 public MBBan removeByUUID_G(java.lang.String uuid, long groupId) 194 throws com.liferay.portlet.messageboards.NoSuchBanException; 195 196 /** 197 * Returns the number of message boards bans where uuid = ? and groupId = ?. 198 * 199 * @param uuid the uuid 200 * @param groupId the group ID 201 * @return the number of matching message boards bans 202 */ 203 public int countByUUID_G(java.lang.String uuid, long groupId); 204 205 /** 206 * Returns all the message boards bans where uuid = ? and companyId = ?. 207 * 208 * @param uuid the uuid 209 * @param companyId the company ID 210 * @return the matching message boards bans 211 */ 212 public java.util.List<MBBan> findByUuid_C(java.lang.String uuid, 213 long companyId); 214 215 /** 216 * Returns a range of all the message boards bans where uuid = ? and companyId = ?. 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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. 220 * </p> 221 * 222 * @param uuid the uuid 223 * @param companyId the company ID 224 * @param start the lower bound of the range of message boards bans 225 * @param end the upper bound of the range of message boards bans (not inclusive) 226 * @return the range of matching message boards bans 227 */ 228 public java.util.List<MBBan> findByUuid_C(java.lang.String uuid, 229 long companyId, int start, int end); 230 231 /** 232 * Returns an ordered range of all the message boards bans where uuid = ? and companyId = ?. 233 * 234 * <p> 235 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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. 236 * </p> 237 * 238 * @param uuid the uuid 239 * @param companyId the company ID 240 * @param start the lower bound of the range of message boards bans 241 * @param end the upper bound of the range of message boards bans (not inclusive) 242 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 243 * @return the ordered range of matching message boards bans 244 */ 245 public java.util.List<MBBan> findByUuid_C(java.lang.String uuid, 246 long companyId, int start, int end, 247 com.liferay.portal.kernel.util.OrderByComparator<MBBan> orderByComparator); 248 249 /** 250 * Returns the first message boards ban in the ordered set where uuid = ? and companyId = ?. 251 * 252 * @param uuid the uuid 253 * @param companyId the company ID 254 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 255 * @return the first matching message boards ban 256 * @throws NoSuchBanException if a matching message boards ban could not be found 257 */ 258 public MBBan findByUuid_C_First(java.lang.String uuid, long companyId, 259 com.liferay.portal.kernel.util.OrderByComparator<MBBan> orderByComparator) 260 throws com.liferay.portlet.messageboards.NoSuchBanException; 261 262 /** 263 * Returns the first message boards ban in the ordered set where uuid = ? and companyId = ?. 264 * 265 * @param uuid the uuid 266 * @param companyId the company ID 267 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 268 * @return the first matching message boards ban, or <code>null</code> if a matching message boards ban could not be found 269 */ 270 public MBBan fetchByUuid_C_First(java.lang.String uuid, long companyId, 271 com.liferay.portal.kernel.util.OrderByComparator<MBBan> orderByComparator); 272 273 /** 274 * Returns the last message boards ban in the ordered set where uuid = ? and companyId = ?. 275 * 276 * @param uuid the uuid 277 * @param companyId the company ID 278 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 279 * @return the last matching message boards ban 280 * @throws NoSuchBanException if a matching message boards ban could not be found 281 */ 282 public MBBan findByUuid_C_Last(java.lang.String uuid, long companyId, 283 com.liferay.portal.kernel.util.OrderByComparator<MBBan> orderByComparator) 284 throws com.liferay.portlet.messageboards.NoSuchBanException; 285 286 /** 287 * Returns the last message boards ban in the ordered set where uuid = ? and companyId = ?. 288 * 289 * @param uuid the uuid 290 * @param companyId the company ID 291 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 292 * @return the last matching message boards ban, or <code>null</code> if a matching message boards ban could not be found 293 */ 294 public MBBan fetchByUuid_C_Last(java.lang.String uuid, long companyId, 295 com.liferay.portal.kernel.util.OrderByComparator<MBBan> orderByComparator); 296 297 /** 298 * Returns the message boards bans before and after the current message boards ban in the ordered set where uuid = ? and companyId = ?. 299 * 300 * @param banId the primary key of the current message boards ban 301 * @param uuid the uuid 302 * @param companyId the company ID 303 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 304 * @return the previous, current, and next message boards ban 305 * @throws NoSuchBanException if a message boards ban with the primary key could not be found 306 */ 307 public MBBan[] findByUuid_C_PrevAndNext(long banId, java.lang.String uuid, 308 long companyId, 309 com.liferay.portal.kernel.util.OrderByComparator<MBBan> orderByComparator) 310 throws com.liferay.portlet.messageboards.NoSuchBanException; 311 312 /** 313 * Removes all the message boards bans where uuid = ? and companyId = ? from the database. 314 * 315 * @param uuid the uuid 316 * @param companyId the company ID 317 */ 318 public void removeByUuid_C(java.lang.String uuid, long companyId); 319 320 /** 321 * Returns the number of message boards bans where uuid = ? and companyId = ?. 322 * 323 * @param uuid the uuid 324 * @param companyId the company ID 325 * @return the number of matching message boards bans 326 */ 327 public int countByUuid_C(java.lang.String uuid, long companyId); 328 329 /** 330 * Returns all the message boards bans where groupId = ?. 331 * 332 * @param groupId the group ID 333 * @return the matching message boards bans 334 */ 335 public java.util.List<MBBan> findByGroupId(long groupId); 336 337 /** 338 * Returns a range of all the message boards bans where groupId = ?. 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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. 342 * </p> 343 * 344 * @param groupId the group ID 345 * @param start the lower bound of the range of message boards bans 346 * @param end the upper bound of the range of message boards bans (not inclusive) 347 * @return the range of matching message boards bans 348 */ 349 public java.util.List<MBBan> findByGroupId(long groupId, int start, int end); 350 351 /** 352 * Returns an ordered range of all the message boards bans where groupId = ?. 353 * 354 * <p> 355 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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. 356 * </p> 357 * 358 * @param groupId the group ID 359 * @param start the lower bound of the range of message boards bans 360 * @param end the upper bound of the range of message boards bans (not inclusive) 361 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 362 * @return the ordered range of matching message boards bans 363 */ 364 public java.util.List<MBBan> findByGroupId(long groupId, int start, 365 int end, 366 com.liferay.portal.kernel.util.OrderByComparator<MBBan> orderByComparator); 367 368 /** 369 * Returns the first message boards ban in the ordered set where groupId = ?. 370 * 371 * @param groupId the group ID 372 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 373 * @return the first matching message boards ban 374 * @throws NoSuchBanException if a matching message boards ban could not be found 375 */ 376 public MBBan findByGroupId_First(long groupId, 377 com.liferay.portal.kernel.util.OrderByComparator<MBBan> orderByComparator) 378 throws com.liferay.portlet.messageboards.NoSuchBanException; 379 380 /** 381 * Returns the first message boards ban in the ordered set where groupId = ?. 382 * 383 * @param groupId the group ID 384 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 385 * @return the first matching message boards ban, or <code>null</code> if a matching message boards ban could not be found 386 */ 387 public MBBan fetchByGroupId_First(long groupId, 388 com.liferay.portal.kernel.util.OrderByComparator<MBBan> orderByComparator); 389 390 /** 391 * Returns the last message boards ban in the ordered set where groupId = ?. 392 * 393 * @param groupId the group ID 394 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 395 * @return the last matching message boards ban 396 * @throws NoSuchBanException if a matching message boards ban could not be found 397 */ 398 public MBBan findByGroupId_Last(long groupId, 399 com.liferay.portal.kernel.util.OrderByComparator<MBBan> orderByComparator) 400 throws com.liferay.portlet.messageboards.NoSuchBanException; 401 402 /** 403 * Returns the last message boards ban in the ordered set where groupId = ?. 404 * 405 * @param groupId the group ID 406 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 407 * @return the last matching message boards ban, or <code>null</code> if a matching message boards ban could not be found 408 */ 409 public MBBan fetchByGroupId_Last(long groupId, 410 com.liferay.portal.kernel.util.OrderByComparator<MBBan> orderByComparator); 411 412 /** 413 * Returns the message boards bans before and after the current message boards ban in the ordered set where groupId = ?. 414 * 415 * @param banId the primary key of the current message boards ban 416 * @param groupId the group ID 417 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 418 * @return the previous, current, and next message boards ban 419 * @throws NoSuchBanException if a message boards ban with the primary key could not be found 420 */ 421 public MBBan[] findByGroupId_PrevAndNext(long banId, long groupId, 422 com.liferay.portal.kernel.util.OrderByComparator<MBBan> orderByComparator) 423 throws com.liferay.portlet.messageboards.NoSuchBanException; 424 425 /** 426 * Removes all the message boards bans where groupId = ? from the database. 427 * 428 * @param groupId the group ID 429 */ 430 public void removeByGroupId(long groupId); 431 432 /** 433 * Returns the number of message boards bans where groupId = ?. 434 * 435 * @param groupId the group ID 436 * @return the number of matching message boards bans 437 */ 438 public int countByGroupId(long groupId); 439 440 /** 441 * Returns all the message boards bans where userId = ?. 442 * 443 * @param userId the user ID 444 * @return the matching message boards bans 445 */ 446 public java.util.List<MBBan> findByUserId(long userId); 447 448 /** 449 * Returns a range of all the message boards bans where userId = ?. 450 * 451 * <p> 452 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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. 453 * </p> 454 * 455 * @param userId the user ID 456 * @param start the lower bound of the range of message boards bans 457 * @param end the upper bound of the range of message boards bans (not inclusive) 458 * @return the range of matching message boards bans 459 */ 460 public java.util.List<MBBan> findByUserId(long userId, int start, int end); 461 462 /** 463 * Returns an ordered range of all the message boards bans where userId = ?. 464 * 465 * <p> 466 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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. 467 * </p> 468 * 469 * @param userId the user ID 470 * @param start the lower bound of the range of message boards bans 471 * @param end the upper bound of the range of message boards bans (not inclusive) 472 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 473 * @return the ordered range of matching message boards bans 474 */ 475 public java.util.List<MBBan> findByUserId(long userId, int start, int end, 476 com.liferay.portal.kernel.util.OrderByComparator<MBBan> orderByComparator); 477 478 /** 479 * Returns the first message boards ban in the ordered set where userId = ?. 480 * 481 * @param userId the user ID 482 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 483 * @return the first matching message boards ban 484 * @throws NoSuchBanException if a matching message boards ban could not be found 485 */ 486 public MBBan findByUserId_First(long userId, 487 com.liferay.portal.kernel.util.OrderByComparator<MBBan> orderByComparator) 488 throws com.liferay.portlet.messageboards.NoSuchBanException; 489 490 /** 491 * Returns the first message boards ban in the ordered set where userId = ?. 492 * 493 * @param userId the user ID 494 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 495 * @return the first matching message boards ban, or <code>null</code> if a matching message boards ban could not be found 496 */ 497 public MBBan fetchByUserId_First(long userId, 498 com.liferay.portal.kernel.util.OrderByComparator<MBBan> orderByComparator); 499 500 /** 501 * Returns the last message boards ban in the ordered set where userId = ?. 502 * 503 * @param userId the user ID 504 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 505 * @return the last matching message boards ban 506 * @throws NoSuchBanException if a matching message boards ban could not be found 507 */ 508 public MBBan findByUserId_Last(long userId, 509 com.liferay.portal.kernel.util.OrderByComparator<MBBan> orderByComparator) 510 throws com.liferay.portlet.messageboards.NoSuchBanException; 511 512 /** 513 * Returns the last message boards ban in the ordered set where userId = ?. 514 * 515 * @param userId the user ID 516 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 517 * @return the last matching message boards ban, or <code>null</code> if a matching message boards ban could not be found 518 */ 519 public MBBan fetchByUserId_Last(long userId, 520 com.liferay.portal.kernel.util.OrderByComparator<MBBan> orderByComparator); 521 522 /** 523 * Returns the message boards bans before and after the current message boards ban in the ordered set where userId = ?. 524 * 525 * @param banId the primary key of the current message boards ban 526 * @param userId the user ID 527 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 528 * @return the previous, current, and next message boards ban 529 * @throws NoSuchBanException if a message boards ban with the primary key could not be found 530 */ 531 public MBBan[] findByUserId_PrevAndNext(long banId, long userId, 532 com.liferay.portal.kernel.util.OrderByComparator<MBBan> orderByComparator) 533 throws com.liferay.portlet.messageboards.NoSuchBanException; 534 535 /** 536 * Removes all the message boards bans where userId = ? from the database. 537 * 538 * @param userId the user ID 539 */ 540 public void removeByUserId(long userId); 541 542 /** 543 * Returns the number of message boards bans where userId = ?. 544 * 545 * @param userId the user ID 546 * @return the number of matching message boards bans 547 */ 548 public int countByUserId(long userId); 549 550 /** 551 * Returns all the message boards bans where banUserId = ?. 552 * 553 * @param banUserId the ban user ID 554 * @return the matching message boards bans 555 */ 556 public java.util.List<MBBan> findByBanUserId(long banUserId); 557 558 /** 559 * Returns a range of all the message boards bans where banUserId = ?. 560 * 561 * <p> 562 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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. 563 * </p> 564 * 565 * @param banUserId the ban user ID 566 * @param start the lower bound of the range of message boards bans 567 * @param end the upper bound of the range of message boards bans (not inclusive) 568 * @return the range of matching message boards bans 569 */ 570 public java.util.List<MBBan> findByBanUserId(long banUserId, int start, 571 int end); 572 573 /** 574 * Returns an ordered range of all the message boards bans where banUserId = ?. 575 * 576 * <p> 577 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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. 578 * </p> 579 * 580 * @param banUserId the ban user ID 581 * @param start the lower bound of the range of message boards bans 582 * @param end the upper bound of the range of message boards bans (not inclusive) 583 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 584 * @return the ordered range of matching message boards bans 585 */ 586 public java.util.List<MBBan> findByBanUserId(long banUserId, int start, 587 int end, 588 com.liferay.portal.kernel.util.OrderByComparator<MBBan> orderByComparator); 589 590 /** 591 * Returns the first message boards ban in the ordered set where banUserId = ?. 592 * 593 * @param banUserId the ban user ID 594 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 595 * @return the first matching message boards ban 596 * @throws NoSuchBanException if a matching message boards ban could not be found 597 */ 598 public MBBan findByBanUserId_First(long banUserId, 599 com.liferay.portal.kernel.util.OrderByComparator<MBBan> orderByComparator) 600 throws com.liferay.portlet.messageboards.NoSuchBanException; 601 602 /** 603 * Returns the first message boards ban in the ordered set where banUserId = ?. 604 * 605 * @param banUserId the ban user ID 606 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 607 * @return the first matching message boards ban, or <code>null</code> if a matching message boards ban could not be found 608 */ 609 public MBBan fetchByBanUserId_First(long banUserId, 610 com.liferay.portal.kernel.util.OrderByComparator<MBBan> orderByComparator); 611 612 /** 613 * Returns the last message boards ban in the ordered set where banUserId = ?. 614 * 615 * @param banUserId the ban user ID 616 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 617 * @return the last matching message boards ban 618 * @throws NoSuchBanException if a matching message boards ban could not be found 619 */ 620 public MBBan findByBanUserId_Last(long banUserId, 621 com.liferay.portal.kernel.util.OrderByComparator<MBBan> orderByComparator) 622 throws com.liferay.portlet.messageboards.NoSuchBanException; 623 624 /** 625 * Returns the last message boards ban in the ordered set where banUserId = ?. 626 * 627 * @param banUserId the ban user ID 628 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 629 * @return the last matching message boards ban, or <code>null</code> if a matching message boards ban could not be found 630 */ 631 public MBBan fetchByBanUserId_Last(long banUserId, 632 com.liferay.portal.kernel.util.OrderByComparator<MBBan> orderByComparator); 633 634 /** 635 * Returns the message boards bans before and after the current message boards ban in the ordered set where banUserId = ?. 636 * 637 * @param banId the primary key of the current message boards ban 638 * @param banUserId the ban user ID 639 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 640 * @return the previous, current, and next message boards ban 641 * @throws NoSuchBanException if a message boards ban with the primary key could not be found 642 */ 643 public MBBan[] findByBanUserId_PrevAndNext(long banId, long banUserId, 644 com.liferay.portal.kernel.util.OrderByComparator<MBBan> orderByComparator) 645 throws com.liferay.portlet.messageboards.NoSuchBanException; 646 647 /** 648 * Removes all the message boards bans where banUserId = ? from the database. 649 * 650 * @param banUserId the ban user ID 651 */ 652 public void removeByBanUserId(long banUserId); 653 654 /** 655 * Returns the number of message boards bans where banUserId = ?. 656 * 657 * @param banUserId the ban user ID 658 * @return the number of matching message boards bans 659 */ 660 public int countByBanUserId(long banUserId); 661 662 /** 663 * Returns the message boards ban where groupId = ? and banUserId = ? or throws a {@link NoSuchBanException} if it could not be found. 664 * 665 * @param groupId the group ID 666 * @param banUserId the ban user ID 667 * @return the matching message boards ban 668 * @throws NoSuchBanException if a matching message boards ban could not be found 669 */ 670 public MBBan findByG_B(long groupId, long banUserId) 671 throws com.liferay.portlet.messageboards.NoSuchBanException; 672 673 /** 674 * Returns the message boards ban where groupId = ? and banUserId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 675 * 676 * @param groupId the group ID 677 * @param banUserId the ban user ID 678 * @return the matching message boards ban, or <code>null</code> if a matching message boards ban could not be found 679 */ 680 public MBBan fetchByG_B(long groupId, long banUserId); 681 682 /** 683 * 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. 684 * 685 * @param groupId the group ID 686 * @param banUserId the ban user ID 687 * @param retrieveFromCache whether to use the finder cache 688 * @return the matching message boards ban, or <code>null</code> if a matching message boards ban could not be found 689 */ 690 public MBBan fetchByG_B(long groupId, long banUserId, 691 boolean retrieveFromCache); 692 693 /** 694 * Removes the message boards ban where groupId = ? and banUserId = ? from the database. 695 * 696 * @param groupId the group ID 697 * @param banUserId the ban user ID 698 * @return the message boards ban that was removed 699 */ 700 public MBBan removeByG_B(long groupId, long banUserId) 701 throws com.liferay.portlet.messageboards.NoSuchBanException; 702 703 /** 704 * Returns the number of message boards bans where groupId = ? and banUserId = ?. 705 * 706 * @param groupId the group ID 707 * @param banUserId the ban user ID 708 * @return the number of matching message boards bans 709 */ 710 public int countByG_B(long groupId, long banUserId); 711 712 /** 713 * Caches the message boards ban in the entity cache if it is enabled. 714 * 715 * @param mbBan the message boards ban 716 */ 717 public void cacheResult(MBBan mbBan); 718 719 /** 720 * Caches the message boards bans in the entity cache if it is enabled. 721 * 722 * @param mbBans the message boards bans 723 */ 724 public void cacheResult(java.util.List<MBBan> mbBans); 725 726 /** 727 * Creates a new message boards ban with the primary key. Does not add the message boards ban to the database. 728 * 729 * @param banId the primary key for the new message boards ban 730 * @return the new message boards ban 731 */ 732 public MBBan create(long banId); 733 734 /** 735 * Removes the message boards ban with the primary key from the database. Also notifies the appropriate model listeners. 736 * 737 * @param banId the primary key of the message boards ban 738 * @return the message boards ban that was removed 739 * @throws NoSuchBanException if a message boards ban with the primary key could not be found 740 */ 741 public MBBan remove(long banId) 742 throws com.liferay.portlet.messageboards.NoSuchBanException; 743 744 public MBBan updateImpl(MBBan mbBan); 745 746 /** 747 * Returns the message boards ban with the primary key or throws a {@link NoSuchBanException} if it could not be found. 748 * 749 * @param banId the primary key of the message boards ban 750 * @return the message boards ban 751 * @throws NoSuchBanException if a message boards ban with the primary key could not be found 752 */ 753 public MBBan findByPrimaryKey(long banId) 754 throws com.liferay.portlet.messageboards.NoSuchBanException; 755 756 /** 757 * Returns the message boards ban with the primary key or returns <code>null</code> if it could not be found. 758 * 759 * @param banId the primary key of the message boards ban 760 * @return the message boards ban, or <code>null</code> if a message boards ban with the primary key could not be found 761 */ 762 public MBBan fetchByPrimaryKey(long banId); 763 764 @Override 765 public java.util.Map<java.io.Serializable, MBBan> fetchByPrimaryKeys( 766 java.util.Set<java.io.Serializable> primaryKeys); 767 768 /** 769 * Returns all the message boards bans. 770 * 771 * @return the message boards bans 772 */ 773 public java.util.List<MBBan> findAll(); 774 775 /** 776 * Returns a range of all the message boards bans. 777 * 778 * <p> 779 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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. 780 * </p> 781 * 782 * @param start the lower bound of the range of message boards bans 783 * @param end the upper bound of the range of message boards bans (not inclusive) 784 * @return the range of message boards bans 785 */ 786 public java.util.List<MBBan> findAll(int start, int end); 787 788 /** 789 * Returns an ordered range of all the message boards bans. 790 * 791 * <p> 792 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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. 793 * </p> 794 * 795 * @param start the lower bound of the range of message boards bans 796 * @param end the upper bound of the range of message boards bans (not inclusive) 797 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 798 * @return the ordered range of message boards bans 799 */ 800 public java.util.List<MBBan> findAll(int start, int end, 801 com.liferay.portal.kernel.util.OrderByComparator<MBBan> orderByComparator); 802 803 /** 804 * Removes all the message boards bans from the database. 805 */ 806 public void removeAll(); 807 808 /** 809 * Returns the number of message boards bans. 810 * 811 * @return the number of message boards bans 812 */ 813 public int countAll(); 814 }