001 /** 002 * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved. 003 * 004 * This library is free software; you can redistribute it and/or modify it under 005 * the terms of the GNU Lesser General Public License as published by the Free 006 * Software Foundation; either version 2.1 of the License, or (at your option) 007 * any later version. 008 * 009 * This library is distributed in the hope that it will be useful, but WITHOUT 010 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 011 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 012 * details. 013 */ 014 015 package com.liferay.portlet.messageboards.service.persistence; 016 017 import com.liferay.portal.service.persistence.BasePersistence; 018 019 import com.liferay.portlet.messageboards.model.MBThread; 020 021 /** 022 * The persistence interface for the message boards thread service. 023 * 024 * <p> 025 * Never modify or reference this interface directly. Always use {@link MBThreadUtil} to access the message boards thread persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface. 026 * </p> 027 * 028 * <p> 029 * Caching information and settings can be found in <code>portal.properties</code> 030 * </p> 031 * 032 * @author Brian Wing Shun Chan 033 * @see MBThreadPersistenceImpl 034 * @see MBThreadUtil 035 * @generated 036 */ 037 public interface MBThreadPersistence extends BasePersistence<MBThread> { 038 /** 039 * Caches the message boards thread in the entity cache if it is enabled. 040 * 041 * @param mbThread the message boards thread to cache 042 */ 043 public void cacheResult( 044 com.liferay.portlet.messageboards.model.MBThread mbThread); 045 046 /** 047 * Caches the message boards threads in the entity cache if it is enabled. 048 * 049 * @param mbThreads the message boards threads to cache 050 */ 051 public void cacheResult( 052 java.util.List<com.liferay.portlet.messageboards.model.MBThread> mbThreads); 053 054 /** 055 * Creates a new message boards thread with the primary key. Does not add the message boards thread to the database. 056 * 057 * @param threadId the primary key for the new message boards thread 058 * @return the new message boards thread 059 */ 060 public com.liferay.portlet.messageboards.model.MBThread create( 061 long threadId); 062 063 /** 064 * Removes the message boards thread with the primary key from the database. Also notifies the appropriate model listeners. 065 * 066 * @param threadId the primary key of the message boards thread to remove 067 * @return the message boards thread that was removed 068 * @throws com.liferay.portlet.messageboards.NoSuchThreadException if a message boards thread with the primary key could not be found 069 * @throws SystemException if a system exception occurred 070 */ 071 public com.liferay.portlet.messageboards.model.MBThread remove( 072 long threadId) 073 throws com.liferay.portal.kernel.exception.SystemException, 074 com.liferay.portlet.messageboards.NoSuchThreadException; 075 076 public com.liferay.portlet.messageboards.model.MBThread updateImpl( 077 com.liferay.portlet.messageboards.model.MBThread mbThread, boolean merge) 078 throws com.liferay.portal.kernel.exception.SystemException; 079 080 /** 081 * Finds the message boards thread with the primary key or throws a {@link com.liferay.portlet.messageboards.NoSuchThreadException} if it could not be found. 082 * 083 * @param threadId the primary key of the message boards thread to find 084 * @return the message boards thread 085 * @throws com.liferay.portlet.messageboards.NoSuchThreadException if a message boards thread with the primary key could not be found 086 * @throws SystemException if a system exception occurred 087 */ 088 public com.liferay.portlet.messageboards.model.MBThread findByPrimaryKey( 089 long threadId) 090 throws com.liferay.portal.kernel.exception.SystemException, 091 com.liferay.portlet.messageboards.NoSuchThreadException; 092 093 /** 094 * Finds the message boards thread with the primary key or returns <code>null</code> if it could not be found. 095 * 096 * @param threadId the primary key of the message boards thread to find 097 * @return the message boards thread, or <code>null</code> if a message boards thread with the primary key could not be found 098 * @throws SystemException if a system exception occurred 099 */ 100 public com.liferay.portlet.messageboards.model.MBThread fetchByPrimaryKey( 101 long threadId) 102 throws com.liferay.portal.kernel.exception.SystemException; 103 104 /** 105 * Finds all the message boards threads where groupId = ?. 106 * 107 * @param groupId the group id to search with 108 * @return the matching message boards threads 109 * @throws SystemException if a system exception occurred 110 */ 111 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByGroupId( 112 long groupId) 113 throws com.liferay.portal.kernel.exception.SystemException; 114 115 /** 116 * Finds a range of all the message boards threads where groupId = ?. 117 * 118 * <p> 119 * 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. 120 * </p> 121 * 122 * @param groupId the group id to search with 123 * @param start the lower bound of the range of message boards threads to return 124 * @param end the upper bound of the range of message boards threads to return (not inclusive) 125 * @return the range of matching message boards threads 126 * @throws SystemException if a system exception occurred 127 */ 128 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByGroupId( 129 long groupId, int start, int end) 130 throws com.liferay.portal.kernel.exception.SystemException; 131 132 /** 133 * Finds an ordered range of all the message boards threads where groupId = ?. 134 * 135 * <p> 136 * 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. 137 * </p> 138 * 139 * @param groupId the group id to search with 140 * @param start the lower bound of the range of message boards threads to return 141 * @param end the upper bound of the range of message boards threads to return (not inclusive) 142 * @param orderByComparator the comparator to order the results by 143 * @return the ordered range of matching message boards threads 144 * @throws SystemException if a system exception occurred 145 */ 146 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByGroupId( 147 long groupId, int start, int end, 148 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 149 throws com.liferay.portal.kernel.exception.SystemException; 150 151 /** 152 * Finds the first message boards thread in the ordered set where groupId = ?. 153 * 154 * <p> 155 * 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. 156 * </p> 157 * 158 * @param groupId the group id to search with 159 * @param orderByComparator the comparator to order the set by 160 * @return the first matching message boards thread 161 * @throws com.liferay.portlet.messageboards.NoSuchThreadException if a matching message boards thread could not be found 162 * @throws SystemException if a system exception occurred 163 */ 164 public com.liferay.portlet.messageboards.model.MBThread findByGroupId_First( 165 long groupId, 166 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 167 throws com.liferay.portal.kernel.exception.SystemException, 168 com.liferay.portlet.messageboards.NoSuchThreadException; 169 170 /** 171 * Finds the last message boards thread in the ordered set where groupId = ?. 172 * 173 * <p> 174 * 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. 175 * </p> 176 * 177 * @param groupId the group id to search with 178 * @param orderByComparator the comparator to order the set by 179 * @return the last matching message boards thread 180 * @throws com.liferay.portlet.messageboards.NoSuchThreadException if a matching message boards thread could not be found 181 * @throws SystemException if a system exception occurred 182 */ 183 public com.liferay.portlet.messageboards.model.MBThread findByGroupId_Last( 184 long groupId, 185 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 186 throws com.liferay.portal.kernel.exception.SystemException, 187 com.liferay.portlet.messageboards.NoSuchThreadException; 188 189 /** 190 * Finds the message boards threads before and after the current message boards thread in the ordered set where groupId = ?. 191 * 192 * <p> 193 * 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. 194 * </p> 195 * 196 * @param threadId the primary key of the current message boards thread 197 * @param groupId the group id to search with 198 * @param orderByComparator the comparator to order the set by 199 * @return the previous, current, and next message boards thread 200 * @throws com.liferay.portlet.messageboards.NoSuchThreadException if a message boards thread with the primary key could not be found 201 * @throws SystemException if a system exception occurred 202 */ 203 public com.liferay.portlet.messageboards.model.MBThread[] findByGroupId_PrevAndNext( 204 long threadId, long groupId, 205 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 206 throws com.liferay.portal.kernel.exception.SystemException, 207 com.liferay.portlet.messageboards.NoSuchThreadException; 208 209 /** 210 * Finds all the message boards threads where groupId = ? and categoryId = ?. 211 * 212 * @param groupId the group id to search with 213 * @param categoryId the category id to search with 214 * @return the matching message boards threads 215 * @throws SystemException if a system exception occurred 216 */ 217 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_C( 218 long groupId, long categoryId) 219 throws com.liferay.portal.kernel.exception.SystemException; 220 221 /** 222 * Finds a range of all the message boards threads where groupId = ? and categoryId = ?. 223 * 224 * <p> 225 * 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. 226 * </p> 227 * 228 * @param groupId the group id to search with 229 * @param categoryId the category id to search with 230 * @param start the lower bound of the range of message boards threads to return 231 * @param end the upper bound of the range of message boards threads to return (not inclusive) 232 * @return the range of matching message boards threads 233 * @throws SystemException if a system exception occurred 234 */ 235 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_C( 236 long groupId, long categoryId, int start, int end) 237 throws com.liferay.portal.kernel.exception.SystemException; 238 239 /** 240 * Finds an ordered range of all the message boards threads where groupId = ? and categoryId = ?. 241 * 242 * <p> 243 * 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. 244 * </p> 245 * 246 * @param groupId the group id to search with 247 * @param categoryId the category id to search with 248 * @param start the lower bound of the range of message boards threads to return 249 * @param end the upper bound of the range of message boards threads to return (not inclusive) 250 * @param orderByComparator the comparator to order the results by 251 * @return the ordered range of matching message boards threads 252 * @throws SystemException if a system exception occurred 253 */ 254 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_C( 255 long groupId, long categoryId, int start, int end, 256 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 257 throws com.liferay.portal.kernel.exception.SystemException; 258 259 /** 260 * Finds the first message boards thread in the ordered set where groupId = ? and categoryId = ?. 261 * 262 * <p> 263 * 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. 264 * </p> 265 * 266 * @param groupId the group id to search with 267 * @param categoryId the category id to search with 268 * @param orderByComparator the comparator to order the set by 269 * @return the first matching message boards thread 270 * @throws com.liferay.portlet.messageboards.NoSuchThreadException if a matching message boards thread could not be found 271 * @throws SystemException if a system exception occurred 272 */ 273 public com.liferay.portlet.messageboards.model.MBThread findByG_C_First( 274 long groupId, long categoryId, 275 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 276 throws com.liferay.portal.kernel.exception.SystemException, 277 com.liferay.portlet.messageboards.NoSuchThreadException; 278 279 /** 280 * Finds the last message boards thread in the ordered set where groupId = ? and categoryId = ?. 281 * 282 * <p> 283 * 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. 284 * </p> 285 * 286 * @param groupId the group id to search with 287 * @param categoryId the category id to search with 288 * @param orderByComparator the comparator to order the set by 289 * @return the last matching message boards thread 290 * @throws com.liferay.portlet.messageboards.NoSuchThreadException if a matching message boards thread could not be found 291 * @throws SystemException if a system exception occurred 292 */ 293 public com.liferay.portlet.messageboards.model.MBThread findByG_C_Last( 294 long groupId, long categoryId, 295 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 296 throws com.liferay.portal.kernel.exception.SystemException, 297 com.liferay.portlet.messageboards.NoSuchThreadException; 298 299 /** 300 * Finds the message boards threads before and after the current message boards thread in the ordered set where groupId = ? and categoryId = ?. 301 * 302 * <p> 303 * 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. 304 * </p> 305 * 306 * @param threadId the primary key of the current message boards thread 307 * @param groupId the group id to search with 308 * @param categoryId the category id to search with 309 * @param orderByComparator the comparator to order the set by 310 * @return the previous, current, and next message boards thread 311 * @throws com.liferay.portlet.messageboards.NoSuchThreadException if a message boards thread with the primary key could not be found 312 * @throws SystemException if a system exception occurred 313 */ 314 public com.liferay.portlet.messageboards.model.MBThread[] findByG_C_PrevAndNext( 315 long threadId, long groupId, long categoryId, 316 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 317 throws com.liferay.portal.kernel.exception.SystemException, 318 com.liferay.portlet.messageboards.NoSuchThreadException; 319 320 /** 321 * Finds all the message boards threads where groupId = ? and categoryId = any ?. 322 * 323 * <p> 324 * 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. 325 * </p> 326 * 327 * @param groupId the group id to search with 328 * @param categoryIds the category ids to search with 329 * @return the matching message boards threads 330 * @throws SystemException if a system exception occurred 331 */ 332 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_C( 333 long groupId, long[] categoryIds) 334 throws com.liferay.portal.kernel.exception.SystemException; 335 336 /** 337 * Finds a range of all the message boards threads where groupId = ? and categoryId = any ?. 338 * 339 * <p> 340 * 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. 341 * </p> 342 * 343 * @param groupId the group id to search with 344 * @param categoryIds the category ids to search with 345 * @param start the lower bound of the range of message boards threads to return 346 * @param end the upper bound of the range of message boards threads to return (not inclusive) 347 * @return the range of matching message boards threads 348 * @throws SystemException if a system exception occurred 349 */ 350 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_C( 351 long groupId, long[] categoryIds, int start, int end) 352 throws com.liferay.portal.kernel.exception.SystemException; 353 354 /** 355 * Finds an ordered range of all the message boards threads where groupId = ? and categoryId = any ?. 356 * 357 * <p> 358 * 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. 359 * </p> 360 * 361 * @param groupId the group id to search with 362 * @param categoryIds the category ids to search with 363 * @param start the lower bound of the range of message boards threads to return 364 * @param end the upper bound of the range of message boards threads to return (not inclusive) 365 * @param orderByComparator the comparator to order the results by 366 * @return the ordered range of matching message boards threads 367 * @throws SystemException if a system exception occurred 368 */ 369 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_C( 370 long groupId, long[] categoryIds, int start, int end, 371 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 372 throws com.liferay.portal.kernel.exception.SystemException; 373 374 /** 375 * Finds all the message boards threads where groupId = ? and categoryId ≠ ?. 376 * 377 * @param groupId the group id to search with 378 * @param categoryId the category id to search with 379 * @return the matching message boards threads 380 * @throws SystemException if a system exception occurred 381 */ 382 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_NotC( 383 long groupId, long categoryId) 384 throws com.liferay.portal.kernel.exception.SystemException; 385 386 /** 387 * Finds a range of all the message boards threads where groupId = ? and categoryId ≠ ?. 388 * 389 * <p> 390 * 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. 391 * </p> 392 * 393 * @param groupId the group id to search with 394 * @param categoryId the category id to search with 395 * @param start the lower bound of the range of message boards threads to return 396 * @param end the upper bound of the range of message boards threads to return (not inclusive) 397 * @return the range of matching message boards threads 398 * @throws SystemException if a system exception occurred 399 */ 400 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_NotC( 401 long groupId, long categoryId, int start, int end) 402 throws com.liferay.portal.kernel.exception.SystemException; 403 404 /** 405 * Finds an ordered range of all the message boards threads where groupId = ? and categoryId ≠ ?. 406 * 407 * <p> 408 * 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. 409 * </p> 410 * 411 * @param groupId the group id to search with 412 * @param categoryId the category id to search with 413 * @param start the lower bound of the range of message boards threads to return 414 * @param end the upper bound of the range of message boards threads to return (not inclusive) 415 * @param orderByComparator the comparator to order the results by 416 * @return the ordered range of matching message boards threads 417 * @throws SystemException if a system exception occurred 418 */ 419 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_NotC( 420 long groupId, long categoryId, int start, int end, 421 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 422 throws com.liferay.portal.kernel.exception.SystemException; 423 424 /** 425 * Finds the first message boards thread in the ordered set where groupId = ? and categoryId ≠ ?. 426 * 427 * <p> 428 * 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. 429 * </p> 430 * 431 * @param groupId the group id to search with 432 * @param categoryId the category id to search with 433 * @param orderByComparator the comparator to order the set by 434 * @return the first matching message boards thread 435 * @throws com.liferay.portlet.messageboards.NoSuchThreadException if a matching message boards thread could not be found 436 * @throws SystemException if a system exception occurred 437 */ 438 public com.liferay.portlet.messageboards.model.MBThread findByG_NotC_First( 439 long groupId, long categoryId, 440 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 441 throws com.liferay.portal.kernel.exception.SystemException, 442 com.liferay.portlet.messageboards.NoSuchThreadException; 443 444 /** 445 * Finds the last message boards thread in the ordered set where groupId = ? and categoryId ≠ ?. 446 * 447 * <p> 448 * 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. 449 * </p> 450 * 451 * @param groupId the group id to search with 452 * @param categoryId the category id to search with 453 * @param orderByComparator the comparator to order the set by 454 * @return the last matching message boards thread 455 * @throws com.liferay.portlet.messageboards.NoSuchThreadException if a matching message boards thread could not be found 456 * @throws SystemException if a system exception occurred 457 */ 458 public com.liferay.portlet.messageboards.model.MBThread findByG_NotC_Last( 459 long groupId, long categoryId, 460 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 461 throws com.liferay.portal.kernel.exception.SystemException, 462 com.liferay.portlet.messageboards.NoSuchThreadException; 463 464 /** 465 * Finds the message boards threads before and after the current message boards thread in the ordered set where groupId = ? and categoryId ≠ ?. 466 * 467 * <p> 468 * 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. 469 * </p> 470 * 471 * @param threadId the primary key of the current message boards thread 472 * @param groupId the group id to search with 473 * @param categoryId the category id to search with 474 * @param orderByComparator the comparator to order the set by 475 * @return the previous, current, and next message boards thread 476 * @throws com.liferay.portlet.messageboards.NoSuchThreadException if a message boards thread with the primary key could not be found 477 * @throws SystemException if a system exception occurred 478 */ 479 public com.liferay.portlet.messageboards.model.MBThread[] findByG_NotC_PrevAndNext( 480 long threadId, long groupId, long categoryId, 481 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 482 throws com.liferay.portal.kernel.exception.SystemException, 483 com.liferay.portlet.messageboards.NoSuchThreadException; 484 485 /** 486 * Finds all the message boards threads where groupId = ? and status = ?. 487 * 488 * @param groupId the group id to search with 489 * @param status the status to search with 490 * @return the matching message boards threads 491 * @throws SystemException if a system exception occurred 492 */ 493 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_S( 494 long groupId, int status) 495 throws com.liferay.portal.kernel.exception.SystemException; 496 497 /** 498 * Finds a range of all the message boards threads where groupId = ? and status = ?. 499 * 500 * <p> 501 * 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. 502 * </p> 503 * 504 * @param groupId the group id to search with 505 * @param status the status to search with 506 * @param start the lower bound of the range of message boards threads to return 507 * @param end the upper bound of the range of message boards threads to return (not inclusive) 508 * @return the range of matching message boards threads 509 * @throws SystemException if a system exception occurred 510 */ 511 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_S( 512 long groupId, int status, int start, int end) 513 throws com.liferay.portal.kernel.exception.SystemException; 514 515 /** 516 * Finds an ordered range of all the message boards threads where groupId = ? and status = ?. 517 * 518 * <p> 519 * 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. 520 * </p> 521 * 522 * @param groupId the group id to search with 523 * @param status the status to search with 524 * @param start the lower bound of the range of message boards threads to return 525 * @param end the upper bound of the range of message boards threads to return (not inclusive) 526 * @param orderByComparator the comparator to order the results by 527 * @return the ordered range of matching message boards threads 528 * @throws SystemException if a system exception occurred 529 */ 530 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_S( 531 long groupId, int status, int start, int end, 532 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 533 throws com.liferay.portal.kernel.exception.SystemException; 534 535 /** 536 * Finds the first message boards thread in the ordered set where groupId = ? and status = ?. 537 * 538 * <p> 539 * 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. 540 * </p> 541 * 542 * @param groupId the group id to search with 543 * @param status the status to search with 544 * @param orderByComparator the comparator to order the set by 545 * @return the first matching message boards thread 546 * @throws com.liferay.portlet.messageboards.NoSuchThreadException if a matching message boards thread could not be found 547 * @throws SystemException if a system exception occurred 548 */ 549 public com.liferay.portlet.messageboards.model.MBThread findByG_S_First( 550 long groupId, int status, 551 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 552 throws com.liferay.portal.kernel.exception.SystemException, 553 com.liferay.portlet.messageboards.NoSuchThreadException; 554 555 /** 556 * Finds the last message boards thread in the ordered set where groupId = ? and status = ?. 557 * 558 * <p> 559 * 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. 560 * </p> 561 * 562 * @param groupId the group id to search with 563 * @param status the status to search with 564 * @param orderByComparator the comparator to order the set by 565 * @return the last matching message boards thread 566 * @throws com.liferay.portlet.messageboards.NoSuchThreadException if a matching message boards thread could not be found 567 * @throws SystemException if a system exception occurred 568 */ 569 public com.liferay.portlet.messageboards.model.MBThread findByG_S_Last( 570 long groupId, int status, 571 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 572 throws com.liferay.portal.kernel.exception.SystemException, 573 com.liferay.portlet.messageboards.NoSuchThreadException; 574 575 /** 576 * Finds the message boards threads before and after the current message boards thread in the ordered set where groupId = ? and status = ?. 577 * 578 * <p> 579 * 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. 580 * </p> 581 * 582 * @param threadId the primary key of the current message boards thread 583 * @param groupId the group id to search with 584 * @param status the status to search with 585 * @param orderByComparator the comparator to order the set by 586 * @return the previous, current, and next message boards thread 587 * @throws com.liferay.portlet.messageboards.NoSuchThreadException if a message boards thread with the primary key could not be found 588 * @throws SystemException if a system exception occurred 589 */ 590 public com.liferay.portlet.messageboards.model.MBThread[] findByG_S_PrevAndNext( 591 long threadId, long groupId, int status, 592 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 593 throws com.liferay.portal.kernel.exception.SystemException, 594 com.liferay.portlet.messageboards.NoSuchThreadException; 595 596 /** 597 * Finds all the message boards threads where categoryId = ? and priority = ?. 598 * 599 * @param categoryId the category id to search with 600 * @param priority the priority to search with 601 * @return the matching message boards threads 602 * @throws SystemException if a system exception occurred 603 */ 604 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByC_P( 605 long categoryId, double priority) 606 throws com.liferay.portal.kernel.exception.SystemException; 607 608 /** 609 * Finds a range of all the message boards threads where categoryId = ? and priority = ?. 610 * 611 * <p> 612 * 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. 613 * </p> 614 * 615 * @param categoryId the category id to search with 616 * @param priority the priority to search with 617 * @param start the lower bound of the range of message boards threads to return 618 * @param end the upper bound of the range of message boards threads to return (not inclusive) 619 * @return the range of matching message boards threads 620 * @throws SystemException if a system exception occurred 621 */ 622 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByC_P( 623 long categoryId, double priority, int start, int end) 624 throws com.liferay.portal.kernel.exception.SystemException; 625 626 /** 627 * Finds an ordered range of all the message boards threads where categoryId = ? and priority = ?. 628 * 629 * <p> 630 * 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. 631 * </p> 632 * 633 * @param categoryId the category id to search with 634 * @param priority the priority to search with 635 * @param start the lower bound of the range of message boards threads to return 636 * @param end the upper bound of the range of message boards threads to return (not inclusive) 637 * @param orderByComparator the comparator to order the results by 638 * @return the ordered range of matching message boards threads 639 * @throws SystemException if a system exception occurred 640 */ 641 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByC_P( 642 long categoryId, double priority, int start, int end, 643 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 644 throws com.liferay.portal.kernel.exception.SystemException; 645 646 /** 647 * Finds the first message boards thread in the ordered set where categoryId = ? and priority = ?. 648 * 649 * <p> 650 * 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. 651 * </p> 652 * 653 * @param categoryId the category id to search with 654 * @param priority the priority to search with 655 * @param orderByComparator the comparator to order the set by 656 * @return the first matching message boards thread 657 * @throws com.liferay.portlet.messageboards.NoSuchThreadException if a matching message boards thread could not be found 658 * @throws SystemException if a system exception occurred 659 */ 660 public com.liferay.portlet.messageboards.model.MBThread findByC_P_First( 661 long categoryId, double priority, 662 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 663 throws com.liferay.portal.kernel.exception.SystemException, 664 com.liferay.portlet.messageboards.NoSuchThreadException; 665 666 /** 667 * Finds the last message boards thread in the ordered set where categoryId = ? and priority = ?. 668 * 669 * <p> 670 * 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. 671 * </p> 672 * 673 * @param categoryId the category id to search with 674 * @param priority the priority to search with 675 * @param orderByComparator the comparator to order the set by 676 * @return the last matching message boards thread 677 * @throws com.liferay.portlet.messageboards.NoSuchThreadException if a matching message boards thread could not be found 678 * @throws SystemException if a system exception occurred 679 */ 680 public com.liferay.portlet.messageboards.model.MBThread findByC_P_Last( 681 long categoryId, double priority, 682 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 683 throws com.liferay.portal.kernel.exception.SystemException, 684 com.liferay.portlet.messageboards.NoSuchThreadException; 685 686 /** 687 * Finds the message boards threads before and after the current message boards thread in the ordered set where categoryId = ? and priority = ?. 688 * 689 * <p> 690 * 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. 691 * </p> 692 * 693 * @param threadId the primary key of the current message boards thread 694 * @param categoryId the category id to search with 695 * @param priority the priority to search with 696 * @param orderByComparator the comparator to order the set by 697 * @return the previous, current, and next message boards thread 698 * @throws com.liferay.portlet.messageboards.NoSuchThreadException if a message boards thread with the primary key could not be found 699 * @throws SystemException if a system exception occurred 700 */ 701 public com.liferay.portlet.messageboards.model.MBThread[] findByC_P_PrevAndNext( 702 long threadId, long categoryId, double priority, 703 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 704 throws com.liferay.portal.kernel.exception.SystemException, 705 com.liferay.portlet.messageboards.NoSuchThreadException; 706 707 /** 708 * Finds all the message boards threads where groupId = ? and categoryId = ? and lastPostDate = ?. 709 * 710 * @param groupId the group id to search with 711 * @param categoryId the category id to search with 712 * @param lastPostDate the last post date to search with 713 * @return the matching message boards threads 714 * @throws SystemException if a system exception occurred 715 */ 716 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_C_L( 717 long groupId, long categoryId, java.util.Date lastPostDate) 718 throws com.liferay.portal.kernel.exception.SystemException; 719 720 /** 721 * Finds a range of all the message boards threads where groupId = ? and categoryId = ? and lastPostDate = ?. 722 * 723 * <p> 724 * 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. 725 * </p> 726 * 727 * @param groupId the group id to search with 728 * @param categoryId the category id to search with 729 * @param lastPostDate the last post date to search with 730 * @param start the lower bound of the range of message boards threads to return 731 * @param end the upper bound of the range of message boards threads to return (not inclusive) 732 * @return the range of matching message boards threads 733 * @throws SystemException if a system exception occurred 734 */ 735 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_C_L( 736 long groupId, long categoryId, java.util.Date lastPostDate, int start, 737 int end) throws com.liferay.portal.kernel.exception.SystemException; 738 739 /** 740 * Finds an ordered range of all the message boards threads where groupId = ? and categoryId = ? and lastPostDate = ?. 741 * 742 * <p> 743 * 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. 744 * </p> 745 * 746 * @param groupId the group id to search with 747 * @param categoryId the category id to search with 748 * @param lastPostDate the last post date to search with 749 * @param start the lower bound of the range of message boards threads to return 750 * @param end the upper bound of the range of message boards threads to return (not inclusive) 751 * @param orderByComparator the comparator to order the results by 752 * @return the ordered range of matching message boards threads 753 * @throws SystemException if a system exception occurred 754 */ 755 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_C_L( 756 long groupId, long categoryId, java.util.Date lastPostDate, int start, 757 int end, 758 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 759 throws com.liferay.portal.kernel.exception.SystemException; 760 761 /** 762 * Finds the first message boards thread in the ordered set where groupId = ? and categoryId = ? and lastPostDate = ?. 763 * 764 * <p> 765 * 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. 766 * </p> 767 * 768 * @param groupId the group id to search with 769 * @param categoryId the category id to search with 770 * @param lastPostDate the last post date to search with 771 * @param orderByComparator the comparator to order the set by 772 * @return the first matching message boards thread 773 * @throws com.liferay.portlet.messageboards.NoSuchThreadException if a matching message boards thread could not be found 774 * @throws SystemException if a system exception occurred 775 */ 776 public com.liferay.portlet.messageboards.model.MBThread findByG_C_L_First( 777 long groupId, long categoryId, java.util.Date lastPostDate, 778 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 779 throws com.liferay.portal.kernel.exception.SystemException, 780 com.liferay.portlet.messageboards.NoSuchThreadException; 781 782 /** 783 * Finds the last message boards thread in the ordered set where groupId = ? and categoryId = ? and lastPostDate = ?. 784 * 785 * <p> 786 * 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. 787 * </p> 788 * 789 * @param groupId the group id to search with 790 * @param categoryId the category id to search with 791 * @param lastPostDate the last post date to search with 792 * @param orderByComparator the comparator to order the set by 793 * @return the last matching message boards thread 794 * @throws com.liferay.portlet.messageboards.NoSuchThreadException if a matching message boards thread could not be found 795 * @throws SystemException if a system exception occurred 796 */ 797 public com.liferay.portlet.messageboards.model.MBThread findByG_C_L_Last( 798 long groupId, long categoryId, java.util.Date lastPostDate, 799 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 800 throws com.liferay.portal.kernel.exception.SystemException, 801 com.liferay.portlet.messageboards.NoSuchThreadException; 802 803 /** 804 * Finds the message boards threads before and after the current message boards thread in the ordered set where groupId = ? and categoryId = ? and lastPostDate = ?. 805 * 806 * <p> 807 * 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. 808 * </p> 809 * 810 * @param threadId the primary key of the current message boards thread 811 * @param groupId the group id to search with 812 * @param categoryId the category id to search with 813 * @param lastPostDate the last post date to search with 814 * @param orderByComparator the comparator to order the set by 815 * @return the previous, current, and next message boards thread 816 * @throws com.liferay.portlet.messageboards.NoSuchThreadException if a message boards thread with the primary key could not be found 817 * @throws SystemException if a system exception occurred 818 */ 819 public com.liferay.portlet.messageboards.model.MBThread[] findByG_C_L_PrevAndNext( 820 long threadId, long groupId, long categoryId, 821 java.util.Date lastPostDate, 822 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 823 throws com.liferay.portal.kernel.exception.SystemException, 824 com.liferay.portlet.messageboards.NoSuchThreadException; 825 826 /** 827 * Finds all the message boards threads where groupId = ? and categoryId = ? and status = ?. 828 * 829 * @param groupId the group id to search with 830 * @param categoryId the category id to search with 831 * @param status the status to search with 832 * @return the matching message boards threads 833 * @throws SystemException if a system exception occurred 834 */ 835 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_C_S( 836 long groupId, long categoryId, int status) 837 throws com.liferay.portal.kernel.exception.SystemException; 838 839 /** 840 * Finds a range of all the message boards threads where groupId = ? and categoryId = ? and status = ?. 841 * 842 * <p> 843 * 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. 844 * </p> 845 * 846 * @param groupId the group id to search with 847 * @param categoryId the category id to search with 848 * @param status the status to search with 849 * @param start the lower bound of the range of message boards threads to return 850 * @param end the upper bound of the range of message boards threads to return (not inclusive) 851 * @return the range of matching message boards threads 852 * @throws SystemException if a system exception occurred 853 */ 854 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_C_S( 855 long groupId, long categoryId, int status, int start, int end) 856 throws com.liferay.portal.kernel.exception.SystemException; 857 858 /** 859 * Finds an ordered range of all the message boards threads where groupId = ? and categoryId = ? and status = ?. 860 * 861 * <p> 862 * 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. 863 * </p> 864 * 865 * @param groupId the group id to search with 866 * @param categoryId the category id to search with 867 * @param status the status to search with 868 * @param start the lower bound of the range of message boards threads to return 869 * @param end the upper bound of the range of message boards threads to return (not inclusive) 870 * @param orderByComparator the comparator to order the results by 871 * @return the ordered range of matching message boards threads 872 * @throws SystemException if a system exception occurred 873 */ 874 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_C_S( 875 long groupId, long categoryId, int status, int start, int end, 876 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 877 throws com.liferay.portal.kernel.exception.SystemException; 878 879 /** 880 * Finds the first message boards thread in the ordered set where groupId = ? and categoryId = ? and status = ?. 881 * 882 * <p> 883 * 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. 884 * </p> 885 * 886 * @param groupId the group id to search with 887 * @param categoryId the category id to search with 888 * @param status the status to search with 889 * @param orderByComparator the comparator to order the set by 890 * @return the first matching message boards thread 891 * @throws com.liferay.portlet.messageboards.NoSuchThreadException if a matching message boards thread could not be found 892 * @throws SystemException if a system exception occurred 893 */ 894 public com.liferay.portlet.messageboards.model.MBThread findByG_C_S_First( 895 long groupId, long categoryId, int status, 896 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 897 throws com.liferay.portal.kernel.exception.SystemException, 898 com.liferay.portlet.messageboards.NoSuchThreadException; 899 900 /** 901 * Finds the last message boards thread in the ordered set where groupId = ? and categoryId = ? and status = ?. 902 * 903 * <p> 904 * 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. 905 * </p> 906 * 907 * @param groupId the group id to search with 908 * @param categoryId the category id to search with 909 * @param status the status to search with 910 * @param orderByComparator the comparator to order the set by 911 * @return the last matching message boards thread 912 * @throws com.liferay.portlet.messageboards.NoSuchThreadException if a matching message boards thread could not be found 913 * @throws SystemException if a system exception occurred 914 */ 915 public com.liferay.portlet.messageboards.model.MBThread findByG_C_S_Last( 916 long groupId, long categoryId, int status, 917 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 918 throws com.liferay.portal.kernel.exception.SystemException, 919 com.liferay.portlet.messageboards.NoSuchThreadException; 920 921 /** 922 * Finds the message boards threads before and after the current message boards thread in the ordered set where groupId = ? and categoryId = ? and status = ?. 923 * 924 * <p> 925 * 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. 926 * </p> 927 * 928 * @param threadId the primary key of the current message boards thread 929 * @param groupId the group id to search with 930 * @param categoryId the category id to search with 931 * @param status the status to search with 932 * @param orderByComparator the comparator to order the set by 933 * @return the previous, current, and next message boards thread 934 * @throws com.liferay.portlet.messageboards.NoSuchThreadException if a message boards thread with the primary key could not be found 935 * @throws SystemException if a system exception occurred 936 */ 937 public com.liferay.portlet.messageboards.model.MBThread[] findByG_C_S_PrevAndNext( 938 long threadId, long groupId, long categoryId, int status, 939 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 940 throws com.liferay.portal.kernel.exception.SystemException, 941 com.liferay.portlet.messageboards.NoSuchThreadException; 942 943 /** 944 * Finds all the message boards threads where groupId = ? and categoryId = any ? and status = ?. 945 * 946 * <p> 947 * 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. 948 * </p> 949 * 950 * @param groupId the group id to search with 951 * @param categoryIds the category ids to search with 952 * @param status the status to search with 953 * @return the matching message boards threads 954 * @throws SystemException if a system exception occurred 955 */ 956 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_C_S( 957 long groupId, long[] categoryIds, int status) 958 throws com.liferay.portal.kernel.exception.SystemException; 959 960 /** 961 * Finds a range of all the message boards threads where groupId = ? and categoryId = any ? and status = ?. 962 * 963 * <p> 964 * 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. 965 * </p> 966 * 967 * @param groupId the group id to search with 968 * @param categoryIds the category ids to search with 969 * @param status the status to search with 970 * @param start the lower bound of the range of message boards threads to return 971 * @param end the upper bound of the range of message boards threads to return (not inclusive) 972 * @return the range of matching message boards threads 973 * @throws SystemException if a system exception occurred 974 */ 975 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_C_S( 976 long groupId, long[] categoryIds, int status, int start, int end) 977 throws com.liferay.portal.kernel.exception.SystemException; 978 979 /** 980 * Finds an ordered range of all the message boards threads where groupId = ? and categoryId = any ? and status = ?. 981 * 982 * <p> 983 * 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. 984 * </p> 985 * 986 * @param groupId the group id to search with 987 * @param categoryIds the category ids to search with 988 * @param status the status to search with 989 * @param start the lower bound of the range of message boards threads to return 990 * @param end the upper bound of the range of message boards threads to return (not inclusive) 991 * @param orderByComparator the comparator to order the results by 992 * @return the ordered range of matching message boards threads 993 * @throws SystemException if a system exception occurred 994 */ 995 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_C_S( 996 long groupId, long[] categoryIds, int status, int start, int end, 997 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 998 throws com.liferay.portal.kernel.exception.SystemException; 999 1000 /** 1001 * Finds all the message boards threads where groupId = ? and categoryId ≠ ? and status = ?. 1002 * 1003 * @param groupId the group id to search with 1004 * @param categoryId the category id to search with 1005 * @param status the status to search with 1006 * @return the matching message boards threads 1007 * @throws SystemException if a system exception occurred 1008 */ 1009 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_NotC_S( 1010 long groupId, long categoryId, int status) 1011 throws com.liferay.portal.kernel.exception.SystemException; 1012 1013 /** 1014 * Finds a range of all the message boards threads where groupId = ? and categoryId ≠ ? and status = ?. 1015 * 1016 * <p> 1017 * 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. 1018 * </p> 1019 * 1020 * @param groupId the group id to search with 1021 * @param categoryId the category id to search with 1022 * @param status the status to search with 1023 * @param start the lower bound of the range of message boards threads to return 1024 * @param end the upper bound of the range of message boards threads to return (not inclusive) 1025 * @return the range of matching message boards threads 1026 * @throws SystemException if a system exception occurred 1027 */ 1028 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_NotC_S( 1029 long groupId, long categoryId, int status, int start, int end) 1030 throws com.liferay.portal.kernel.exception.SystemException; 1031 1032 /** 1033 * Finds an ordered range of all the message boards threads where groupId = ? and categoryId ≠ ? and status = ?. 1034 * 1035 * <p> 1036 * 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. 1037 * </p> 1038 * 1039 * @param groupId the group id to search with 1040 * @param categoryId the category id to search with 1041 * @param status the status to search with 1042 * @param start the lower bound of the range of message boards threads to return 1043 * @param end the upper bound of the range of message boards threads to return (not inclusive) 1044 * @param orderByComparator the comparator to order the results by 1045 * @return the ordered range of matching message boards threads 1046 * @throws SystemException if a system exception occurred 1047 */ 1048 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_NotC_S( 1049 long groupId, long categoryId, int status, int start, int end, 1050 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1051 throws com.liferay.portal.kernel.exception.SystemException; 1052 1053 /** 1054 * Finds the first message boards thread in the ordered set where groupId = ? and categoryId ≠ ? and status = ?. 1055 * 1056 * <p> 1057 * 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. 1058 * </p> 1059 * 1060 * @param groupId the group id to search with 1061 * @param categoryId the category id to search with 1062 * @param status the status to search with 1063 * @param orderByComparator the comparator to order the set by 1064 * @return the first matching message boards thread 1065 * @throws com.liferay.portlet.messageboards.NoSuchThreadException if a matching message boards thread could not be found 1066 * @throws SystemException if a system exception occurred 1067 */ 1068 public com.liferay.portlet.messageboards.model.MBThread findByG_NotC_S_First( 1069 long groupId, long categoryId, int status, 1070 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1071 throws com.liferay.portal.kernel.exception.SystemException, 1072 com.liferay.portlet.messageboards.NoSuchThreadException; 1073 1074 /** 1075 * Finds the last message boards thread in the ordered set where groupId = ? and categoryId ≠ ? and status = ?. 1076 * 1077 * <p> 1078 * 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. 1079 * </p> 1080 * 1081 * @param groupId the group id to search with 1082 * @param categoryId the category id to search with 1083 * @param status the status to search with 1084 * @param orderByComparator the comparator to order the set by 1085 * @return the last matching message boards thread 1086 * @throws com.liferay.portlet.messageboards.NoSuchThreadException if a matching message boards thread could not be found 1087 * @throws SystemException if a system exception occurred 1088 */ 1089 public com.liferay.portlet.messageboards.model.MBThread findByG_NotC_S_Last( 1090 long groupId, long categoryId, int status, 1091 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1092 throws com.liferay.portal.kernel.exception.SystemException, 1093 com.liferay.portlet.messageboards.NoSuchThreadException; 1094 1095 /** 1096 * Finds the message boards threads before and after the current message boards thread in the ordered set where groupId = ? and categoryId ≠ ? and status = ?. 1097 * 1098 * <p> 1099 * 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. 1100 * </p> 1101 * 1102 * @param threadId the primary key of the current message boards thread 1103 * @param groupId the group id to search with 1104 * @param categoryId the category id to search with 1105 * @param status the status to search with 1106 * @param orderByComparator the comparator to order the set by 1107 * @return the previous, current, and next message boards thread 1108 * @throws com.liferay.portlet.messageboards.NoSuchThreadException if a message boards thread with the primary key could not be found 1109 * @throws SystemException if a system exception occurred 1110 */ 1111 public com.liferay.portlet.messageboards.model.MBThread[] findByG_NotC_S_PrevAndNext( 1112 long threadId, long groupId, long categoryId, int status, 1113 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1114 throws com.liferay.portal.kernel.exception.SystemException, 1115 com.liferay.portlet.messageboards.NoSuchThreadException; 1116 1117 /** 1118 * Finds all the message boards threads. 1119 * 1120 * @return the message boards threads 1121 * @throws SystemException if a system exception occurred 1122 */ 1123 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findAll() 1124 throws com.liferay.portal.kernel.exception.SystemException; 1125 1126 /** 1127 * Finds a range of all the message boards threads. 1128 * 1129 * <p> 1130 * 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. 1131 * </p> 1132 * 1133 * @param start the lower bound of the range of message boards threads to return 1134 * @param end the upper bound of the range of message boards threads to return (not inclusive) 1135 * @return the range of message boards threads 1136 * @throws SystemException if a system exception occurred 1137 */ 1138 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findAll( 1139 int start, int end) 1140 throws com.liferay.portal.kernel.exception.SystemException; 1141 1142 /** 1143 * Finds an ordered range of all the message boards threads. 1144 * 1145 * <p> 1146 * 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. 1147 * </p> 1148 * 1149 * @param start the lower bound of the range of message boards threads to return 1150 * @param end the upper bound of the range of message boards threads to return (not inclusive) 1151 * @param orderByComparator the comparator to order the results by 1152 * @return the ordered range of message boards threads 1153 * @throws SystemException if a system exception occurred 1154 */ 1155 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findAll( 1156 int start, int end, 1157 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1158 throws com.liferay.portal.kernel.exception.SystemException; 1159 1160 /** 1161 * Removes all the message boards threads where groupId = ? from the database. 1162 * 1163 * @param groupId the group id to search with 1164 * @throws SystemException if a system exception occurred 1165 */ 1166 public void removeByGroupId(long groupId) 1167 throws com.liferay.portal.kernel.exception.SystemException; 1168 1169 /** 1170 * Removes all the message boards threads where groupId = ? and categoryId = ? from the database. 1171 * 1172 * @param groupId the group id to search with 1173 * @param categoryId the category id to search with 1174 * @throws SystemException if a system exception occurred 1175 */ 1176 public void removeByG_C(long groupId, long categoryId) 1177 throws com.liferay.portal.kernel.exception.SystemException; 1178 1179 /** 1180 * Removes all the message boards threads where groupId = ? and categoryId ≠ ? from the database. 1181 * 1182 * @param groupId the group id to search with 1183 * @param categoryId the category id to search with 1184 * @throws SystemException if a system exception occurred 1185 */ 1186 public void removeByG_NotC(long groupId, long categoryId) 1187 throws com.liferay.portal.kernel.exception.SystemException; 1188 1189 /** 1190 * Removes all the message boards threads where groupId = ? and status = ? from the database. 1191 * 1192 * @param groupId the group id to search with 1193 * @param status the status to search with 1194 * @throws SystemException if a system exception occurred 1195 */ 1196 public void removeByG_S(long groupId, int status) 1197 throws com.liferay.portal.kernel.exception.SystemException; 1198 1199 /** 1200 * Removes all the message boards threads where categoryId = ? and priority = ? from the database. 1201 * 1202 * @param categoryId the category id to search with 1203 * @param priority the priority to search with 1204 * @throws SystemException if a system exception occurred 1205 */ 1206 public void removeByC_P(long categoryId, double priority) 1207 throws com.liferay.portal.kernel.exception.SystemException; 1208 1209 /** 1210 * Removes all the message boards threads where groupId = ? and categoryId = ? and lastPostDate = ? from the database. 1211 * 1212 * @param groupId the group id to search with 1213 * @param categoryId the category id to search with 1214 * @param lastPostDate the last post date to search with 1215 * @throws SystemException if a system exception occurred 1216 */ 1217 public void removeByG_C_L(long groupId, long categoryId, 1218 java.util.Date lastPostDate) 1219 throws com.liferay.portal.kernel.exception.SystemException; 1220 1221 /** 1222 * Removes all the message boards threads where groupId = ? and categoryId = ? and status = ? from the database. 1223 * 1224 * @param groupId the group id to search with 1225 * @param categoryId the category id to search with 1226 * @param status the status to search with 1227 * @throws SystemException if a system exception occurred 1228 */ 1229 public void removeByG_C_S(long groupId, long categoryId, int status) 1230 throws com.liferay.portal.kernel.exception.SystemException; 1231 1232 /** 1233 * Removes all the message boards threads where groupId = ? and categoryId ≠ ? and status = ? from the database. 1234 * 1235 * @param groupId the group id to search with 1236 * @param categoryId the category id to search with 1237 * @param status the status to search with 1238 * @throws SystemException if a system exception occurred 1239 */ 1240 public void removeByG_NotC_S(long groupId, long categoryId, int status) 1241 throws com.liferay.portal.kernel.exception.SystemException; 1242 1243 /** 1244 * Removes all the message boards threads from the database. 1245 * 1246 * @throws SystemException if a system exception occurred 1247 */ 1248 public void removeAll() 1249 throws com.liferay.portal.kernel.exception.SystemException; 1250 1251 /** 1252 * Counts all the message boards threads where groupId = ?. 1253 * 1254 * @param groupId the group id to search with 1255 * @return the number of matching message boards threads 1256 * @throws SystemException if a system exception occurred 1257 */ 1258 public int countByGroupId(long groupId) 1259 throws com.liferay.portal.kernel.exception.SystemException; 1260 1261 /** 1262 * Counts all the message boards threads where groupId = ? and categoryId = ?. 1263 * 1264 * @param groupId the group id to search with 1265 * @param categoryId the category id to search with 1266 * @return the number of matching message boards threads 1267 * @throws SystemException if a system exception occurred 1268 */ 1269 public int countByG_C(long groupId, long categoryId) 1270 throws com.liferay.portal.kernel.exception.SystemException; 1271 1272 /** 1273 * Counts all the message boards threads where groupId = ? and categoryId = any ?. 1274 * 1275 * @param groupId the group id to search with 1276 * @param categoryIds the category ids to search with 1277 * @return the number of matching message boards threads 1278 * @throws SystemException if a system exception occurred 1279 */ 1280 public int countByG_C(long groupId, long[] categoryIds) 1281 throws com.liferay.portal.kernel.exception.SystemException; 1282 1283 /** 1284 * Counts all the message boards threads where groupId = ? and categoryId ≠ ?. 1285 * 1286 * @param groupId the group id to search with 1287 * @param categoryId the category id to search with 1288 * @return the number of matching message boards threads 1289 * @throws SystemException if a system exception occurred 1290 */ 1291 public int countByG_NotC(long groupId, long categoryId) 1292 throws com.liferay.portal.kernel.exception.SystemException; 1293 1294 /** 1295 * Counts all the message boards threads where groupId = ? and status = ?. 1296 * 1297 * @param groupId the group id to search with 1298 * @param status the status to search with 1299 * @return the number of matching message boards threads 1300 * @throws SystemException if a system exception occurred 1301 */ 1302 public int countByG_S(long groupId, int status) 1303 throws com.liferay.portal.kernel.exception.SystemException; 1304 1305 /** 1306 * Counts all the message boards threads where categoryId = ? and priority = ?. 1307 * 1308 * @param categoryId the category id to search with 1309 * @param priority the priority to search with 1310 * @return the number of matching message boards threads 1311 * @throws SystemException if a system exception occurred 1312 */ 1313 public int countByC_P(long categoryId, double priority) 1314 throws com.liferay.portal.kernel.exception.SystemException; 1315 1316 /** 1317 * Counts all the message boards threads where groupId = ? and categoryId = ? and lastPostDate = ?. 1318 * 1319 * @param groupId the group id to search with 1320 * @param categoryId the category id to search with 1321 * @param lastPostDate the last post date to search with 1322 * @return the number of matching message boards threads 1323 * @throws SystemException if a system exception occurred 1324 */ 1325 public int countByG_C_L(long groupId, long categoryId, 1326 java.util.Date lastPostDate) 1327 throws com.liferay.portal.kernel.exception.SystemException; 1328 1329 /** 1330 * Counts all the message boards threads where groupId = ? and categoryId = ? and status = ?. 1331 * 1332 * @param groupId the group id to search with 1333 * @param categoryId the category id to search with 1334 * @param status the status to search with 1335 * @return the number of matching message boards threads 1336 * @throws SystemException if a system exception occurred 1337 */ 1338 public int countByG_C_S(long groupId, long categoryId, int status) 1339 throws com.liferay.portal.kernel.exception.SystemException; 1340 1341 /** 1342 * Counts all the message boards threads where groupId = ? and categoryId = any ? and status = ?. 1343 * 1344 * @param groupId the group id to search with 1345 * @param categoryIds the category ids to search with 1346 * @param status the status to search with 1347 * @return the number of matching message boards threads 1348 * @throws SystemException if a system exception occurred 1349 */ 1350 public int countByG_C_S(long groupId, long[] categoryIds, int status) 1351 throws com.liferay.portal.kernel.exception.SystemException; 1352 1353 /** 1354 * Counts all the message boards threads where groupId = ? and categoryId ≠ ? and status = ?. 1355 * 1356 * @param groupId the group id to search with 1357 * @param categoryId the category id to search with 1358 * @param status the status to search with 1359 * @return the number of matching message boards threads 1360 * @throws SystemException if a system exception occurred 1361 */ 1362 public int countByG_NotC_S(long groupId, long categoryId, int status) 1363 throws com.liferay.portal.kernel.exception.SystemException; 1364 1365 /** 1366 * Counts all the message boards threads. 1367 * 1368 * @return the number of message boards threads 1369 * @throws SystemException if a system exception occurred 1370 */ 1371 public int countAll() 1372 throws com.liferay.portal.kernel.exception.SystemException; 1373 }