001 /** 002 * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved. 003 * 004 * The contents of this file are subject to the terms of the Liferay Enterprise 005 * Subscription License ("License"). You may not use this file except in 006 * compliance with the License. You can obtain a copy of the License by 007 * contacting Liferay, Inc. See the License for the specific language governing 008 * permissions and limitations under the License, including but not limited to 009 * distribution rights of the Software. 010 * 011 * 012 * 013 */ 014 015 package com.liferay.portlet.messageboards.service.persistence; 016 017 import com.liferay.portal.kernel.exception.SystemException; 018 import com.liferay.portal.service.persistence.BasePersistence; 019 020 import com.liferay.portlet.messageboards.model.MBThread; 021 022 /** 023 * The persistence interface for the message boards thread service. 024 * 025 * <p> 026 * Caching information and settings can be found in <code>portal.properties</code> 027 * </p> 028 * 029 * @author Brian Wing Shun Chan 030 * @see MBThreadPersistenceImpl 031 * @see MBThreadUtil 032 * @generated 033 */ 034 public interface MBThreadPersistence extends BasePersistence<MBThread> { 035 /* 036 * NOTE FOR DEVELOPERS: 037 * 038 * 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. 039 */ 040 041 /** 042 * Caches the message boards thread in the entity cache if it is enabled. 043 * 044 * @param mbThread the message boards thread to cache 045 */ 046 public void cacheResult( 047 com.liferay.portlet.messageboards.model.MBThread mbThread); 048 049 /** 050 * Caches the message boards threads in the entity cache if it is enabled. 051 * 052 * @param mbThreads the message boards threads to cache 053 */ 054 public void cacheResult( 055 java.util.List<com.liferay.portlet.messageboards.model.MBThread> mbThreads); 056 057 /** 058 * Creates a new message boards thread with the primary key. Does not add the message boards thread to the database. 059 * 060 * @param threadId the primary key for the new message boards thread 061 * @return the new message boards thread 062 */ 063 public com.liferay.portlet.messageboards.model.MBThread create( 064 long threadId); 065 066 /** 067 * Removes the message boards thread with the primary key from the database. Also notifies the appropriate model listeners. 068 * 069 * @param threadId the primary key of the message boards thread to remove 070 * @return the message boards thread that was removed 071 * @throws com.liferay.portlet.messageboards.NoSuchThreadException if a message boards thread with the primary key could not be found 072 * @throws SystemException if a system exception occurred 073 */ 074 public com.liferay.portlet.messageboards.model.MBThread remove( 075 long threadId) 076 throws com.liferay.portal.kernel.exception.SystemException, 077 com.liferay.portlet.messageboards.NoSuchThreadException; 078 079 public com.liferay.portlet.messageboards.model.MBThread updateImpl( 080 com.liferay.portlet.messageboards.model.MBThread mbThread, boolean merge) 081 throws com.liferay.portal.kernel.exception.SystemException; 082 083 /** 084 * Finds the message boards thread with the primary key or throws a {@link com.liferay.portlet.messageboards.NoSuchThreadException} if it could not be found. 085 * 086 * @param threadId the primary key of the message boards thread to find 087 * @return the message boards thread 088 * @throws com.liferay.portlet.messageboards.NoSuchThreadException if a message boards thread with the primary key could not be found 089 * @throws SystemException if a system exception occurred 090 */ 091 public com.liferay.portlet.messageboards.model.MBThread findByPrimaryKey( 092 long threadId) 093 throws com.liferay.portal.kernel.exception.SystemException, 094 com.liferay.portlet.messageboards.NoSuchThreadException; 095 096 /** 097 * Finds the message boards thread with the primary key or returns <code>null</code> if it could not be found. 098 * 099 * @param threadId the primary key of the message boards thread to find 100 * @return the message boards thread, or <code>null</code> if a message boards thread with the primary key could not be found 101 * @throws SystemException if a system exception occurred 102 */ 103 public com.liferay.portlet.messageboards.model.MBThread fetchByPrimaryKey( 104 long threadId) 105 throws com.liferay.portal.kernel.exception.SystemException; 106 107 /** 108 * Finds all the message boards threads where groupId = ?. 109 * 110 * @param groupId the group ID to search with 111 * @return the matching message boards threads 112 * @throws SystemException if a system exception occurred 113 */ 114 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByGroupId( 115 long groupId) 116 throws com.liferay.portal.kernel.exception.SystemException; 117 118 /** 119 * Finds a range of all the message boards threads where groupId = ?. 120 * 121 * <p> 122 * 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. 123 * </p> 124 * 125 * @param groupId the group ID to search with 126 * @param start the lower bound of the range of message boards threads to return 127 * @param end the upper bound of the range of message boards threads to return (not inclusive) 128 * @return the range of matching message boards threads 129 * @throws SystemException if a system exception occurred 130 */ 131 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByGroupId( 132 long groupId, int start, int end) 133 throws com.liferay.portal.kernel.exception.SystemException; 134 135 /** 136 * Finds an ordered range of all the message boards threads where groupId = ?. 137 * 138 * <p> 139 * 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. 140 * </p> 141 * 142 * @param groupId the group ID to search with 143 * @param start the lower bound of the range of message boards threads to return 144 * @param end the upper bound of the range of message boards threads to return (not inclusive) 145 * @param orderByComparator the comparator to order the results by 146 * @return the ordered range of matching message boards threads 147 * @throws SystemException if a system exception occurred 148 */ 149 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByGroupId( 150 long groupId, int start, int end, 151 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 152 throws com.liferay.portal.kernel.exception.SystemException; 153 154 /** 155 * Finds the first message boards thread in the ordered set where groupId = ?. 156 * 157 * <p> 158 * 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. 159 * </p> 160 * 161 * @param groupId the group ID to search with 162 * @param orderByComparator the comparator to order the set by 163 * @return the first matching message boards thread 164 * @throws com.liferay.portlet.messageboards.NoSuchThreadException if a matching message boards thread could not be found 165 * @throws SystemException if a system exception occurred 166 */ 167 public com.liferay.portlet.messageboards.model.MBThread findByGroupId_First( 168 long groupId, 169 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 170 throws com.liferay.portal.kernel.exception.SystemException, 171 com.liferay.portlet.messageboards.NoSuchThreadException; 172 173 /** 174 * Finds the last message boards thread in the ordered set where groupId = ?. 175 * 176 * <p> 177 * 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. 178 * </p> 179 * 180 * @param groupId the group ID to search with 181 * @param orderByComparator the comparator to order the set by 182 * @return the last matching message boards thread 183 * @throws com.liferay.portlet.messageboards.NoSuchThreadException if a matching message boards thread could not be found 184 * @throws SystemException if a system exception occurred 185 */ 186 public com.liferay.portlet.messageboards.model.MBThread findByGroupId_Last( 187 long groupId, 188 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 189 throws com.liferay.portal.kernel.exception.SystemException, 190 com.liferay.portlet.messageboards.NoSuchThreadException; 191 192 /** 193 * Finds the message boards threads before and after the current message boards thread in the ordered set where groupId = ?. 194 * 195 * <p> 196 * 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. 197 * </p> 198 * 199 * @param threadId the primary key of the current message boards thread 200 * @param groupId the group ID to search with 201 * @param orderByComparator the comparator to order the set by 202 * @return the previous, current, and next message boards thread 203 * @throws com.liferay.portlet.messageboards.NoSuchThreadException if a message boards thread with the primary key could not be found 204 * @throws SystemException if a system exception occurred 205 */ 206 public com.liferay.portlet.messageboards.model.MBThread[] findByGroupId_PrevAndNext( 207 long threadId, long groupId, 208 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 209 throws com.liferay.portal.kernel.exception.SystemException, 210 com.liferay.portlet.messageboards.NoSuchThreadException; 211 212 /** 213 * Finds the message boards thread where rootMessageId = ? or throws a {@link com.liferay.portlet.messageboards.NoSuchThreadException} if it could not be found. 214 * 215 * @param rootMessageId the root message ID to search with 216 * @return the matching message boards thread 217 * @throws com.liferay.portlet.messageboards.NoSuchThreadException if a matching message boards thread could not be found 218 * @throws SystemException if a system exception occurred 219 */ 220 public com.liferay.portlet.messageboards.model.MBThread findByRootMessageId( 221 long rootMessageId) 222 throws com.liferay.portal.kernel.exception.SystemException, 223 com.liferay.portlet.messageboards.NoSuchThreadException; 224 225 /** 226 * Finds the message boards thread where rootMessageId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 227 * 228 * @param rootMessageId the root message ID to search with 229 * @return the matching message boards thread, or <code>null</code> if a matching message boards thread could not be found 230 * @throws SystemException if a system exception occurred 231 */ 232 public com.liferay.portlet.messageboards.model.MBThread fetchByRootMessageId( 233 long rootMessageId) 234 throws com.liferay.portal.kernel.exception.SystemException; 235 236 /** 237 * Finds the message boards thread where rootMessageId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 238 * 239 * @param rootMessageId the root message ID to search with 240 * @return the matching message boards thread, or <code>null</code> if a matching message boards thread could not be found 241 * @throws SystemException if a system exception occurred 242 */ 243 public com.liferay.portlet.messageboards.model.MBThread fetchByRootMessageId( 244 long rootMessageId, boolean retrieveFromCache) 245 throws com.liferay.portal.kernel.exception.SystemException; 246 247 /** 248 * Finds all the message boards threads where groupId = ? and categoryId = ?. 249 * 250 * @param groupId the group ID to search with 251 * @param categoryId the category ID to search with 252 * @return the matching message boards threads 253 * @throws SystemException if a system exception occurred 254 */ 255 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_C( 256 long groupId, long categoryId) 257 throws com.liferay.portal.kernel.exception.SystemException; 258 259 /** 260 * Finds a range of all the message boards threads 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 start the lower bound of the range of message boards threads to return 269 * @param end the upper bound of the range of message boards threads to return (not inclusive) 270 * @return the range of matching message boards threads 271 * @throws SystemException if a system exception occurred 272 */ 273 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_C( 274 long groupId, long categoryId, int start, int end) 275 throws com.liferay.portal.kernel.exception.SystemException; 276 277 /** 278 * Finds an ordered range of all the message boards threads where groupId = ? and categoryId = ?. 279 * 280 * <p> 281 * 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. 282 * </p> 283 * 284 * @param groupId the group ID to search with 285 * @param categoryId the category ID to search with 286 * @param start the lower bound of the range of message boards threads to return 287 * @param end the upper bound of the range of message boards threads to return (not inclusive) 288 * @param orderByComparator the comparator to order the results by 289 * @return the ordered range of matching message boards threads 290 * @throws SystemException if a system exception occurred 291 */ 292 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_C( 293 long groupId, long categoryId, int start, int end, 294 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 295 throws com.liferay.portal.kernel.exception.SystemException; 296 297 /** 298 * Finds the first message boards thread in the ordered set where groupId = ? and categoryId = ?. 299 * 300 * <p> 301 * 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. 302 * </p> 303 * 304 * @param groupId the group ID to search with 305 * @param categoryId the category ID to search with 306 * @param orderByComparator the comparator to order the set by 307 * @return the first matching message boards thread 308 * @throws com.liferay.portlet.messageboards.NoSuchThreadException if a matching message boards thread could not be found 309 * @throws SystemException if a system exception occurred 310 */ 311 public com.liferay.portlet.messageboards.model.MBThread findByG_C_First( 312 long groupId, long categoryId, 313 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 314 throws com.liferay.portal.kernel.exception.SystemException, 315 com.liferay.portlet.messageboards.NoSuchThreadException; 316 317 /** 318 * Finds the last message boards thread in the ordered set where groupId = ? and categoryId = ?. 319 * 320 * <p> 321 * 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. 322 * </p> 323 * 324 * @param groupId the group ID to search with 325 * @param categoryId the category ID to search with 326 * @param orderByComparator the comparator to order the set by 327 * @return the last matching message boards thread 328 * @throws com.liferay.portlet.messageboards.NoSuchThreadException if a matching message boards thread could not be found 329 * @throws SystemException if a system exception occurred 330 */ 331 public com.liferay.portlet.messageboards.model.MBThread findByG_C_Last( 332 long groupId, long categoryId, 333 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 334 throws com.liferay.portal.kernel.exception.SystemException, 335 com.liferay.portlet.messageboards.NoSuchThreadException; 336 337 /** 338 * Finds the message boards threads before and after the current message boards thread in the ordered set where groupId = ? and categoryId = ?. 339 * 340 * <p> 341 * 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. 342 * </p> 343 * 344 * @param threadId the primary key of the current message boards thread 345 * @param groupId the group ID to search with 346 * @param categoryId the category ID to search with 347 * @param orderByComparator the comparator to order the set by 348 * @return the previous, current, and next message boards thread 349 * @throws com.liferay.portlet.messageboards.NoSuchThreadException if a message boards thread with the primary key could not be found 350 * @throws SystemException if a system exception occurred 351 */ 352 public com.liferay.portlet.messageboards.model.MBThread[] findByG_C_PrevAndNext( 353 long threadId, long groupId, long categoryId, 354 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 355 throws com.liferay.portal.kernel.exception.SystemException, 356 com.liferay.portlet.messageboards.NoSuchThreadException; 357 358 /** 359 * Finds all the message boards threads where groupId = ? and categoryId = any ?. 360 * 361 * <p> 362 * 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. 363 * </p> 364 * 365 * @param groupId the group ID to search with 366 * @param categoryIds the category IDs to search with 367 * @return the matching message boards threads 368 * @throws SystemException if a system exception occurred 369 */ 370 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_C( 371 long groupId, long[] categoryIds) 372 throws com.liferay.portal.kernel.exception.SystemException; 373 374 /** 375 * Finds a range of all the message boards threads where groupId = ? and categoryId = any ?. 376 * 377 * <p> 378 * 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. 379 * </p> 380 * 381 * @param groupId the group ID to search with 382 * @param categoryIds the category IDs to search with 383 * @param start the lower bound of the range of message boards threads to return 384 * @param end the upper bound of the range of message boards threads to return (not inclusive) 385 * @return the range of matching message boards threads 386 * @throws SystemException if a system exception occurred 387 */ 388 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_C( 389 long groupId, long[] categoryIds, int start, int end) 390 throws com.liferay.portal.kernel.exception.SystemException; 391 392 /** 393 * Finds an ordered range of all the message boards threads where groupId = ? and categoryId = any ?. 394 * 395 * <p> 396 * 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. 397 * </p> 398 * 399 * @param groupId the group ID to search with 400 * @param categoryIds the category IDs to search with 401 * @param start the lower bound of the range of message boards threads to return 402 * @param end the upper bound of the range of message boards threads to return (not inclusive) 403 * @param orderByComparator the comparator to order the results by 404 * @return the ordered range of matching message boards threads 405 * @throws SystemException if a system exception occurred 406 */ 407 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_C( 408 long groupId, long[] categoryIds, int start, int end, 409 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 410 throws com.liferay.portal.kernel.exception.SystemException; 411 412 /** 413 * Finds all the message boards threads where groupId = ? and categoryId ≠ ?. 414 * 415 * @param groupId the group ID to search with 416 * @param categoryId the category ID to search with 417 * @return the matching message boards threads 418 * @throws SystemException if a system exception occurred 419 */ 420 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_NotC( 421 long groupId, long categoryId) 422 throws com.liferay.portal.kernel.exception.SystemException; 423 424 /** 425 * Finds a range of all the message boards threads 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 start the lower bound of the range of message boards threads to return 434 * @param end the upper bound of the range of message boards threads to return (not inclusive) 435 * @return the range of matching message boards threads 436 * @throws SystemException if a system exception occurred 437 */ 438 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_NotC( 439 long groupId, long categoryId, int start, int end) 440 throws com.liferay.portal.kernel.exception.SystemException; 441 442 /** 443 * Finds an ordered range of all the message boards threads where groupId = ? and categoryId ≠ ?. 444 * 445 * <p> 446 * 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. 447 * </p> 448 * 449 * @param groupId the group ID to search with 450 * @param categoryId the category ID to search with 451 * @param start the lower bound of the range of message boards threads to return 452 * @param end the upper bound of the range of message boards threads to return (not inclusive) 453 * @param orderByComparator the comparator to order the results by 454 * @return the ordered range of matching message boards threads 455 * @throws SystemException if a system exception occurred 456 */ 457 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_NotC( 458 long groupId, long categoryId, int start, int end, 459 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 460 throws com.liferay.portal.kernel.exception.SystemException; 461 462 /** 463 * Finds the first message boards thread in the ordered set where groupId = ? and categoryId ≠ ?. 464 * 465 * <p> 466 * 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. 467 * </p> 468 * 469 * @param groupId the group ID to search with 470 * @param categoryId the category ID to search with 471 * @param orderByComparator the comparator to order the set by 472 * @return the first matching message boards thread 473 * @throws com.liferay.portlet.messageboards.NoSuchThreadException if a matching message boards thread could not be found 474 * @throws SystemException if a system exception occurred 475 */ 476 public com.liferay.portlet.messageboards.model.MBThread findByG_NotC_First( 477 long groupId, long categoryId, 478 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 479 throws com.liferay.portal.kernel.exception.SystemException, 480 com.liferay.portlet.messageboards.NoSuchThreadException; 481 482 /** 483 * Finds the last message boards thread in the ordered set where groupId = ? and categoryId ≠ ?. 484 * 485 * <p> 486 * 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. 487 * </p> 488 * 489 * @param groupId the group ID to search with 490 * @param categoryId the category ID to search with 491 * @param orderByComparator the comparator to order the set by 492 * @return the last matching message boards thread 493 * @throws com.liferay.portlet.messageboards.NoSuchThreadException if a matching message boards thread could not be found 494 * @throws SystemException if a system exception occurred 495 */ 496 public com.liferay.portlet.messageboards.model.MBThread findByG_NotC_Last( 497 long groupId, long categoryId, 498 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 499 throws com.liferay.portal.kernel.exception.SystemException, 500 com.liferay.portlet.messageboards.NoSuchThreadException; 501 502 /** 503 * Finds the message boards threads before and after the current message boards thread in the ordered set where groupId = ? and categoryId ≠ ?. 504 * 505 * <p> 506 * 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. 507 * </p> 508 * 509 * @param threadId the primary key of the current message boards thread 510 * @param groupId the group ID to search with 511 * @param categoryId the category ID to search with 512 * @param orderByComparator the comparator to order the set by 513 * @return the previous, current, and next message boards thread 514 * @throws com.liferay.portlet.messageboards.NoSuchThreadException if a message boards thread with the primary key could not be found 515 * @throws SystemException if a system exception occurred 516 */ 517 public com.liferay.portlet.messageboards.model.MBThread[] findByG_NotC_PrevAndNext( 518 long threadId, long groupId, long categoryId, 519 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 520 throws com.liferay.portal.kernel.exception.SystemException, 521 com.liferay.portlet.messageboards.NoSuchThreadException; 522 523 /** 524 * Finds all the message boards threads where groupId = ? and status = ?. 525 * 526 * @param groupId the group ID to search with 527 * @param status the status to search with 528 * @return the matching message boards threads 529 * @throws SystemException if a system exception occurred 530 */ 531 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_S( 532 long groupId, int status) 533 throws com.liferay.portal.kernel.exception.SystemException; 534 535 /** 536 * Finds a range of all the message boards threads 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 start the lower bound of the range of message boards threads to return 545 * @param end the upper bound of the range of message boards threads to return (not inclusive) 546 * @return the range of matching message boards threads 547 * @throws SystemException if a system exception occurred 548 */ 549 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_S( 550 long groupId, int status, int start, int end) 551 throws com.liferay.portal.kernel.exception.SystemException; 552 553 /** 554 * Finds an ordered range of all the message boards threads where groupId = ? and status = ?. 555 * 556 * <p> 557 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 558 * </p> 559 * 560 * @param groupId the group ID to search with 561 * @param status the status to search with 562 * @param start the lower bound of the range of message boards threads to return 563 * @param end the upper bound of the range of message boards threads to return (not inclusive) 564 * @param orderByComparator the comparator to order the results by 565 * @return the ordered range of matching message boards threads 566 * @throws SystemException if a system exception occurred 567 */ 568 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_S( 569 long groupId, int status, int start, int end, 570 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 571 throws com.liferay.portal.kernel.exception.SystemException; 572 573 /** 574 * Finds the first message boards thread in the ordered set where groupId = ? and status = ?. 575 * 576 * <p> 577 * 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. 578 * </p> 579 * 580 * @param groupId the group ID to search with 581 * @param status the status to search with 582 * @param orderByComparator the comparator to order the set by 583 * @return the first matching message boards thread 584 * @throws com.liferay.portlet.messageboards.NoSuchThreadException if a matching message boards thread could not be found 585 * @throws SystemException if a system exception occurred 586 */ 587 public com.liferay.portlet.messageboards.model.MBThread findByG_S_First( 588 long groupId, int status, 589 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 590 throws com.liferay.portal.kernel.exception.SystemException, 591 com.liferay.portlet.messageboards.NoSuchThreadException; 592 593 /** 594 * Finds the last message boards thread in the ordered set where groupId = ? and status = ?. 595 * 596 * <p> 597 * 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. 598 * </p> 599 * 600 * @param groupId the group ID to search with 601 * @param status the status to search with 602 * @param orderByComparator the comparator to order the set by 603 * @return the last matching message boards thread 604 * @throws com.liferay.portlet.messageboards.NoSuchThreadException if a matching message boards thread could not be found 605 * @throws SystemException if a system exception occurred 606 */ 607 public com.liferay.portlet.messageboards.model.MBThread findByG_S_Last( 608 long groupId, int status, 609 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 610 throws com.liferay.portal.kernel.exception.SystemException, 611 com.liferay.portlet.messageboards.NoSuchThreadException; 612 613 /** 614 * Finds the message boards threads before and after the current message boards thread in the ordered set where groupId = ? and status = ?. 615 * 616 * <p> 617 * 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. 618 * </p> 619 * 620 * @param threadId the primary key of the current message boards thread 621 * @param groupId the group ID to search with 622 * @param status the status to search with 623 * @param orderByComparator the comparator to order the set by 624 * @return the previous, current, and next message boards thread 625 * @throws com.liferay.portlet.messageboards.NoSuchThreadException if a message boards thread with the primary key could not be found 626 * @throws SystemException if a system exception occurred 627 */ 628 public com.liferay.portlet.messageboards.model.MBThread[] findByG_S_PrevAndNext( 629 long threadId, long groupId, int status, 630 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 631 throws com.liferay.portal.kernel.exception.SystemException, 632 com.liferay.portlet.messageboards.NoSuchThreadException; 633 634 /** 635 * Finds all the message boards threads where categoryId = ? and priority = ?. 636 * 637 * @param categoryId the category ID to search with 638 * @param priority the priority to search with 639 * @return the matching message boards threads 640 * @throws SystemException if a system exception occurred 641 */ 642 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByC_P( 643 long categoryId, double priority) 644 throws com.liferay.portal.kernel.exception.SystemException; 645 646 /** 647 * Finds a range of all the message boards threads 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 start the lower bound of the range of message boards threads to return 656 * @param end the upper bound of the range of message boards threads to return (not inclusive) 657 * @return the range of matching message boards threads 658 * @throws SystemException if a system exception occurred 659 */ 660 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByC_P( 661 long categoryId, double priority, int start, int end) 662 throws com.liferay.portal.kernel.exception.SystemException; 663 664 /** 665 * Finds an ordered range of all the message boards threads where categoryId = ? and priority = ?. 666 * 667 * <p> 668 * 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. 669 * </p> 670 * 671 * @param categoryId the category ID to search with 672 * @param priority the priority to search with 673 * @param start the lower bound of the range of message boards threads to return 674 * @param end the upper bound of the range of message boards threads to return (not inclusive) 675 * @param orderByComparator the comparator to order the results by 676 * @return the ordered range of matching message boards threads 677 * @throws SystemException if a system exception occurred 678 */ 679 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByC_P( 680 long categoryId, double priority, int start, int end, 681 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 682 throws com.liferay.portal.kernel.exception.SystemException; 683 684 /** 685 * Finds the first message boards thread in the ordered set where categoryId = ? and priority = ?. 686 * 687 * <p> 688 * 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. 689 * </p> 690 * 691 * @param categoryId the category ID to search with 692 * @param priority the priority to search with 693 * @param orderByComparator the comparator to order the set by 694 * @return the first matching message boards thread 695 * @throws com.liferay.portlet.messageboards.NoSuchThreadException if a matching message boards thread could not be found 696 * @throws SystemException if a system exception occurred 697 */ 698 public com.liferay.portlet.messageboards.model.MBThread findByC_P_First( 699 long categoryId, double priority, 700 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 701 throws com.liferay.portal.kernel.exception.SystemException, 702 com.liferay.portlet.messageboards.NoSuchThreadException; 703 704 /** 705 * Finds the last message boards thread in the ordered set where categoryId = ? and priority = ?. 706 * 707 * <p> 708 * 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. 709 * </p> 710 * 711 * @param categoryId the category ID to search with 712 * @param priority the priority to search with 713 * @param orderByComparator the comparator to order the set by 714 * @return the last matching message boards thread 715 * @throws com.liferay.portlet.messageboards.NoSuchThreadException if a matching message boards thread could not be found 716 * @throws SystemException if a system exception occurred 717 */ 718 public com.liferay.portlet.messageboards.model.MBThread findByC_P_Last( 719 long categoryId, double priority, 720 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 721 throws com.liferay.portal.kernel.exception.SystemException, 722 com.liferay.portlet.messageboards.NoSuchThreadException; 723 724 /** 725 * Finds the message boards threads before and after the current message boards thread in the ordered set where categoryId = ? and priority = ?. 726 * 727 * <p> 728 * 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. 729 * </p> 730 * 731 * @param threadId the primary key of the current message boards thread 732 * @param categoryId the category ID to search with 733 * @param priority the priority to search with 734 * @param orderByComparator the comparator to order the set by 735 * @return the previous, current, and next message boards thread 736 * @throws com.liferay.portlet.messageboards.NoSuchThreadException if a message boards thread with the primary key could not be found 737 * @throws SystemException if a system exception occurred 738 */ 739 public com.liferay.portlet.messageboards.model.MBThread[] findByC_P_PrevAndNext( 740 long threadId, long categoryId, double priority, 741 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 742 throws com.liferay.portal.kernel.exception.SystemException, 743 com.liferay.portlet.messageboards.NoSuchThreadException; 744 745 /** 746 * Finds all the message boards threads where lastPostDate = ? and priority = ?. 747 * 748 * @param lastPostDate the last post date to search with 749 * @param priority the priority to search with 750 * @return the matching message boards threads 751 * @throws SystemException if a system exception occurred 752 */ 753 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByL_P( 754 java.util.Date lastPostDate, double priority) 755 throws com.liferay.portal.kernel.exception.SystemException; 756 757 /** 758 * Finds a range of all the message boards threads where lastPostDate = ? and priority = ?. 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 lastPostDate the last post date to search with 765 * @param priority the priority to search with 766 * @param start the lower bound of the range of message boards threads to return 767 * @param end the upper bound of the range of message boards threads to return (not inclusive) 768 * @return the range of matching message boards threads 769 * @throws SystemException if a system exception occurred 770 */ 771 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByL_P( 772 java.util.Date lastPostDate, double priority, int start, int end) 773 throws com.liferay.portal.kernel.exception.SystemException; 774 775 /** 776 * Finds an ordered range of all the message boards threads where lastPostDate = ? and priority = ?. 777 * 778 * <p> 779 * 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. 780 * </p> 781 * 782 * @param lastPostDate the last post date to search with 783 * @param priority the priority to search with 784 * @param start the lower bound of the range of message boards threads to return 785 * @param end the upper bound of the range of message boards threads to return (not inclusive) 786 * @param orderByComparator the comparator to order the results by 787 * @return the ordered range of matching message boards threads 788 * @throws SystemException if a system exception occurred 789 */ 790 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByL_P( 791 java.util.Date lastPostDate, double priority, int start, int end, 792 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 793 throws com.liferay.portal.kernel.exception.SystemException; 794 795 /** 796 * Finds the first message boards thread in the ordered set where lastPostDate = ? and priority = ?. 797 * 798 * <p> 799 * 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. 800 * </p> 801 * 802 * @param lastPostDate the last post date to search with 803 * @param priority the priority to search with 804 * @param orderByComparator the comparator to order the set by 805 * @return the first matching message boards thread 806 * @throws com.liferay.portlet.messageboards.NoSuchThreadException if a matching message boards thread could not be found 807 * @throws SystemException if a system exception occurred 808 */ 809 public com.liferay.portlet.messageboards.model.MBThread findByL_P_First( 810 java.util.Date lastPostDate, double priority, 811 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 812 throws com.liferay.portal.kernel.exception.SystemException, 813 com.liferay.portlet.messageboards.NoSuchThreadException; 814 815 /** 816 * Finds the last message boards thread in the ordered set where lastPostDate = ? and priority = ?. 817 * 818 * <p> 819 * 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. 820 * </p> 821 * 822 * @param lastPostDate the last post date to search with 823 * @param priority the priority to search with 824 * @param orderByComparator the comparator to order the set by 825 * @return the last matching message boards thread 826 * @throws com.liferay.portlet.messageboards.NoSuchThreadException if a matching message boards thread could not be found 827 * @throws SystemException if a system exception occurred 828 */ 829 public com.liferay.portlet.messageboards.model.MBThread findByL_P_Last( 830 java.util.Date lastPostDate, double priority, 831 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 832 throws com.liferay.portal.kernel.exception.SystemException, 833 com.liferay.portlet.messageboards.NoSuchThreadException; 834 835 /** 836 * Finds the message boards threads before and after the current message boards thread in the ordered set where lastPostDate = ? and priority = ?. 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 threadId the primary key of the current message boards thread 843 * @param lastPostDate the last post date to search with 844 * @param priority the priority to search with 845 * @param orderByComparator the comparator to order the set by 846 * @return the previous, current, and next message boards thread 847 * @throws com.liferay.portlet.messageboards.NoSuchThreadException if a message boards thread with the primary key could not be found 848 * @throws SystemException if a system exception occurred 849 */ 850 public com.liferay.portlet.messageboards.model.MBThread[] findByL_P_PrevAndNext( 851 long threadId, java.util.Date lastPostDate, double priority, 852 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 853 throws com.liferay.portal.kernel.exception.SystemException, 854 com.liferay.portlet.messageboards.NoSuchThreadException; 855 856 /** 857 * Finds all the message boards threads where groupId = ? and categoryId = ? and lastPostDate = ?. 858 * 859 * @param groupId the group ID to search with 860 * @param categoryId the category ID to search with 861 * @param lastPostDate the last post date to search with 862 * @return the matching message boards threads 863 * @throws SystemException if a system exception occurred 864 */ 865 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_C_L( 866 long groupId, long categoryId, java.util.Date lastPostDate) 867 throws com.liferay.portal.kernel.exception.SystemException; 868 869 /** 870 * Finds a range of all the message boards threads where groupId = ? and categoryId = ? and lastPostDate = ?. 871 * 872 * <p> 873 * 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. 874 * </p> 875 * 876 * @param groupId the group ID to search with 877 * @param categoryId the category ID to search with 878 * @param lastPostDate the last post date to search with 879 * @param start the lower bound of the range of message boards threads to return 880 * @param end the upper bound of the range of message boards threads to return (not inclusive) 881 * @return the range of matching message boards threads 882 * @throws SystemException if a system exception occurred 883 */ 884 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_C_L( 885 long groupId, long categoryId, java.util.Date lastPostDate, int start, 886 int end) throws com.liferay.portal.kernel.exception.SystemException; 887 888 /** 889 * Finds an ordered range of all the message boards threads where groupId = ? and categoryId = ? and lastPostDate = ?. 890 * 891 * <p> 892 * 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. 893 * </p> 894 * 895 * @param groupId the group ID to search with 896 * @param categoryId the category ID to search with 897 * @param lastPostDate the last post date to search with 898 * @param start the lower bound of the range of message boards threads to return 899 * @param end the upper bound of the range of message boards threads to return (not inclusive) 900 * @param orderByComparator the comparator to order the results by 901 * @return the ordered range of matching message boards threads 902 * @throws SystemException if a system exception occurred 903 */ 904 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_C_L( 905 long groupId, long categoryId, java.util.Date lastPostDate, int start, 906 int end, 907 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 908 throws com.liferay.portal.kernel.exception.SystemException; 909 910 /** 911 * Finds the first message boards thread in the ordered set where groupId = ? and categoryId = ? and lastPostDate = ?. 912 * 913 * <p> 914 * 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. 915 * </p> 916 * 917 * @param groupId the group ID to search with 918 * @param categoryId the category ID to search with 919 * @param lastPostDate the last post date to search with 920 * @param orderByComparator the comparator to order the set by 921 * @return the first matching message boards thread 922 * @throws com.liferay.portlet.messageboards.NoSuchThreadException if a matching message boards thread could not be found 923 * @throws SystemException if a system exception occurred 924 */ 925 public com.liferay.portlet.messageboards.model.MBThread findByG_C_L_First( 926 long groupId, long categoryId, java.util.Date lastPostDate, 927 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 928 throws com.liferay.portal.kernel.exception.SystemException, 929 com.liferay.portlet.messageboards.NoSuchThreadException; 930 931 /** 932 * Finds the last message boards thread in the ordered set where groupId = ? and categoryId = ? and lastPostDate = ?. 933 * 934 * <p> 935 * 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. 936 * </p> 937 * 938 * @param groupId the group ID to search with 939 * @param categoryId the category ID to search with 940 * @param lastPostDate the last post date to search with 941 * @param orderByComparator the comparator to order the set by 942 * @return the last matching message boards thread 943 * @throws com.liferay.portlet.messageboards.NoSuchThreadException if a matching message boards thread could not be found 944 * @throws SystemException if a system exception occurred 945 */ 946 public com.liferay.portlet.messageboards.model.MBThread findByG_C_L_Last( 947 long groupId, long categoryId, java.util.Date lastPostDate, 948 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 949 throws com.liferay.portal.kernel.exception.SystemException, 950 com.liferay.portlet.messageboards.NoSuchThreadException; 951 952 /** 953 * Finds the message boards threads before and after the current message boards thread in the ordered set where groupId = ? and categoryId = ? and lastPostDate = ?. 954 * 955 * <p> 956 * 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. 957 * </p> 958 * 959 * @param threadId the primary key of the current message boards thread 960 * @param groupId the group ID to search with 961 * @param categoryId the category ID to search with 962 * @param lastPostDate the last post date to search with 963 * @param orderByComparator the comparator to order the set by 964 * @return the previous, current, and next message boards thread 965 * @throws com.liferay.portlet.messageboards.NoSuchThreadException if a message boards thread with the primary key could not be found 966 * @throws SystemException if a system exception occurred 967 */ 968 public com.liferay.portlet.messageboards.model.MBThread[] findByG_C_L_PrevAndNext( 969 long threadId, long groupId, long categoryId, 970 java.util.Date lastPostDate, 971 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 972 throws com.liferay.portal.kernel.exception.SystemException, 973 com.liferay.portlet.messageboards.NoSuchThreadException; 974 975 /** 976 * Finds all the message boards threads where groupId = ? and categoryId = ? and status = ?. 977 * 978 * @param groupId the group ID to search with 979 * @param categoryId the category ID to search with 980 * @param status the status to search with 981 * @return the matching message boards threads 982 * @throws SystemException if a system exception occurred 983 */ 984 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_C_S( 985 long groupId, long categoryId, int status) 986 throws com.liferay.portal.kernel.exception.SystemException; 987 988 /** 989 * Finds a range of all the message boards threads where groupId = ? and categoryId = ? and status = ?. 990 * 991 * <p> 992 * 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. 993 * </p> 994 * 995 * @param groupId the group ID to search with 996 * @param categoryId the category ID to search with 997 * @param status the status to search with 998 * @param start the lower bound of the range of message boards threads to return 999 * @param end the upper bound of the range of message boards threads to return (not inclusive) 1000 * @return the range of matching message boards threads 1001 * @throws SystemException if a system exception occurred 1002 */ 1003 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_C_S( 1004 long groupId, long categoryId, int status, int start, int end) 1005 throws com.liferay.portal.kernel.exception.SystemException; 1006 1007 /** 1008 * Finds an ordered range of all the message boards threads where groupId = ? and categoryId = ? and status = ?. 1009 * 1010 * <p> 1011 * 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. 1012 * </p> 1013 * 1014 * @param groupId the group ID to search with 1015 * @param categoryId the category ID to search with 1016 * @param status the status to search with 1017 * @param start the lower bound of the range of message boards threads to return 1018 * @param end the upper bound of the range of message boards threads to return (not inclusive) 1019 * @param orderByComparator the comparator to order the results by 1020 * @return the ordered range of matching message boards threads 1021 * @throws SystemException if a system exception occurred 1022 */ 1023 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_C_S( 1024 long groupId, long categoryId, int status, int start, int end, 1025 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1026 throws com.liferay.portal.kernel.exception.SystemException; 1027 1028 /** 1029 * Finds the first message boards thread in the ordered set 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 orderByComparator the comparator to order the set by 1039 * @return the first matching message boards thread 1040 * @throws com.liferay.portlet.messageboards.NoSuchThreadException if a matching message boards thread could not be found 1041 * @throws SystemException if a system exception occurred 1042 */ 1043 public com.liferay.portlet.messageboards.model.MBThread findByG_C_S_First( 1044 long groupId, long categoryId, int status, 1045 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1046 throws com.liferay.portal.kernel.exception.SystemException, 1047 com.liferay.portlet.messageboards.NoSuchThreadException; 1048 1049 /** 1050 * Finds the last 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 last 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_C_S_Last( 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 message boards threads before and after the current 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 threadId the primary key of the current message boards thread 1078 * @param groupId the group ID to search with 1079 * @param categoryId the category ID to search with 1080 * @param status the status to search with 1081 * @param orderByComparator the comparator to order the set by 1082 * @return the previous, current, and next message boards thread 1083 * @throws com.liferay.portlet.messageboards.NoSuchThreadException if a message boards thread with the primary key could not be found 1084 * @throws SystemException if a system exception occurred 1085 */ 1086 public com.liferay.portlet.messageboards.model.MBThread[] findByG_C_S_PrevAndNext( 1087 long threadId, long groupId, long categoryId, int status, 1088 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1089 throws com.liferay.portal.kernel.exception.SystemException, 1090 com.liferay.portlet.messageboards.NoSuchThreadException; 1091 1092 /** 1093 * Finds all the message boards threads where groupId = ? and categoryId = any ? and status = ?. 1094 * 1095 * <p> 1096 * 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. 1097 * </p> 1098 * 1099 * @param groupId the group ID to search with 1100 * @param categoryIds the category IDs to search with 1101 * @param status the status to search with 1102 * @return the matching message boards threads 1103 * @throws SystemException if a system exception occurred 1104 */ 1105 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_C_S( 1106 long groupId, long[] categoryIds, int status) 1107 throws com.liferay.portal.kernel.exception.SystemException; 1108 1109 /** 1110 * Finds a range of all the message boards threads where groupId = ? and categoryId = any ? and status = ?. 1111 * 1112 * <p> 1113 * 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. 1114 * </p> 1115 * 1116 * @param groupId the group ID to search with 1117 * @param categoryIds the category IDs to search with 1118 * @param status the status to search with 1119 * @param start the lower bound of the range of message boards threads to return 1120 * @param end the upper bound of the range of message boards threads to return (not inclusive) 1121 * @return the range of matching message boards threads 1122 * @throws SystemException if a system exception occurred 1123 */ 1124 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_C_S( 1125 long groupId, long[] categoryIds, int status, int start, int end) 1126 throws com.liferay.portal.kernel.exception.SystemException; 1127 1128 /** 1129 * Finds an ordered range of all the message boards threads where groupId = ? and categoryId = any ? and status = ?. 1130 * 1131 * <p> 1132 * 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. 1133 * </p> 1134 * 1135 * @param groupId the group ID to search with 1136 * @param categoryIds the category IDs to search with 1137 * @param status the status to search with 1138 * @param start the lower bound of the range of message boards threads to return 1139 * @param end the upper bound of the range of message boards threads to return (not inclusive) 1140 * @param orderByComparator the comparator to order the results by 1141 * @return the ordered range of matching message boards threads 1142 * @throws SystemException if a system exception occurred 1143 */ 1144 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_C_S( 1145 long groupId, long[] categoryIds, int status, int start, int end, 1146 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1147 throws com.liferay.portal.kernel.exception.SystemException; 1148 1149 /** 1150 * Finds all the message boards threads where groupId = ? and categoryId ≠ ? and status = ?. 1151 * 1152 * @param groupId the group ID to search with 1153 * @param categoryId the category ID to search with 1154 * @param status the status to search with 1155 * @return the matching message boards threads 1156 * @throws SystemException if a system exception occurred 1157 */ 1158 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_NotC_S( 1159 long groupId, long categoryId, int status) 1160 throws com.liferay.portal.kernel.exception.SystemException; 1161 1162 /** 1163 * Finds a range of all the message boards threads where groupId = ? and categoryId ≠ ? and status = ?. 1164 * 1165 * <p> 1166 * 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. 1167 * </p> 1168 * 1169 * @param groupId the group ID to search with 1170 * @param categoryId the category ID to search with 1171 * @param status the status to search with 1172 * @param start the lower bound of the range of message boards threads to return 1173 * @param end the upper bound of the range of message boards threads to return (not inclusive) 1174 * @return the range of matching message boards threads 1175 * @throws SystemException if a system exception occurred 1176 */ 1177 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_NotC_S( 1178 long groupId, long categoryId, int status, int start, int end) 1179 throws com.liferay.portal.kernel.exception.SystemException; 1180 1181 /** 1182 * Finds an ordered range of all the message boards threads where groupId = ? and categoryId ≠ ? and status = ?. 1183 * 1184 * <p> 1185 * 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. 1186 * </p> 1187 * 1188 * @param groupId the group ID to search with 1189 * @param categoryId the category ID to search with 1190 * @param status the status to search with 1191 * @param start the lower bound of the range of message boards threads to return 1192 * @param end the upper bound of the range of message boards threads to return (not inclusive) 1193 * @param orderByComparator the comparator to order the results by 1194 * @return the ordered range of matching message boards threads 1195 * @throws SystemException if a system exception occurred 1196 */ 1197 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_NotC_S( 1198 long groupId, long categoryId, int status, int start, int end, 1199 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1200 throws com.liferay.portal.kernel.exception.SystemException; 1201 1202 /** 1203 * Finds the first message boards thread in the ordered set where groupId = ? and categoryId ≠ ? and status = ?. 1204 * 1205 * <p> 1206 * 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. 1207 * </p> 1208 * 1209 * @param groupId the group ID to search with 1210 * @param categoryId the category ID to search with 1211 * @param status the status to search with 1212 * @param orderByComparator the comparator to order the set by 1213 * @return the first matching message boards thread 1214 * @throws com.liferay.portlet.messageboards.NoSuchThreadException if a matching message boards thread could not be found 1215 * @throws SystemException if a system exception occurred 1216 */ 1217 public com.liferay.portlet.messageboards.model.MBThread findByG_NotC_S_First( 1218 long groupId, long categoryId, int status, 1219 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1220 throws com.liferay.portal.kernel.exception.SystemException, 1221 com.liferay.portlet.messageboards.NoSuchThreadException; 1222 1223 /** 1224 * Finds the last message boards thread in the ordered set where groupId = ? and categoryId ≠ ? and status = ?. 1225 * 1226 * <p> 1227 * 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. 1228 * </p> 1229 * 1230 * @param groupId the group ID to search with 1231 * @param categoryId the category ID to search with 1232 * @param status the status to search with 1233 * @param orderByComparator the comparator to order the set by 1234 * @return the last matching message boards thread 1235 * @throws com.liferay.portlet.messageboards.NoSuchThreadException if a matching message boards thread could not be found 1236 * @throws SystemException if a system exception occurred 1237 */ 1238 public com.liferay.portlet.messageboards.model.MBThread findByG_NotC_S_Last( 1239 long groupId, long categoryId, int status, 1240 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1241 throws com.liferay.portal.kernel.exception.SystemException, 1242 com.liferay.portlet.messageboards.NoSuchThreadException; 1243 1244 /** 1245 * Finds the message boards threads before and after the current message boards thread in the ordered set where groupId = ? and categoryId ≠ ? and status = ?. 1246 * 1247 * <p> 1248 * 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. 1249 * </p> 1250 * 1251 * @param threadId the primary key of the current message boards thread 1252 * @param groupId the group ID to search with 1253 * @param categoryId the category ID to search with 1254 * @param status the status to search with 1255 * @param orderByComparator the comparator to order the set by 1256 * @return the previous, current, and next message boards thread 1257 * @throws com.liferay.portlet.messageboards.NoSuchThreadException if a message boards thread with the primary key could not be found 1258 * @throws SystemException if a system exception occurred 1259 */ 1260 public com.liferay.portlet.messageboards.model.MBThread[] findByG_NotC_S_PrevAndNext( 1261 long threadId, long groupId, long categoryId, int status, 1262 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1263 throws com.liferay.portal.kernel.exception.SystemException, 1264 com.liferay.portlet.messageboards.NoSuchThreadException; 1265 1266 /** 1267 * Finds all the message boards threads. 1268 * 1269 * @return the message boards threads 1270 * @throws SystemException if a system exception occurred 1271 */ 1272 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findAll() 1273 throws com.liferay.portal.kernel.exception.SystemException; 1274 1275 /** 1276 * Finds a range of all the message boards threads. 1277 * 1278 * <p> 1279 * 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. 1280 * </p> 1281 * 1282 * @param start the lower bound of the range of message boards threads to return 1283 * @param end the upper bound of the range of message boards threads to return (not inclusive) 1284 * @return the range of message boards threads 1285 * @throws SystemException if a system exception occurred 1286 */ 1287 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findAll( 1288 int start, int end) 1289 throws com.liferay.portal.kernel.exception.SystemException; 1290 1291 /** 1292 * Finds an ordered range of all the message boards threads. 1293 * 1294 * <p> 1295 * 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. 1296 * </p> 1297 * 1298 * @param start the lower bound of the range of message boards threads to return 1299 * @param end the upper bound of the range of message boards threads to return (not inclusive) 1300 * @param orderByComparator the comparator to order the results by 1301 * @return the ordered range of message boards threads 1302 * @throws SystemException if a system exception occurred 1303 */ 1304 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findAll( 1305 int start, int end, 1306 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1307 throws com.liferay.portal.kernel.exception.SystemException; 1308 1309 /** 1310 * Removes all the message boards threads where groupId = ? from the database. 1311 * 1312 * @param groupId the group ID to search with 1313 * @throws SystemException if a system exception occurred 1314 */ 1315 public void removeByGroupId(long groupId) 1316 throws com.liferay.portal.kernel.exception.SystemException; 1317 1318 /** 1319 * Removes the message boards thread where rootMessageId = ? from the database. 1320 * 1321 * @param rootMessageId the root message ID to search with 1322 * @throws SystemException if a system exception occurred 1323 */ 1324 public void removeByRootMessageId(long rootMessageId) 1325 throws com.liferay.portal.kernel.exception.SystemException, 1326 com.liferay.portlet.messageboards.NoSuchThreadException; 1327 1328 /** 1329 * Removes all the message boards threads where groupId = ? and categoryId = ? from the database. 1330 * 1331 * @param groupId the group ID to search with 1332 * @param categoryId the category ID to search with 1333 * @throws SystemException if a system exception occurred 1334 */ 1335 public void removeByG_C(long groupId, long categoryId) 1336 throws com.liferay.portal.kernel.exception.SystemException; 1337 1338 /** 1339 * Removes all the message boards threads where groupId = ? and categoryId ≠ ? from the database. 1340 * 1341 * @param groupId the group ID to search with 1342 * @param categoryId the category ID to search with 1343 * @throws SystemException if a system exception occurred 1344 */ 1345 public void removeByG_NotC(long groupId, long categoryId) 1346 throws com.liferay.portal.kernel.exception.SystemException; 1347 1348 /** 1349 * Removes all the message boards threads where groupId = ? and status = ? from the database. 1350 * 1351 * @param groupId the group ID to search with 1352 * @param status the status to search with 1353 * @throws SystemException if a system exception occurred 1354 */ 1355 public void removeByG_S(long groupId, int status) 1356 throws com.liferay.portal.kernel.exception.SystemException; 1357 1358 /** 1359 * Removes all the message boards threads where categoryId = ? and priority = ? from the database. 1360 * 1361 * @param categoryId the category ID to search with 1362 * @param priority the priority to search with 1363 * @throws SystemException if a system exception occurred 1364 */ 1365 public void removeByC_P(long categoryId, double priority) 1366 throws com.liferay.portal.kernel.exception.SystemException; 1367 1368 /** 1369 * Removes all the message boards threads where lastPostDate = ? and priority = ? from the database. 1370 * 1371 * @param lastPostDate the last post date to search with 1372 * @param priority the priority to search with 1373 * @throws SystemException if a system exception occurred 1374 */ 1375 public void removeByL_P(java.util.Date lastPostDate, double priority) 1376 throws com.liferay.portal.kernel.exception.SystemException; 1377 1378 /** 1379 * Removes all the message boards threads where groupId = ? and categoryId = ? and lastPostDate = ? from the database. 1380 * 1381 * @param groupId the group ID to search with 1382 * @param categoryId the category ID to search with 1383 * @param lastPostDate the last post date to search with 1384 * @throws SystemException if a system exception occurred 1385 */ 1386 public void removeByG_C_L(long groupId, long categoryId, 1387 java.util.Date lastPostDate) 1388 throws com.liferay.portal.kernel.exception.SystemException; 1389 1390 /** 1391 * Removes all the message boards threads where groupId = ? and categoryId = ? and status = ? from the database. 1392 * 1393 * @param groupId the group ID to search with 1394 * @param categoryId the category ID to search with 1395 * @param status the status to search with 1396 * @throws SystemException if a system exception occurred 1397 */ 1398 public void removeByG_C_S(long groupId, long categoryId, int status) 1399 throws com.liferay.portal.kernel.exception.SystemException; 1400 1401 /** 1402 * Removes all the message boards threads where groupId = ? and categoryId ≠ ? and status = ? from the database. 1403 * 1404 * @param groupId the group ID to search with 1405 * @param categoryId the category ID to search with 1406 * @param status the status to search with 1407 * @throws SystemException if a system exception occurred 1408 */ 1409 public void removeByG_NotC_S(long groupId, long categoryId, int status) 1410 throws com.liferay.portal.kernel.exception.SystemException; 1411 1412 /** 1413 * Removes all the message boards threads from the database. 1414 * 1415 * @throws SystemException if a system exception occurred 1416 */ 1417 public void removeAll() 1418 throws com.liferay.portal.kernel.exception.SystemException; 1419 1420 /** 1421 * Counts all the message boards threads where groupId = ?. 1422 * 1423 * @param groupId the group ID to search with 1424 * @return the number of matching message boards threads 1425 * @throws SystemException if a system exception occurred 1426 */ 1427 public int countByGroupId(long groupId) 1428 throws com.liferay.portal.kernel.exception.SystemException; 1429 1430 /** 1431 * Counts all the message boards threads where rootMessageId = ?. 1432 * 1433 * @param rootMessageId the root message ID to search with 1434 * @return the number of matching message boards threads 1435 * @throws SystemException if a system exception occurred 1436 */ 1437 public int countByRootMessageId(long rootMessageId) 1438 throws com.liferay.portal.kernel.exception.SystemException; 1439 1440 /** 1441 * Counts all the message boards threads where groupId = ? and categoryId = ?. 1442 * 1443 * @param groupId the group ID to search with 1444 * @param categoryId the category ID to search with 1445 * @return the number of matching message boards threads 1446 * @throws SystemException if a system exception occurred 1447 */ 1448 public int countByG_C(long groupId, long categoryId) 1449 throws com.liferay.portal.kernel.exception.SystemException; 1450 1451 /** 1452 * Counts all the message boards threads where groupId = ? and categoryId = any ?. 1453 * 1454 * @param groupId the group ID to search with 1455 * @param categoryIds the category IDs to search with 1456 * @return the number of matching message boards threads 1457 * @throws SystemException if a system exception occurred 1458 */ 1459 public int countByG_C(long groupId, long[] categoryIds) 1460 throws com.liferay.portal.kernel.exception.SystemException; 1461 1462 /** 1463 * Counts all the message boards threads where groupId = ? and categoryId ≠ ?. 1464 * 1465 * @param groupId the group ID to search with 1466 * @param categoryId the category ID to search with 1467 * @return the number of matching message boards threads 1468 * @throws SystemException if a system exception occurred 1469 */ 1470 public int countByG_NotC(long groupId, long categoryId) 1471 throws com.liferay.portal.kernel.exception.SystemException; 1472 1473 /** 1474 * Counts all the message boards threads where groupId = ? and status = ?. 1475 * 1476 * @param groupId the group ID to search with 1477 * @param status the status to search with 1478 * @return the number of matching message boards threads 1479 * @throws SystemException if a system exception occurred 1480 */ 1481 public int countByG_S(long groupId, int status) 1482 throws com.liferay.portal.kernel.exception.SystemException; 1483 1484 /** 1485 * Counts all the message boards threads where categoryId = ? and priority = ?. 1486 * 1487 * @param categoryId the category ID to search with 1488 * @param priority the priority to search with 1489 * @return the number of matching message boards threads 1490 * @throws SystemException if a system exception occurred 1491 */ 1492 public int countByC_P(long categoryId, double priority) 1493 throws com.liferay.portal.kernel.exception.SystemException; 1494 1495 /** 1496 * Counts all the message boards threads where lastPostDate = ? and priority = ?. 1497 * 1498 * @param lastPostDate the last post date to search with 1499 * @param priority the priority to search with 1500 * @return the number of matching message boards threads 1501 * @throws SystemException if a system exception occurred 1502 */ 1503 public int countByL_P(java.util.Date lastPostDate, double priority) 1504 throws com.liferay.portal.kernel.exception.SystemException; 1505 1506 /** 1507 * Counts all the message boards threads where groupId = ? and categoryId = ? and lastPostDate = ?. 1508 * 1509 * @param groupId the group ID to search with 1510 * @param categoryId the category ID to search with 1511 * @param lastPostDate the last post date to search with 1512 * @return the number of matching message boards threads 1513 * @throws SystemException if a system exception occurred 1514 */ 1515 public int countByG_C_L(long groupId, long categoryId, 1516 java.util.Date lastPostDate) 1517 throws com.liferay.portal.kernel.exception.SystemException; 1518 1519 /** 1520 * Counts all the message boards threads where groupId = ? and categoryId = ? and status = ?. 1521 * 1522 * @param groupId the group ID to search with 1523 * @param categoryId the category ID to search with 1524 * @param status the status to search with 1525 * @return the number of matching message boards threads 1526 * @throws SystemException if a system exception occurred 1527 */ 1528 public int countByG_C_S(long groupId, long categoryId, int status) 1529 throws com.liferay.portal.kernel.exception.SystemException; 1530 1531 /** 1532 * Counts all the message boards threads where groupId = ? and categoryId = any ? and status = ?. 1533 * 1534 * @param groupId the group ID to search with 1535 * @param categoryIds the category IDs to search with 1536 * @param status the status to search with 1537 * @return the number of matching message boards threads 1538 * @throws SystemException if a system exception occurred 1539 */ 1540 public int countByG_C_S(long groupId, long[] categoryIds, int status) 1541 throws com.liferay.portal.kernel.exception.SystemException; 1542 1543 /** 1544 * Counts all the message boards threads where groupId = ? and categoryId ≠ ? and status = ?. 1545 * 1546 * @param groupId the group ID to search with 1547 * @param categoryId the category ID to search with 1548 * @param status the status to search with 1549 * @return the number of matching message boards threads 1550 * @throws SystemException if a system exception occurred 1551 */ 1552 public int countByG_NotC_S(long groupId, long categoryId, int status) 1553 throws com.liferay.portal.kernel.exception.SystemException; 1554 1555 /** 1556 * Counts all the message boards threads. 1557 * 1558 * @return the number of message boards threads 1559 * @throws SystemException if a system exception occurred 1560 */ 1561 public int countAll() 1562 throws com.liferay.portal.kernel.exception.SystemException; 1563 1564 public MBThread remove(MBThread mbThread) throws SystemException; 1565 }