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