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