001 /** 002 * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved. 003 * 004 * This library is free software; you can redistribute it and/or modify it under 005 * the terms of the GNU Lesser General Public License as published by the Free 006 * Software Foundation; either version 2.1 of the License, or (at your option) 007 * any later version. 008 * 009 * This library is distributed in the hope that it will be useful, but WITHOUT 010 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 011 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 012 * details. 013 */ 014 015 package com.liferay.portlet.messageboards.service.persistence; 016 017 import com.liferay.portal.service.persistence.BasePersistence; 018 019 import com.liferay.portlet.messageboards.model.MBThreadFlag; 020 021 /** 022 * The persistence interface for the message boards thread flag service. 023 * 024 * <p> 025 * Caching information and settings can be found in <code>portal.properties</code> 026 * </p> 027 * 028 * @author Brian Wing Shun Chan 029 * @see MBThreadFlagPersistenceImpl 030 * @see MBThreadFlagUtil 031 * @generated 032 */ 033 public interface MBThreadFlagPersistence extends BasePersistence<MBThreadFlag> { 034 /* 035 * NOTE FOR DEVELOPERS: 036 * 037 * Never modify or reference this interface directly. Always use {@link MBThreadFlagUtil} to access the message boards thread flag persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface. 038 */ 039 040 /** 041 * Returns all the message boards thread flags where userId = ?. 042 * 043 * @param userId the user ID 044 * @return the matching message boards thread flags 045 * @throws SystemException if a system exception occurred 046 */ 047 public java.util.List<com.liferay.portlet.messageboards.model.MBThreadFlag> findByUserId( 048 long userId) throws com.liferay.portal.kernel.exception.SystemException; 049 050 /** 051 * Returns a range of all the message boards thread flags where userId = ?. 052 * 053 * <p> 054 * 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.MBThreadFlagModelImpl}. 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. 055 * </p> 056 * 057 * @param userId the user ID 058 * @param start the lower bound of the range of message boards thread flags 059 * @param end the upper bound of the range of message boards thread flags (not inclusive) 060 * @return the range of matching message boards thread flags 061 * @throws SystemException if a system exception occurred 062 */ 063 public java.util.List<com.liferay.portlet.messageboards.model.MBThreadFlag> findByUserId( 064 long userId, int start, int end) 065 throws com.liferay.portal.kernel.exception.SystemException; 066 067 /** 068 * Returns an ordered range of all the message boards thread flags where userId = ?. 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 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.MBThreadFlagModelImpl}. 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 userId the user ID 075 * @param start the lower bound of the range of message boards thread flags 076 * @param end the upper bound of the range of message boards thread flags (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 thread flags 079 * @throws SystemException if a system exception occurred 080 */ 081 public java.util.List<com.liferay.portlet.messageboards.model.MBThreadFlag> findByUserId( 082 long userId, int start, int end, 083 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 084 throws com.liferay.portal.kernel.exception.SystemException; 085 086 /** 087 * Returns the first message boards thread flag in the ordered set where userId = ?. 088 * 089 * @param userId the user ID 090 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 091 * @return the first matching message boards thread flag 092 * @throws com.liferay.portlet.messageboards.NoSuchThreadFlagException if a matching message boards thread flag could not be found 093 * @throws SystemException if a system exception occurred 094 */ 095 public com.liferay.portlet.messageboards.model.MBThreadFlag findByUserId_First( 096 long userId, 097 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 098 throws com.liferay.portal.kernel.exception.SystemException, 099 com.liferay.portlet.messageboards.NoSuchThreadFlagException; 100 101 /** 102 * Returns the first message boards thread flag in the ordered set where userId = ?. 103 * 104 * @param userId the user ID 105 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 106 * @return the first matching message boards thread flag, or <code>null</code> if a matching message boards thread flag could not be found 107 * @throws SystemException if a system exception occurred 108 */ 109 public com.liferay.portlet.messageboards.model.MBThreadFlag fetchByUserId_First( 110 long userId, 111 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 112 throws com.liferay.portal.kernel.exception.SystemException; 113 114 /** 115 * Returns the last message boards thread flag in the ordered set where userId = ?. 116 * 117 * @param userId the user ID 118 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 119 * @return the last matching message boards thread flag 120 * @throws com.liferay.portlet.messageboards.NoSuchThreadFlagException if a matching message boards thread flag could not be found 121 * @throws SystemException if a system exception occurred 122 */ 123 public com.liferay.portlet.messageboards.model.MBThreadFlag findByUserId_Last( 124 long userId, 125 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 126 throws com.liferay.portal.kernel.exception.SystemException, 127 com.liferay.portlet.messageboards.NoSuchThreadFlagException; 128 129 /** 130 * Returns the last message boards thread flag in the ordered set where userId = ?. 131 * 132 * @param userId the user ID 133 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 134 * @return the last matching message boards thread flag, or <code>null</code> if a matching message boards thread flag could not be found 135 * @throws SystemException if a system exception occurred 136 */ 137 public com.liferay.portlet.messageboards.model.MBThreadFlag fetchByUserId_Last( 138 long userId, 139 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 140 throws com.liferay.portal.kernel.exception.SystemException; 141 142 /** 143 * Returns the message boards thread flags before and after the current message boards thread flag in the ordered set where userId = ?. 144 * 145 * @param threadFlagId the primary key of the current message boards thread flag 146 * @param userId the user ID 147 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 148 * @return the previous, current, and next message boards thread flag 149 * @throws com.liferay.portlet.messageboards.NoSuchThreadFlagException if a message boards thread flag with the primary key could not be found 150 * @throws SystemException if a system exception occurred 151 */ 152 public com.liferay.portlet.messageboards.model.MBThreadFlag[] findByUserId_PrevAndNext( 153 long threadFlagId, long userId, 154 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 155 throws com.liferay.portal.kernel.exception.SystemException, 156 com.liferay.portlet.messageboards.NoSuchThreadFlagException; 157 158 /** 159 * Removes all the message boards thread flags where userId = ? from the database. 160 * 161 * @param userId the user ID 162 * @throws SystemException if a system exception occurred 163 */ 164 public void removeByUserId(long userId) 165 throws com.liferay.portal.kernel.exception.SystemException; 166 167 /** 168 * Returns the number of message boards thread flags where userId = ?. 169 * 170 * @param userId the user ID 171 * @return the number of matching message boards thread flags 172 * @throws SystemException if a system exception occurred 173 */ 174 public int countByUserId(long userId) 175 throws com.liferay.portal.kernel.exception.SystemException; 176 177 /** 178 * Returns all the message boards thread flags where threadId = ?. 179 * 180 * @param threadId the thread ID 181 * @return the matching message boards thread flags 182 * @throws SystemException if a system exception occurred 183 */ 184 public java.util.List<com.liferay.portlet.messageboards.model.MBThreadFlag> findByThreadId( 185 long threadId) 186 throws com.liferay.portal.kernel.exception.SystemException; 187 188 /** 189 * Returns a range of all the message boards thread flags where threadId = ?. 190 * 191 * <p> 192 * 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.MBThreadFlagModelImpl}. 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. 193 * </p> 194 * 195 * @param threadId the thread ID 196 * @param start the lower bound of the range of message boards thread flags 197 * @param end the upper bound of the range of message boards thread flags (not inclusive) 198 * @return the range of matching message boards thread flags 199 * @throws SystemException if a system exception occurred 200 */ 201 public java.util.List<com.liferay.portlet.messageboards.model.MBThreadFlag> findByThreadId( 202 long threadId, int start, int end) 203 throws com.liferay.portal.kernel.exception.SystemException; 204 205 /** 206 * Returns an ordered range of all the message boards thread flags where threadId = ?. 207 * 208 * <p> 209 * 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.MBThreadFlagModelImpl}. 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. 210 * </p> 211 * 212 * @param threadId the thread ID 213 * @param start the lower bound of the range of message boards thread flags 214 * @param end the upper bound of the range of message boards thread flags (not inclusive) 215 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 216 * @return the ordered range of matching message boards thread flags 217 * @throws SystemException if a system exception occurred 218 */ 219 public java.util.List<com.liferay.portlet.messageboards.model.MBThreadFlag> findByThreadId( 220 long threadId, int start, int end, 221 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 222 throws com.liferay.portal.kernel.exception.SystemException; 223 224 /** 225 * Returns the first message boards thread flag in the ordered set where threadId = ?. 226 * 227 * @param threadId the thread ID 228 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 229 * @return the first matching message boards thread flag 230 * @throws com.liferay.portlet.messageboards.NoSuchThreadFlagException if a matching message boards thread flag could not be found 231 * @throws SystemException if a system exception occurred 232 */ 233 public com.liferay.portlet.messageboards.model.MBThreadFlag findByThreadId_First( 234 long threadId, 235 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 236 throws com.liferay.portal.kernel.exception.SystemException, 237 com.liferay.portlet.messageboards.NoSuchThreadFlagException; 238 239 /** 240 * Returns the first message boards thread flag in the ordered set where threadId = ?. 241 * 242 * @param threadId the thread ID 243 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 244 * @return the first matching message boards thread flag, or <code>null</code> if a matching message boards thread flag could not be found 245 * @throws SystemException if a system exception occurred 246 */ 247 public com.liferay.portlet.messageboards.model.MBThreadFlag fetchByThreadId_First( 248 long threadId, 249 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 250 throws com.liferay.portal.kernel.exception.SystemException; 251 252 /** 253 * Returns the last message boards thread flag in the ordered set where threadId = ?. 254 * 255 * @param threadId the thread ID 256 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 257 * @return the last matching message boards thread flag 258 * @throws com.liferay.portlet.messageboards.NoSuchThreadFlagException if a matching message boards thread flag could not be found 259 * @throws SystemException if a system exception occurred 260 */ 261 public com.liferay.portlet.messageboards.model.MBThreadFlag findByThreadId_Last( 262 long threadId, 263 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 264 throws com.liferay.portal.kernel.exception.SystemException, 265 com.liferay.portlet.messageboards.NoSuchThreadFlagException; 266 267 /** 268 * Returns the last message boards thread flag in the ordered set where threadId = ?. 269 * 270 * @param threadId the thread ID 271 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 272 * @return the last matching message boards thread flag, or <code>null</code> if a matching message boards thread flag could not be found 273 * @throws SystemException if a system exception occurred 274 */ 275 public com.liferay.portlet.messageboards.model.MBThreadFlag fetchByThreadId_Last( 276 long threadId, 277 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 278 throws com.liferay.portal.kernel.exception.SystemException; 279 280 /** 281 * Returns the message boards thread flags before and after the current message boards thread flag in the ordered set where threadId = ?. 282 * 283 * @param threadFlagId the primary key of the current message boards thread flag 284 * @param threadId the thread ID 285 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 286 * @return the previous, current, and next message boards thread flag 287 * @throws com.liferay.portlet.messageboards.NoSuchThreadFlagException if a message boards thread flag with the primary key could not be found 288 * @throws SystemException if a system exception occurred 289 */ 290 public com.liferay.portlet.messageboards.model.MBThreadFlag[] findByThreadId_PrevAndNext( 291 long threadFlagId, long threadId, 292 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 293 throws com.liferay.portal.kernel.exception.SystemException, 294 com.liferay.portlet.messageboards.NoSuchThreadFlagException; 295 296 /** 297 * Removes all the message boards thread flags where threadId = ? from the database. 298 * 299 * @param threadId the thread ID 300 * @throws SystemException if a system exception occurred 301 */ 302 public void removeByThreadId(long threadId) 303 throws com.liferay.portal.kernel.exception.SystemException; 304 305 /** 306 * Returns the number of message boards thread flags where threadId = ?. 307 * 308 * @param threadId the thread ID 309 * @return the number of matching message boards thread flags 310 * @throws SystemException if a system exception occurred 311 */ 312 public int countByThreadId(long threadId) 313 throws com.liferay.portal.kernel.exception.SystemException; 314 315 /** 316 * Returns the message boards thread flag where userId = ? and threadId = ? or throws a {@link com.liferay.portlet.messageboards.NoSuchThreadFlagException} if it could not be found. 317 * 318 * @param userId the user ID 319 * @param threadId the thread ID 320 * @return the matching message boards thread flag 321 * @throws com.liferay.portlet.messageboards.NoSuchThreadFlagException if a matching message boards thread flag could not be found 322 * @throws SystemException if a system exception occurred 323 */ 324 public com.liferay.portlet.messageboards.model.MBThreadFlag findByU_T( 325 long userId, long threadId) 326 throws com.liferay.portal.kernel.exception.SystemException, 327 com.liferay.portlet.messageboards.NoSuchThreadFlagException; 328 329 /** 330 * Returns the message boards thread flag where userId = ? and threadId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 331 * 332 * @param userId the user ID 333 * @param threadId the thread ID 334 * @return the matching message boards thread flag, or <code>null</code> if a matching message boards thread flag could not be found 335 * @throws SystemException if a system exception occurred 336 */ 337 public com.liferay.portlet.messageboards.model.MBThreadFlag fetchByU_T( 338 long userId, long threadId) 339 throws com.liferay.portal.kernel.exception.SystemException; 340 341 /** 342 * Returns the message boards thread flag where userId = ? and threadId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 343 * 344 * @param userId the user ID 345 * @param threadId the thread ID 346 * @param retrieveFromCache whether to use the finder cache 347 * @return the matching message boards thread flag, or <code>null</code> if a matching message boards thread flag could not be found 348 * @throws SystemException if a system exception occurred 349 */ 350 public com.liferay.portlet.messageboards.model.MBThreadFlag fetchByU_T( 351 long userId, long threadId, boolean retrieveFromCache) 352 throws com.liferay.portal.kernel.exception.SystemException; 353 354 /** 355 * Removes the message boards thread flag where userId = ? and threadId = ? from the database. 356 * 357 * @param userId the user ID 358 * @param threadId the thread ID 359 * @return the message boards thread flag that was removed 360 * @throws SystemException if a system exception occurred 361 */ 362 public com.liferay.portlet.messageboards.model.MBThreadFlag removeByU_T( 363 long userId, long threadId) 364 throws com.liferay.portal.kernel.exception.SystemException, 365 com.liferay.portlet.messageboards.NoSuchThreadFlagException; 366 367 /** 368 * Returns the number of message boards thread flags where userId = ? and threadId = ?. 369 * 370 * @param userId the user ID 371 * @param threadId the thread ID 372 * @return the number of matching message boards thread flags 373 * @throws SystemException if a system exception occurred 374 */ 375 public int countByU_T(long userId, long threadId) 376 throws com.liferay.portal.kernel.exception.SystemException; 377 378 /** 379 * Caches the message boards thread flag in the entity cache if it is enabled. 380 * 381 * @param mbThreadFlag the message boards thread flag 382 */ 383 public void cacheResult( 384 com.liferay.portlet.messageboards.model.MBThreadFlag mbThreadFlag); 385 386 /** 387 * Caches the message boards thread flags in the entity cache if it is enabled. 388 * 389 * @param mbThreadFlags the message boards thread flags 390 */ 391 public void cacheResult( 392 java.util.List<com.liferay.portlet.messageboards.model.MBThreadFlag> mbThreadFlags); 393 394 /** 395 * Creates a new message boards thread flag with the primary key. Does not add the message boards thread flag to the database. 396 * 397 * @param threadFlagId the primary key for the new message boards thread flag 398 * @return the new message boards thread flag 399 */ 400 public com.liferay.portlet.messageboards.model.MBThreadFlag create( 401 long threadFlagId); 402 403 /** 404 * Removes the message boards thread flag with the primary key from the database. Also notifies the appropriate model listeners. 405 * 406 * @param threadFlagId the primary key of the message boards thread flag 407 * @return the message boards thread flag that was removed 408 * @throws com.liferay.portlet.messageboards.NoSuchThreadFlagException if a message boards thread flag with the primary key could not be found 409 * @throws SystemException if a system exception occurred 410 */ 411 public com.liferay.portlet.messageboards.model.MBThreadFlag remove( 412 long threadFlagId) 413 throws com.liferay.portal.kernel.exception.SystemException, 414 com.liferay.portlet.messageboards.NoSuchThreadFlagException; 415 416 public com.liferay.portlet.messageboards.model.MBThreadFlag updateImpl( 417 com.liferay.portlet.messageboards.model.MBThreadFlag mbThreadFlag) 418 throws com.liferay.portal.kernel.exception.SystemException; 419 420 /** 421 * Returns the message boards thread flag with the primary key or throws a {@link com.liferay.portlet.messageboards.NoSuchThreadFlagException} if it could not be found. 422 * 423 * @param threadFlagId the primary key of the message boards thread flag 424 * @return the message boards thread flag 425 * @throws com.liferay.portlet.messageboards.NoSuchThreadFlagException if a message boards thread flag with the primary key could not be found 426 * @throws SystemException if a system exception occurred 427 */ 428 public com.liferay.portlet.messageboards.model.MBThreadFlag findByPrimaryKey( 429 long threadFlagId) 430 throws com.liferay.portal.kernel.exception.SystemException, 431 com.liferay.portlet.messageboards.NoSuchThreadFlagException; 432 433 /** 434 * Returns the message boards thread flag with the primary key or returns <code>null</code> if it could not be found. 435 * 436 * @param threadFlagId the primary key of the message boards thread flag 437 * @return the message boards thread flag, or <code>null</code> if a message boards thread flag with the primary key could not be found 438 * @throws SystemException if a system exception occurred 439 */ 440 public com.liferay.portlet.messageboards.model.MBThreadFlag fetchByPrimaryKey( 441 long threadFlagId) 442 throws com.liferay.portal.kernel.exception.SystemException; 443 444 /** 445 * Returns all the message boards thread flags. 446 * 447 * @return the message boards thread flags 448 * @throws SystemException if a system exception occurred 449 */ 450 public java.util.List<com.liferay.portlet.messageboards.model.MBThreadFlag> findAll() 451 throws com.liferay.portal.kernel.exception.SystemException; 452 453 /** 454 * Returns a range of all the message boards thread flags. 455 * 456 * <p> 457 * 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.MBThreadFlagModelImpl}. 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. 458 * </p> 459 * 460 * @param start the lower bound of the range of message boards thread flags 461 * @param end the upper bound of the range of message boards thread flags (not inclusive) 462 * @return the range of message boards thread flags 463 * @throws SystemException if a system exception occurred 464 */ 465 public java.util.List<com.liferay.portlet.messageboards.model.MBThreadFlag> findAll( 466 int start, int end) 467 throws com.liferay.portal.kernel.exception.SystemException; 468 469 /** 470 * Returns an ordered range of all the message boards thread flags. 471 * 472 * <p> 473 * 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.MBThreadFlagModelImpl}. 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. 474 * </p> 475 * 476 * @param start the lower bound of the range of message boards thread flags 477 * @param end the upper bound of the range of message boards thread flags (not inclusive) 478 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 479 * @return the ordered range of message boards thread flags 480 * @throws SystemException if a system exception occurred 481 */ 482 public java.util.List<com.liferay.portlet.messageboards.model.MBThreadFlag> findAll( 483 int start, int end, 484 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 485 throws com.liferay.portal.kernel.exception.SystemException; 486 487 /** 488 * Removes all the message boards thread flags from the database. 489 * 490 * @throws SystemException if a system exception occurred 491 */ 492 public void removeAll() 493 throws com.liferay.portal.kernel.exception.SystemException; 494 495 /** 496 * Returns the number of message boards thread flags. 497 * 498 * @return the number of message boards thread flags 499 * @throws SystemException if a system exception occurred 500 */ 501 public int countAll() 502 throws com.liferay.portal.kernel.exception.SystemException; 503 }