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