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