001 /** 002 * Copyright (c) 2000-2010 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.service.ServiceContext; 022 023 import com.liferay.portlet.messageboards.model.MBMailingList; 024 025 import java.util.List; 026 027 /** 028 * The persistence utility for the message boards mailing list service. 029 * 030 * <p> 031 * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regnerate this class. 032 * </p> 033 * 034 * @author Brian Wing Shun Chan 035 * @see MBMailingListPersistence 036 * @see MBMailingListPersistenceImpl 037 * @generated 038 */ 039 public class MBMailingListUtil { 040 /** 041 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache() 042 */ 043 public static void clearCache() { 044 getPersistence().clearCache(); 045 } 046 047 /** 048 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel) 049 */ 050 public static void clearCache(MBMailingList mbMailingList) { 051 getPersistence().clearCache(mbMailingList); 052 } 053 054 /** 055 * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery) 056 */ 057 public long countWithDynamicQuery(DynamicQuery dynamicQuery) 058 throws SystemException { 059 return getPersistence().countWithDynamicQuery(dynamicQuery); 060 } 061 062 /** 063 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery) 064 */ 065 public static List<MBMailingList> findWithDynamicQuery( 066 DynamicQuery dynamicQuery) throws SystemException { 067 return getPersistence().findWithDynamicQuery(dynamicQuery); 068 } 069 070 /** 071 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int) 072 */ 073 public static List<MBMailingList> findWithDynamicQuery( 074 DynamicQuery dynamicQuery, int start, int end) 075 throws SystemException { 076 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end); 077 } 078 079 /** 080 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator) 081 */ 082 public static List<MBMailingList> findWithDynamicQuery( 083 DynamicQuery dynamicQuery, int start, int end, 084 OrderByComparator orderByComparator) throws SystemException { 085 return getPersistence() 086 .findWithDynamicQuery(dynamicQuery, start, end, 087 orderByComparator); 088 } 089 090 /** 091 * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel) 092 */ 093 public static MBMailingList remove(MBMailingList mbMailingList) 094 throws SystemException { 095 return getPersistence().remove(mbMailingList); 096 } 097 098 /** 099 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean) 100 */ 101 public static MBMailingList update(MBMailingList mbMailingList, 102 boolean merge) throws SystemException { 103 return getPersistence().update(mbMailingList, merge); 104 } 105 106 /** 107 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext) 108 */ 109 public static MBMailingList update(MBMailingList mbMailingList, 110 boolean merge, ServiceContext serviceContext) throws SystemException { 111 return getPersistence().update(mbMailingList, merge, serviceContext); 112 } 113 114 /** 115 * Caches the message boards mailing list in the entity cache if it is enabled. 116 * 117 * @param mbMailingList the message boards mailing list to cache 118 */ 119 public static void cacheResult( 120 com.liferay.portlet.messageboards.model.MBMailingList mbMailingList) { 121 getPersistence().cacheResult(mbMailingList); 122 } 123 124 /** 125 * Caches the message boards mailing lists in the entity cache if it is enabled. 126 * 127 * @param mbMailingLists the message boards mailing lists to cache 128 */ 129 public static void cacheResult( 130 java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> mbMailingLists) { 131 getPersistence().cacheResult(mbMailingLists); 132 } 133 134 /** 135 * Creates a new message boards mailing list with the primary key. 136 * 137 * @param mailingListId the primary key for the new message boards mailing list 138 * @return the new message boards mailing list 139 */ 140 public static com.liferay.portlet.messageboards.model.MBMailingList create( 141 long mailingListId) { 142 return getPersistence().create(mailingListId); 143 } 144 145 /** 146 * Removes the message boards mailing list with the primary key from the database. Also notifies the appropriate model listeners. 147 * 148 * @param mailingListId the primary key of the message boards mailing list to remove 149 * @return the message boards mailing list that was removed 150 * @throws com.liferay.portlet.messageboards.NoSuchMailingListException if a message boards mailing list with the primary key could not be found 151 * @throws SystemException if a system exception occurred 152 */ 153 public static com.liferay.portlet.messageboards.model.MBMailingList remove( 154 long mailingListId) 155 throws com.liferay.portal.kernel.exception.SystemException, 156 com.liferay.portlet.messageboards.NoSuchMailingListException { 157 return getPersistence().remove(mailingListId); 158 } 159 160 public static com.liferay.portlet.messageboards.model.MBMailingList updateImpl( 161 com.liferay.portlet.messageboards.model.MBMailingList mbMailingList, 162 boolean merge) 163 throws com.liferay.portal.kernel.exception.SystemException { 164 return getPersistence().updateImpl(mbMailingList, merge); 165 } 166 167 /** 168 * Finds the message boards mailing list with the primary key or throws a {@link com.liferay.portlet.messageboards.NoSuchMailingListException} if it could not be found. 169 * 170 * @param mailingListId the primary key of the message boards mailing list to find 171 * @return the message boards mailing list 172 * @throws com.liferay.portlet.messageboards.NoSuchMailingListException if a message boards mailing list with the primary key could not be found 173 * @throws SystemException if a system exception occurred 174 */ 175 public static com.liferay.portlet.messageboards.model.MBMailingList findByPrimaryKey( 176 long mailingListId) 177 throws com.liferay.portal.kernel.exception.SystemException, 178 com.liferay.portlet.messageboards.NoSuchMailingListException { 179 return getPersistence().findByPrimaryKey(mailingListId); 180 } 181 182 /** 183 * Finds the message boards mailing list with the primary key or returns <code>null</code> if it could not be found. 184 * 185 * @param mailingListId the primary key of the message boards mailing list to find 186 * @return the message boards mailing list, or <code>null</code> if a message boards mailing list with the primary key could not be found 187 * @throws SystemException if a system exception occurred 188 */ 189 public static com.liferay.portlet.messageboards.model.MBMailingList fetchByPrimaryKey( 190 long mailingListId) 191 throws com.liferay.portal.kernel.exception.SystemException { 192 return getPersistence().fetchByPrimaryKey(mailingListId); 193 } 194 195 /** 196 * Finds all the message boards mailing lists where uuid = ?. 197 * 198 * @param uuid the uuid to search with 199 * @return the matching message boards mailing lists 200 * @throws SystemException if a system exception occurred 201 */ 202 public static java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> findByUuid( 203 java.lang.String uuid) 204 throws com.liferay.portal.kernel.exception.SystemException { 205 return getPersistence().findByUuid(uuid); 206 } 207 208 /** 209 * Finds a range of all the message boards mailing lists where uuid = ?. 210 * 211 * <p> 212 * 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. 213 * </p> 214 * 215 * @param uuid the uuid to search with 216 * @param start the lower bound of the range of message boards mailing lists to return 217 * @param end the upper bound of the range of message boards mailing lists to return (not inclusive) 218 * @return the range of matching message boards mailing lists 219 * @throws SystemException if a system exception occurred 220 */ 221 public static java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> findByUuid( 222 java.lang.String uuid, int start, int end) 223 throws com.liferay.portal.kernel.exception.SystemException { 224 return getPersistence().findByUuid(uuid, start, end); 225 } 226 227 /** 228 * Finds an ordered range of all the message boards mailing lists where uuid = ?. 229 * 230 * <p> 231 * 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. 232 * </p> 233 * 234 * @param uuid the uuid to search with 235 * @param start the lower bound of the range of message boards mailing lists to return 236 * @param end the upper bound of the range of message boards mailing lists to return (not inclusive) 237 * @param orderByComparator the comparator to order the results by 238 * @return the ordered range of matching message boards mailing lists 239 * @throws SystemException if a system exception occurred 240 */ 241 public static java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> findByUuid( 242 java.lang.String uuid, int start, int end, 243 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 244 throws com.liferay.portal.kernel.exception.SystemException { 245 return getPersistence().findByUuid(uuid, start, end, orderByComparator); 246 } 247 248 /** 249 * Finds the first message boards mailing list in the ordered set where uuid = ?. 250 * 251 * <p> 252 * 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. 253 * </p> 254 * 255 * @param uuid the uuid to search with 256 * @param orderByComparator the comparator to order the set by 257 * @return the first matching message boards mailing list 258 * @throws com.liferay.portlet.messageboards.NoSuchMailingListException if a matching message boards mailing list could not be found 259 * @throws SystemException if a system exception occurred 260 */ 261 public static com.liferay.portlet.messageboards.model.MBMailingList findByUuid_First( 262 java.lang.String uuid, 263 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 264 throws com.liferay.portal.kernel.exception.SystemException, 265 com.liferay.portlet.messageboards.NoSuchMailingListException { 266 return getPersistence().findByUuid_First(uuid, orderByComparator); 267 } 268 269 /** 270 * Finds the last message boards mailing list in the ordered set where uuid = ?. 271 * 272 * <p> 273 * 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. 274 * </p> 275 * 276 * @param uuid the uuid to search with 277 * @param orderByComparator the comparator to order the set by 278 * @return the last matching message boards mailing list 279 * @throws com.liferay.portlet.messageboards.NoSuchMailingListException if a matching message boards mailing list could not be found 280 * @throws SystemException if a system exception occurred 281 */ 282 public static com.liferay.portlet.messageboards.model.MBMailingList findByUuid_Last( 283 java.lang.String uuid, 284 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 285 throws com.liferay.portal.kernel.exception.SystemException, 286 com.liferay.portlet.messageboards.NoSuchMailingListException { 287 return getPersistence().findByUuid_Last(uuid, orderByComparator); 288 } 289 290 /** 291 * Finds the message boards mailing lists before and after the current message boards mailing list in the ordered set where uuid = ?. 292 * 293 * <p> 294 * 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. 295 * </p> 296 * 297 * @param mailingListId the primary key of the current message boards mailing list 298 * @param uuid the uuid to search with 299 * @param orderByComparator the comparator to order the set by 300 * @return the previous, current, and next message boards mailing list 301 * @throws com.liferay.portlet.messageboards.NoSuchMailingListException if a message boards mailing list with the primary key could not be found 302 * @throws SystemException if a system exception occurred 303 */ 304 public static com.liferay.portlet.messageboards.model.MBMailingList[] findByUuid_PrevAndNext( 305 long mailingListId, java.lang.String uuid, 306 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 307 throws com.liferay.portal.kernel.exception.SystemException, 308 com.liferay.portlet.messageboards.NoSuchMailingListException { 309 return getPersistence() 310 .findByUuid_PrevAndNext(mailingListId, uuid, 311 orderByComparator); 312 } 313 314 /** 315 * Finds the message boards mailing list where uuid = ? and groupId = ? or throws a {@link com.liferay.portlet.messageboards.NoSuchMailingListException} if it could not be found. 316 * 317 * @param uuid the uuid to search with 318 * @param groupId the group id to search with 319 * @return the matching message boards mailing list 320 * @throws com.liferay.portlet.messageboards.NoSuchMailingListException if a matching message boards mailing list could not be found 321 * @throws SystemException if a system exception occurred 322 */ 323 public static com.liferay.portlet.messageboards.model.MBMailingList findByUUID_G( 324 java.lang.String uuid, long groupId) 325 throws com.liferay.portal.kernel.exception.SystemException, 326 com.liferay.portlet.messageboards.NoSuchMailingListException { 327 return getPersistence().findByUUID_G(uuid, groupId); 328 } 329 330 /** 331 * Finds the message boards mailing list where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 332 * 333 * @param uuid the uuid to search with 334 * @param groupId the group id to search with 335 * @return the matching message boards mailing list, or <code>null</code> if a matching message boards mailing list could not be found 336 * @throws SystemException if a system exception occurred 337 */ 338 public static com.liferay.portlet.messageboards.model.MBMailingList fetchByUUID_G( 339 java.lang.String uuid, long groupId) 340 throws com.liferay.portal.kernel.exception.SystemException { 341 return getPersistence().fetchByUUID_G(uuid, groupId); 342 } 343 344 /** 345 * Finds 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. 346 * 347 * @param uuid the uuid to search with 348 * @param groupId the group id to search with 349 * @return the matching message boards mailing list, or <code>null</code> if a matching message boards mailing list could not be found 350 * @throws SystemException if a system exception occurred 351 */ 352 public static com.liferay.portlet.messageboards.model.MBMailingList fetchByUUID_G( 353 java.lang.String uuid, long groupId, boolean retrieveFromCache) 354 throws com.liferay.portal.kernel.exception.SystemException { 355 return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache); 356 } 357 358 /** 359 * Finds all the message boards mailing lists where active = ?. 360 * 361 * @param active the active to search with 362 * @return the matching message boards mailing lists 363 * @throws SystemException if a system exception occurred 364 */ 365 public static java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> findByActive( 366 boolean active) 367 throws com.liferay.portal.kernel.exception.SystemException { 368 return getPersistence().findByActive(active); 369 } 370 371 /** 372 * Finds a range of all the message boards mailing lists where active = ?. 373 * 374 * <p> 375 * 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. 376 * </p> 377 * 378 * @param active the active to search with 379 * @param start the lower bound of the range of message boards mailing lists to return 380 * @param end the upper bound of the range of message boards mailing lists to return (not inclusive) 381 * @return the range of matching message boards mailing lists 382 * @throws SystemException if a system exception occurred 383 */ 384 public static java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> findByActive( 385 boolean active, int start, int end) 386 throws com.liferay.portal.kernel.exception.SystemException { 387 return getPersistence().findByActive(active, start, end); 388 } 389 390 /** 391 * Finds an ordered range of all the message boards mailing lists where active = ?. 392 * 393 * <p> 394 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 395 * </p> 396 * 397 * @param active the active to search with 398 * @param start the lower bound of the range of message boards mailing lists to return 399 * @param end the upper bound of the range of message boards mailing lists to return (not inclusive) 400 * @param orderByComparator the comparator to order the results by 401 * @return the ordered range of matching message boards mailing lists 402 * @throws SystemException if a system exception occurred 403 */ 404 public static java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> findByActive( 405 boolean active, int start, int end, 406 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 407 throws com.liferay.portal.kernel.exception.SystemException { 408 return getPersistence() 409 .findByActive(active, start, end, orderByComparator); 410 } 411 412 /** 413 * Finds the first message boards mailing list in the ordered set where active = ?. 414 * 415 * <p> 416 * 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. 417 * </p> 418 * 419 * @param active the active to search with 420 * @param orderByComparator the comparator to order the set by 421 * @return the first matching message boards mailing list 422 * @throws com.liferay.portlet.messageboards.NoSuchMailingListException if a matching message boards mailing list could not be found 423 * @throws SystemException if a system exception occurred 424 */ 425 public static com.liferay.portlet.messageboards.model.MBMailingList findByActive_First( 426 boolean active, 427 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 428 throws com.liferay.portal.kernel.exception.SystemException, 429 com.liferay.portlet.messageboards.NoSuchMailingListException { 430 return getPersistence().findByActive_First(active, orderByComparator); 431 } 432 433 /** 434 * Finds the last message boards mailing list in the ordered set where active = ?. 435 * 436 * <p> 437 * 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. 438 * </p> 439 * 440 * @param active the active to search with 441 * @param orderByComparator the comparator to order the set by 442 * @return the last matching message boards mailing list 443 * @throws com.liferay.portlet.messageboards.NoSuchMailingListException if a matching message boards mailing list could not be found 444 * @throws SystemException if a system exception occurred 445 */ 446 public static com.liferay.portlet.messageboards.model.MBMailingList findByActive_Last( 447 boolean active, 448 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 449 throws com.liferay.portal.kernel.exception.SystemException, 450 com.liferay.portlet.messageboards.NoSuchMailingListException { 451 return getPersistence().findByActive_Last(active, orderByComparator); 452 } 453 454 /** 455 * Finds the message boards mailing lists before and after the current message boards mailing list in the ordered set where active = ?. 456 * 457 * <p> 458 * 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. 459 * </p> 460 * 461 * @param mailingListId the primary key of the current message boards mailing list 462 * @param active the active to search with 463 * @param orderByComparator the comparator to order the set by 464 * @return the previous, current, and next message boards mailing list 465 * @throws com.liferay.portlet.messageboards.NoSuchMailingListException if a message boards mailing list with the primary key could not be found 466 * @throws SystemException if a system exception occurred 467 */ 468 public static com.liferay.portlet.messageboards.model.MBMailingList[] findByActive_PrevAndNext( 469 long mailingListId, boolean active, 470 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 471 throws com.liferay.portal.kernel.exception.SystemException, 472 com.liferay.portlet.messageboards.NoSuchMailingListException { 473 return getPersistence() 474 .findByActive_PrevAndNext(mailingListId, active, 475 orderByComparator); 476 } 477 478 /** 479 * Finds the message boards mailing list where groupId = ? and categoryId = ? or throws a {@link com.liferay.portlet.messageboards.NoSuchMailingListException} if it could not be found. 480 * 481 * @param groupId the group id to search with 482 * @param categoryId the category id to search with 483 * @return the matching message boards mailing list 484 * @throws com.liferay.portlet.messageboards.NoSuchMailingListException if a matching message boards mailing list could not be found 485 * @throws SystemException if a system exception occurred 486 */ 487 public static com.liferay.portlet.messageboards.model.MBMailingList findByG_C( 488 long groupId, long categoryId) 489 throws com.liferay.portal.kernel.exception.SystemException, 490 com.liferay.portlet.messageboards.NoSuchMailingListException { 491 return getPersistence().findByG_C(groupId, categoryId); 492 } 493 494 /** 495 * Finds the message boards mailing list where groupId = ? and categoryId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 496 * 497 * @param groupId the group id to search with 498 * @param categoryId the category id to search with 499 * @return the matching message boards mailing list, or <code>null</code> if a matching message boards mailing list could not be found 500 * @throws SystemException if a system exception occurred 501 */ 502 public static com.liferay.portlet.messageboards.model.MBMailingList fetchByG_C( 503 long groupId, long categoryId) 504 throws com.liferay.portal.kernel.exception.SystemException { 505 return getPersistence().fetchByG_C(groupId, categoryId); 506 } 507 508 /** 509 * Finds 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. 510 * 511 * @param groupId the group id to search with 512 * @param categoryId the category id to search with 513 * @return the matching message boards mailing list, or <code>null</code> if a matching message boards mailing list could not be found 514 * @throws SystemException if a system exception occurred 515 */ 516 public static com.liferay.portlet.messageboards.model.MBMailingList fetchByG_C( 517 long groupId, long categoryId, boolean retrieveFromCache) 518 throws com.liferay.portal.kernel.exception.SystemException { 519 return getPersistence() 520 .fetchByG_C(groupId, categoryId, retrieveFromCache); 521 } 522 523 /** 524 * Finds all the message boards mailing lists. 525 * 526 * @return the message boards mailing lists 527 * @throws SystemException if a system exception occurred 528 */ 529 public static java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> findAll() 530 throws com.liferay.portal.kernel.exception.SystemException { 531 return getPersistence().findAll(); 532 } 533 534 /** 535 * Finds a range of all the message boards mailing lists. 536 * 537 * <p> 538 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 539 * </p> 540 * 541 * @param start the lower bound of the range of message boards mailing lists to return 542 * @param end the upper bound of the range of message boards mailing lists to return (not inclusive) 543 * @return the range of message boards mailing lists 544 * @throws SystemException if a system exception occurred 545 */ 546 public static java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> findAll( 547 int start, int end) 548 throws com.liferay.portal.kernel.exception.SystemException { 549 return getPersistence().findAll(start, end); 550 } 551 552 /** 553 * Finds an ordered range of all the message boards mailing lists. 554 * 555 * <p> 556 * 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. 557 * </p> 558 * 559 * @param start the lower bound of the range of message boards mailing lists to return 560 * @param end the upper bound of the range of message boards mailing lists to return (not inclusive) 561 * @param orderByComparator the comparator to order the results by 562 * @return the ordered range of message boards mailing lists 563 * @throws SystemException if a system exception occurred 564 */ 565 public static java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> findAll( 566 int start, int end, 567 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 568 throws com.liferay.portal.kernel.exception.SystemException { 569 return getPersistence().findAll(start, end, orderByComparator); 570 } 571 572 /** 573 * Removes all the message boards mailing lists where uuid = ? from the database. 574 * 575 * @param uuid the uuid to search with 576 * @throws SystemException if a system exception occurred 577 */ 578 public static void removeByUuid(java.lang.String uuid) 579 throws com.liferay.portal.kernel.exception.SystemException { 580 getPersistence().removeByUuid(uuid); 581 } 582 583 /** 584 * Removes the message boards mailing list where uuid = ? and groupId = ? from the database. 585 * 586 * @param uuid the uuid to search with 587 * @param groupId the group id to search with 588 * @throws SystemException if a system exception occurred 589 */ 590 public static void removeByUUID_G(java.lang.String uuid, long groupId) 591 throws com.liferay.portal.kernel.exception.SystemException, 592 com.liferay.portlet.messageboards.NoSuchMailingListException { 593 getPersistence().removeByUUID_G(uuid, groupId); 594 } 595 596 /** 597 * Removes all the message boards mailing lists where active = ? from the database. 598 * 599 * @param active the active to search with 600 * @throws SystemException if a system exception occurred 601 */ 602 public static void removeByActive(boolean active) 603 throws com.liferay.portal.kernel.exception.SystemException { 604 getPersistence().removeByActive(active); 605 } 606 607 /** 608 * Removes the message boards mailing list where groupId = ? and categoryId = ? from the database. 609 * 610 * @param groupId the group id to search with 611 * @param categoryId the category id to search with 612 * @throws SystemException if a system exception occurred 613 */ 614 public static void removeByG_C(long groupId, long categoryId) 615 throws com.liferay.portal.kernel.exception.SystemException, 616 com.liferay.portlet.messageboards.NoSuchMailingListException { 617 getPersistence().removeByG_C(groupId, categoryId); 618 } 619 620 /** 621 * Removes all the message boards mailing lists from the database. 622 * 623 * @throws SystemException if a system exception occurred 624 */ 625 public static void removeAll() 626 throws com.liferay.portal.kernel.exception.SystemException { 627 getPersistence().removeAll(); 628 } 629 630 /** 631 * Counts all the message boards mailing lists where uuid = ?. 632 * 633 * @param uuid the uuid to search with 634 * @return the number of matching message boards mailing lists 635 * @throws SystemException if a system exception occurred 636 */ 637 public static int countByUuid(java.lang.String uuid) 638 throws com.liferay.portal.kernel.exception.SystemException { 639 return getPersistence().countByUuid(uuid); 640 } 641 642 /** 643 * Counts all the message boards mailing lists where uuid = ? and groupId = ?. 644 * 645 * @param uuid the uuid to search with 646 * @param groupId the group id to search with 647 * @return the number of matching message boards mailing lists 648 * @throws SystemException if a system exception occurred 649 */ 650 public static int countByUUID_G(java.lang.String uuid, long groupId) 651 throws com.liferay.portal.kernel.exception.SystemException { 652 return getPersistence().countByUUID_G(uuid, groupId); 653 } 654 655 /** 656 * Counts all the message boards mailing lists where active = ?. 657 * 658 * @param active the active to search with 659 * @return the number of matching message boards mailing lists 660 * @throws SystemException if a system exception occurred 661 */ 662 public static int countByActive(boolean active) 663 throws com.liferay.portal.kernel.exception.SystemException { 664 return getPersistence().countByActive(active); 665 } 666 667 /** 668 * Counts all the message boards mailing lists where groupId = ? and categoryId = ?. 669 * 670 * @param groupId the group id to search with 671 * @param categoryId the category id to search with 672 * @return the number of matching message boards mailing lists 673 * @throws SystemException if a system exception occurred 674 */ 675 public static int countByG_C(long groupId, long categoryId) 676 throws com.liferay.portal.kernel.exception.SystemException { 677 return getPersistence().countByG_C(groupId, categoryId); 678 } 679 680 /** 681 * Counts all the message boards mailing lists. 682 * 683 * @return the number of message boards mailing lists 684 * @throws SystemException if a system exception occurred 685 */ 686 public static int countAll() 687 throws com.liferay.portal.kernel.exception.SystemException { 688 return getPersistence().countAll(); 689 } 690 691 public static MBMailingListPersistence getPersistence() { 692 if (_persistence == null) { 693 _persistence = (MBMailingListPersistence)PortalBeanLocatorUtil.locate(MBMailingListPersistence.class.getName()); 694 } 695 696 return _persistence; 697 } 698 699 public void setPersistence(MBMailingListPersistence persistence) { 700 _persistence = persistence; 701 } 702 703 private static MBMailingListPersistence _persistence; 704 }