001 /** 002 * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved. 003 * 004 * This library is free software; you can redistribute it and/or modify it under 005 * the terms of the GNU Lesser General Public License as published by the Free 006 * Software Foundation; either version 2.1 of the License, or (at your option) 007 * any later version. 008 * 009 * This library is distributed in the hope that it will be useful, but WITHOUT 010 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 011 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 012 * details. 013 */ 014 015 package com.liferay.portlet.messageboards.service.persistence; 016 017 import aQute.bnd.annotation.ProviderType; 018 019 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil; 020 import com.liferay.portal.kernel.dao.orm.DynamicQuery; 021 import com.liferay.portal.kernel.exception.SystemException; 022 import com.liferay.portal.kernel.util.OrderByComparator; 023 import com.liferay.portal.kernel.util.ReferenceRegistry; 024 import com.liferay.portal.service.ServiceContext; 025 026 import com.liferay.portlet.messageboards.model.MBBan; 027 028 import java.util.List; 029 030 /** 031 * The persistence utility for the message boards ban service. This utility wraps {@link MBBanPersistenceImpl} and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class. 032 * 033 * <p> 034 * Caching information and settings can be found in <code>portal.properties</code> 035 * </p> 036 * 037 * @author Brian Wing Shun Chan 038 * @see MBBanPersistence 039 * @see MBBanPersistenceImpl 040 * @generated 041 */ 042 @ProviderType 043 public class MBBanUtil { 044 /* 045 * NOTE FOR DEVELOPERS: 046 * 047 * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class. 048 */ 049 050 /** 051 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache() 052 */ 053 public static void clearCache() { 054 getPersistence().clearCache(); 055 } 056 057 /** 058 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel) 059 */ 060 public static void clearCache(MBBan mbBan) { 061 getPersistence().clearCache(mbBan); 062 } 063 064 /** 065 * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery) 066 */ 067 public static long countWithDynamicQuery(DynamicQuery dynamicQuery) 068 throws SystemException { 069 return getPersistence().countWithDynamicQuery(dynamicQuery); 070 } 071 072 /** 073 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery) 074 */ 075 public static List<MBBan> findWithDynamicQuery(DynamicQuery dynamicQuery) 076 throws SystemException { 077 return getPersistence().findWithDynamicQuery(dynamicQuery); 078 } 079 080 /** 081 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int) 082 */ 083 public static List<MBBan> findWithDynamicQuery(DynamicQuery dynamicQuery, 084 int start, int end) throws SystemException { 085 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end); 086 } 087 088 /** 089 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator) 090 */ 091 public static List<MBBan> findWithDynamicQuery(DynamicQuery dynamicQuery, 092 int start, int end, OrderByComparator orderByComparator) 093 throws SystemException { 094 return getPersistence() 095 .findWithDynamicQuery(dynamicQuery, start, end, 096 orderByComparator); 097 } 098 099 /** 100 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel) 101 */ 102 public static MBBan update(MBBan mbBan) throws SystemException { 103 return getPersistence().update(mbBan); 104 } 105 106 /** 107 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, ServiceContext) 108 */ 109 public static MBBan update(MBBan mbBan, ServiceContext serviceContext) 110 throws SystemException { 111 return getPersistence().update(mbBan, serviceContext); 112 } 113 114 /** 115 * Returns all the message boards bans where uuid = ?. 116 * 117 * @param uuid the uuid 118 * @return the matching message boards bans 119 * @throws SystemException if a system exception occurred 120 */ 121 public static java.util.List<com.liferay.portlet.messageboards.model.MBBan> findByUuid( 122 java.lang.String uuid) 123 throws com.liferay.portal.kernel.exception.SystemException { 124 return getPersistence().findByUuid(uuid); 125 } 126 127 /** 128 * Returns a range of all the message boards bans where uuid = ?. 129 * 130 * <p> 131 * 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. 132 * </p> 133 * 134 * @param uuid the uuid 135 * @param start the lower bound of the range of message boards bans 136 * @param end the upper bound of the range of message boards bans (not inclusive) 137 * @return the range of matching message boards bans 138 * @throws SystemException if a system exception occurred 139 */ 140 public static java.util.List<com.liferay.portlet.messageboards.model.MBBan> findByUuid( 141 java.lang.String uuid, int start, int end) 142 throws com.liferay.portal.kernel.exception.SystemException { 143 return getPersistence().findByUuid(uuid, start, end); 144 } 145 146 /** 147 * Returns an ordered range of all the message boards bans where uuid = ?. 148 * 149 * <p> 150 * 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. 151 * </p> 152 * 153 * @param uuid the uuid 154 * @param start the lower bound of the range of message boards bans 155 * @param end the upper bound of the range of message boards bans (not inclusive) 156 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 157 * @return the ordered range of matching message boards bans 158 * @throws SystemException if a system exception occurred 159 */ 160 public static java.util.List<com.liferay.portlet.messageboards.model.MBBan> findByUuid( 161 java.lang.String uuid, int start, int end, 162 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 163 throws com.liferay.portal.kernel.exception.SystemException { 164 return getPersistence().findByUuid(uuid, start, end, orderByComparator); 165 } 166 167 /** 168 * Returns the first message boards ban in the ordered set where uuid = ?. 169 * 170 * @param uuid the uuid 171 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 172 * @return the first matching message boards ban 173 * @throws com.liferay.portlet.messageboards.NoSuchBanException if a matching message boards ban could not be found 174 * @throws SystemException if a system exception occurred 175 */ 176 public static com.liferay.portlet.messageboards.model.MBBan findByUuid_First( 177 java.lang.String uuid, 178 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 179 throws com.liferay.portal.kernel.exception.SystemException, 180 com.liferay.portlet.messageboards.NoSuchBanException { 181 return getPersistence().findByUuid_First(uuid, orderByComparator); 182 } 183 184 /** 185 * Returns the first message boards ban in the ordered set where uuid = ?. 186 * 187 * @param uuid the uuid 188 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 189 * @return the first matching message boards ban, or <code>null</code> if a matching message boards ban could not be found 190 * @throws SystemException if a system exception occurred 191 */ 192 public static com.liferay.portlet.messageboards.model.MBBan fetchByUuid_First( 193 java.lang.String uuid, 194 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 195 throws com.liferay.portal.kernel.exception.SystemException { 196 return getPersistence().fetchByUuid_First(uuid, orderByComparator); 197 } 198 199 /** 200 * Returns the last message boards ban in the ordered set where uuid = ?. 201 * 202 * @param uuid the uuid 203 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 204 * @return the last matching message boards ban 205 * @throws com.liferay.portlet.messageboards.NoSuchBanException if a matching message boards ban could not be found 206 * @throws SystemException if a system exception occurred 207 */ 208 public static com.liferay.portlet.messageboards.model.MBBan findByUuid_Last( 209 java.lang.String uuid, 210 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 211 throws com.liferay.portal.kernel.exception.SystemException, 212 com.liferay.portlet.messageboards.NoSuchBanException { 213 return getPersistence().findByUuid_Last(uuid, orderByComparator); 214 } 215 216 /** 217 * Returns the last message boards ban in the ordered set where uuid = ?. 218 * 219 * @param uuid the uuid 220 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 221 * @return the last matching message boards ban, or <code>null</code> if a matching message boards ban could not be found 222 * @throws SystemException if a system exception occurred 223 */ 224 public static com.liferay.portlet.messageboards.model.MBBan fetchByUuid_Last( 225 java.lang.String uuid, 226 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 227 throws com.liferay.portal.kernel.exception.SystemException { 228 return getPersistence().fetchByUuid_Last(uuid, orderByComparator); 229 } 230 231 /** 232 * Returns the message boards bans before and after the current message boards ban in the ordered set where uuid = ?. 233 * 234 * @param banId the primary key of the current message boards ban 235 * @param uuid the uuid 236 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 237 * @return the previous, current, and next message boards ban 238 * @throws com.liferay.portlet.messageboards.NoSuchBanException if a message boards ban with the primary key could not be found 239 * @throws SystemException if a system exception occurred 240 */ 241 public static com.liferay.portlet.messageboards.model.MBBan[] findByUuid_PrevAndNext( 242 long banId, java.lang.String uuid, 243 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 244 throws com.liferay.portal.kernel.exception.SystemException, 245 com.liferay.portlet.messageboards.NoSuchBanException { 246 return getPersistence() 247 .findByUuid_PrevAndNext(banId, uuid, orderByComparator); 248 } 249 250 /** 251 * Removes all the message boards bans where uuid = ? from the database. 252 * 253 * @param uuid the uuid 254 * @throws SystemException if a system exception occurred 255 */ 256 public static void removeByUuid(java.lang.String uuid) 257 throws com.liferay.portal.kernel.exception.SystemException { 258 getPersistence().removeByUuid(uuid); 259 } 260 261 /** 262 * Returns the number of message boards bans where uuid = ?. 263 * 264 * @param uuid the uuid 265 * @return the number of matching message boards bans 266 * @throws SystemException if a system exception occurred 267 */ 268 public static int countByUuid(java.lang.String uuid) 269 throws com.liferay.portal.kernel.exception.SystemException { 270 return getPersistence().countByUuid(uuid); 271 } 272 273 /** 274 * Returns the message boards ban where uuid = ? and groupId = ? or throws a {@link com.liferay.portlet.messageboards.NoSuchBanException} if it could not be found. 275 * 276 * @param uuid the uuid 277 * @param groupId the group ID 278 * @return the matching message boards ban 279 * @throws com.liferay.portlet.messageboards.NoSuchBanException if a matching message boards ban could not be found 280 * @throws SystemException if a system exception occurred 281 */ 282 public static com.liferay.portlet.messageboards.model.MBBan findByUUID_G( 283 java.lang.String uuid, long groupId) 284 throws com.liferay.portal.kernel.exception.SystemException, 285 com.liferay.portlet.messageboards.NoSuchBanException { 286 return getPersistence().findByUUID_G(uuid, groupId); 287 } 288 289 /** 290 * Returns the message boards ban where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 291 * 292 * @param uuid the uuid 293 * @param groupId the group ID 294 * @return the matching message boards ban, or <code>null</code> if a matching message boards ban could not be found 295 * @throws SystemException if a system exception occurred 296 */ 297 public static com.liferay.portlet.messageboards.model.MBBan fetchByUUID_G( 298 java.lang.String uuid, long groupId) 299 throws com.liferay.portal.kernel.exception.SystemException { 300 return getPersistence().fetchByUUID_G(uuid, groupId); 301 } 302 303 /** 304 * 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. 305 * 306 * @param uuid the uuid 307 * @param groupId the group ID 308 * @param retrieveFromCache whether to use the finder cache 309 * @return the matching message boards ban, or <code>null</code> if a matching message boards ban could not be found 310 * @throws SystemException if a system exception occurred 311 */ 312 public static com.liferay.portlet.messageboards.model.MBBan fetchByUUID_G( 313 java.lang.String uuid, long groupId, boolean retrieveFromCache) 314 throws com.liferay.portal.kernel.exception.SystemException { 315 return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache); 316 } 317 318 /** 319 * Removes the message boards ban where uuid = ? and groupId = ? from the database. 320 * 321 * @param uuid the uuid 322 * @param groupId the group ID 323 * @return the message boards ban that was removed 324 * @throws SystemException if a system exception occurred 325 */ 326 public static com.liferay.portlet.messageboards.model.MBBan removeByUUID_G( 327 java.lang.String uuid, long groupId) 328 throws com.liferay.portal.kernel.exception.SystemException, 329 com.liferay.portlet.messageboards.NoSuchBanException { 330 return getPersistence().removeByUUID_G(uuid, groupId); 331 } 332 333 /** 334 * Returns the number of message boards bans where uuid = ? and groupId = ?. 335 * 336 * @param uuid the uuid 337 * @param groupId the group ID 338 * @return the number of matching message boards bans 339 * @throws SystemException if a system exception occurred 340 */ 341 public static int countByUUID_G(java.lang.String uuid, long groupId) 342 throws com.liferay.portal.kernel.exception.SystemException { 343 return getPersistence().countByUUID_G(uuid, groupId); 344 } 345 346 /** 347 * Returns all the message boards bans where uuid = ? and companyId = ?. 348 * 349 * @param uuid the uuid 350 * @param companyId the company ID 351 * @return the matching message boards bans 352 * @throws SystemException if a system exception occurred 353 */ 354 public static java.util.List<com.liferay.portlet.messageboards.model.MBBan> findByUuid_C( 355 java.lang.String uuid, long companyId) 356 throws com.liferay.portal.kernel.exception.SystemException { 357 return getPersistence().findByUuid_C(uuid, companyId); 358 } 359 360 /** 361 * Returns a range of all the message boards bans where uuid = ? and companyId = ?. 362 * 363 * <p> 364 * 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. 365 * </p> 366 * 367 * @param uuid the uuid 368 * @param companyId the company ID 369 * @param start the lower bound of the range of message boards bans 370 * @param end the upper bound of the range of message boards bans (not inclusive) 371 * @return the range of matching message boards bans 372 * @throws SystemException if a system exception occurred 373 */ 374 public static java.util.List<com.liferay.portlet.messageboards.model.MBBan> findByUuid_C( 375 java.lang.String uuid, long companyId, int start, int end) 376 throws com.liferay.portal.kernel.exception.SystemException { 377 return getPersistence().findByUuid_C(uuid, companyId, start, end); 378 } 379 380 /** 381 * Returns an ordered range of all the message boards bans where uuid = ? and companyId = ?. 382 * 383 * <p> 384 * 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. 385 * </p> 386 * 387 * @param uuid the uuid 388 * @param companyId the company ID 389 * @param start the lower bound of the range of message boards bans 390 * @param end the upper bound of the range of message boards bans (not inclusive) 391 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 392 * @return the ordered range of matching message boards bans 393 * @throws SystemException if a system exception occurred 394 */ 395 public static java.util.List<com.liferay.portlet.messageboards.model.MBBan> findByUuid_C( 396 java.lang.String uuid, long companyId, int start, int end, 397 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 398 throws com.liferay.portal.kernel.exception.SystemException { 399 return getPersistence() 400 .findByUuid_C(uuid, companyId, start, end, orderByComparator); 401 } 402 403 /** 404 * Returns the first message boards ban in the ordered set where uuid = ? and companyId = ?. 405 * 406 * @param uuid the uuid 407 * @param companyId the company ID 408 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 409 * @return the first matching message boards ban 410 * @throws com.liferay.portlet.messageboards.NoSuchBanException if a matching message boards ban could not be found 411 * @throws SystemException if a system exception occurred 412 */ 413 public static com.liferay.portlet.messageboards.model.MBBan findByUuid_C_First( 414 java.lang.String uuid, long companyId, 415 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 416 throws com.liferay.portal.kernel.exception.SystemException, 417 com.liferay.portlet.messageboards.NoSuchBanException { 418 return getPersistence() 419 .findByUuid_C_First(uuid, companyId, orderByComparator); 420 } 421 422 /** 423 * Returns the first message boards ban in the ordered set where uuid = ? and companyId = ?. 424 * 425 * @param uuid the uuid 426 * @param companyId the company ID 427 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 428 * @return the first matching message boards ban, or <code>null</code> if a matching message boards ban could not be found 429 * @throws SystemException if a system exception occurred 430 */ 431 public static com.liferay.portlet.messageboards.model.MBBan fetchByUuid_C_First( 432 java.lang.String uuid, long companyId, 433 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 434 throws com.liferay.portal.kernel.exception.SystemException { 435 return getPersistence() 436 .fetchByUuid_C_First(uuid, companyId, orderByComparator); 437 } 438 439 /** 440 * Returns the last message boards ban in the ordered set where uuid = ? and companyId = ?. 441 * 442 * @param uuid the uuid 443 * @param companyId the company ID 444 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 445 * @return the last matching message boards ban 446 * @throws com.liferay.portlet.messageboards.NoSuchBanException if a matching message boards ban could not be found 447 * @throws SystemException if a system exception occurred 448 */ 449 public static com.liferay.portlet.messageboards.model.MBBan findByUuid_C_Last( 450 java.lang.String uuid, long companyId, 451 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 452 throws com.liferay.portal.kernel.exception.SystemException, 453 com.liferay.portlet.messageboards.NoSuchBanException { 454 return getPersistence() 455 .findByUuid_C_Last(uuid, companyId, orderByComparator); 456 } 457 458 /** 459 * Returns the last message boards ban in the ordered set where uuid = ? and companyId = ?. 460 * 461 * @param uuid the uuid 462 * @param companyId the company ID 463 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 464 * @return the last matching message boards ban, or <code>null</code> if a matching message boards ban could not be found 465 * @throws SystemException if a system exception occurred 466 */ 467 public static com.liferay.portlet.messageboards.model.MBBan fetchByUuid_C_Last( 468 java.lang.String uuid, long companyId, 469 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 470 throws com.liferay.portal.kernel.exception.SystemException { 471 return getPersistence() 472 .fetchByUuid_C_Last(uuid, companyId, orderByComparator); 473 } 474 475 /** 476 * Returns the message boards bans before and after the current message boards ban in the ordered set where uuid = ? and companyId = ?. 477 * 478 * @param banId the primary key of the current message boards ban 479 * @param uuid the uuid 480 * @param companyId the company ID 481 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 482 * @return the previous, current, and next message boards ban 483 * @throws com.liferay.portlet.messageboards.NoSuchBanException if a message boards ban with the primary key could not be found 484 * @throws SystemException if a system exception occurred 485 */ 486 public static com.liferay.portlet.messageboards.model.MBBan[] findByUuid_C_PrevAndNext( 487 long banId, java.lang.String uuid, long companyId, 488 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 489 throws com.liferay.portal.kernel.exception.SystemException, 490 com.liferay.portlet.messageboards.NoSuchBanException { 491 return getPersistence() 492 .findByUuid_C_PrevAndNext(banId, uuid, companyId, 493 orderByComparator); 494 } 495 496 /** 497 * Removes all the message boards bans where uuid = ? and companyId = ? from the database. 498 * 499 * @param uuid the uuid 500 * @param companyId the company ID 501 * @throws SystemException if a system exception occurred 502 */ 503 public static void removeByUuid_C(java.lang.String uuid, long companyId) 504 throws com.liferay.portal.kernel.exception.SystemException { 505 getPersistence().removeByUuid_C(uuid, companyId); 506 } 507 508 /** 509 * Returns the number of message boards bans where uuid = ? and companyId = ?. 510 * 511 * @param uuid the uuid 512 * @param companyId the company ID 513 * @return the number of matching message boards bans 514 * @throws SystemException if a system exception occurred 515 */ 516 public static int countByUuid_C(java.lang.String uuid, long companyId) 517 throws com.liferay.portal.kernel.exception.SystemException { 518 return getPersistence().countByUuid_C(uuid, companyId); 519 } 520 521 /** 522 * Returns all the message boards bans where groupId = ?. 523 * 524 * @param groupId the group ID 525 * @return the matching message boards bans 526 * @throws SystemException if a system exception occurred 527 */ 528 public static java.util.List<com.liferay.portlet.messageboards.model.MBBan> findByGroupId( 529 long groupId) 530 throws com.liferay.portal.kernel.exception.SystemException { 531 return getPersistence().findByGroupId(groupId); 532 } 533 534 /** 535 * Returns a range of all the message boards bans where groupId = ?. 536 * 537 * <p> 538 * 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. 539 * </p> 540 * 541 * @param groupId the group ID 542 * @param start the lower bound of the range of message boards bans 543 * @param end the upper bound of the range of message boards bans (not inclusive) 544 * @return the range of matching message boards bans 545 * @throws SystemException if a system exception occurred 546 */ 547 public static java.util.List<com.liferay.portlet.messageboards.model.MBBan> findByGroupId( 548 long groupId, int start, int end) 549 throws com.liferay.portal.kernel.exception.SystemException { 550 return getPersistence().findByGroupId(groupId, start, end); 551 } 552 553 /** 554 * Returns an ordered range of all the message boards bans where groupId = ?. 555 * 556 * <p> 557 * 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. 558 * </p> 559 * 560 * @param groupId the group ID 561 * @param start the lower bound of the range of message boards bans 562 * @param end the upper bound of the range of message boards bans (not inclusive) 563 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 564 * @return the ordered range of matching message boards bans 565 * @throws SystemException if a system exception occurred 566 */ 567 public static java.util.List<com.liferay.portlet.messageboards.model.MBBan> findByGroupId( 568 long groupId, int start, int end, 569 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 570 throws com.liferay.portal.kernel.exception.SystemException { 571 return getPersistence() 572 .findByGroupId(groupId, start, end, orderByComparator); 573 } 574 575 /** 576 * Returns the first message boards ban in the ordered set where groupId = ?. 577 * 578 * @param groupId the group ID 579 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 580 * @return the first matching message boards ban 581 * @throws com.liferay.portlet.messageboards.NoSuchBanException if a matching message boards ban could not be found 582 * @throws SystemException if a system exception occurred 583 */ 584 public static com.liferay.portlet.messageboards.model.MBBan findByGroupId_First( 585 long groupId, 586 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 587 throws com.liferay.portal.kernel.exception.SystemException, 588 com.liferay.portlet.messageboards.NoSuchBanException { 589 return getPersistence().findByGroupId_First(groupId, orderByComparator); 590 } 591 592 /** 593 * Returns the first message boards ban in the ordered set where groupId = ?. 594 * 595 * @param groupId the group ID 596 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 597 * @return the first matching message boards ban, or <code>null</code> if a matching message boards ban could not be found 598 * @throws SystemException if a system exception occurred 599 */ 600 public static com.liferay.portlet.messageboards.model.MBBan fetchByGroupId_First( 601 long groupId, 602 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 603 throws com.liferay.portal.kernel.exception.SystemException { 604 return getPersistence().fetchByGroupId_First(groupId, orderByComparator); 605 } 606 607 /** 608 * Returns the last message boards ban in the ordered set where groupId = ?. 609 * 610 * @param groupId the group ID 611 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 612 * @return the last matching message boards ban 613 * @throws com.liferay.portlet.messageboards.NoSuchBanException if a matching message boards ban could not be found 614 * @throws SystemException if a system exception occurred 615 */ 616 public static com.liferay.portlet.messageboards.model.MBBan findByGroupId_Last( 617 long groupId, 618 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 619 throws com.liferay.portal.kernel.exception.SystemException, 620 com.liferay.portlet.messageboards.NoSuchBanException { 621 return getPersistence().findByGroupId_Last(groupId, orderByComparator); 622 } 623 624 /** 625 * Returns the last message boards ban in the ordered set where groupId = ?. 626 * 627 * @param groupId the group ID 628 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 629 * @return the last matching message boards ban, or <code>null</code> if a matching message boards ban could not be found 630 * @throws SystemException if a system exception occurred 631 */ 632 public static com.liferay.portlet.messageboards.model.MBBan fetchByGroupId_Last( 633 long groupId, 634 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 635 throws com.liferay.portal.kernel.exception.SystemException { 636 return getPersistence().fetchByGroupId_Last(groupId, orderByComparator); 637 } 638 639 /** 640 * Returns the message boards bans before and after the current message boards ban in the ordered set where groupId = ?. 641 * 642 * @param banId the primary key of the current message boards ban 643 * @param groupId the group ID 644 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 645 * @return the previous, current, and next message boards ban 646 * @throws com.liferay.portlet.messageboards.NoSuchBanException if a message boards ban with the primary key could not be found 647 * @throws SystemException if a system exception occurred 648 */ 649 public static com.liferay.portlet.messageboards.model.MBBan[] findByGroupId_PrevAndNext( 650 long banId, long groupId, 651 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 652 throws com.liferay.portal.kernel.exception.SystemException, 653 com.liferay.portlet.messageboards.NoSuchBanException { 654 return getPersistence() 655 .findByGroupId_PrevAndNext(banId, groupId, orderByComparator); 656 } 657 658 /** 659 * Removes all the message boards bans where groupId = ? from the database. 660 * 661 * @param groupId the group ID 662 * @throws SystemException if a system exception occurred 663 */ 664 public static void removeByGroupId(long groupId) 665 throws com.liferay.portal.kernel.exception.SystemException { 666 getPersistence().removeByGroupId(groupId); 667 } 668 669 /** 670 * Returns the number of message boards bans where groupId = ?. 671 * 672 * @param groupId the group ID 673 * @return the number of matching message boards bans 674 * @throws SystemException if a system exception occurred 675 */ 676 public static int countByGroupId(long groupId) 677 throws com.liferay.portal.kernel.exception.SystemException { 678 return getPersistence().countByGroupId(groupId); 679 } 680 681 /** 682 * Returns all the message boards bans where userId = ?. 683 * 684 * @param userId the user ID 685 * @return the matching message boards bans 686 * @throws SystemException if a system exception occurred 687 */ 688 public static java.util.List<com.liferay.portlet.messageboards.model.MBBan> findByUserId( 689 long userId) throws com.liferay.portal.kernel.exception.SystemException { 690 return getPersistence().findByUserId(userId); 691 } 692 693 /** 694 * Returns a range of all the message boards bans where userId = ?. 695 * 696 * <p> 697 * 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. 698 * </p> 699 * 700 * @param userId the user ID 701 * @param start the lower bound of the range of message boards bans 702 * @param end the upper bound of the range of message boards bans (not inclusive) 703 * @return the range of matching message boards bans 704 * @throws SystemException if a system exception occurred 705 */ 706 public static java.util.List<com.liferay.portlet.messageboards.model.MBBan> findByUserId( 707 long userId, int start, int end) 708 throws com.liferay.portal.kernel.exception.SystemException { 709 return getPersistence().findByUserId(userId, start, end); 710 } 711 712 /** 713 * Returns an ordered range of all the message boards bans where userId = ?. 714 * 715 * <p> 716 * 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. 717 * </p> 718 * 719 * @param userId the user ID 720 * @param start the lower bound of the range of message boards bans 721 * @param end the upper bound of the range of message boards bans (not inclusive) 722 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 723 * @return the ordered range of matching message boards bans 724 * @throws SystemException if a system exception occurred 725 */ 726 public static java.util.List<com.liferay.portlet.messageboards.model.MBBan> findByUserId( 727 long userId, int start, int end, 728 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 729 throws com.liferay.portal.kernel.exception.SystemException { 730 return getPersistence() 731 .findByUserId(userId, start, end, orderByComparator); 732 } 733 734 /** 735 * Returns the first message boards ban in the ordered set where userId = ?. 736 * 737 * @param userId the user ID 738 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 739 * @return the first matching message boards ban 740 * @throws com.liferay.portlet.messageboards.NoSuchBanException if a matching message boards ban could not be found 741 * @throws SystemException if a system exception occurred 742 */ 743 public static com.liferay.portlet.messageboards.model.MBBan findByUserId_First( 744 long userId, 745 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 746 throws com.liferay.portal.kernel.exception.SystemException, 747 com.liferay.portlet.messageboards.NoSuchBanException { 748 return getPersistence().findByUserId_First(userId, orderByComparator); 749 } 750 751 /** 752 * Returns the first message boards ban in the ordered set where userId = ?. 753 * 754 * @param userId the user ID 755 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 756 * @return the first matching message boards ban, or <code>null</code> if a matching message boards ban could not be found 757 * @throws SystemException if a system exception occurred 758 */ 759 public static com.liferay.portlet.messageboards.model.MBBan fetchByUserId_First( 760 long userId, 761 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 762 throws com.liferay.portal.kernel.exception.SystemException { 763 return getPersistence().fetchByUserId_First(userId, orderByComparator); 764 } 765 766 /** 767 * Returns the last message boards ban in the ordered set where userId = ?. 768 * 769 * @param userId the user ID 770 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 771 * @return the last matching message boards ban 772 * @throws com.liferay.portlet.messageboards.NoSuchBanException if a matching message boards ban could not be found 773 * @throws SystemException if a system exception occurred 774 */ 775 public static com.liferay.portlet.messageboards.model.MBBan findByUserId_Last( 776 long userId, 777 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 778 throws com.liferay.portal.kernel.exception.SystemException, 779 com.liferay.portlet.messageboards.NoSuchBanException { 780 return getPersistence().findByUserId_Last(userId, orderByComparator); 781 } 782 783 /** 784 * Returns the last message boards ban in the ordered set where userId = ?. 785 * 786 * @param userId the user ID 787 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 788 * @return the last matching message boards ban, or <code>null</code> if a matching message boards ban could not be found 789 * @throws SystemException if a system exception occurred 790 */ 791 public static com.liferay.portlet.messageboards.model.MBBan fetchByUserId_Last( 792 long userId, 793 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 794 throws com.liferay.portal.kernel.exception.SystemException { 795 return getPersistence().fetchByUserId_Last(userId, orderByComparator); 796 } 797 798 /** 799 * Returns the message boards bans before and after the current message boards ban in the ordered set where userId = ?. 800 * 801 * @param banId the primary key of the current message boards ban 802 * @param userId the user ID 803 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 804 * @return the previous, current, and next message boards ban 805 * @throws com.liferay.portlet.messageboards.NoSuchBanException if a message boards ban with the primary key could not be found 806 * @throws SystemException if a system exception occurred 807 */ 808 public static com.liferay.portlet.messageboards.model.MBBan[] findByUserId_PrevAndNext( 809 long banId, long userId, 810 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 811 throws com.liferay.portal.kernel.exception.SystemException, 812 com.liferay.portlet.messageboards.NoSuchBanException { 813 return getPersistence() 814 .findByUserId_PrevAndNext(banId, userId, orderByComparator); 815 } 816 817 /** 818 * Removes all the message boards bans where userId = ? from the database. 819 * 820 * @param userId the user ID 821 * @throws SystemException if a system exception occurred 822 */ 823 public static void removeByUserId(long userId) 824 throws com.liferay.portal.kernel.exception.SystemException { 825 getPersistence().removeByUserId(userId); 826 } 827 828 /** 829 * Returns the number of message boards bans where userId = ?. 830 * 831 * @param userId the user ID 832 * @return the number of matching message boards bans 833 * @throws SystemException if a system exception occurred 834 */ 835 public static int countByUserId(long userId) 836 throws com.liferay.portal.kernel.exception.SystemException { 837 return getPersistence().countByUserId(userId); 838 } 839 840 /** 841 * Returns all the message boards bans where banUserId = ?. 842 * 843 * @param banUserId the ban user ID 844 * @return the matching message boards bans 845 * @throws SystemException if a system exception occurred 846 */ 847 public static java.util.List<com.liferay.portlet.messageboards.model.MBBan> findByBanUserId( 848 long banUserId) 849 throws com.liferay.portal.kernel.exception.SystemException { 850 return getPersistence().findByBanUserId(banUserId); 851 } 852 853 /** 854 * Returns a range of all the message boards bans where banUserId = ?. 855 * 856 * <p> 857 * 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. 858 * </p> 859 * 860 * @param banUserId the ban user ID 861 * @param start the lower bound of the range of message boards bans 862 * @param end the upper bound of the range of message boards bans (not inclusive) 863 * @return the range of matching message boards bans 864 * @throws SystemException if a system exception occurred 865 */ 866 public static java.util.List<com.liferay.portlet.messageboards.model.MBBan> findByBanUserId( 867 long banUserId, int start, int end) 868 throws com.liferay.portal.kernel.exception.SystemException { 869 return getPersistence().findByBanUserId(banUserId, start, end); 870 } 871 872 /** 873 * Returns an ordered range of all the message boards bans where banUserId = ?. 874 * 875 * <p> 876 * 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. 877 * </p> 878 * 879 * @param banUserId the ban user ID 880 * @param start the lower bound of the range of message boards bans 881 * @param end the upper bound of the range of message boards bans (not inclusive) 882 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 883 * @return the ordered range of matching message boards bans 884 * @throws SystemException if a system exception occurred 885 */ 886 public static java.util.List<com.liferay.portlet.messageboards.model.MBBan> findByBanUserId( 887 long banUserId, int start, int end, 888 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 889 throws com.liferay.portal.kernel.exception.SystemException { 890 return getPersistence() 891 .findByBanUserId(banUserId, start, end, orderByComparator); 892 } 893 894 /** 895 * Returns the first message boards ban in the ordered set where banUserId = ?. 896 * 897 * @param banUserId the ban user ID 898 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 899 * @return the first matching message boards ban 900 * @throws com.liferay.portlet.messageboards.NoSuchBanException if a matching message boards ban could not be found 901 * @throws SystemException if a system exception occurred 902 */ 903 public static com.liferay.portlet.messageboards.model.MBBan findByBanUserId_First( 904 long banUserId, 905 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 906 throws com.liferay.portal.kernel.exception.SystemException, 907 com.liferay.portlet.messageboards.NoSuchBanException { 908 return getPersistence() 909 .findByBanUserId_First(banUserId, orderByComparator); 910 } 911 912 /** 913 * Returns the first message boards ban in the ordered set where banUserId = ?. 914 * 915 * @param banUserId the ban user ID 916 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 917 * @return the first matching message boards ban, or <code>null</code> if a matching message boards ban could not be found 918 * @throws SystemException if a system exception occurred 919 */ 920 public static com.liferay.portlet.messageboards.model.MBBan fetchByBanUserId_First( 921 long banUserId, 922 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 923 throws com.liferay.portal.kernel.exception.SystemException { 924 return getPersistence() 925 .fetchByBanUserId_First(banUserId, orderByComparator); 926 } 927 928 /** 929 * Returns the last message boards ban in the ordered set where banUserId = ?. 930 * 931 * @param banUserId the ban user ID 932 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 933 * @return the last matching message boards ban 934 * @throws com.liferay.portlet.messageboards.NoSuchBanException if a matching message boards ban could not be found 935 * @throws SystemException if a system exception occurred 936 */ 937 public static com.liferay.portlet.messageboards.model.MBBan findByBanUserId_Last( 938 long banUserId, 939 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 940 throws com.liferay.portal.kernel.exception.SystemException, 941 com.liferay.portlet.messageboards.NoSuchBanException { 942 return getPersistence() 943 .findByBanUserId_Last(banUserId, orderByComparator); 944 } 945 946 /** 947 * Returns the last message boards ban in the ordered set where banUserId = ?. 948 * 949 * @param banUserId the ban user ID 950 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 951 * @return the last matching message boards ban, or <code>null</code> if a matching message boards ban could not be found 952 * @throws SystemException if a system exception occurred 953 */ 954 public static com.liferay.portlet.messageboards.model.MBBan fetchByBanUserId_Last( 955 long banUserId, 956 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 957 throws com.liferay.portal.kernel.exception.SystemException { 958 return getPersistence() 959 .fetchByBanUserId_Last(banUserId, orderByComparator); 960 } 961 962 /** 963 * Returns the message boards bans before and after the current message boards ban in the ordered set where banUserId = ?. 964 * 965 * @param banId the primary key of the current message boards ban 966 * @param banUserId the ban user ID 967 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 968 * @return the previous, current, and next message boards ban 969 * @throws com.liferay.portlet.messageboards.NoSuchBanException if a message boards ban with the primary key could not be found 970 * @throws SystemException if a system exception occurred 971 */ 972 public static com.liferay.portlet.messageboards.model.MBBan[] findByBanUserId_PrevAndNext( 973 long banId, long banUserId, 974 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 975 throws com.liferay.portal.kernel.exception.SystemException, 976 com.liferay.portlet.messageboards.NoSuchBanException { 977 return getPersistence() 978 .findByBanUserId_PrevAndNext(banId, banUserId, 979 orderByComparator); 980 } 981 982 /** 983 * Removes all the message boards bans where banUserId = ? from the database. 984 * 985 * @param banUserId the ban user ID 986 * @throws SystemException if a system exception occurred 987 */ 988 public static void removeByBanUserId(long banUserId) 989 throws com.liferay.portal.kernel.exception.SystemException { 990 getPersistence().removeByBanUserId(banUserId); 991 } 992 993 /** 994 * Returns the number of message boards bans where banUserId = ?. 995 * 996 * @param banUserId the ban user ID 997 * @return the number of matching message boards bans 998 * @throws SystemException if a system exception occurred 999 */ 1000 public static int countByBanUserId(long banUserId) 1001 throws com.liferay.portal.kernel.exception.SystemException { 1002 return getPersistence().countByBanUserId(banUserId); 1003 } 1004 1005 /** 1006 * Returns the message boards ban where groupId = ? and banUserId = ? or throws a {@link com.liferay.portlet.messageboards.NoSuchBanException} if it could not be found. 1007 * 1008 * @param groupId the group ID 1009 * @param banUserId the ban user ID 1010 * @return the matching message boards ban 1011 * @throws com.liferay.portlet.messageboards.NoSuchBanException if a matching message boards ban could not be found 1012 * @throws SystemException if a system exception occurred 1013 */ 1014 public static com.liferay.portlet.messageboards.model.MBBan findByG_B( 1015 long groupId, long banUserId) 1016 throws com.liferay.portal.kernel.exception.SystemException, 1017 com.liferay.portlet.messageboards.NoSuchBanException { 1018 return getPersistence().findByG_B(groupId, banUserId); 1019 } 1020 1021 /** 1022 * Returns the message boards ban where groupId = ? and banUserId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 1023 * 1024 * @param groupId the group ID 1025 * @param banUserId the ban user ID 1026 * @return the matching message boards ban, or <code>null</code> if a matching message boards ban could not be found 1027 * @throws SystemException if a system exception occurred 1028 */ 1029 public static com.liferay.portlet.messageboards.model.MBBan fetchByG_B( 1030 long groupId, long banUserId) 1031 throws com.liferay.portal.kernel.exception.SystemException { 1032 return getPersistence().fetchByG_B(groupId, banUserId); 1033 } 1034 1035 /** 1036 * 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. 1037 * 1038 * @param groupId the group ID 1039 * @param banUserId the ban user ID 1040 * @param retrieveFromCache whether to use the finder cache 1041 * @return the matching message boards ban, or <code>null</code> if a matching message boards ban could not be found 1042 * @throws SystemException if a system exception occurred 1043 */ 1044 public static com.liferay.portlet.messageboards.model.MBBan fetchByG_B( 1045 long groupId, long banUserId, boolean retrieveFromCache) 1046 throws com.liferay.portal.kernel.exception.SystemException { 1047 return getPersistence().fetchByG_B(groupId, banUserId, retrieveFromCache); 1048 } 1049 1050 /** 1051 * Removes the message boards ban where groupId = ? and banUserId = ? from the database. 1052 * 1053 * @param groupId the group ID 1054 * @param banUserId the ban user ID 1055 * @return the message boards ban that was removed 1056 * @throws SystemException if a system exception occurred 1057 */ 1058 public static com.liferay.portlet.messageboards.model.MBBan removeByG_B( 1059 long groupId, long banUserId) 1060 throws com.liferay.portal.kernel.exception.SystemException, 1061 com.liferay.portlet.messageboards.NoSuchBanException { 1062 return getPersistence().removeByG_B(groupId, banUserId); 1063 } 1064 1065 /** 1066 * Returns the number of message boards bans where groupId = ? and banUserId = ?. 1067 * 1068 * @param groupId the group ID 1069 * @param banUserId the ban user ID 1070 * @return the number of matching message boards bans 1071 * @throws SystemException if a system exception occurred 1072 */ 1073 public static int countByG_B(long groupId, long banUserId) 1074 throws com.liferay.portal.kernel.exception.SystemException { 1075 return getPersistence().countByG_B(groupId, banUserId); 1076 } 1077 1078 /** 1079 * Caches the message boards ban in the entity cache if it is enabled. 1080 * 1081 * @param mbBan the message boards ban 1082 */ 1083 public static void cacheResult( 1084 com.liferay.portlet.messageboards.model.MBBan mbBan) { 1085 getPersistence().cacheResult(mbBan); 1086 } 1087 1088 /** 1089 * Caches the message boards bans in the entity cache if it is enabled. 1090 * 1091 * @param mbBans the message boards bans 1092 */ 1093 public static void cacheResult( 1094 java.util.List<com.liferay.portlet.messageboards.model.MBBan> mbBans) { 1095 getPersistence().cacheResult(mbBans); 1096 } 1097 1098 /** 1099 * Creates a new message boards ban with the primary key. Does not add the message boards ban to the database. 1100 * 1101 * @param banId the primary key for the new message boards ban 1102 * @return the new message boards ban 1103 */ 1104 public static com.liferay.portlet.messageboards.model.MBBan create( 1105 long banId) { 1106 return getPersistence().create(banId); 1107 } 1108 1109 /** 1110 * Removes the message boards ban with the primary key from the database. Also notifies the appropriate model listeners. 1111 * 1112 * @param banId the primary key of the message boards ban 1113 * @return the message boards ban that was removed 1114 * @throws com.liferay.portlet.messageboards.NoSuchBanException if a message boards ban with the primary key could not be found 1115 * @throws SystemException if a system exception occurred 1116 */ 1117 public static com.liferay.portlet.messageboards.model.MBBan remove( 1118 long banId) 1119 throws com.liferay.portal.kernel.exception.SystemException, 1120 com.liferay.portlet.messageboards.NoSuchBanException { 1121 return getPersistence().remove(banId); 1122 } 1123 1124 public static com.liferay.portlet.messageboards.model.MBBan updateImpl( 1125 com.liferay.portlet.messageboards.model.MBBan mbBan) 1126 throws com.liferay.portal.kernel.exception.SystemException { 1127 return getPersistence().updateImpl(mbBan); 1128 } 1129 1130 /** 1131 * Returns the message boards ban with the primary key or throws a {@link com.liferay.portlet.messageboards.NoSuchBanException} if it could not be found. 1132 * 1133 * @param banId the primary key of the message boards ban 1134 * @return the message boards ban 1135 * @throws com.liferay.portlet.messageboards.NoSuchBanException if a message boards ban with the primary key could not be found 1136 * @throws SystemException if a system exception occurred 1137 */ 1138 public static com.liferay.portlet.messageboards.model.MBBan findByPrimaryKey( 1139 long banId) 1140 throws com.liferay.portal.kernel.exception.SystemException, 1141 com.liferay.portlet.messageboards.NoSuchBanException { 1142 return getPersistence().findByPrimaryKey(banId); 1143 } 1144 1145 /** 1146 * Returns the message boards ban with the primary key or returns <code>null</code> if it could not be found. 1147 * 1148 * @param banId the primary key of the message boards ban 1149 * @return the message boards ban, or <code>null</code> if a message boards ban with the primary key could not be found 1150 * @throws SystemException if a system exception occurred 1151 */ 1152 public static com.liferay.portlet.messageboards.model.MBBan fetchByPrimaryKey( 1153 long banId) throws com.liferay.portal.kernel.exception.SystemException { 1154 return getPersistence().fetchByPrimaryKey(banId); 1155 } 1156 1157 /** 1158 * Returns all the message boards bans. 1159 * 1160 * @return the message boards bans 1161 * @throws SystemException if a system exception occurred 1162 */ 1163 public static java.util.List<com.liferay.portlet.messageboards.model.MBBan> findAll() 1164 throws com.liferay.portal.kernel.exception.SystemException { 1165 return getPersistence().findAll(); 1166 } 1167 1168 /** 1169 * Returns a range of all the message boards bans. 1170 * 1171 * <p> 1172 * 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. 1173 * </p> 1174 * 1175 * @param start the lower bound of the range of message boards bans 1176 * @param end the upper bound of the range of message boards bans (not inclusive) 1177 * @return the range of message boards bans 1178 * @throws SystemException if a system exception occurred 1179 */ 1180 public static java.util.List<com.liferay.portlet.messageboards.model.MBBan> findAll( 1181 int start, int end) 1182 throws com.liferay.portal.kernel.exception.SystemException { 1183 return getPersistence().findAll(start, end); 1184 } 1185 1186 /** 1187 * Returns an ordered range of all the message boards bans. 1188 * 1189 * <p> 1190 * 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. 1191 * </p> 1192 * 1193 * @param start the lower bound of the range of message boards bans 1194 * @param end the upper bound of the range of message boards bans (not inclusive) 1195 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1196 * @return the ordered range of message boards bans 1197 * @throws SystemException if a system exception occurred 1198 */ 1199 public static java.util.List<com.liferay.portlet.messageboards.model.MBBan> findAll( 1200 int start, int end, 1201 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1202 throws com.liferay.portal.kernel.exception.SystemException { 1203 return getPersistence().findAll(start, end, orderByComparator); 1204 } 1205 1206 /** 1207 * Removes all the message boards bans from the database. 1208 * 1209 * @throws SystemException if a system exception occurred 1210 */ 1211 public static void removeAll() 1212 throws com.liferay.portal.kernel.exception.SystemException { 1213 getPersistence().removeAll(); 1214 } 1215 1216 /** 1217 * Returns the number of message boards bans. 1218 * 1219 * @return the number of message boards bans 1220 * @throws SystemException if a system exception occurred 1221 */ 1222 public static int countAll() 1223 throws com.liferay.portal.kernel.exception.SystemException { 1224 return getPersistence().countAll(); 1225 } 1226 1227 public static MBBanPersistence getPersistence() { 1228 if (_persistence == null) { 1229 _persistence = (MBBanPersistence)PortalBeanLocatorUtil.locate(MBBanPersistence.class.getName()); 1230 1231 ReferenceRegistry.registerReference(MBBanUtil.class, "_persistence"); 1232 } 1233 1234 return _persistence; 1235 } 1236 1237 /** 1238 * @deprecated As of 6.2.0 1239 */ 1240 public void setPersistence(MBBanPersistence persistence) { 1241 } 1242 1243 private static MBBanPersistence _persistence; 1244 }