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