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