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