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