001 /** 002 * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved. 003 * 004 * This library is free software; you can redistribute it and/or modify it under 005 * the terms of the GNU Lesser General Public License as published by the Free 006 * Software Foundation; either version 2.1 of the License, or (at your option) 007 * any later version. 008 * 009 * This library is distributed in the hope that it will be useful, but WITHOUT 010 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 011 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 012 * details. 013 */ 014 015 package com.liferay.portlet.messageboards.service.persistence; 016 017 import com.liferay.portal.service.persistence.BasePersistence; 018 019 import com.liferay.portlet.messageboards.model.MBMessage; 020 021 /** 022 * The persistence interface for the message-boards message service. 023 * 024 * <p> 025 * Caching information and settings can be found in <code>portal.properties</code> 026 * </p> 027 * 028 * @author Brian Wing Shun Chan 029 * @see MBMessagePersistenceImpl 030 * @see MBMessageUtil 031 * @generated 032 */ 033 public interface MBMessagePersistence extends BasePersistence<MBMessage> { 034 /* 035 * NOTE FOR DEVELOPERS: 036 * 037 * Never modify or reference this interface directly. Always use {@link MBMessageUtil} to access the message-boards message persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface. 038 */ 039 040 /** 041 * Caches the message-boards message in the entity cache if it is enabled. 042 * 043 * @param mbMessage the message-boards message 044 */ 045 public void cacheResult( 046 com.liferay.portlet.messageboards.model.MBMessage mbMessage); 047 048 /** 049 * Caches the message-boards messages in the entity cache if it is enabled. 050 * 051 * @param mbMessages the message-boards messages 052 */ 053 public void cacheResult( 054 java.util.List<com.liferay.portlet.messageboards.model.MBMessage> mbMessages); 055 056 /** 057 * Creates a new message-boards message with the primary key. Does not add the message-boards message to the database. 058 * 059 * @param messageId the primary key for the new message-boards message 060 * @return the new message-boards message 061 */ 062 public com.liferay.portlet.messageboards.model.MBMessage create( 063 long messageId); 064 065 /** 066 * Removes the message-boards message with the primary key from the database. Also notifies the appropriate model listeners. 067 * 068 * @param messageId the primary key of the message-boards message 069 * @return the message-boards message that was removed 070 * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a message-boards message with the primary key could not be found 071 * @throws SystemException if a system exception occurred 072 */ 073 public com.liferay.portlet.messageboards.model.MBMessage remove( 074 long messageId) 075 throws com.liferay.portal.kernel.exception.SystemException, 076 com.liferay.portlet.messageboards.NoSuchMessageException; 077 078 public com.liferay.portlet.messageboards.model.MBMessage updateImpl( 079 com.liferay.portlet.messageboards.model.MBMessage mbMessage, 080 boolean merge) 081 throws com.liferay.portal.kernel.exception.SystemException; 082 083 /** 084 * Returns the message-boards message with the primary key or throws a {@link com.liferay.portlet.messageboards.NoSuchMessageException} if it could not be found. 085 * 086 * @param messageId the primary key of the message-boards message 087 * @return the message-boards message 088 * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a message-boards message with the primary key could not be found 089 * @throws SystemException if a system exception occurred 090 */ 091 public com.liferay.portlet.messageboards.model.MBMessage findByPrimaryKey( 092 long messageId) 093 throws com.liferay.portal.kernel.exception.SystemException, 094 com.liferay.portlet.messageboards.NoSuchMessageException; 095 096 /** 097 * Returns the message-boards message with the primary key or returns <code>null</code> if it could not be found. 098 * 099 * @param messageId the primary key of the message-boards message 100 * @return the message-boards message, or <code>null</code> if a message-boards message with the primary key could not be found 101 * @throws SystemException if a system exception occurred 102 */ 103 public com.liferay.portlet.messageboards.model.MBMessage fetchByPrimaryKey( 104 long messageId) 105 throws com.liferay.portal.kernel.exception.SystemException; 106 107 /** 108 * Returns all the message-boards messages where uuid = ?. 109 * 110 * @param uuid the uuid 111 * @return the matching message-boards messages 112 * @throws SystemException if a system exception occurred 113 */ 114 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByUuid( 115 java.lang.String uuid) 116 throws com.liferay.portal.kernel.exception.SystemException; 117 118 /** 119 * Returns a range of all the message-boards messages where uuid = ?. 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 uuid the uuid 126 * @param start the lower bound of the range of message-boards messages 127 * @param end the upper bound of the range of message-boards messages (not inclusive) 128 * @return the range of matching message-boards messages 129 * @throws SystemException if a system exception occurred 130 */ 131 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByUuid( 132 java.lang.String uuid, int start, int end) 133 throws com.liferay.portal.kernel.exception.SystemException; 134 135 /** 136 * Returns an ordered range of all the message-boards messages where uuid = ?. 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 uuid the uuid 143 * @param start the lower bound of the range of message-boards messages 144 * @param end the upper bound of the range of message-boards messages (not inclusive) 145 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 146 * @return the ordered range of matching message-boards messages 147 * @throws SystemException if a system exception occurred 148 */ 149 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByUuid( 150 java.lang.String uuid, int start, int end, 151 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 152 throws com.liferay.portal.kernel.exception.SystemException; 153 154 /** 155 * Returns the first message-boards message in the ordered set where uuid = ?. 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 uuid the uuid 162 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 163 * @return the first matching message-boards message 164 * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a matching message-boards message could not be found 165 * @throws SystemException if a system exception occurred 166 */ 167 public com.liferay.portlet.messageboards.model.MBMessage findByUuid_First( 168 java.lang.String uuid, 169 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 170 throws com.liferay.portal.kernel.exception.SystemException, 171 com.liferay.portlet.messageboards.NoSuchMessageException; 172 173 /** 174 * Returns the last message-boards message in the ordered set where uuid = ?. 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 uuid the uuid 181 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 182 * @return the last matching message-boards message 183 * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a matching message-boards message could not be found 184 * @throws SystemException if a system exception occurred 185 */ 186 public com.liferay.portlet.messageboards.model.MBMessage findByUuid_Last( 187 java.lang.String uuid, 188 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 189 throws com.liferay.portal.kernel.exception.SystemException, 190 com.liferay.portlet.messageboards.NoSuchMessageException; 191 192 /** 193 * Returns the message-boards messages before and after the current message-boards message in the ordered set where uuid = ?. 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 messageId the primary key of the current message-boards message 200 * @param uuid the uuid 201 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 202 * @return the previous, current, and next message-boards message 203 * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a message-boards message with the primary key could not be found 204 * @throws SystemException if a system exception occurred 205 */ 206 public com.liferay.portlet.messageboards.model.MBMessage[] findByUuid_PrevAndNext( 207 long messageId, java.lang.String uuid, 208 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 209 throws com.liferay.portal.kernel.exception.SystemException, 210 com.liferay.portlet.messageboards.NoSuchMessageException; 211 212 /** 213 * Returns the message-boards message where uuid = ? and groupId = ? or throws a {@link com.liferay.portlet.messageboards.NoSuchMessageException} if it could not be found. 214 * 215 * @param uuid the uuid 216 * @param groupId the group ID 217 * @return the matching message-boards message 218 * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a matching message-boards message could not be found 219 * @throws SystemException if a system exception occurred 220 */ 221 public com.liferay.portlet.messageboards.model.MBMessage findByUUID_G( 222 java.lang.String uuid, long groupId) 223 throws com.liferay.portal.kernel.exception.SystemException, 224 com.liferay.portlet.messageboards.NoSuchMessageException; 225 226 /** 227 * Returns the message-boards message where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 228 * 229 * @param uuid the uuid 230 * @param groupId the group ID 231 * @return the matching message-boards message, or <code>null</code> if a matching message-boards message could not be found 232 * @throws SystemException if a system exception occurred 233 */ 234 public com.liferay.portlet.messageboards.model.MBMessage fetchByUUID_G( 235 java.lang.String uuid, long groupId) 236 throws com.liferay.portal.kernel.exception.SystemException; 237 238 /** 239 * Returns the message-boards message where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 240 * 241 * @param uuid the uuid 242 * @param groupId the group ID 243 * @param retrieveFromCache whether to use the finder cache 244 * @return the matching message-boards message, or <code>null</code> if a matching message-boards message could not be found 245 * @throws SystemException if a system exception occurred 246 */ 247 public com.liferay.portlet.messageboards.model.MBMessage fetchByUUID_G( 248 java.lang.String uuid, long groupId, boolean retrieveFromCache) 249 throws com.liferay.portal.kernel.exception.SystemException; 250 251 /** 252 * Returns all the message-boards messages where groupId = ?. 253 * 254 * @param groupId the group ID 255 * @return the matching message-boards messages 256 * @throws SystemException if a system exception occurred 257 */ 258 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByGroupId( 259 long groupId) 260 throws com.liferay.portal.kernel.exception.SystemException; 261 262 /** 263 * Returns a range of all the message-boards messages where groupId = ?. 264 * 265 * <p> 266 * 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. 267 * </p> 268 * 269 * @param groupId the group ID 270 * @param start the lower bound of the range of message-boards messages 271 * @param end the upper bound of the range of message-boards messages (not inclusive) 272 * @return the range of matching message-boards messages 273 * @throws SystemException if a system exception occurred 274 */ 275 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByGroupId( 276 long groupId, int start, int end) 277 throws com.liferay.portal.kernel.exception.SystemException; 278 279 /** 280 * Returns an ordered range of all the message-boards messages where groupId = ?. 281 * 282 * <p> 283 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 284 * </p> 285 * 286 * @param groupId the group ID 287 * @param start the lower bound of the range of message-boards messages 288 * @param end the upper bound of the range of message-boards messages (not inclusive) 289 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 290 * @return the ordered range of matching message-boards messages 291 * @throws SystemException if a system exception occurred 292 */ 293 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByGroupId( 294 long groupId, int start, int end, 295 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 296 throws com.liferay.portal.kernel.exception.SystemException; 297 298 /** 299 * Returns the first message-boards message in the ordered set where groupId = ?. 300 * 301 * <p> 302 * 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. 303 * </p> 304 * 305 * @param groupId the group ID 306 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 307 * @return the first matching message-boards message 308 * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a matching message-boards message could not be found 309 * @throws SystemException if a system exception occurred 310 */ 311 public com.liferay.portlet.messageboards.model.MBMessage findByGroupId_First( 312 long groupId, 313 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 314 throws com.liferay.portal.kernel.exception.SystemException, 315 com.liferay.portlet.messageboards.NoSuchMessageException; 316 317 /** 318 * Returns the last message-boards message in the ordered set where groupId = ?. 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 325 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 326 * @return the last matching message-boards message 327 * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a matching message-boards message could not be found 328 * @throws SystemException if a system exception occurred 329 */ 330 public com.liferay.portlet.messageboards.model.MBMessage findByGroupId_Last( 331 long groupId, 332 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 333 throws com.liferay.portal.kernel.exception.SystemException, 334 com.liferay.portlet.messageboards.NoSuchMessageException; 335 336 /** 337 * Returns the message-boards messages before and after the current message-boards message in the ordered set where groupId = ?. 338 * 339 * <p> 340 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 341 * </p> 342 * 343 * @param messageId the primary key of the current message-boards message 344 * @param groupId the group ID 345 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 346 * @return the previous, current, and next message-boards message 347 * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a message-boards message with the primary key could not be found 348 * @throws SystemException if a system exception occurred 349 */ 350 public com.liferay.portlet.messageboards.model.MBMessage[] findByGroupId_PrevAndNext( 351 long messageId, long groupId, 352 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 353 throws com.liferay.portal.kernel.exception.SystemException, 354 com.liferay.portlet.messageboards.NoSuchMessageException; 355 356 /** 357 * Returns all the message-boards messages that the user has permission to view where groupId = ?. 358 * 359 * @param groupId the group ID 360 * @return the matching message-boards messages that the user has permission to view 361 * @throws SystemException if a system exception occurred 362 */ 363 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> filterFindByGroupId( 364 long groupId) 365 throws com.liferay.portal.kernel.exception.SystemException; 366 367 /** 368 * Returns a range of all the message-boards messages that the user has permission to view where groupId = ?. 369 * 370 * <p> 371 * 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. 372 * </p> 373 * 374 * @param groupId the group ID 375 * @param start the lower bound of the range of message-boards messages 376 * @param end the upper bound of the range of message-boards messages (not inclusive) 377 * @return the range of matching message-boards messages that the user has permission to view 378 * @throws SystemException if a system exception occurred 379 */ 380 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> filterFindByGroupId( 381 long groupId, int start, int end) 382 throws com.liferay.portal.kernel.exception.SystemException; 383 384 /** 385 * Returns an ordered range of all the message-boards messages that the user has permissions to view where groupId = ?. 386 * 387 * <p> 388 * 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. 389 * </p> 390 * 391 * @param groupId the group ID 392 * @param start the lower bound of the range of message-boards messages 393 * @param end the upper bound of the range of message-boards messages (not inclusive) 394 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 395 * @return the ordered range of matching message-boards messages that the user has permission to view 396 * @throws SystemException if a system exception occurred 397 */ 398 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> filterFindByGroupId( 399 long groupId, int start, int end, 400 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 401 throws com.liferay.portal.kernel.exception.SystemException; 402 403 /** 404 * Returns the message-boards messages before and after the current message-boards message in the ordered set of message-boards messages that the user has permission to view where groupId = ?. 405 * 406 * @param messageId the primary key of the current message-boards message 407 * @param groupId the group ID 408 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 409 * @return the previous, current, and next message-boards message 410 * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a message-boards message with the primary key could not be found 411 * @throws SystemException if a system exception occurred 412 */ 413 public com.liferay.portlet.messageboards.model.MBMessage[] filterFindByGroupId_PrevAndNext( 414 long messageId, long groupId, 415 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 416 throws com.liferay.portal.kernel.exception.SystemException, 417 com.liferay.portlet.messageboards.NoSuchMessageException; 418 419 /** 420 * Returns all the message-boards messages where companyId = ?. 421 * 422 * @param companyId the company ID 423 * @return the matching message-boards messages 424 * @throws SystemException if a system exception occurred 425 */ 426 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByCompanyId( 427 long companyId) 428 throws com.liferay.portal.kernel.exception.SystemException; 429 430 /** 431 * Returns a range of all the message-boards messages where companyId = ?. 432 * 433 * <p> 434 * 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. 435 * </p> 436 * 437 * @param companyId the company ID 438 * @param start the lower bound of the range of message-boards messages 439 * @param end the upper bound of the range of message-boards messages (not inclusive) 440 * @return the range of matching message-boards messages 441 * @throws SystemException if a system exception occurred 442 */ 443 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByCompanyId( 444 long companyId, int start, int end) 445 throws com.liferay.portal.kernel.exception.SystemException; 446 447 /** 448 * Returns an ordered range of all the message-boards messages where companyId = ?. 449 * 450 * <p> 451 * 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. 452 * </p> 453 * 454 * @param companyId the company ID 455 * @param start the lower bound of the range of message-boards messages 456 * @param end the upper bound of the range of message-boards messages (not inclusive) 457 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 458 * @return the ordered range of matching message-boards messages 459 * @throws SystemException if a system exception occurred 460 */ 461 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByCompanyId( 462 long companyId, int start, int end, 463 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 464 throws com.liferay.portal.kernel.exception.SystemException; 465 466 /** 467 * Returns the first message-boards message in the ordered set where companyId = ?. 468 * 469 * <p> 470 * 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. 471 * </p> 472 * 473 * @param companyId the company ID 474 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 475 * @return the first matching message-boards message 476 * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a matching message-boards message could not be found 477 * @throws SystemException if a system exception occurred 478 */ 479 public com.liferay.portlet.messageboards.model.MBMessage findByCompanyId_First( 480 long companyId, 481 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 482 throws com.liferay.portal.kernel.exception.SystemException, 483 com.liferay.portlet.messageboards.NoSuchMessageException; 484 485 /** 486 * Returns the last message-boards message in the ordered set where companyId = ?. 487 * 488 * <p> 489 * 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. 490 * </p> 491 * 492 * @param companyId the company ID 493 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 494 * @return the last matching message-boards message 495 * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a matching message-boards message could not be found 496 * @throws SystemException if a system exception occurred 497 */ 498 public com.liferay.portlet.messageboards.model.MBMessage findByCompanyId_Last( 499 long companyId, 500 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 501 throws com.liferay.portal.kernel.exception.SystemException, 502 com.liferay.portlet.messageboards.NoSuchMessageException; 503 504 /** 505 * Returns the message-boards messages before and after the current message-boards message in the ordered set where companyId = ?. 506 * 507 * <p> 508 * 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. 509 * </p> 510 * 511 * @param messageId the primary key of the current message-boards message 512 * @param companyId the company ID 513 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 514 * @return the previous, current, and next message-boards message 515 * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a message-boards message with the primary key could not be found 516 * @throws SystemException if a system exception occurred 517 */ 518 public com.liferay.portlet.messageboards.model.MBMessage[] findByCompanyId_PrevAndNext( 519 long messageId, long companyId, 520 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 521 throws com.liferay.portal.kernel.exception.SystemException, 522 com.liferay.portlet.messageboards.NoSuchMessageException; 523 524 /** 525 * Returns all the message-boards messages where threadId = ?. 526 * 527 * @param threadId the thread ID 528 * @return the matching message-boards messages 529 * @throws SystemException if a system exception occurred 530 */ 531 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByThreadId( 532 long threadId) 533 throws com.liferay.portal.kernel.exception.SystemException; 534 535 /** 536 * Returns a range of all the message-boards messages where threadId = ?. 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 threadId the thread ID 543 * @param start the lower bound of the range of message-boards messages 544 * @param end the upper bound of the range of message-boards messages (not inclusive) 545 * @return the range of matching message-boards messages 546 * @throws SystemException if a system exception occurred 547 */ 548 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByThreadId( 549 long threadId, int start, int end) 550 throws com.liferay.portal.kernel.exception.SystemException; 551 552 /** 553 * Returns an ordered range of all the message-boards messages where threadId = ?. 554 * 555 * <p> 556 * 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. 557 * </p> 558 * 559 * @param threadId the thread ID 560 * @param start the lower bound of the range of message-boards messages 561 * @param end the upper bound of the range of message-boards messages (not inclusive) 562 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 563 * @return the ordered range of matching message-boards messages 564 * @throws SystemException if a system exception occurred 565 */ 566 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByThreadId( 567 long threadId, int start, int end, 568 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 569 throws com.liferay.portal.kernel.exception.SystemException; 570 571 /** 572 * Returns the first message-boards message in the ordered set where threadId = ?. 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 thread ID 579 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 580 * @return the first matching message-boards message 581 * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a matching message-boards message could not be found 582 * @throws SystemException if a system exception occurred 583 */ 584 public com.liferay.portlet.messageboards.model.MBMessage findByThreadId_First( 585 long threadId, 586 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 587 throws com.liferay.portal.kernel.exception.SystemException, 588 com.liferay.portlet.messageboards.NoSuchMessageException; 589 590 /** 591 * Returns the last message-boards message in the ordered set where threadId = ?. 592 * 593 * <p> 594 * 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. 595 * </p> 596 * 597 * @param threadId the thread ID 598 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 599 * @return the last matching message-boards message 600 * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a matching message-boards message could not be found 601 * @throws SystemException if a system exception occurred 602 */ 603 public com.liferay.portlet.messageboards.model.MBMessage findByThreadId_Last( 604 long threadId, 605 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 606 throws com.liferay.portal.kernel.exception.SystemException, 607 com.liferay.portlet.messageboards.NoSuchMessageException; 608 609 /** 610 * Returns the message-boards messages before and after the current message-boards message in the ordered set where threadId = ?. 611 * 612 * <p> 613 * 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. 614 * </p> 615 * 616 * @param messageId the primary key of the current message-boards message 617 * @param threadId the thread ID 618 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 619 * @return the previous, current, and next message-boards message 620 * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a message-boards message with the primary key could not be found 621 * @throws SystemException if a system exception occurred 622 */ 623 public com.liferay.portlet.messageboards.model.MBMessage[] findByThreadId_PrevAndNext( 624 long messageId, long threadId, 625 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 626 throws com.liferay.portal.kernel.exception.SystemException, 627 com.liferay.portlet.messageboards.NoSuchMessageException; 628 629 /** 630 * Returns all the message-boards messages where threadId = ?. 631 * 632 * @param threadId the thread ID 633 * @return the matching message-boards messages 634 * @throws SystemException if a system exception occurred 635 */ 636 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByThreadReplies( 637 long threadId) 638 throws com.liferay.portal.kernel.exception.SystemException; 639 640 /** 641 * Returns a range of all the message-boards messages where threadId = ?. 642 * 643 * <p> 644 * 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. 645 * </p> 646 * 647 * @param threadId the thread ID 648 * @param start the lower bound of the range of message-boards messages 649 * @param end the upper bound of the range of message-boards messages (not inclusive) 650 * @return the range of matching message-boards messages 651 * @throws SystemException if a system exception occurred 652 */ 653 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByThreadReplies( 654 long threadId, int start, int end) 655 throws com.liferay.portal.kernel.exception.SystemException; 656 657 /** 658 * Returns an ordered range of all the message-boards messages where threadId = ?. 659 * 660 * <p> 661 * 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. 662 * </p> 663 * 664 * @param threadId the thread ID 665 * @param start the lower bound of the range of message-boards messages 666 * @param end the upper bound of the range of message-boards messages (not inclusive) 667 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 668 * @return the ordered range of matching message-boards messages 669 * @throws SystemException if a system exception occurred 670 */ 671 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByThreadReplies( 672 long threadId, int start, int end, 673 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 674 throws com.liferay.portal.kernel.exception.SystemException; 675 676 /** 677 * Returns the first message-boards message in the ordered set where threadId = ?. 678 * 679 * <p> 680 * 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. 681 * </p> 682 * 683 * @param threadId the thread ID 684 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 685 * @return the first matching message-boards message 686 * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a matching message-boards message could not be found 687 * @throws SystemException if a system exception occurred 688 */ 689 public com.liferay.portlet.messageboards.model.MBMessage findByThreadReplies_First( 690 long threadId, 691 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 692 throws com.liferay.portal.kernel.exception.SystemException, 693 com.liferay.portlet.messageboards.NoSuchMessageException; 694 695 /** 696 * Returns the last message-boards message in the ordered set where threadId = ?. 697 * 698 * <p> 699 * 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. 700 * </p> 701 * 702 * @param threadId the thread ID 703 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 704 * @return the last matching message-boards message 705 * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a matching message-boards message could not be found 706 * @throws SystemException if a system exception occurred 707 */ 708 public com.liferay.portlet.messageboards.model.MBMessage findByThreadReplies_Last( 709 long threadId, 710 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 711 throws com.liferay.portal.kernel.exception.SystemException, 712 com.liferay.portlet.messageboards.NoSuchMessageException; 713 714 /** 715 * Returns the message-boards messages before and after the current message-boards message in the ordered set where threadId = ?. 716 * 717 * <p> 718 * 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. 719 * </p> 720 * 721 * @param messageId the primary key of the current message-boards message 722 * @param threadId the thread ID 723 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 724 * @return the previous, current, and next message-boards message 725 * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a message-boards message with the primary key could not be found 726 * @throws SystemException if a system exception occurred 727 */ 728 public com.liferay.portlet.messageboards.model.MBMessage[] findByThreadReplies_PrevAndNext( 729 long messageId, long threadId, 730 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 731 throws com.liferay.portal.kernel.exception.SystemException, 732 com.liferay.portlet.messageboards.NoSuchMessageException; 733 734 /** 735 * Returns all the message-boards messages where userId = ?. 736 * 737 * @param userId the user ID 738 * @return the matching message-boards messages 739 * @throws SystemException if a system exception occurred 740 */ 741 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByUserId( 742 long userId) throws com.liferay.portal.kernel.exception.SystemException; 743 744 /** 745 * Returns a range of all the message-boards messages where userId = ?. 746 * 747 * <p> 748 * 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. 749 * </p> 750 * 751 * @param userId the user ID 752 * @param start the lower bound of the range of message-boards messages 753 * @param end the upper bound of the range of message-boards messages (not inclusive) 754 * @return the range of matching message-boards messages 755 * @throws SystemException if a system exception occurred 756 */ 757 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByUserId( 758 long userId, int start, int end) 759 throws com.liferay.portal.kernel.exception.SystemException; 760 761 /** 762 * Returns an ordered range of all the message-boards messages where userId = ?. 763 * 764 * <p> 765 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 766 * </p> 767 * 768 * @param userId the user ID 769 * @param start the lower bound of the range of message-boards messages 770 * @param end the upper bound of the range of message-boards messages (not inclusive) 771 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 772 * @return the ordered range of matching message-boards messages 773 * @throws SystemException if a system exception occurred 774 */ 775 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByUserId( 776 long userId, int start, int end, 777 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 778 throws com.liferay.portal.kernel.exception.SystemException; 779 780 /** 781 * Returns the first message-boards message in the ordered set where userId = ?. 782 * 783 * <p> 784 * 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. 785 * </p> 786 * 787 * @param userId the user ID 788 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 789 * @return the first matching message-boards message 790 * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a matching message-boards message could not be found 791 * @throws SystemException if a system exception occurred 792 */ 793 public com.liferay.portlet.messageboards.model.MBMessage findByUserId_First( 794 long userId, 795 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 796 throws com.liferay.portal.kernel.exception.SystemException, 797 com.liferay.portlet.messageboards.NoSuchMessageException; 798 799 /** 800 * Returns the last message-boards message in the ordered set where userId = ?. 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 userId the user ID 807 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 808 * @return the last matching message-boards message 809 * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a matching message-boards message could not be found 810 * @throws SystemException if a system exception occurred 811 */ 812 public com.liferay.portlet.messageboards.model.MBMessage findByUserId_Last( 813 long userId, 814 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 815 throws com.liferay.portal.kernel.exception.SystemException, 816 com.liferay.portlet.messageboards.NoSuchMessageException; 817 818 /** 819 * Returns the message-boards messages before and after the current message-boards message in the ordered set where userId = ?. 820 * 821 * <p> 822 * 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. 823 * </p> 824 * 825 * @param messageId the primary key of the current message-boards message 826 * @param userId the user ID 827 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 828 * @return the previous, current, and next message-boards message 829 * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a message-boards message with the primary key could not be found 830 * @throws SystemException if a system exception occurred 831 */ 832 public com.liferay.portlet.messageboards.model.MBMessage[] findByUserId_PrevAndNext( 833 long messageId, long userId, 834 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 835 throws com.liferay.portal.kernel.exception.SystemException, 836 com.liferay.portlet.messageboards.NoSuchMessageException; 837 838 /** 839 * Returns all the message-boards messages where groupId = ? and userId = ?. 840 * 841 * @param groupId the group ID 842 * @param userId the user ID 843 * @return the matching message-boards messages 844 * @throws SystemException if a system exception occurred 845 */ 846 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByG_U( 847 long groupId, long userId) 848 throws com.liferay.portal.kernel.exception.SystemException; 849 850 /** 851 * Returns a range of all the message-boards messages where groupId = ? and userId = ?. 852 * 853 * <p> 854 * 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. 855 * </p> 856 * 857 * @param groupId the group ID 858 * @param userId the user ID 859 * @param start the lower bound of the range of message-boards messages 860 * @param end the upper bound of the range of message-boards messages (not inclusive) 861 * @return the range of matching message-boards messages 862 * @throws SystemException if a system exception occurred 863 */ 864 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByG_U( 865 long groupId, long userId, int start, int end) 866 throws com.liferay.portal.kernel.exception.SystemException; 867 868 /** 869 * Returns an ordered range of all the message-boards messages where groupId = ? and userId = ?. 870 * 871 * <p> 872 * 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. 873 * </p> 874 * 875 * @param groupId the group ID 876 * @param userId the user ID 877 * @param start the lower bound of the range of message-boards messages 878 * @param end the upper bound of the range of message-boards messages (not inclusive) 879 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 880 * @return the ordered range of matching message-boards messages 881 * @throws SystemException if a system exception occurred 882 */ 883 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByG_U( 884 long groupId, long userId, int start, int end, 885 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 886 throws com.liferay.portal.kernel.exception.SystemException; 887 888 /** 889 * Returns the first message-boards message in the ordered set where groupId = ? and userId = ?. 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 896 * @param userId the user ID 897 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 898 * @return the first matching message-boards message 899 * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a matching message-boards message could not be found 900 * @throws SystemException if a system exception occurred 901 */ 902 public com.liferay.portlet.messageboards.model.MBMessage findByG_U_First( 903 long groupId, long userId, 904 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 905 throws com.liferay.portal.kernel.exception.SystemException, 906 com.liferay.portlet.messageboards.NoSuchMessageException; 907 908 /** 909 * Returns the last message-boards message in the ordered set where groupId = ? and userId = ?. 910 * 911 * <p> 912 * 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. 913 * </p> 914 * 915 * @param groupId the group ID 916 * @param userId the user ID 917 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 918 * @return the last matching message-boards message 919 * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a matching message-boards message could not be found 920 * @throws SystemException if a system exception occurred 921 */ 922 public com.liferay.portlet.messageboards.model.MBMessage findByG_U_Last( 923 long groupId, long userId, 924 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 925 throws com.liferay.portal.kernel.exception.SystemException, 926 com.liferay.portlet.messageboards.NoSuchMessageException; 927 928 /** 929 * Returns the message-boards messages before and after the current message-boards message in the ordered set where groupId = ? and userId = ?. 930 * 931 * <p> 932 * 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. 933 * </p> 934 * 935 * @param messageId the primary key of the current message-boards message 936 * @param groupId the group ID 937 * @param userId the user ID 938 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 939 * @return the previous, current, and next message-boards message 940 * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a message-boards message with the primary key could not be found 941 * @throws SystemException if a system exception occurred 942 */ 943 public com.liferay.portlet.messageboards.model.MBMessage[] findByG_U_PrevAndNext( 944 long messageId, long groupId, long userId, 945 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 946 throws com.liferay.portal.kernel.exception.SystemException, 947 com.liferay.portlet.messageboards.NoSuchMessageException; 948 949 /** 950 * Returns all the message-boards messages that the user has permission to view where groupId = ? and userId = ?. 951 * 952 * @param groupId the group ID 953 * @param userId the user ID 954 * @return the matching message-boards messages that the user has permission to view 955 * @throws SystemException if a system exception occurred 956 */ 957 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> filterFindByG_U( 958 long groupId, long userId) 959 throws com.liferay.portal.kernel.exception.SystemException; 960 961 /** 962 * Returns a range of all the message-boards messages that the user has permission to view where groupId = ? and userId = ?. 963 * 964 * <p> 965 * 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. 966 * </p> 967 * 968 * @param groupId the group ID 969 * @param userId the user ID 970 * @param start the lower bound of the range of message-boards messages 971 * @param end the upper bound of the range of message-boards messages (not inclusive) 972 * @return the range of matching message-boards messages that the user has permission to view 973 * @throws SystemException if a system exception occurred 974 */ 975 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> filterFindByG_U( 976 long groupId, long userId, int start, int end) 977 throws com.liferay.portal.kernel.exception.SystemException; 978 979 /** 980 * Returns an ordered range of all the message-boards messages that the user has permissions to view where groupId = ? and userId = ?. 981 * 982 * <p> 983 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 984 * </p> 985 * 986 * @param groupId the group ID 987 * @param userId the user ID 988 * @param start the lower bound of the range of message-boards messages 989 * @param end the upper bound of the range of message-boards messages (not inclusive) 990 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 991 * @return the ordered range of matching message-boards messages that the user has permission to view 992 * @throws SystemException if a system exception occurred 993 */ 994 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> filterFindByG_U( 995 long groupId, long userId, int start, int end, 996 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 997 throws com.liferay.portal.kernel.exception.SystemException; 998 999 /** 1000 * Returns the message-boards messages before and after the current message-boards message in the ordered set of message-boards messages that the user has permission to view where groupId = ? and userId = ?. 1001 * 1002 * @param messageId the primary key of the current message-boards message 1003 * @param groupId the group ID 1004 * @param userId the user ID 1005 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1006 * @return the previous, current, and next message-boards message 1007 * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a message-boards message with the primary key could not be found 1008 * @throws SystemException if a system exception occurred 1009 */ 1010 public com.liferay.portlet.messageboards.model.MBMessage[] filterFindByG_U_PrevAndNext( 1011 long messageId, long groupId, long userId, 1012 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1013 throws com.liferay.portal.kernel.exception.SystemException, 1014 com.liferay.portlet.messageboards.NoSuchMessageException; 1015 1016 /** 1017 * Returns all the message-boards messages where groupId = ? and categoryId = ?. 1018 * 1019 * @param groupId the group ID 1020 * @param categoryId the category ID 1021 * @return the matching message-boards messages 1022 * @throws SystemException if a system exception occurred 1023 */ 1024 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByG_C( 1025 long groupId, long categoryId) 1026 throws com.liferay.portal.kernel.exception.SystemException; 1027 1028 /** 1029 * Returns a range of all the message-boards messages where groupId = ? and categoryId = ?. 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 1036 * @param categoryId the category ID 1037 * @param start the lower bound of the range of message-boards messages 1038 * @param end the upper bound of the range of message-boards messages (not inclusive) 1039 * @return the range of matching message-boards messages 1040 * @throws SystemException if a system exception occurred 1041 */ 1042 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByG_C( 1043 long groupId, long categoryId, int start, int end) 1044 throws com.liferay.portal.kernel.exception.SystemException; 1045 1046 /** 1047 * Returns an ordered range of all the message-boards messages where groupId = ? and categoryId = ?. 1048 * 1049 * <p> 1050 * 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. 1051 * </p> 1052 * 1053 * @param groupId the group ID 1054 * @param categoryId the category ID 1055 * @param start the lower bound of the range of message-boards messages 1056 * @param end the upper bound of the range of message-boards messages (not inclusive) 1057 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1058 * @return the ordered range of matching message-boards messages 1059 * @throws SystemException if a system exception occurred 1060 */ 1061 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByG_C( 1062 long groupId, long categoryId, int start, int end, 1063 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1064 throws com.liferay.portal.kernel.exception.SystemException; 1065 1066 /** 1067 * Returns the first message-boards message in the ordered set where groupId = ? and categoryId = ?. 1068 * 1069 * <p> 1070 * 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. 1071 * </p> 1072 * 1073 * @param groupId the group ID 1074 * @param categoryId the category ID 1075 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1076 * @return the first matching message-boards message 1077 * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a matching message-boards message could not be found 1078 * @throws SystemException if a system exception occurred 1079 */ 1080 public com.liferay.portlet.messageboards.model.MBMessage findByG_C_First( 1081 long groupId, long categoryId, 1082 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1083 throws com.liferay.portal.kernel.exception.SystemException, 1084 com.liferay.portlet.messageboards.NoSuchMessageException; 1085 1086 /** 1087 * Returns the last message-boards message in the ordered set where groupId = ? and categoryId = ?. 1088 * 1089 * <p> 1090 * 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. 1091 * </p> 1092 * 1093 * @param groupId the group ID 1094 * @param categoryId the category ID 1095 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1096 * @return the last matching message-boards message 1097 * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a matching message-boards message could not be found 1098 * @throws SystemException if a system exception occurred 1099 */ 1100 public com.liferay.portlet.messageboards.model.MBMessage findByG_C_Last( 1101 long groupId, long categoryId, 1102 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1103 throws com.liferay.portal.kernel.exception.SystemException, 1104 com.liferay.portlet.messageboards.NoSuchMessageException; 1105 1106 /** 1107 * Returns the message-boards messages before and after the current message-boards message in the ordered set where groupId = ? and categoryId = ?. 1108 * 1109 * <p> 1110 * 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. 1111 * </p> 1112 * 1113 * @param messageId the primary key of the current message-boards message 1114 * @param groupId the group ID 1115 * @param categoryId the category ID 1116 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1117 * @return the previous, current, and next message-boards message 1118 * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a message-boards message with the primary key could not be found 1119 * @throws SystemException if a system exception occurred 1120 */ 1121 public com.liferay.portlet.messageboards.model.MBMessage[] findByG_C_PrevAndNext( 1122 long messageId, long groupId, long categoryId, 1123 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1124 throws com.liferay.portal.kernel.exception.SystemException, 1125 com.liferay.portlet.messageboards.NoSuchMessageException; 1126 1127 /** 1128 * Returns all the message-boards messages that the user has permission to view where groupId = ? and categoryId = ?. 1129 * 1130 * @param groupId the group ID 1131 * @param categoryId the category ID 1132 * @return the matching message-boards messages that the user has permission to view 1133 * @throws SystemException if a system exception occurred 1134 */ 1135 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> filterFindByG_C( 1136 long groupId, long categoryId) 1137 throws com.liferay.portal.kernel.exception.SystemException; 1138 1139 /** 1140 * Returns a range of all the message-boards messages that the user has permission to view where groupId = ? and categoryId = ?. 1141 * 1142 * <p> 1143 * 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. 1144 * </p> 1145 * 1146 * @param groupId the group ID 1147 * @param categoryId the category ID 1148 * @param start the lower bound of the range of message-boards messages 1149 * @param end the upper bound of the range of message-boards messages (not inclusive) 1150 * @return the range of matching message-boards messages that the user has permission to view 1151 * @throws SystemException if a system exception occurred 1152 */ 1153 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> filterFindByG_C( 1154 long groupId, long categoryId, int start, int end) 1155 throws com.liferay.portal.kernel.exception.SystemException; 1156 1157 /** 1158 * Returns an ordered range of all the message-boards messages that the user has permissions to view where groupId = ? and categoryId = ?. 1159 * 1160 * <p> 1161 * 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. 1162 * </p> 1163 * 1164 * @param groupId the group ID 1165 * @param categoryId the category ID 1166 * @param start the lower bound of the range of message-boards messages 1167 * @param end the upper bound of the range of message-boards messages (not inclusive) 1168 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1169 * @return the ordered range of matching message-boards messages that the user has permission to view 1170 * @throws SystemException if a system exception occurred 1171 */ 1172 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> filterFindByG_C( 1173 long groupId, long categoryId, int start, int end, 1174 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1175 throws com.liferay.portal.kernel.exception.SystemException; 1176 1177 /** 1178 * Returns the message-boards messages before and after the current message-boards message in the ordered set of message-boards messages that the user has permission to view where groupId = ? and categoryId = ?. 1179 * 1180 * @param messageId the primary key of the current message-boards message 1181 * @param groupId the group ID 1182 * @param categoryId the category ID 1183 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1184 * @return the previous, current, and next message-boards message 1185 * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a message-boards message with the primary key could not be found 1186 * @throws SystemException if a system exception occurred 1187 */ 1188 public com.liferay.portlet.messageboards.model.MBMessage[] filterFindByG_C_PrevAndNext( 1189 long messageId, long groupId, long categoryId, 1190 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1191 throws com.liferay.portal.kernel.exception.SystemException, 1192 com.liferay.portlet.messageboards.NoSuchMessageException; 1193 1194 /** 1195 * Returns all the message-boards messages where groupId = ? and status = ?. 1196 * 1197 * @param groupId the group ID 1198 * @param status the status 1199 * @return the matching message-boards messages 1200 * @throws SystemException if a system exception occurred 1201 */ 1202 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByG_S( 1203 long groupId, int status) 1204 throws com.liferay.portal.kernel.exception.SystemException; 1205 1206 /** 1207 * Returns a range of all the message-boards messages where groupId = ? and status = ?. 1208 * 1209 * <p> 1210 * 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. 1211 * </p> 1212 * 1213 * @param groupId the group ID 1214 * @param status the status 1215 * @param start the lower bound of the range of message-boards messages 1216 * @param end the upper bound of the range of message-boards messages (not inclusive) 1217 * @return the range of matching message-boards messages 1218 * @throws SystemException if a system exception occurred 1219 */ 1220 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByG_S( 1221 long groupId, int status, int start, int end) 1222 throws com.liferay.portal.kernel.exception.SystemException; 1223 1224 /** 1225 * Returns an ordered range of all the message-boards messages where groupId = ? and status = ?. 1226 * 1227 * <p> 1228 * 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. 1229 * </p> 1230 * 1231 * @param groupId the group ID 1232 * @param status the status 1233 * @param start the lower bound of the range of message-boards messages 1234 * @param end the upper bound of the range of message-boards messages (not inclusive) 1235 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1236 * @return the ordered range of matching message-boards messages 1237 * @throws SystemException if a system exception occurred 1238 */ 1239 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByG_S( 1240 long groupId, int status, int start, int end, 1241 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1242 throws com.liferay.portal.kernel.exception.SystemException; 1243 1244 /** 1245 * Returns the first message-boards message in the ordered set where groupId = ? 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 groupId the group ID 1252 * @param status the status 1253 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1254 * @return the first matching message-boards message 1255 * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a matching message-boards message could not be found 1256 * @throws SystemException if a system exception occurred 1257 */ 1258 public com.liferay.portlet.messageboards.model.MBMessage findByG_S_First( 1259 long groupId, int status, 1260 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1261 throws com.liferay.portal.kernel.exception.SystemException, 1262 com.liferay.portlet.messageboards.NoSuchMessageException; 1263 1264 /** 1265 * Returns the last message-boards message in the ordered set where groupId = ? and status = ?. 1266 * 1267 * <p> 1268 * 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. 1269 * </p> 1270 * 1271 * @param groupId the group ID 1272 * @param status the status 1273 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1274 * @return the last matching message-boards message 1275 * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a matching message-boards message could not be found 1276 * @throws SystemException if a system exception occurred 1277 */ 1278 public com.liferay.portlet.messageboards.model.MBMessage findByG_S_Last( 1279 long groupId, int status, 1280 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1281 throws com.liferay.portal.kernel.exception.SystemException, 1282 com.liferay.portlet.messageboards.NoSuchMessageException; 1283 1284 /** 1285 * Returns the message-boards messages before and after the current message-boards message in the ordered set where groupId = ? and status = ?. 1286 * 1287 * <p> 1288 * 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. 1289 * </p> 1290 * 1291 * @param messageId the primary key of the current message-boards message 1292 * @param groupId the group ID 1293 * @param status the status 1294 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1295 * @return the previous, current, and next message-boards message 1296 * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a message-boards message with the primary key could not be found 1297 * @throws SystemException if a system exception occurred 1298 */ 1299 public com.liferay.portlet.messageboards.model.MBMessage[] findByG_S_PrevAndNext( 1300 long messageId, long groupId, int status, 1301 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1302 throws com.liferay.portal.kernel.exception.SystemException, 1303 com.liferay.portlet.messageboards.NoSuchMessageException; 1304 1305 /** 1306 * Returns all the message-boards messages that the user has permission to view where groupId = ? and status = ?. 1307 * 1308 * @param groupId the group ID 1309 * @param status the status 1310 * @return the matching message-boards messages that the user has permission to view 1311 * @throws SystemException if a system exception occurred 1312 */ 1313 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> filterFindByG_S( 1314 long groupId, int status) 1315 throws com.liferay.portal.kernel.exception.SystemException; 1316 1317 /** 1318 * Returns a range of all the message-boards messages that the user has permission to view where groupId = ? and status = ?. 1319 * 1320 * <p> 1321 * 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. 1322 * </p> 1323 * 1324 * @param groupId the group ID 1325 * @param status the status 1326 * @param start the lower bound of the range of message-boards messages 1327 * @param end the upper bound of the range of message-boards messages (not inclusive) 1328 * @return the range of matching message-boards messages that the user has permission to view 1329 * @throws SystemException if a system exception occurred 1330 */ 1331 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> filterFindByG_S( 1332 long groupId, int status, int start, int end) 1333 throws com.liferay.portal.kernel.exception.SystemException; 1334 1335 /** 1336 * Returns an ordered range of all the message-boards messages that the user has permissions to view where groupId = ? and status = ?. 1337 * 1338 * <p> 1339 * 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. 1340 * </p> 1341 * 1342 * @param groupId the group ID 1343 * @param status the status 1344 * @param start the lower bound of the range of message-boards messages 1345 * @param end the upper bound of the range of message-boards messages (not inclusive) 1346 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1347 * @return the ordered range of matching message-boards messages that the user has permission to view 1348 * @throws SystemException if a system exception occurred 1349 */ 1350 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> filterFindByG_S( 1351 long groupId, int status, int start, int end, 1352 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1353 throws com.liferay.portal.kernel.exception.SystemException; 1354 1355 /** 1356 * Returns the message-boards messages before and after the current message-boards message in the ordered set of message-boards messages that the user has permission to view where groupId = ? and status = ?. 1357 * 1358 * @param messageId the primary key of the current message-boards message 1359 * @param groupId the group ID 1360 * @param status the status 1361 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1362 * @return the previous, current, and next message-boards message 1363 * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a message-boards message with the primary key could not be found 1364 * @throws SystemException if a system exception occurred 1365 */ 1366 public com.liferay.portlet.messageboards.model.MBMessage[] filterFindByG_S_PrevAndNext( 1367 long messageId, long groupId, int status, 1368 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1369 throws com.liferay.portal.kernel.exception.SystemException, 1370 com.liferay.portlet.messageboards.NoSuchMessageException; 1371 1372 /** 1373 * Returns all the message-boards messages where companyId = ? and status = ?. 1374 * 1375 * @param companyId the company ID 1376 * @param status the status 1377 * @return the matching message-boards messages 1378 * @throws SystemException if a system exception occurred 1379 */ 1380 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByC_S( 1381 long companyId, int status) 1382 throws com.liferay.portal.kernel.exception.SystemException; 1383 1384 /** 1385 * Returns a range of all the message-boards messages where companyId = ? and status = ?. 1386 * 1387 * <p> 1388 * 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. 1389 * </p> 1390 * 1391 * @param companyId the company ID 1392 * @param status the status 1393 * @param start the lower bound of the range of message-boards messages 1394 * @param end the upper bound of the range of message-boards messages (not inclusive) 1395 * @return the range of matching message-boards messages 1396 * @throws SystemException if a system exception occurred 1397 */ 1398 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByC_S( 1399 long companyId, int status, int start, int end) 1400 throws com.liferay.portal.kernel.exception.SystemException; 1401 1402 /** 1403 * Returns an ordered range of all the message-boards messages where companyId = ? and status = ?. 1404 * 1405 * <p> 1406 * 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. 1407 * </p> 1408 * 1409 * @param companyId the company ID 1410 * @param status the status 1411 * @param start the lower bound of the range of message-boards messages 1412 * @param end the upper bound of the range of message-boards messages (not inclusive) 1413 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1414 * @return the ordered range of matching message-boards messages 1415 * @throws SystemException if a system exception occurred 1416 */ 1417 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByC_S( 1418 long companyId, int status, int start, int end, 1419 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1420 throws com.liferay.portal.kernel.exception.SystemException; 1421 1422 /** 1423 * Returns the first message-boards message in the ordered set where companyId = ? and status = ?. 1424 * 1425 * <p> 1426 * 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. 1427 * </p> 1428 * 1429 * @param companyId the company ID 1430 * @param status the status 1431 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1432 * @return the first matching message-boards message 1433 * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a matching message-boards message could not be found 1434 * @throws SystemException if a system exception occurred 1435 */ 1436 public com.liferay.portlet.messageboards.model.MBMessage findByC_S_First( 1437 long companyId, int status, 1438 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1439 throws com.liferay.portal.kernel.exception.SystemException, 1440 com.liferay.portlet.messageboards.NoSuchMessageException; 1441 1442 /** 1443 * Returns the last message-boards message in the ordered set where companyId = ? and status = ?. 1444 * 1445 * <p> 1446 * 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. 1447 * </p> 1448 * 1449 * @param companyId the company ID 1450 * @param status the status 1451 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1452 * @return the last matching message-boards message 1453 * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a matching message-boards message could not be found 1454 * @throws SystemException if a system exception occurred 1455 */ 1456 public com.liferay.portlet.messageboards.model.MBMessage findByC_S_Last( 1457 long companyId, int status, 1458 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1459 throws com.liferay.portal.kernel.exception.SystemException, 1460 com.liferay.portlet.messageboards.NoSuchMessageException; 1461 1462 /** 1463 * Returns the message-boards messages before and after the current message-boards message in the ordered set where companyId = ? and status = ?. 1464 * 1465 * <p> 1466 * 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. 1467 * </p> 1468 * 1469 * @param messageId the primary key of the current message-boards message 1470 * @param companyId the company ID 1471 * @param status the status 1472 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1473 * @return the previous, current, and next message-boards message 1474 * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a message-boards message with the primary key could not be found 1475 * @throws SystemException if a system exception occurred 1476 */ 1477 public com.liferay.portlet.messageboards.model.MBMessage[] findByC_S_PrevAndNext( 1478 long messageId, long companyId, int status, 1479 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1480 throws com.liferay.portal.kernel.exception.SystemException, 1481 com.liferay.portlet.messageboards.NoSuchMessageException; 1482 1483 /** 1484 * Returns all the message-boards messages where userId = ? and classNameId = ?. 1485 * 1486 * @param userId the user ID 1487 * @param classNameId the class name ID 1488 * @return the matching message-boards messages 1489 * @throws SystemException if a system exception occurred 1490 */ 1491 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByU_C( 1492 long userId, long classNameId) 1493 throws com.liferay.portal.kernel.exception.SystemException; 1494 1495 /** 1496 * Returns a range of all the message-boards messages where userId = ? and classNameId = ?. 1497 * 1498 * <p> 1499 * 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. 1500 * </p> 1501 * 1502 * @param userId the user ID 1503 * @param classNameId the class name ID 1504 * @param start the lower bound of the range of message-boards messages 1505 * @param end the upper bound of the range of message-boards messages (not inclusive) 1506 * @return the range of matching message-boards messages 1507 * @throws SystemException if a system exception occurred 1508 */ 1509 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByU_C( 1510 long userId, long classNameId, int start, int end) 1511 throws com.liferay.portal.kernel.exception.SystemException; 1512 1513 /** 1514 * Returns an ordered range of all the message-boards messages where userId = ? and classNameId = ?. 1515 * 1516 * <p> 1517 * 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. 1518 * </p> 1519 * 1520 * @param userId the user ID 1521 * @param classNameId the class name ID 1522 * @param start the lower bound of the range of message-boards messages 1523 * @param end the upper bound of the range of message-boards messages (not inclusive) 1524 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1525 * @return the ordered range of matching message-boards messages 1526 * @throws SystemException if a system exception occurred 1527 */ 1528 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByU_C( 1529 long userId, long classNameId, int start, int end, 1530 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1531 throws com.liferay.portal.kernel.exception.SystemException; 1532 1533 /** 1534 * Returns the first message-boards message in the ordered set where userId = ? and classNameId = ?. 1535 * 1536 * <p> 1537 * 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. 1538 * </p> 1539 * 1540 * @param userId the user ID 1541 * @param classNameId the class name ID 1542 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1543 * @return the first matching message-boards message 1544 * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a matching message-boards message could not be found 1545 * @throws SystemException if a system exception occurred 1546 */ 1547 public com.liferay.portlet.messageboards.model.MBMessage findByU_C_First( 1548 long userId, long classNameId, 1549 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1550 throws com.liferay.portal.kernel.exception.SystemException, 1551 com.liferay.portlet.messageboards.NoSuchMessageException; 1552 1553 /** 1554 * Returns the last message-boards message in the ordered set where userId = ? and classNameId = ?. 1555 * 1556 * <p> 1557 * 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. 1558 * </p> 1559 * 1560 * @param userId the user ID 1561 * @param classNameId the class name ID 1562 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1563 * @return the last matching message-boards message 1564 * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a matching message-boards message could not be found 1565 * @throws SystemException if a system exception occurred 1566 */ 1567 public com.liferay.portlet.messageboards.model.MBMessage findByU_C_Last( 1568 long userId, long classNameId, 1569 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1570 throws com.liferay.portal.kernel.exception.SystemException, 1571 com.liferay.portlet.messageboards.NoSuchMessageException; 1572 1573 /** 1574 * Returns the message-boards messages before and after the current message-boards message in the ordered set where userId = ? and classNameId = ?. 1575 * 1576 * <p> 1577 * 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. 1578 * </p> 1579 * 1580 * @param messageId the primary key of the current message-boards message 1581 * @param userId the user ID 1582 * @param classNameId the class name ID 1583 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1584 * @return the previous, current, and next message-boards message 1585 * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a message-boards message with the primary key could not be found 1586 * @throws SystemException if a system exception occurred 1587 */ 1588 public com.liferay.portlet.messageboards.model.MBMessage[] findByU_C_PrevAndNext( 1589 long messageId, long userId, long classNameId, 1590 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1591 throws com.liferay.portal.kernel.exception.SystemException, 1592 com.liferay.portlet.messageboards.NoSuchMessageException; 1593 1594 /** 1595 * Returns all the message-boards messages where userId = ? and classNameId = any ?. 1596 * 1597 * <p> 1598 * 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. 1599 * </p> 1600 * 1601 * @param userId the user ID 1602 * @param classNameIds the class name IDs 1603 * @return the matching message-boards messages 1604 * @throws SystemException if a system exception occurred 1605 */ 1606 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByU_C( 1607 long userId, long[] classNameIds) 1608 throws com.liferay.portal.kernel.exception.SystemException; 1609 1610 /** 1611 * Returns a range of all the message-boards messages where userId = ? and classNameId = any ?. 1612 * 1613 * <p> 1614 * 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. 1615 * </p> 1616 * 1617 * @param userId the user ID 1618 * @param classNameIds the class name IDs 1619 * @param start the lower bound of the range of message-boards messages 1620 * @param end the upper bound of the range of message-boards messages (not inclusive) 1621 * @return the range of matching message-boards messages 1622 * @throws SystemException if a system exception occurred 1623 */ 1624 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByU_C( 1625 long userId, long[] classNameIds, int start, int end) 1626 throws com.liferay.portal.kernel.exception.SystemException; 1627 1628 /** 1629 * Returns an ordered range of all the message-boards messages where userId = ? and classNameId = any ?. 1630 * 1631 * <p> 1632 * 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. 1633 * </p> 1634 * 1635 * @param userId the user ID 1636 * @param classNameIds the class name IDs 1637 * @param start the lower bound of the range of message-boards messages 1638 * @param end the upper bound of the range of message-boards messages (not inclusive) 1639 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1640 * @return the ordered range of matching message-boards messages 1641 * @throws SystemException if a system exception occurred 1642 */ 1643 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByU_C( 1644 long userId, long[] classNameIds, int start, int end, 1645 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1646 throws com.liferay.portal.kernel.exception.SystemException; 1647 1648 /** 1649 * Returns all the message-boards messages where classNameId = ? and classPK = ?. 1650 * 1651 * @param classNameId the class name ID 1652 * @param classPK the class p k 1653 * @return the matching message-boards messages 1654 * @throws SystemException if a system exception occurred 1655 */ 1656 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByC_C( 1657 long classNameId, long classPK) 1658 throws com.liferay.portal.kernel.exception.SystemException; 1659 1660 /** 1661 * Returns a range of all the message-boards messages where classNameId = ? and classPK = ?. 1662 * 1663 * <p> 1664 * 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. 1665 * </p> 1666 * 1667 * @param classNameId the class name ID 1668 * @param classPK the class p k 1669 * @param start the lower bound of the range of message-boards messages 1670 * @param end the upper bound of the range of message-boards messages (not inclusive) 1671 * @return the range of matching message-boards messages 1672 * @throws SystemException if a system exception occurred 1673 */ 1674 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByC_C( 1675 long classNameId, long classPK, int start, int end) 1676 throws com.liferay.portal.kernel.exception.SystemException; 1677 1678 /** 1679 * Returns an ordered range of all the message-boards messages where classNameId = ? and classPK = ?. 1680 * 1681 * <p> 1682 * 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. 1683 * </p> 1684 * 1685 * @param classNameId the class name ID 1686 * @param classPK the class p k 1687 * @param start the lower bound of the range of message-boards messages 1688 * @param end the upper bound of the range of message-boards messages (not inclusive) 1689 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1690 * @return the ordered range of matching message-boards messages 1691 * @throws SystemException if a system exception occurred 1692 */ 1693 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByC_C( 1694 long classNameId, long classPK, int start, int end, 1695 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1696 throws com.liferay.portal.kernel.exception.SystemException; 1697 1698 /** 1699 * Returns the first message-boards message in the ordered set where classNameId = ? and classPK = ?. 1700 * 1701 * <p> 1702 * 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. 1703 * </p> 1704 * 1705 * @param classNameId the class name ID 1706 * @param classPK the class p k 1707 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1708 * @return the first matching message-boards message 1709 * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a matching message-boards message could not be found 1710 * @throws SystemException if a system exception occurred 1711 */ 1712 public com.liferay.portlet.messageboards.model.MBMessage findByC_C_First( 1713 long classNameId, long classPK, 1714 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1715 throws com.liferay.portal.kernel.exception.SystemException, 1716 com.liferay.portlet.messageboards.NoSuchMessageException; 1717 1718 /** 1719 * Returns the last message-boards message in the ordered set where classNameId = ? and classPK = ?. 1720 * 1721 * <p> 1722 * 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. 1723 * </p> 1724 * 1725 * @param classNameId the class name ID 1726 * @param classPK the class p k 1727 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1728 * @return the last matching message-boards message 1729 * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a matching message-boards message could not be found 1730 * @throws SystemException if a system exception occurred 1731 */ 1732 public com.liferay.portlet.messageboards.model.MBMessage findByC_C_Last( 1733 long classNameId, long classPK, 1734 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1735 throws com.liferay.portal.kernel.exception.SystemException, 1736 com.liferay.portlet.messageboards.NoSuchMessageException; 1737 1738 /** 1739 * Returns the message-boards messages before and after the current message-boards message in the ordered set where classNameId = ? and classPK = ?. 1740 * 1741 * <p> 1742 * 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. 1743 * </p> 1744 * 1745 * @param messageId the primary key of the current message-boards message 1746 * @param classNameId the class name ID 1747 * @param classPK the class p k 1748 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1749 * @return the previous, current, and next message-boards message 1750 * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a message-boards message with the primary key could not be found 1751 * @throws SystemException if a system exception occurred 1752 */ 1753 public com.liferay.portlet.messageboards.model.MBMessage[] findByC_C_PrevAndNext( 1754 long messageId, long classNameId, long classPK, 1755 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1756 throws com.liferay.portal.kernel.exception.SystemException, 1757 com.liferay.portlet.messageboards.NoSuchMessageException; 1758 1759 /** 1760 * Returns all the message-boards messages where threadId = ? and parentMessageId = ?. 1761 * 1762 * @param threadId the thread ID 1763 * @param parentMessageId the parent message ID 1764 * @return the matching message-boards messages 1765 * @throws SystemException if a system exception occurred 1766 */ 1767 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByT_P( 1768 long threadId, long parentMessageId) 1769 throws com.liferay.portal.kernel.exception.SystemException; 1770 1771 /** 1772 * Returns a range of all the message-boards messages where threadId = ? and parentMessageId = ?. 1773 * 1774 * <p> 1775 * 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. 1776 * </p> 1777 * 1778 * @param threadId the thread ID 1779 * @param parentMessageId the parent message ID 1780 * @param start the lower bound of the range of message-boards messages 1781 * @param end the upper bound of the range of message-boards messages (not inclusive) 1782 * @return the range of matching message-boards messages 1783 * @throws SystemException if a system exception occurred 1784 */ 1785 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByT_P( 1786 long threadId, long parentMessageId, int start, int end) 1787 throws com.liferay.portal.kernel.exception.SystemException; 1788 1789 /** 1790 * Returns an ordered range of all the message-boards messages where threadId = ? and parentMessageId = ?. 1791 * 1792 * <p> 1793 * 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. 1794 * </p> 1795 * 1796 * @param threadId the thread ID 1797 * @param parentMessageId the parent message ID 1798 * @param start the lower bound of the range of message-boards messages 1799 * @param end the upper bound of the range of message-boards messages (not inclusive) 1800 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1801 * @return the ordered range of matching message-boards messages 1802 * @throws SystemException if a system exception occurred 1803 */ 1804 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByT_P( 1805 long threadId, long parentMessageId, int start, int end, 1806 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1807 throws com.liferay.portal.kernel.exception.SystemException; 1808 1809 /** 1810 * Returns the first message-boards message in the ordered set where threadId = ? and parentMessageId = ?. 1811 * 1812 * <p> 1813 * 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. 1814 * </p> 1815 * 1816 * @param threadId the thread ID 1817 * @param parentMessageId the parent message ID 1818 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1819 * @return the first matching message-boards message 1820 * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a matching message-boards message could not be found 1821 * @throws SystemException if a system exception occurred 1822 */ 1823 public com.liferay.portlet.messageboards.model.MBMessage findByT_P_First( 1824 long threadId, long parentMessageId, 1825 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1826 throws com.liferay.portal.kernel.exception.SystemException, 1827 com.liferay.portlet.messageboards.NoSuchMessageException; 1828 1829 /** 1830 * Returns the last message-boards message in the ordered set where threadId = ? and parentMessageId = ?. 1831 * 1832 * <p> 1833 * 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. 1834 * </p> 1835 * 1836 * @param threadId the thread ID 1837 * @param parentMessageId the parent message ID 1838 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1839 * @return the last matching message-boards message 1840 * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a matching message-boards message could not be found 1841 * @throws SystemException if a system exception occurred 1842 */ 1843 public com.liferay.portlet.messageboards.model.MBMessage findByT_P_Last( 1844 long threadId, long parentMessageId, 1845 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1846 throws com.liferay.portal.kernel.exception.SystemException, 1847 com.liferay.portlet.messageboards.NoSuchMessageException; 1848 1849 /** 1850 * Returns the message-boards messages before and after the current message-boards message in the ordered set where threadId = ? and parentMessageId = ?. 1851 * 1852 * <p> 1853 * 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. 1854 * </p> 1855 * 1856 * @param messageId the primary key of the current message-boards message 1857 * @param threadId the thread ID 1858 * @param parentMessageId the parent message ID 1859 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1860 * @return the previous, current, and next message-boards message 1861 * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a message-boards message with the primary key could not be found 1862 * @throws SystemException if a system exception occurred 1863 */ 1864 public com.liferay.portlet.messageboards.model.MBMessage[] findByT_P_PrevAndNext( 1865 long messageId, long threadId, long parentMessageId, 1866 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1867 throws com.liferay.portal.kernel.exception.SystemException, 1868 com.liferay.portlet.messageboards.NoSuchMessageException; 1869 1870 /** 1871 * Returns all the message-boards messages where threadId = ? and answer = ?. 1872 * 1873 * @param threadId the thread ID 1874 * @param answer the answer 1875 * @return the matching message-boards messages 1876 * @throws SystemException if a system exception occurred 1877 */ 1878 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByT_A( 1879 long threadId, boolean answer) 1880 throws com.liferay.portal.kernel.exception.SystemException; 1881 1882 /** 1883 * Returns a range of all the message-boards messages where threadId = ? and answer = ?. 1884 * 1885 * <p> 1886 * 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. 1887 * </p> 1888 * 1889 * @param threadId the thread ID 1890 * @param answer the answer 1891 * @param start the lower bound of the range of message-boards messages 1892 * @param end the upper bound of the range of message-boards messages (not inclusive) 1893 * @return the range of matching message-boards messages 1894 * @throws SystemException if a system exception occurred 1895 */ 1896 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByT_A( 1897 long threadId, boolean answer, int start, int end) 1898 throws com.liferay.portal.kernel.exception.SystemException; 1899 1900 /** 1901 * Returns an ordered range of all the message-boards messages where threadId = ? and answer = ?. 1902 * 1903 * <p> 1904 * 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. 1905 * </p> 1906 * 1907 * @param threadId the thread ID 1908 * @param answer the answer 1909 * @param start the lower bound of the range of message-boards messages 1910 * @param end the upper bound of the range of message-boards messages (not inclusive) 1911 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1912 * @return the ordered range of matching message-boards messages 1913 * @throws SystemException if a system exception occurred 1914 */ 1915 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByT_A( 1916 long threadId, boolean answer, int start, int end, 1917 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1918 throws com.liferay.portal.kernel.exception.SystemException; 1919 1920 /** 1921 * Returns the first message-boards message in the ordered set where threadId = ? and answer = ?. 1922 * 1923 * <p> 1924 * 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. 1925 * </p> 1926 * 1927 * @param threadId the thread ID 1928 * @param answer the answer 1929 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1930 * @return the first matching message-boards message 1931 * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a matching message-boards message could not be found 1932 * @throws SystemException if a system exception occurred 1933 */ 1934 public com.liferay.portlet.messageboards.model.MBMessage findByT_A_First( 1935 long threadId, boolean answer, 1936 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1937 throws com.liferay.portal.kernel.exception.SystemException, 1938 com.liferay.portlet.messageboards.NoSuchMessageException; 1939 1940 /** 1941 * Returns the last message-boards message in the ordered set where threadId = ? and answer = ?. 1942 * 1943 * <p> 1944 * 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. 1945 * </p> 1946 * 1947 * @param threadId the thread ID 1948 * @param answer the answer 1949 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1950 * @return the last matching message-boards message 1951 * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a matching message-boards message could not be found 1952 * @throws SystemException if a system exception occurred 1953 */ 1954 public com.liferay.portlet.messageboards.model.MBMessage findByT_A_Last( 1955 long threadId, boolean answer, 1956 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1957 throws com.liferay.portal.kernel.exception.SystemException, 1958 com.liferay.portlet.messageboards.NoSuchMessageException; 1959 1960 /** 1961 * Returns the message-boards messages before and after the current message-boards message in the ordered set where threadId = ? and answer = ?. 1962 * 1963 * <p> 1964 * 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. 1965 * </p> 1966 * 1967 * @param messageId the primary key of the current message-boards message 1968 * @param threadId the thread ID 1969 * @param answer the answer 1970 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1971 * @return the previous, current, and next message-boards message 1972 * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a message-boards message with the primary key could not be found 1973 * @throws SystemException if a system exception occurred 1974 */ 1975 public com.liferay.portlet.messageboards.model.MBMessage[] findByT_A_PrevAndNext( 1976 long messageId, long threadId, boolean answer, 1977 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1978 throws com.liferay.portal.kernel.exception.SystemException, 1979 com.liferay.portlet.messageboards.NoSuchMessageException; 1980 1981 /** 1982 * Returns all the message-boards messages where threadId = ? and status = ?. 1983 * 1984 * @param threadId the thread ID 1985 * @param status the status 1986 * @return the matching message-boards messages 1987 * @throws SystemException if a system exception occurred 1988 */ 1989 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByT_S( 1990 long threadId, int status) 1991 throws com.liferay.portal.kernel.exception.SystemException; 1992 1993 /** 1994 * Returns a range of all the message-boards messages where threadId = ? and status = ?. 1995 * 1996 * <p> 1997 * 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. 1998 * </p> 1999 * 2000 * @param threadId the thread ID 2001 * @param status the status 2002 * @param start the lower bound of the range of message-boards messages 2003 * @param end the upper bound of the range of message-boards messages (not inclusive) 2004 * @return the range of matching message-boards messages 2005 * @throws SystemException if a system exception occurred 2006 */ 2007 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByT_S( 2008 long threadId, int status, int start, int end) 2009 throws com.liferay.portal.kernel.exception.SystemException; 2010 2011 /** 2012 * Returns an ordered range of all the message-boards messages where threadId = ? and status = ?. 2013 * 2014 * <p> 2015 * 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. 2016 * </p> 2017 * 2018 * @param threadId the thread ID 2019 * @param status the status 2020 * @param start the lower bound of the range of message-boards messages 2021 * @param end the upper bound of the range of message-boards messages (not inclusive) 2022 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 2023 * @return the ordered range of matching message-boards messages 2024 * @throws SystemException if a system exception occurred 2025 */ 2026 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByT_S( 2027 long threadId, int status, int start, int end, 2028 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2029 throws com.liferay.portal.kernel.exception.SystemException; 2030 2031 /** 2032 * Returns the first message-boards message in the ordered set where threadId = ? and status = ?. 2033 * 2034 * <p> 2035 * 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. 2036 * </p> 2037 * 2038 * @param threadId the thread ID 2039 * @param status the status 2040 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 2041 * @return the first matching message-boards message 2042 * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a matching message-boards message could not be found 2043 * @throws SystemException if a system exception occurred 2044 */ 2045 public com.liferay.portlet.messageboards.model.MBMessage findByT_S_First( 2046 long threadId, int status, 2047 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2048 throws com.liferay.portal.kernel.exception.SystemException, 2049 com.liferay.portlet.messageboards.NoSuchMessageException; 2050 2051 /** 2052 * Returns the last message-boards message in the ordered set where threadId = ? and status = ?. 2053 * 2054 * <p> 2055 * 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. 2056 * </p> 2057 * 2058 * @param threadId the thread ID 2059 * @param status the status 2060 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 2061 * @return the last matching message-boards message 2062 * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a matching message-boards message could not be found 2063 * @throws SystemException if a system exception occurred 2064 */ 2065 public com.liferay.portlet.messageboards.model.MBMessage findByT_S_Last( 2066 long threadId, int status, 2067 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2068 throws com.liferay.portal.kernel.exception.SystemException, 2069 com.liferay.portlet.messageboards.NoSuchMessageException; 2070 2071 /** 2072 * Returns the message-boards messages before and after the current message-boards message in the ordered set where threadId = ? and status = ?. 2073 * 2074 * <p> 2075 * 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. 2076 * </p> 2077 * 2078 * @param messageId the primary key of the current message-boards message 2079 * @param threadId the thread ID 2080 * @param status the status 2081 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 2082 * @return the previous, current, and next message-boards message 2083 * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a message-boards message with the primary key could not be found 2084 * @throws SystemException if a system exception occurred 2085 */ 2086 public com.liferay.portlet.messageboards.model.MBMessage[] findByT_S_PrevAndNext( 2087 long messageId, long threadId, int status, 2088 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2089 throws com.liferay.portal.kernel.exception.SystemException, 2090 com.liferay.portlet.messageboards.NoSuchMessageException; 2091 2092 /** 2093 * Returns all the message-boards messages where threadId = ? and status = ?. 2094 * 2095 * @param threadId the thread ID 2096 * @param status the status 2097 * @return the matching message-boards messages 2098 * @throws SystemException if a system exception occurred 2099 */ 2100 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByTR_S( 2101 long threadId, int status) 2102 throws com.liferay.portal.kernel.exception.SystemException; 2103 2104 /** 2105 * Returns a range of all the message-boards messages where threadId = ? and status = ?. 2106 * 2107 * <p> 2108 * 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. 2109 * </p> 2110 * 2111 * @param threadId the thread ID 2112 * @param status the status 2113 * @param start the lower bound of the range of message-boards messages 2114 * @param end the upper bound of the range of message-boards messages (not inclusive) 2115 * @return the range of matching message-boards messages 2116 * @throws SystemException if a system exception occurred 2117 */ 2118 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByTR_S( 2119 long threadId, int status, int start, int end) 2120 throws com.liferay.portal.kernel.exception.SystemException; 2121 2122 /** 2123 * Returns an ordered range of all the message-boards messages where threadId = ? and status = ?. 2124 * 2125 * <p> 2126 * 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. 2127 * </p> 2128 * 2129 * @param threadId the thread ID 2130 * @param status the status 2131 * @param start the lower bound of the range of message-boards messages 2132 * @param end the upper bound of the range of message-boards messages (not inclusive) 2133 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 2134 * @return the ordered range of matching message-boards messages 2135 * @throws SystemException if a system exception occurred 2136 */ 2137 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByTR_S( 2138 long threadId, int status, int start, int end, 2139 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2140 throws com.liferay.portal.kernel.exception.SystemException; 2141 2142 /** 2143 * Returns the first message-boards message in the ordered set where threadId = ? and status = ?. 2144 * 2145 * <p> 2146 * 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. 2147 * </p> 2148 * 2149 * @param threadId the thread ID 2150 * @param status the status 2151 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 2152 * @return the first matching message-boards message 2153 * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a matching message-boards message could not be found 2154 * @throws SystemException if a system exception occurred 2155 */ 2156 public com.liferay.portlet.messageboards.model.MBMessage findByTR_S_First( 2157 long threadId, int status, 2158 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2159 throws com.liferay.portal.kernel.exception.SystemException, 2160 com.liferay.portlet.messageboards.NoSuchMessageException; 2161 2162 /** 2163 * Returns the last message-boards message in the ordered set where threadId = ? and status = ?. 2164 * 2165 * <p> 2166 * 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. 2167 * </p> 2168 * 2169 * @param threadId the thread ID 2170 * @param status the status 2171 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 2172 * @return the last matching message-boards message 2173 * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a matching message-boards message could not be found 2174 * @throws SystemException if a system exception occurred 2175 */ 2176 public com.liferay.portlet.messageboards.model.MBMessage findByTR_S_Last( 2177 long threadId, int status, 2178 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2179 throws com.liferay.portal.kernel.exception.SystemException, 2180 com.liferay.portlet.messageboards.NoSuchMessageException; 2181 2182 /** 2183 * Returns the message-boards messages before and after the current message-boards message in the ordered set where threadId = ? and status = ?. 2184 * 2185 * <p> 2186 * 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. 2187 * </p> 2188 * 2189 * @param messageId the primary key of the current message-boards message 2190 * @param threadId the thread ID 2191 * @param status the status 2192 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 2193 * @return the previous, current, and next message-boards message 2194 * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a message-boards message with the primary key could not be found 2195 * @throws SystemException if a system exception occurred 2196 */ 2197 public com.liferay.portlet.messageboards.model.MBMessage[] findByTR_S_PrevAndNext( 2198 long messageId, long threadId, int status, 2199 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2200 throws com.liferay.portal.kernel.exception.SystemException, 2201 com.liferay.portlet.messageboards.NoSuchMessageException; 2202 2203 /** 2204 * Returns all the message-boards messages where groupId = ? and userId = ? and status = ?. 2205 * 2206 * @param groupId the group ID 2207 * @param userId the user ID 2208 * @param status the status 2209 * @return the matching message-boards messages 2210 * @throws SystemException if a system exception occurred 2211 */ 2212 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByG_U_S( 2213 long groupId, long userId, int status) 2214 throws com.liferay.portal.kernel.exception.SystemException; 2215 2216 /** 2217 * Returns a range of all the message-boards messages where groupId = ? and userId = ? and status = ?. 2218 * 2219 * <p> 2220 * 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. 2221 * </p> 2222 * 2223 * @param groupId the group ID 2224 * @param userId the user ID 2225 * @param status the status 2226 * @param start the lower bound of the range of message-boards messages 2227 * @param end the upper bound of the range of message-boards messages (not inclusive) 2228 * @return the range of matching message-boards messages 2229 * @throws SystemException if a system exception occurred 2230 */ 2231 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByG_U_S( 2232 long groupId, long userId, int status, int start, int end) 2233 throws com.liferay.portal.kernel.exception.SystemException; 2234 2235 /** 2236 * Returns an ordered range of all the message-boards messages where groupId = ? and userId = ? and status = ?. 2237 * 2238 * <p> 2239 * 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. 2240 * </p> 2241 * 2242 * @param groupId the group ID 2243 * @param userId the user ID 2244 * @param status the status 2245 * @param start the lower bound of the range of message-boards messages 2246 * @param end the upper bound of the range of message-boards messages (not inclusive) 2247 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 2248 * @return the ordered range of matching message-boards messages 2249 * @throws SystemException if a system exception occurred 2250 */ 2251 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByG_U_S( 2252 long groupId, long userId, int status, int start, int end, 2253 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2254 throws com.liferay.portal.kernel.exception.SystemException; 2255 2256 /** 2257 * Returns the first message-boards message in the ordered set where groupId = ? and userId = ? and status = ?. 2258 * 2259 * <p> 2260 * 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. 2261 * </p> 2262 * 2263 * @param groupId the group ID 2264 * @param userId the user ID 2265 * @param status the status 2266 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 2267 * @return the first matching message-boards message 2268 * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a matching message-boards message could not be found 2269 * @throws SystemException if a system exception occurred 2270 */ 2271 public com.liferay.portlet.messageboards.model.MBMessage findByG_U_S_First( 2272 long groupId, long userId, int status, 2273 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2274 throws com.liferay.portal.kernel.exception.SystemException, 2275 com.liferay.portlet.messageboards.NoSuchMessageException; 2276 2277 /** 2278 * Returns the last message-boards message in the ordered set where groupId = ? and userId = ? and status = ?. 2279 * 2280 * <p> 2281 * 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. 2282 * </p> 2283 * 2284 * @param groupId the group ID 2285 * @param userId the user ID 2286 * @param status the status 2287 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 2288 * @return the last matching message-boards message 2289 * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a matching message-boards message could not be found 2290 * @throws SystemException if a system exception occurred 2291 */ 2292 public com.liferay.portlet.messageboards.model.MBMessage findByG_U_S_Last( 2293 long groupId, long userId, int status, 2294 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2295 throws com.liferay.portal.kernel.exception.SystemException, 2296 com.liferay.portlet.messageboards.NoSuchMessageException; 2297 2298 /** 2299 * Returns the message-boards messages before and after the current message-boards message in the ordered set where groupId = ? and userId = ? and status = ?. 2300 * 2301 * <p> 2302 * 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. 2303 * </p> 2304 * 2305 * @param messageId the primary key of the current message-boards message 2306 * @param groupId the group ID 2307 * @param userId the user ID 2308 * @param status the status 2309 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 2310 * @return the previous, current, and next message-boards message 2311 * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a message-boards message with the primary key could not be found 2312 * @throws SystemException if a system exception occurred 2313 */ 2314 public com.liferay.portlet.messageboards.model.MBMessage[] findByG_U_S_PrevAndNext( 2315 long messageId, long groupId, long userId, int status, 2316 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2317 throws com.liferay.portal.kernel.exception.SystemException, 2318 com.liferay.portlet.messageboards.NoSuchMessageException; 2319 2320 /** 2321 * Returns all the message-boards messages that the user has permission to view where groupId = ? and userId = ? and status = ?. 2322 * 2323 * @param groupId the group ID 2324 * @param userId the user ID 2325 * @param status the status 2326 * @return the matching message-boards messages that the user has permission to view 2327 * @throws SystemException if a system exception occurred 2328 */ 2329 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> filterFindByG_U_S( 2330 long groupId, long userId, int status) 2331 throws com.liferay.portal.kernel.exception.SystemException; 2332 2333 /** 2334 * Returns a range of all the message-boards messages that the user has permission to view where groupId = ? and userId = ? and status = ?. 2335 * 2336 * <p> 2337 * 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. 2338 * </p> 2339 * 2340 * @param groupId the group ID 2341 * @param userId the user ID 2342 * @param status the status 2343 * @param start the lower bound of the range of message-boards messages 2344 * @param end the upper bound of the range of message-boards messages (not inclusive) 2345 * @return the range of matching message-boards messages that the user has permission to view 2346 * @throws SystemException if a system exception occurred 2347 */ 2348 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> filterFindByG_U_S( 2349 long groupId, long userId, int status, int start, int end) 2350 throws com.liferay.portal.kernel.exception.SystemException; 2351 2352 /** 2353 * Returns an ordered range of all the message-boards messages that the user has permissions to view where groupId = ? and userId = ? and status = ?. 2354 * 2355 * <p> 2356 * 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. 2357 * </p> 2358 * 2359 * @param groupId the group ID 2360 * @param userId the user ID 2361 * @param status the status 2362 * @param start the lower bound of the range of message-boards messages 2363 * @param end the upper bound of the range of message-boards messages (not inclusive) 2364 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 2365 * @return the ordered range of matching message-boards messages that the user has permission to view 2366 * @throws SystemException if a system exception occurred 2367 */ 2368 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> filterFindByG_U_S( 2369 long groupId, long userId, int status, int start, int end, 2370 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2371 throws com.liferay.portal.kernel.exception.SystemException; 2372 2373 /** 2374 * Returns the message-boards messages before and after the current message-boards message in the ordered set of message-boards messages that the user has permission to view where groupId = ? and userId = ? and status = ?. 2375 * 2376 * @param messageId the primary key of the current message-boards message 2377 * @param groupId the group ID 2378 * @param userId the user ID 2379 * @param status the status 2380 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 2381 * @return the previous, current, and next message-boards message 2382 * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a message-boards message with the primary key could not be found 2383 * @throws SystemException if a system exception occurred 2384 */ 2385 public com.liferay.portlet.messageboards.model.MBMessage[] filterFindByG_U_S_PrevAndNext( 2386 long messageId, long groupId, long userId, int status, 2387 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2388 throws com.liferay.portal.kernel.exception.SystemException, 2389 com.liferay.portlet.messageboards.NoSuchMessageException; 2390 2391 /** 2392 * Returns all the message-boards messages where groupId = ? and categoryId = ? and threadId = ?. 2393 * 2394 * @param groupId the group ID 2395 * @param categoryId the category ID 2396 * @param threadId the thread ID 2397 * @return the matching message-boards messages 2398 * @throws SystemException if a system exception occurred 2399 */ 2400 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByG_C_T( 2401 long groupId, long categoryId, long threadId) 2402 throws com.liferay.portal.kernel.exception.SystemException; 2403 2404 /** 2405 * Returns a range of all the message-boards messages where groupId = ? and categoryId = ? and threadId = ?. 2406 * 2407 * <p> 2408 * 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. 2409 * </p> 2410 * 2411 * @param groupId the group ID 2412 * @param categoryId the category ID 2413 * @param threadId the thread ID 2414 * @param start the lower bound of the range of message-boards messages 2415 * @param end the upper bound of the range of message-boards messages (not inclusive) 2416 * @return the range of matching message-boards messages 2417 * @throws SystemException if a system exception occurred 2418 */ 2419 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByG_C_T( 2420 long groupId, long categoryId, long threadId, int start, int end) 2421 throws com.liferay.portal.kernel.exception.SystemException; 2422 2423 /** 2424 * Returns an ordered range of all the message-boards messages where groupId = ? and categoryId = ? and threadId = ?. 2425 * 2426 * <p> 2427 * 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. 2428 * </p> 2429 * 2430 * @param groupId the group ID 2431 * @param categoryId the category ID 2432 * @param threadId the thread ID 2433 * @param start the lower bound of the range of message-boards messages 2434 * @param end the upper bound of the range of message-boards messages (not inclusive) 2435 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 2436 * @return the ordered range of matching message-boards messages 2437 * @throws SystemException if a system exception occurred 2438 */ 2439 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByG_C_T( 2440 long groupId, long categoryId, long threadId, int start, int end, 2441 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2442 throws com.liferay.portal.kernel.exception.SystemException; 2443 2444 /** 2445 * Returns the first message-boards message in the ordered set where groupId = ? and categoryId = ? and threadId = ?. 2446 * 2447 * <p> 2448 * 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. 2449 * </p> 2450 * 2451 * @param groupId the group ID 2452 * @param categoryId the category ID 2453 * @param threadId the thread ID 2454 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 2455 * @return the first matching message-boards message 2456 * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a matching message-boards message could not be found 2457 * @throws SystemException if a system exception occurred 2458 */ 2459 public com.liferay.portlet.messageboards.model.MBMessage findByG_C_T_First( 2460 long groupId, long categoryId, long threadId, 2461 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2462 throws com.liferay.portal.kernel.exception.SystemException, 2463 com.liferay.portlet.messageboards.NoSuchMessageException; 2464 2465 /** 2466 * Returns the last message-boards message in the ordered set where groupId = ? and categoryId = ? and threadId = ?. 2467 * 2468 * <p> 2469 * 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. 2470 * </p> 2471 * 2472 * @param groupId the group ID 2473 * @param categoryId the category ID 2474 * @param threadId the thread ID 2475 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 2476 * @return the last matching message-boards message 2477 * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a matching message-boards message could not be found 2478 * @throws SystemException if a system exception occurred 2479 */ 2480 public com.liferay.portlet.messageboards.model.MBMessage findByG_C_T_Last( 2481 long groupId, long categoryId, long threadId, 2482 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2483 throws com.liferay.portal.kernel.exception.SystemException, 2484 com.liferay.portlet.messageboards.NoSuchMessageException; 2485 2486 /** 2487 * Returns the message-boards messages before and after the current message-boards message in the ordered set where groupId = ? and categoryId = ? and threadId = ?. 2488 * 2489 * <p> 2490 * 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. 2491 * </p> 2492 * 2493 * @param messageId the primary key of the current message-boards message 2494 * @param groupId the group ID 2495 * @param categoryId the category ID 2496 * @param threadId the thread ID 2497 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 2498 * @return the previous, current, and next message-boards message 2499 * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a message-boards message with the primary key could not be found 2500 * @throws SystemException if a system exception occurred 2501 */ 2502 public com.liferay.portlet.messageboards.model.MBMessage[] findByG_C_T_PrevAndNext( 2503 long messageId, long groupId, long categoryId, long threadId, 2504 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2505 throws com.liferay.portal.kernel.exception.SystemException, 2506 com.liferay.portlet.messageboards.NoSuchMessageException; 2507 2508 /** 2509 * Returns all the message-boards messages that the user has permission to view where groupId = ? and categoryId = ? and threadId = ?. 2510 * 2511 * @param groupId the group ID 2512 * @param categoryId the category ID 2513 * @param threadId the thread ID 2514 * @return the matching message-boards messages that the user has permission to view 2515 * @throws SystemException if a system exception occurred 2516 */ 2517 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> filterFindByG_C_T( 2518 long groupId, long categoryId, long threadId) 2519 throws com.liferay.portal.kernel.exception.SystemException; 2520 2521 /** 2522 * Returns a range of all the message-boards messages that the user has permission to view where groupId = ? and categoryId = ? and threadId = ?. 2523 * 2524 * <p> 2525 * 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. 2526 * </p> 2527 * 2528 * @param groupId the group ID 2529 * @param categoryId the category ID 2530 * @param threadId the thread ID 2531 * @param start the lower bound of the range of message-boards messages 2532 * @param end the upper bound of the range of message-boards messages (not inclusive) 2533 * @return the range of matching message-boards messages that the user has permission to view 2534 * @throws SystemException if a system exception occurred 2535 */ 2536 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> filterFindByG_C_T( 2537 long groupId, long categoryId, long threadId, int start, int end) 2538 throws com.liferay.portal.kernel.exception.SystemException; 2539 2540 /** 2541 * Returns an ordered range of all the message-boards messages that the user has permissions to view where groupId = ? and categoryId = ? and threadId = ?. 2542 * 2543 * <p> 2544 * 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. 2545 * </p> 2546 * 2547 * @param groupId the group ID 2548 * @param categoryId the category ID 2549 * @param threadId the thread ID 2550 * @param start the lower bound of the range of message-boards messages 2551 * @param end the upper bound of the range of message-boards messages (not inclusive) 2552 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 2553 * @return the ordered range of matching message-boards messages that the user has permission to view 2554 * @throws SystemException if a system exception occurred 2555 */ 2556 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> filterFindByG_C_T( 2557 long groupId, long categoryId, long threadId, int start, int end, 2558 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2559 throws com.liferay.portal.kernel.exception.SystemException; 2560 2561 /** 2562 * Returns the message-boards messages before and after the current message-boards message in the ordered set of message-boards messages that the user has permission to view where groupId = ? and categoryId = ? and threadId = ?. 2563 * 2564 * @param messageId the primary key of the current message-boards message 2565 * @param groupId the group ID 2566 * @param categoryId the category ID 2567 * @param threadId the thread ID 2568 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 2569 * @return the previous, current, and next message-boards message 2570 * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a message-boards message with the primary key could not be found 2571 * @throws SystemException if a system exception occurred 2572 */ 2573 public com.liferay.portlet.messageboards.model.MBMessage[] filterFindByG_C_T_PrevAndNext( 2574 long messageId, long groupId, long categoryId, long threadId, 2575 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2576 throws com.liferay.portal.kernel.exception.SystemException, 2577 com.liferay.portlet.messageboards.NoSuchMessageException; 2578 2579 /** 2580 * Returns all the message-boards messages where groupId = ? and categoryId = ? and status = ?. 2581 * 2582 * @param groupId the group ID 2583 * @param categoryId the category ID 2584 * @param status the status 2585 * @return the matching message-boards messages 2586 * @throws SystemException if a system exception occurred 2587 */ 2588 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByG_C_S( 2589 long groupId, long categoryId, int status) 2590 throws com.liferay.portal.kernel.exception.SystemException; 2591 2592 /** 2593 * Returns a range of all the message-boards messages where groupId = ? and categoryId = ? and status = ?. 2594 * 2595 * <p> 2596 * 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. 2597 * </p> 2598 * 2599 * @param groupId the group ID 2600 * @param categoryId the category ID 2601 * @param status the status 2602 * @param start the lower bound of the range of message-boards messages 2603 * @param end the upper bound of the range of message-boards messages (not inclusive) 2604 * @return the range of matching message-boards messages 2605 * @throws SystemException if a system exception occurred 2606 */ 2607 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByG_C_S( 2608 long groupId, long categoryId, int status, int start, int end) 2609 throws com.liferay.portal.kernel.exception.SystemException; 2610 2611 /** 2612 * Returns an ordered range of all the message-boards messages where groupId = ? and categoryId = ? and status = ?. 2613 * 2614 * <p> 2615 * 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. 2616 * </p> 2617 * 2618 * @param groupId the group ID 2619 * @param categoryId the category ID 2620 * @param status the status 2621 * @param start the lower bound of the range of message-boards messages 2622 * @param end the upper bound of the range of message-boards messages (not inclusive) 2623 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 2624 * @return the ordered range of matching message-boards messages 2625 * @throws SystemException if a system exception occurred 2626 */ 2627 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByG_C_S( 2628 long groupId, long categoryId, int status, int start, int end, 2629 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2630 throws com.liferay.portal.kernel.exception.SystemException; 2631 2632 /** 2633 * Returns the first message-boards message in the ordered set where groupId = ? and categoryId = ? and status = ?. 2634 * 2635 * <p> 2636 * 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. 2637 * </p> 2638 * 2639 * @param groupId the group ID 2640 * @param categoryId the category ID 2641 * @param status the status 2642 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 2643 * @return the first matching message-boards message 2644 * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a matching message-boards message could not be found 2645 * @throws SystemException if a system exception occurred 2646 */ 2647 public com.liferay.portlet.messageboards.model.MBMessage findByG_C_S_First( 2648 long groupId, long categoryId, int status, 2649 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2650 throws com.liferay.portal.kernel.exception.SystemException, 2651 com.liferay.portlet.messageboards.NoSuchMessageException; 2652 2653 /** 2654 * Returns the last message-boards message in the ordered set where groupId = ? and categoryId = ? and status = ?. 2655 * 2656 * <p> 2657 * 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. 2658 * </p> 2659 * 2660 * @param groupId the group ID 2661 * @param categoryId the category ID 2662 * @param status the status 2663 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 2664 * @return the last matching message-boards message 2665 * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a matching message-boards message could not be found 2666 * @throws SystemException if a system exception occurred 2667 */ 2668 public com.liferay.portlet.messageboards.model.MBMessage findByG_C_S_Last( 2669 long groupId, long categoryId, int status, 2670 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2671 throws com.liferay.portal.kernel.exception.SystemException, 2672 com.liferay.portlet.messageboards.NoSuchMessageException; 2673 2674 /** 2675 * Returns the message-boards messages before and after the current message-boards message in the ordered set where groupId = ? and categoryId = ? and status = ?. 2676 * 2677 * <p> 2678 * 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. 2679 * </p> 2680 * 2681 * @param messageId the primary key of the current message-boards message 2682 * @param groupId the group ID 2683 * @param categoryId the category ID 2684 * @param status the status 2685 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 2686 * @return the previous, current, and next message-boards message 2687 * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a message-boards message with the primary key could not be found 2688 * @throws SystemException if a system exception occurred 2689 */ 2690 public com.liferay.portlet.messageboards.model.MBMessage[] findByG_C_S_PrevAndNext( 2691 long messageId, long groupId, long categoryId, int status, 2692 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2693 throws com.liferay.portal.kernel.exception.SystemException, 2694 com.liferay.portlet.messageboards.NoSuchMessageException; 2695 2696 /** 2697 * Returns all the message-boards messages that the user has permission to view where groupId = ? and categoryId = ? and status = ?. 2698 * 2699 * @param groupId the group ID 2700 * @param categoryId the category ID 2701 * @param status the status 2702 * @return the matching message-boards messages that the user has permission to view 2703 * @throws SystemException if a system exception occurred 2704 */ 2705 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> filterFindByG_C_S( 2706 long groupId, long categoryId, int status) 2707 throws com.liferay.portal.kernel.exception.SystemException; 2708 2709 /** 2710 * Returns a range of all the message-boards messages that the user has permission to view where groupId = ? and categoryId = ? and status = ?. 2711 * 2712 * <p> 2713 * 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. 2714 * </p> 2715 * 2716 * @param groupId the group ID 2717 * @param categoryId the category ID 2718 * @param status the status 2719 * @param start the lower bound of the range of message-boards messages 2720 * @param end the upper bound of the range of message-boards messages (not inclusive) 2721 * @return the range of matching message-boards messages that the user has permission to view 2722 * @throws SystemException if a system exception occurred 2723 */ 2724 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> filterFindByG_C_S( 2725 long groupId, long categoryId, int status, int start, int end) 2726 throws com.liferay.portal.kernel.exception.SystemException; 2727 2728 /** 2729 * Returns an ordered range of all the message-boards messages that the user has permissions to view where groupId = ? and categoryId = ? and status = ?. 2730 * 2731 * <p> 2732 * 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. 2733 * </p> 2734 * 2735 * @param groupId the group ID 2736 * @param categoryId the category ID 2737 * @param status the status 2738 * @param start the lower bound of the range of message-boards messages 2739 * @param end the upper bound of the range of message-boards messages (not inclusive) 2740 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 2741 * @return the ordered range of matching message-boards messages that the user has permission to view 2742 * @throws SystemException if a system exception occurred 2743 */ 2744 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> filterFindByG_C_S( 2745 long groupId, long categoryId, int status, int start, int end, 2746 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2747 throws com.liferay.portal.kernel.exception.SystemException; 2748 2749 /** 2750 * Returns the message-boards messages before and after the current message-boards message in the ordered set of message-boards messages that the user has permission to view where groupId = ? and categoryId = ? and status = ?. 2751 * 2752 * @param messageId the primary key of the current message-boards message 2753 * @param groupId the group ID 2754 * @param categoryId the category ID 2755 * @param status the status 2756 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 2757 * @return the previous, current, and next message-boards message 2758 * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a message-boards message with the primary key could not be found 2759 * @throws SystemException if a system exception occurred 2760 */ 2761 public com.liferay.portlet.messageboards.model.MBMessage[] filterFindByG_C_S_PrevAndNext( 2762 long messageId, long groupId, long categoryId, int status, 2763 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2764 throws com.liferay.portal.kernel.exception.SystemException, 2765 com.liferay.portlet.messageboards.NoSuchMessageException; 2766 2767 /** 2768 * Returns all the message-boards messages where userId = ? and classNameId = ? and classPK = ?. 2769 * 2770 * @param userId the user ID 2771 * @param classNameId the class name ID 2772 * @param classPK the class p k 2773 * @return the matching message-boards messages 2774 * @throws SystemException if a system exception occurred 2775 */ 2776 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByU_C_C( 2777 long userId, long classNameId, long classPK) 2778 throws com.liferay.portal.kernel.exception.SystemException; 2779 2780 /** 2781 * Returns a range of all the message-boards messages where userId = ? and classNameId = ? and classPK = ?. 2782 * 2783 * <p> 2784 * 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. 2785 * </p> 2786 * 2787 * @param userId the user ID 2788 * @param classNameId the class name ID 2789 * @param classPK the class p k 2790 * @param start the lower bound of the range of message-boards messages 2791 * @param end the upper bound of the range of message-boards messages (not inclusive) 2792 * @return the range of matching message-boards messages 2793 * @throws SystemException if a system exception occurred 2794 */ 2795 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByU_C_C( 2796 long userId, long classNameId, long classPK, int start, int end) 2797 throws com.liferay.portal.kernel.exception.SystemException; 2798 2799 /** 2800 * Returns an ordered range of all the message-boards messages where userId = ? and classNameId = ? and classPK = ?. 2801 * 2802 * <p> 2803 * 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. 2804 * </p> 2805 * 2806 * @param userId the user ID 2807 * @param classNameId the class name ID 2808 * @param classPK the class p k 2809 * @param start the lower bound of the range of message-boards messages 2810 * @param end the upper bound of the range of message-boards messages (not inclusive) 2811 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 2812 * @return the ordered range of matching message-boards messages 2813 * @throws SystemException if a system exception occurred 2814 */ 2815 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByU_C_C( 2816 long userId, long classNameId, long classPK, int start, int end, 2817 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2818 throws com.liferay.portal.kernel.exception.SystemException; 2819 2820 /** 2821 * Returns the first message-boards message in the ordered set where userId = ? and classNameId = ? and classPK = ?. 2822 * 2823 * <p> 2824 * 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. 2825 * </p> 2826 * 2827 * @param userId the user ID 2828 * @param classNameId the class name ID 2829 * @param classPK the class p k 2830 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 2831 * @return the first matching message-boards message 2832 * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a matching message-boards message could not be found 2833 * @throws SystemException if a system exception occurred 2834 */ 2835 public com.liferay.portlet.messageboards.model.MBMessage findByU_C_C_First( 2836 long userId, long classNameId, long classPK, 2837 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2838 throws com.liferay.portal.kernel.exception.SystemException, 2839 com.liferay.portlet.messageboards.NoSuchMessageException; 2840 2841 /** 2842 * Returns the last message-boards message in the ordered set where userId = ? and classNameId = ? and classPK = ?. 2843 * 2844 * <p> 2845 * 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. 2846 * </p> 2847 * 2848 * @param userId the user ID 2849 * @param classNameId the class name ID 2850 * @param classPK the class p k 2851 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 2852 * @return the last matching message-boards message 2853 * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a matching message-boards message could not be found 2854 * @throws SystemException if a system exception occurred 2855 */ 2856 public com.liferay.portlet.messageboards.model.MBMessage findByU_C_C_Last( 2857 long userId, long classNameId, long classPK, 2858 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2859 throws com.liferay.portal.kernel.exception.SystemException, 2860 com.liferay.portlet.messageboards.NoSuchMessageException; 2861 2862 /** 2863 * Returns the message-boards messages before and after the current message-boards message in the ordered set where userId = ? and classNameId = ? and classPK = ?. 2864 * 2865 * <p> 2866 * 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. 2867 * </p> 2868 * 2869 * @param messageId the primary key of the current message-boards message 2870 * @param userId the user ID 2871 * @param classNameId the class name ID 2872 * @param classPK the class p k 2873 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 2874 * @return the previous, current, and next message-boards message 2875 * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a message-boards message with the primary key could not be found 2876 * @throws SystemException if a system exception occurred 2877 */ 2878 public com.liferay.portlet.messageboards.model.MBMessage[] findByU_C_C_PrevAndNext( 2879 long messageId, long userId, long classNameId, long classPK, 2880 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2881 throws com.liferay.portal.kernel.exception.SystemException, 2882 com.liferay.portlet.messageboards.NoSuchMessageException; 2883 2884 /** 2885 * Returns all the message-boards messages where userId = ? and classNameId = ? and status = ?. 2886 * 2887 * @param userId the user ID 2888 * @param classNameId the class name ID 2889 * @param status the status 2890 * @return the matching message-boards messages 2891 * @throws SystemException if a system exception occurred 2892 */ 2893 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByU_C_S( 2894 long userId, long classNameId, int status) 2895 throws com.liferay.portal.kernel.exception.SystemException; 2896 2897 /** 2898 * Returns a range of all the message-boards messages where userId = ? and classNameId = ? and status = ?. 2899 * 2900 * <p> 2901 * 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. 2902 * </p> 2903 * 2904 * @param userId the user ID 2905 * @param classNameId the class name ID 2906 * @param status the status 2907 * @param start the lower bound of the range of message-boards messages 2908 * @param end the upper bound of the range of message-boards messages (not inclusive) 2909 * @return the range of matching message-boards messages 2910 * @throws SystemException if a system exception occurred 2911 */ 2912 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByU_C_S( 2913 long userId, long classNameId, int status, int start, int end) 2914 throws com.liferay.portal.kernel.exception.SystemException; 2915 2916 /** 2917 * Returns an ordered range of all the message-boards messages where userId = ? and classNameId = ? and status = ?. 2918 * 2919 * <p> 2920 * 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. 2921 * </p> 2922 * 2923 * @param userId the user ID 2924 * @param classNameId the class name ID 2925 * @param status the status 2926 * @param start the lower bound of the range of message-boards messages 2927 * @param end the upper bound of the range of message-boards messages (not inclusive) 2928 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 2929 * @return the ordered range of matching message-boards messages 2930 * @throws SystemException if a system exception occurred 2931 */ 2932 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByU_C_S( 2933 long userId, long classNameId, int status, int start, int end, 2934 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2935 throws com.liferay.portal.kernel.exception.SystemException; 2936 2937 /** 2938 * Returns the first message-boards message in the ordered set where userId = ? and classNameId = ? and status = ?. 2939 * 2940 * <p> 2941 * 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. 2942 * </p> 2943 * 2944 * @param userId the user ID 2945 * @param classNameId the class name ID 2946 * @param status the status 2947 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 2948 * @return the first matching message-boards message 2949 * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a matching message-boards message could not be found 2950 * @throws SystemException if a system exception occurred 2951 */ 2952 public com.liferay.portlet.messageboards.model.MBMessage findByU_C_S_First( 2953 long userId, long classNameId, int status, 2954 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2955 throws com.liferay.portal.kernel.exception.SystemException, 2956 com.liferay.portlet.messageboards.NoSuchMessageException; 2957 2958 /** 2959 * Returns the last message-boards message in the ordered set where userId = ? and classNameId = ? and status = ?. 2960 * 2961 * <p> 2962 * 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. 2963 * </p> 2964 * 2965 * @param userId the user ID 2966 * @param classNameId the class name ID 2967 * @param status the status 2968 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 2969 * @return the last matching message-boards message 2970 * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a matching message-boards message could not be found 2971 * @throws SystemException if a system exception occurred 2972 */ 2973 public com.liferay.portlet.messageboards.model.MBMessage findByU_C_S_Last( 2974 long userId, long classNameId, int status, 2975 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2976 throws com.liferay.portal.kernel.exception.SystemException, 2977 com.liferay.portlet.messageboards.NoSuchMessageException; 2978 2979 /** 2980 * Returns the message-boards messages before and after the current message-boards message in the ordered set where userId = ? and classNameId = ? and status = ?. 2981 * 2982 * <p> 2983 * 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. 2984 * </p> 2985 * 2986 * @param messageId the primary key of the current message-boards message 2987 * @param userId the user ID 2988 * @param classNameId the class name ID 2989 * @param status the status 2990 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 2991 * @return the previous, current, and next message-boards message 2992 * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a message-boards message with the primary key could not be found 2993 * @throws SystemException if a system exception occurred 2994 */ 2995 public com.liferay.portlet.messageboards.model.MBMessage[] findByU_C_S_PrevAndNext( 2996 long messageId, long userId, long classNameId, int status, 2997 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2998 throws com.liferay.portal.kernel.exception.SystemException, 2999 com.liferay.portlet.messageboards.NoSuchMessageException; 3000 3001 /** 3002 * Returns all the message-boards messages where userId = ? and classNameId = any ? and status = ?. 3003 * 3004 * <p> 3005 * 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. 3006 * </p> 3007 * 3008 * @param userId the user ID 3009 * @param classNameIds the class name IDs 3010 * @param status the status 3011 * @return the matching message-boards messages 3012 * @throws SystemException if a system exception occurred 3013 */ 3014 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByU_C_S( 3015 long userId, long[] classNameIds, int status) 3016 throws com.liferay.portal.kernel.exception.SystemException; 3017 3018 /** 3019 * Returns a range of all the message-boards messages where userId = ? and classNameId = any ? and status = ?. 3020 * 3021 * <p> 3022 * 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. 3023 * </p> 3024 * 3025 * @param userId the user ID 3026 * @param classNameIds the class name IDs 3027 * @param status the status 3028 * @param start the lower bound of the range of message-boards messages 3029 * @param end the upper bound of the range of message-boards messages (not inclusive) 3030 * @return the range of matching message-boards messages 3031 * @throws SystemException if a system exception occurred 3032 */ 3033 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByU_C_S( 3034 long userId, long[] classNameIds, int status, int start, int end) 3035 throws com.liferay.portal.kernel.exception.SystemException; 3036 3037 /** 3038 * Returns an ordered range of all the message-boards messages where userId = ? and classNameId = any ? and status = ?. 3039 * 3040 * <p> 3041 * 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. 3042 * </p> 3043 * 3044 * @param userId the user ID 3045 * @param classNameIds the class name IDs 3046 * @param status the status 3047 * @param start the lower bound of the range of message-boards messages 3048 * @param end the upper bound of the range of message-boards messages (not inclusive) 3049 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 3050 * @return the ordered range of matching message-boards messages 3051 * @throws SystemException if a system exception occurred 3052 */ 3053 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByU_C_S( 3054 long userId, long[] classNameIds, int status, int start, int end, 3055 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 3056 throws com.liferay.portal.kernel.exception.SystemException; 3057 3058 /** 3059 * Returns all the message-boards messages where classNameId = ? and classPK = ? and status = ?. 3060 * 3061 * @param classNameId the class name ID 3062 * @param classPK the class p k 3063 * @param status the status 3064 * @return the matching message-boards messages 3065 * @throws SystemException if a system exception occurred 3066 */ 3067 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByC_C_S( 3068 long classNameId, long classPK, int status) 3069 throws com.liferay.portal.kernel.exception.SystemException; 3070 3071 /** 3072 * Returns a range of all the message-boards messages where classNameId = ? and classPK = ? and status = ?. 3073 * 3074 * <p> 3075 * 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. 3076 * </p> 3077 * 3078 * @param classNameId the class name ID 3079 * @param classPK the class p k 3080 * @param status the status 3081 * @param start the lower bound of the range of message-boards messages 3082 * @param end the upper bound of the range of message-boards messages (not inclusive) 3083 * @return the range of matching message-boards messages 3084 * @throws SystemException if a system exception occurred 3085 */ 3086 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByC_C_S( 3087 long classNameId, long classPK, int status, int start, int end) 3088 throws com.liferay.portal.kernel.exception.SystemException; 3089 3090 /** 3091 * Returns an ordered range of all the message-boards messages where classNameId = ? and classPK = ? and status = ?. 3092 * 3093 * <p> 3094 * 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. 3095 * </p> 3096 * 3097 * @param classNameId the class name ID 3098 * @param classPK the class p k 3099 * @param status the status 3100 * @param start the lower bound of the range of message-boards messages 3101 * @param end the upper bound of the range of message-boards messages (not inclusive) 3102 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 3103 * @return the ordered range of matching message-boards messages 3104 * @throws SystemException if a system exception occurred 3105 */ 3106 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByC_C_S( 3107 long classNameId, long classPK, int status, int start, int end, 3108 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 3109 throws com.liferay.portal.kernel.exception.SystemException; 3110 3111 /** 3112 * Returns the first message-boards message in the ordered set where classNameId = ? and classPK = ? and status = ?. 3113 * 3114 * <p> 3115 * 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. 3116 * </p> 3117 * 3118 * @param classNameId the class name ID 3119 * @param classPK the class p k 3120 * @param status the status 3121 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 3122 * @return the first matching message-boards message 3123 * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a matching message-boards message could not be found 3124 * @throws SystemException if a system exception occurred 3125 */ 3126 public com.liferay.portlet.messageboards.model.MBMessage findByC_C_S_First( 3127 long classNameId, long classPK, int status, 3128 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 3129 throws com.liferay.portal.kernel.exception.SystemException, 3130 com.liferay.portlet.messageboards.NoSuchMessageException; 3131 3132 /** 3133 * Returns the last message-boards message in the ordered set where classNameId = ? and classPK = ? and status = ?. 3134 * 3135 * <p> 3136 * 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. 3137 * </p> 3138 * 3139 * @param classNameId the class name ID 3140 * @param classPK the class p k 3141 * @param status the status 3142 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 3143 * @return the last matching message-boards message 3144 * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a matching message-boards message could not be found 3145 * @throws SystemException if a system exception occurred 3146 */ 3147 public com.liferay.portlet.messageboards.model.MBMessage findByC_C_S_Last( 3148 long classNameId, long classPK, int status, 3149 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 3150 throws com.liferay.portal.kernel.exception.SystemException, 3151 com.liferay.portlet.messageboards.NoSuchMessageException; 3152 3153 /** 3154 * Returns the message-boards messages before and after the current message-boards message in the ordered set where classNameId = ? and classPK = ? and status = ?. 3155 * 3156 * <p> 3157 * 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. 3158 * </p> 3159 * 3160 * @param messageId the primary key of the current message-boards message 3161 * @param classNameId the class name ID 3162 * @param classPK the class p k 3163 * @param status the status 3164 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 3165 * @return the previous, current, and next message-boards message 3166 * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a message-boards message with the primary key could not be found 3167 * @throws SystemException if a system exception occurred 3168 */ 3169 public com.liferay.portlet.messageboards.model.MBMessage[] findByC_C_S_PrevAndNext( 3170 long messageId, long classNameId, long classPK, int status, 3171 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 3172 throws com.liferay.portal.kernel.exception.SystemException, 3173 com.liferay.portlet.messageboards.NoSuchMessageException; 3174 3175 /** 3176 * Returns all the message-boards messages where groupId = ? and categoryId = ? and threadId = ? and answer = ?. 3177 * 3178 * @param groupId the group ID 3179 * @param categoryId the category ID 3180 * @param threadId the thread ID 3181 * @param answer the answer 3182 * @return the matching message-boards messages 3183 * @throws SystemException if a system exception occurred 3184 */ 3185 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByG_C_T_A( 3186 long groupId, long categoryId, long threadId, boolean answer) 3187 throws com.liferay.portal.kernel.exception.SystemException; 3188 3189 /** 3190 * Returns a range of all the message-boards messages where groupId = ? and categoryId = ? and threadId = ? and answer = ?. 3191 * 3192 * <p> 3193 * 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. 3194 * </p> 3195 * 3196 * @param groupId the group ID 3197 * @param categoryId the category ID 3198 * @param threadId the thread ID 3199 * @param answer the answer 3200 * @param start the lower bound of the range of message-boards messages 3201 * @param end the upper bound of the range of message-boards messages (not inclusive) 3202 * @return the range of matching message-boards messages 3203 * @throws SystemException if a system exception occurred 3204 */ 3205 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByG_C_T_A( 3206 long groupId, long categoryId, long threadId, boolean answer, 3207 int start, int end) 3208 throws com.liferay.portal.kernel.exception.SystemException; 3209 3210 /** 3211 * Returns an ordered range of all the message-boards messages where groupId = ? and categoryId = ? and threadId = ? and answer = ?. 3212 * 3213 * <p> 3214 * 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. 3215 * </p> 3216 * 3217 * @param groupId the group ID 3218 * @param categoryId the category ID 3219 * @param threadId the thread ID 3220 * @param answer the answer 3221 * @param start the lower bound of the range of message-boards messages 3222 * @param end the upper bound of the range of message-boards messages (not inclusive) 3223 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 3224 * @return the ordered range of matching message-boards messages 3225 * @throws SystemException if a system exception occurred 3226 */ 3227 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByG_C_T_A( 3228 long groupId, long categoryId, long threadId, boolean answer, 3229 int start, int end, 3230 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 3231 throws com.liferay.portal.kernel.exception.SystemException; 3232 3233 /** 3234 * Returns the first message-boards message in the ordered set where groupId = ? and categoryId = ? and threadId = ? and answer = ?. 3235 * 3236 * <p> 3237 * 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. 3238 * </p> 3239 * 3240 * @param groupId the group ID 3241 * @param categoryId the category ID 3242 * @param threadId the thread ID 3243 * @param answer the answer 3244 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 3245 * @return the first matching message-boards message 3246 * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a matching message-boards message could not be found 3247 * @throws SystemException if a system exception occurred 3248 */ 3249 public com.liferay.portlet.messageboards.model.MBMessage findByG_C_T_A_First( 3250 long groupId, long categoryId, long threadId, boolean answer, 3251 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 3252 throws com.liferay.portal.kernel.exception.SystemException, 3253 com.liferay.portlet.messageboards.NoSuchMessageException; 3254 3255 /** 3256 * Returns the last message-boards message in the ordered set where groupId = ? and categoryId = ? and threadId = ? and answer = ?. 3257 * 3258 * <p> 3259 * 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. 3260 * </p> 3261 * 3262 * @param groupId the group ID 3263 * @param categoryId the category ID 3264 * @param threadId the thread ID 3265 * @param answer the answer 3266 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 3267 * @return the last matching message-boards message 3268 * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a matching message-boards message could not be found 3269 * @throws SystemException if a system exception occurred 3270 */ 3271 public com.liferay.portlet.messageboards.model.MBMessage findByG_C_T_A_Last( 3272 long groupId, long categoryId, long threadId, boolean answer, 3273 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 3274 throws com.liferay.portal.kernel.exception.SystemException, 3275 com.liferay.portlet.messageboards.NoSuchMessageException; 3276 3277 /** 3278 * Returns the message-boards messages before and after the current message-boards message in the ordered set where groupId = ? and categoryId = ? and threadId = ? and answer = ?. 3279 * 3280 * <p> 3281 * 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. 3282 * </p> 3283 * 3284 * @param messageId the primary key of the current message-boards message 3285 * @param groupId the group ID 3286 * @param categoryId the category ID 3287 * @param threadId the thread ID 3288 * @param answer the answer 3289 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 3290 * @return the previous, current, and next message-boards message 3291 * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a message-boards message with the primary key could not be found 3292 * @throws SystemException if a system exception occurred 3293 */ 3294 public com.liferay.portlet.messageboards.model.MBMessage[] findByG_C_T_A_PrevAndNext( 3295 long messageId, long groupId, long categoryId, long threadId, 3296 boolean answer, 3297 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 3298 throws com.liferay.portal.kernel.exception.SystemException, 3299 com.liferay.portlet.messageboards.NoSuchMessageException; 3300 3301 /** 3302 * Returns all the message-boards messages that the user has permission to view where groupId = ? and categoryId = ? and threadId = ? and answer = ?. 3303 * 3304 * @param groupId the group ID 3305 * @param categoryId the category ID 3306 * @param threadId the thread ID 3307 * @param answer the answer 3308 * @return the matching message-boards messages that the user has permission to view 3309 * @throws SystemException if a system exception occurred 3310 */ 3311 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> filterFindByG_C_T_A( 3312 long groupId, long categoryId, long threadId, boolean answer) 3313 throws com.liferay.portal.kernel.exception.SystemException; 3314 3315 /** 3316 * Returns a range of all the message-boards messages that the user has permission to view where groupId = ? and categoryId = ? and threadId = ? and answer = ?. 3317 * 3318 * <p> 3319 * 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. 3320 * </p> 3321 * 3322 * @param groupId the group ID 3323 * @param categoryId the category ID 3324 * @param threadId the thread ID 3325 * @param answer the answer 3326 * @param start the lower bound of the range of message-boards messages 3327 * @param end the upper bound of the range of message-boards messages (not inclusive) 3328 * @return the range of matching message-boards messages that the user has permission to view 3329 * @throws SystemException if a system exception occurred 3330 */ 3331 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> filterFindByG_C_T_A( 3332 long groupId, long categoryId, long threadId, boolean answer, 3333 int start, int end) 3334 throws com.liferay.portal.kernel.exception.SystemException; 3335 3336 /** 3337 * Returns an ordered range of all the message-boards messages that the user has permissions to view where groupId = ? and categoryId = ? and threadId = ? and answer = ?. 3338 * 3339 * <p> 3340 * 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. 3341 * </p> 3342 * 3343 * @param groupId the group ID 3344 * @param categoryId the category ID 3345 * @param threadId the thread ID 3346 * @param answer the answer 3347 * @param start the lower bound of the range of message-boards messages 3348 * @param end the upper bound of the range of message-boards messages (not inclusive) 3349 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 3350 * @return the ordered range of matching message-boards messages that the user has permission to view 3351 * @throws SystemException if a system exception occurred 3352 */ 3353 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> filterFindByG_C_T_A( 3354 long groupId, long categoryId, long threadId, boolean answer, 3355 int start, int end, 3356 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 3357 throws com.liferay.portal.kernel.exception.SystemException; 3358 3359 /** 3360 * Returns the message-boards messages before and after the current message-boards message in the ordered set of message-boards messages that the user has permission to view where groupId = ? and categoryId = ? and threadId = ? and answer = ?. 3361 * 3362 * @param messageId the primary key of the current message-boards message 3363 * @param groupId the group ID 3364 * @param categoryId the category ID 3365 * @param threadId the thread ID 3366 * @param answer the answer 3367 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 3368 * @return the previous, current, and next message-boards message 3369 * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a message-boards message with the primary key could not be found 3370 * @throws SystemException if a system exception occurred 3371 */ 3372 public com.liferay.portlet.messageboards.model.MBMessage[] filterFindByG_C_T_A_PrevAndNext( 3373 long messageId, long groupId, long categoryId, long threadId, 3374 boolean answer, 3375 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 3376 throws com.liferay.portal.kernel.exception.SystemException, 3377 com.liferay.portlet.messageboards.NoSuchMessageException; 3378 3379 /** 3380 * Returns all the message-boards messages where groupId = ? and categoryId = ? and threadId = ? and status = ?. 3381 * 3382 * @param groupId the group ID 3383 * @param categoryId the category ID 3384 * @param threadId the thread ID 3385 * @param status the status 3386 * @return the matching message-boards messages 3387 * @throws SystemException if a system exception occurred 3388 */ 3389 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByG_C_T_S( 3390 long groupId, long categoryId, long threadId, int status) 3391 throws com.liferay.portal.kernel.exception.SystemException; 3392 3393 /** 3394 * Returns a range of all the message-boards messages where groupId = ? and categoryId = ? and threadId = ? and status = ?. 3395 * 3396 * <p> 3397 * 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. 3398 * </p> 3399 * 3400 * @param groupId the group ID 3401 * @param categoryId the category ID 3402 * @param threadId the thread ID 3403 * @param status the status 3404 * @param start the lower bound of the range of message-boards messages 3405 * @param end the upper bound of the range of message-boards messages (not inclusive) 3406 * @return the range of matching message-boards messages 3407 * @throws SystemException if a system exception occurred 3408 */ 3409 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByG_C_T_S( 3410 long groupId, long categoryId, long threadId, int status, int start, 3411 int end) throws com.liferay.portal.kernel.exception.SystemException; 3412 3413 /** 3414 * Returns an ordered range of all the message-boards messages where groupId = ? and categoryId = ? and threadId = ? and status = ?. 3415 * 3416 * <p> 3417 * 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. 3418 * </p> 3419 * 3420 * @param groupId the group ID 3421 * @param categoryId the category ID 3422 * @param threadId the thread ID 3423 * @param status the status 3424 * @param start the lower bound of the range of message-boards messages 3425 * @param end the upper bound of the range of message-boards messages (not inclusive) 3426 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 3427 * @return the ordered range of matching message-boards messages 3428 * @throws SystemException if a system exception occurred 3429 */ 3430 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByG_C_T_S( 3431 long groupId, long categoryId, long threadId, int status, int start, 3432 int end, 3433 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 3434 throws com.liferay.portal.kernel.exception.SystemException; 3435 3436 /** 3437 * Returns the first message-boards message in the ordered set where groupId = ? and categoryId = ? and threadId = ? and status = ?. 3438 * 3439 * <p> 3440 * 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. 3441 * </p> 3442 * 3443 * @param groupId the group ID 3444 * @param categoryId the category ID 3445 * @param threadId the thread ID 3446 * @param status the status 3447 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 3448 * @return the first matching message-boards message 3449 * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a matching message-boards message could not be found 3450 * @throws SystemException if a system exception occurred 3451 */ 3452 public com.liferay.portlet.messageboards.model.MBMessage findByG_C_T_S_First( 3453 long groupId, long categoryId, long threadId, int status, 3454 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 3455 throws com.liferay.portal.kernel.exception.SystemException, 3456 com.liferay.portlet.messageboards.NoSuchMessageException; 3457 3458 /** 3459 * Returns the last message-boards message in the ordered set where groupId = ? and categoryId = ? and threadId = ? and status = ?. 3460 * 3461 * <p> 3462 * 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. 3463 * </p> 3464 * 3465 * @param groupId the group ID 3466 * @param categoryId the category ID 3467 * @param threadId the thread ID 3468 * @param status the status 3469 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 3470 * @return the last matching message-boards message 3471 * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a matching message-boards message could not be found 3472 * @throws SystemException if a system exception occurred 3473 */ 3474 public com.liferay.portlet.messageboards.model.MBMessage findByG_C_T_S_Last( 3475 long groupId, long categoryId, long threadId, int status, 3476 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 3477 throws com.liferay.portal.kernel.exception.SystemException, 3478 com.liferay.portlet.messageboards.NoSuchMessageException; 3479 3480 /** 3481 * Returns the message-boards messages before and after the current message-boards message in the ordered set where groupId = ? and categoryId = ? and threadId = ? and status = ?. 3482 * 3483 * <p> 3484 * 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. 3485 * </p> 3486 * 3487 * @param messageId the primary key of the current message-boards message 3488 * @param groupId the group ID 3489 * @param categoryId the category ID 3490 * @param threadId the thread ID 3491 * @param status the status 3492 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 3493 * @return the previous, current, and next message-boards message 3494 * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a message-boards message with the primary key could not be found 3495 * @throws SystemException if a system exception occurred 3496 */ 3497 public com.liferay.portlet.messageboards.model.MBMessage[] findByG_C_T_S_PrevAndNext( 3498 long messageId, long groupId, long categoryId, long threadId, 3499 int status, 3500 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 3501 throws com.liferay.portal.kernel.exception.SystemException, 3502 com.liferay.portlet.messageboards.NoSuchMessageException; 3503 3504 /** 3505 * Returns all the message-boards messages that the user has permission to view where groupId = ? and categoryId = ? and threadId = ? and status = ?. 3506 * 3507 * @param groupId the group ID 3508 * @param categoryId the category ID 3509 * @param threadId the thread ID 3510 * @param status the status 3511 * @return the matching message-boards messages that the user has permission to view 3512 * @throws SystemException if a system exception occurred 3513 */ 3514 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> filterFindByG_C_T_S( 3515 long groupId, long categoryId, long threadId, int status) 3516 throws com.liferay.portal.kernel.exception.SystemException; 3517 3518 /** 3519 * Returns a range of all the message-boards messages that the user has permission to view where groupId = ? and categoryId = ? and threadId = ? and status = ?. 3520 * 3521 * <p> 3522 * 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. 3523 * </p> 3524 * 3525 * @param groupId the group ID 3526 * @param categoryId the category ID 3527 * @param threadId the thread ID 3528 * @param status the status 3529 * @param start the lower bound of the range of message-boards messages 3530 * @param end the upper bound of the range of message-boards messages (not inclusive) 3531 * @return the range of matching message-boards messages that the user has permission to view 3532 * @throws SystemException if a system exception occurred 3533 */ 3534 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> filterFindByG_C_T_S( 3535 long groupId, long categoryId, long threadId, int status, int start, 3536 int end) throws com.liferay.portal.kernel.exception.SystemException; 3537 3538 /** 3539 * Returns an ordered range of all the message-boards messages that the user has permissions to view where groupId = ? and categoryId = ? and threadId = ? and status = ?. 3540 * 3541 * <p> 3542 * 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. 3543 * </p> 3544 * 3545 * @param groupId the group ID 3546 * @param categoryId the category ID 3547 * @param threadId the thread ID 3548 * @param status the status 3549 * @param start the lower bound of the range of message-boards messages 3550 * @param end the upper bound of the range of message-boards messages (not inclusive) 3551 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 3552 * @return the ordered range of matching message-boards messages that the user has permission to view 3553 * @throws SystemException if a system exception occurred 3554 */ 3555 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> filterFindByG_C_T_S( 3556 long groupId, long categoryId, long threadId, int status, int start, 3557 int end, 3558 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 3559 throws com.liferay.portal.kernel.exception.SystemException; 3560 3561 /** 3562 * Returns the message-boards messages before and after the current message-boards message in the ordered set of message-boards messages that the user has permission to view where groupId = ? and categoryId = ? and threadId = ? and status = ?. 3563 * 3564 * @param messageId the primary key of the current message-boards message 3565 * @param groupId the group ID 3566 * @param categoryId the category ID 3567 * @param threadId the thread ID 3568 * @param status the status 3569 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 3570 * @return the previous, current, and next message-boards message 3571 * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a message-boards message with the primary key could not be found 3572 * @throws SystemException if a system exception occurred 3573 */ 3574 public com.liferay.portlet.messageboards.model.MBMessage[] filterFindByG_C_T_S_PrevAndNext( 3575 long messageId, long groupId, long categoryId, long threadId, 3576 int status, 3577 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 3578 throws com.liferay.portal.kernel.exception.SystemException, 3579 com.liferay.portlet.messageboards.NoSuchMessageException; 3580 3581 /** 3582 * Returns all the message-boards messages where userId = ? and classNameId = ? and classPK = ? and status = ?. 3583 * 3584 * @param userId the user ID 3585 * @param classNameId the class name ID 3586 * @param classPK the class p k 3587 * @param status the status 3588 * @return the matching message-boards messages 3589 * @throws SystemException if a system exception occurred 3590 */ 3591 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByU_C_C_S( 3592 long userId, long classNameId, long classPK, int status) 3593 throws com.liferay.portal.kernel.exception.SystemException; 3594 3595 /** 3596 * Returns a range of all the message-boards messages where userId = ? and classNameId = ? and classPK = ? and status = ?. 3597 * 3598 * <p> 3599 * 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. 3600 * </p> 3601 * 3602 * @param userId the user ID 3603 * @param classNameId the class name ID 3604 * @param classPK the class p k 3605 * @param status the status 3606 * @param start the lower bound of the range of message-boards messages 3607 * @param end the upper bound of the range of message-boards messages (not inclusive) 3608 * @return the range of matching message-boards messages 3609 * @throws SystemException if a system exception occurred 3610 */ 3611 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByU_C_C_S( 3612 long userId, long classNameId, long classPK, int status, int start, 3613 int end) throws com.liferay.portal.kernel.exception.SystemException; 3614 3615 /** 3616 * Returns an ordered range of all the message-boards messages where userId = ? and classNameId = ? and classPK = ? and status = ?. 3617 * 3618 * <p> 3619 * 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. 3620 * </p> 3621 * 3622 * @param userId the user ID 3623 * @param classNameId the class name ID 3624 * @param classPK the class p k 3625 * @param status the status 3626 * @param start the lower bound of the range of message-boards messages 3627 * @param end the upper bound of the range of message-boards messages (not inclusive) 3628 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 3629 * @return the ordered range of matching message-boards messages 3630 * @throws SystemException if a system exception occurred 3631 */ 3632 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByU_C_C_S( 3633 long userId, long classNameId, long classPK, int status, int start, 3634 int end, 3635 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 3636 throws com.liferay.portal.kernel.exception.SystemException; 3637 3638 /** 3639 * Returns the first message-boards message in the ordered set where userId = ? and classNameId = ? and classPK = ? and status = ?. 3640 * 3641 * <p> 3642 * 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. 3643 * </p> 3644 * 3645 * @param userId the user ID 3646 * @param classNameId the class name ID 3647 * @param classPK the class p k 3648 * @param status the status 3649 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 3650 * @return the first matching message-boards message 3651 * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a matching message-boards message could not be found 3652 * @throws SystemException if a system exception occurred 3653 */ 3654 public com.liferay.portlet.messageboards.model.MBMessage findByU_C_C_S_First( 3655 long userId, long classNameId, long classPK, int status, 3656 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 3657 throws com.liferay.portal.kernel.exception.SystemException, 3658 com.liferay.portlet.messageboards.NoSuchMessageException; 3659 3660 /** 3661 * Returns the last message-boards message in the ordered set where userId = ? and classNameId = ? and classPK = ? and status = ?. 3662 * 3663 * <p> 3664 * 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. 3665 * </p> 3666 * 3667 * @param userId the user ID 3668 * @param classNameId the class name ID 3669 * @param classPK the class p k 3670 * @param status the status 3671 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 3672 * @return the last matching message-boards message 3673 * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a matching message-boards message could not be found 3674 * @throws SystemException if a system exception occurred 3675 */ 3676 public com.liferay.portlet.messageboards.model.MBMessage findByU_C_C_S_Last( 3677 long userId, long classNameId, long classPK, int status, 3678 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 3679 throws com.liferay.portal.kernel.exception.SystemException, 3680 com.liferay.portlet.messageboards.NoSuchMessageException; 3681 3682 /** 3683 * Returns the message-boards messages before and after the current message-boards message in the ordered set where userId = ? and classNameId = ? and classPK = ? and status = ?. 3684 * 3685 * <p> 3686 * 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. 3687 * </p> 3688 * 3689 * @param messageId the primary key of the current message-boards message 3690 * @param userId the user ID 3691 * @param classNameId the class name ID 3692 * @param classPK the class p k 3693 * @param status the status 3694 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 3695 * @return the previous, current, and next message-boards message 3696 * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a message-boards message with the primary key could not be found 3697 * @throws SystemException if a system exception occurred 3698 */ 3699 public com.liferay.portlet.messageboards.model.MBMessage[] findByU_C_C_S_PrevAndNext( 3700 long messageId, long userId, long classNameId, long classPK, 3701 int status, 3702 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 3703 throws com.liferay.portal.kernel.exception.SystemException, 3704 com.liferay.portlet.messageboards.NoSuchMessageException; 3705 3706 /** 3707 * Returns all the message-boards messages. 3708 * 3709 * @return the message-boards messages 3710 * @throws SystemException if a system exception occurred 3711 */ 3712 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findAll() 3713 throws com.liferay.portal.kernel.exception.SystemException; 3714 3715 /** 3716 * Returns a range of all the message-boards messages. 3717 * 3718 * <p> 3719 * 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. 3720 * </p> 3721 * 3722 * @param start the lower bound of the range of message-boards messages 3723 * @param end the upper bound of the range of message-boards messages (not inclusive) 3724 * @return the range of message-boards messages 3725 * @throws SystemException if a system exception occurred 3726 */ 3727 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findAll( 3728 int start, int end) 3729 throws com.liferay.portal.kernel.exception.SystemException; 3730 3731 /** 3732 * Returns an ordered range of all the message-boards messages. 3733 * 3734 * <p> 3735 * 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. 3736 * </p> 3737 * 3738 * @param start the lower bound of the range of message-boards messages 3739 * @param end the upper bound of the range of message-boards messages (not inclusive) 3740 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 3741 * @return the ordered range of message-boards messages 3742 * @throws SystemException if a system exception occurred 3743 */ 3744 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findAll( 3745 int start, int end, 3746 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 3747 throws com.liferay.portal.kernel.exception.SystemException; 3748 3749 /** 3750 * Removes all the message-boards messages where uuid = ? from the database. 3751 * 3752 * @param uuid the uuid 3753 * @throws SystemException if a system exception occurred 3754 */ 3755 public void removeByUuid(java.lang.String uuid) 3756 throws com.liferay.portal.kernel.exception.SystemException; 3757 3758 /** 3759 * Removes the message-boards message where uuid = ? and groupId = ? from the database. 3760 * 3761 * @param uuid the uuid 3762 * @param groupId the group ID 3763 * @throws SystemException if a system exception occurred 3764 */ 3765 public void removeByUUID_G(java.lang.String uuid, long groupId) 3766 throws com.liferay.portal.kernel.exception.SystemException, 3767 com.liferay.portlet.messageboards.NoSuchMessageException; 3768 3769 /** 3770 * Removes all the message-boards messages where groupId = ? from the database. 3771 * 3772 * @param groupId the group ID 3773 * @throws SystemException if a system exception occurred 3774 */ 3775 public void removeByGroupId(long groupId) 3776 throws com.liferay.portal.kernel.exception.SystemException; 3777 3778 /** 3779 * Removes all the message-boards messages where companyId = ? from the database. 3780 * 3781 * @param companyId the company ID 3782 * @throws SystemException if a system exception occurred 3783 */ 3784 public void removeByCompanyId(long companyId) 3785 throws com.liferay.portal.kernel.exception.SystemException; 3786 3787 /** 3788 * Removes all the message-boards messages where threadId = ? from the database. 3789 * 3790 * @param threadId the thread ID 3791 * @throws SystemException if a system exception occurred 3792 */ 3793 public void removeByThreadId(long threadId) 3794 throws com.liferay.portal.kernel.exception.SystemException; 3795 3796 /** 3797 * Removes all the message-boards messages where threadId = ? from the database. 3798 * 3799 * @param threadId the thread ID 3800 * @throws SystemException if a system exception occurred 3801 */ 3802 public void removeByThreadReplies(long threadId) 3803 throws com.liferay.portal.kernel.exception.SystemException; 3804 3805 /** 3806 * Removes all the message-boards messages where userId = ? from the database. 3807 * 3808 * @param userId the user ID 3809 * @throws SystemException if a system exception occurred 3810 */ 3811 public void removeByUserId(long userId) 3812 throws com.liferay.portal.kernel.exception.SystemException; 3813 3814 /** 3815 * Removes all the message-boards messages where groupId = ? and userId = ? from the database. 3816 * 3817 * @param groupId the group ID 3818 * @param userId the user ID 3819 * @throws SystemException if a system exception occurred 3820 */ 3821 public void removeByG_U(long groupId, long userId) 3822 throws com.liferay.portal.kernel.exception.SystemException; 3823 3824 /** 3825 * Removes all the message-boards messages where groupId = ? and categoryId = ? from the database. 3826 * 3827 * @param groupId the group ID 3828 * @param categoryId the category ID 3829 * @throws SystemException if a system exception occurred 3830 */ 3831 public void removeByG_C(long groupId, long categoryId) 3832 throws com.liferay.portal.kernel.exception.SystemException; 3833 3834 /** 3835 * Removes all the message-boards messages where groupId = ? and status = ? from the database. 3836 * 3837 * @param groupId the group ID 3838 * @param status the status 3839 * @throws SystemException if a system exception occurred 3840 */ 3841 public void removeByG_S(long groupId, int status) 3842 throws com.liferay.portal.kernel.exception.SystemException; 3843 3844 /** 3845 * Removes all the message-boards messages where companyId = ? and status = ? from the database. 3846 * 3847 * @param companyId the company ID 3848 * @param status the status 3849 * @throws SystemException if a system exception occurred 3850 */ 3851 public void removeByC_S(long companyId, int status) 3852 throws com.liferay.portal.kernel.exception.SystemException; 3853 3854 /** 3855 * Removes all the message-boards messages where userId = ? and classNameId = ? from the database. 3856 * 3857 * @param userId the user ID 3858 * @param classNameId the class name ID 3859 * @throws SystemException if a system exception occurred 3860 */ 3861 public void removeByU_C(long userId, long classNameId) 3862 throws com.liferay.portal.kernel.exception.SystemException; 3863 3864 /** 3865 * Removes all the message-boards messages where classNameId = ? and classPK = ? from the database. 3866 * 3867 * @param classNameId the class name ID 3868 * @param classPK the class p k 3869 * @throws SystemException if a system exception occurred 3870 */ 3871 public void removeByC_C(long classNameId, long classPK) 3872 throws com.liferay.portal.kernel.exception.SystemException; 3873 3874 /** 3875 * Removes all the message-boards messages where threadId = ? and parentMessageId = ? from the database. 3876 * 3877 * @param threadId the thread ID 3878 * @param parentMessageId the parent message ID 3879 * @throws SystemException if a system exception occurred 3880 */ 3881 public void removeByT_P(long threadId, long parentMessageId) 3882 throws com.liferay.portal.kernel.exception.SystemException; 3883 3884 /** 3885 * Removes all the message-boards messages where threadId = ? and answer = ? from the database. 3886 * 3887 * @param threadId the thread ID 3888 * @param answer the answer 3889 * @throws SystemException if a system exception occurred 3890 */ 3891 public void removeByT_A(long threadId, boolean answer) 3892 throws com.liferay.portal.kernel.exception.SystemException; 3893 3894 /** 3895 * Removes all the message-boards messages where threadId = ? and status = ? from the database. 3896 * 3897 * @param threadId the thread ID 3898 * @param status the status 3899 * @throws SystemException if a system exception occurred 3900 */ 3901 public void removeByT_S(long threadId, int status) 3902 throws com.liferay.portal.kernel.exception.SystemException; 3903 3904 /** 3905 * Removes all the message-boards messages where threadId = ? and status = ? from the database. 3906 * 3907 * @param threadId the thread ID 3908 * @param status the status 3909 * @throws SystemException if a system exception occurred 3910 */ 3911 public void removeByTR_S(long threadId, int status) 3912 throws com.liferay.portal.kernel.exception.SystemException; 3913 3914 /** 3915 * Removes all the message-boards messages where groupId = ? and userId = ? and status = ? from the database. 3916 * 3917 * @param groupId the group ID 3918 * @param userId the user ID 3919 * @param status the status 3920 * @throws SystemException if a system exception occurred 3921 */ 3922 public void removeByG_U_S(long groupId, long userId, int status) 3923 throws com.liferay.portal.kernel.exception.SystemException; 3924 3925 /** 3926 * Removes all the message-boards messages where groupId = ? and categoryId = ? and threadId = ? from the database. 3927 * 3928 * @param groupId the group ID 3929 * @param categoryId the category ID 3930 * @param threadId the thread ID 3931 * @throws SystemException if a system exception occurred 3932 */ 3933 public void removeByG_C_T(long groupId, long categoryId, long threadId) 3934 throws com.liferay.portal.kernel.exception.SystemException; 3935 3936 /** 3937 * Removes all the message-boards messages where groupId = ? and categoryId = ? and status = ? from the database. 3938 * 3939 * @param groupId the group ID 3940 * @param categoryId the category ID 3941 * @param status the status 3942 * @throws SystemException if a system exception occurred 3943 */ 3944 public void removeByG_C_S(long groupId, long categoryId, int status) 3945 throws com.liferay.portal.kernel.exception.SystemException; 3946 3947 /** 3948 * Removes all the message-boards messages where userId = ? and classNameId = ? and classPK = ? from the database. 3949 * 3950 * @param userId the user ID 3951 * @param classNameId the class name ID 3952 * @param classPK the class p k 3953 * @throws SystemException if a system exception occurred 3954 */ 3955 public void removeByU_C_C(long userId, long classNameId, long classPK) 3956 throws com.liferay.portal.kernel.exception.SystemException; 3957 3958 /** 3959 * Removes all the message-boards messages where userId = ? and classNameId = ? and status = ? from the database. 3960 * 3961 * @param userId the user ID 3962 * @param classNameId the class name ID 3963 * @param status the status 3964 * @throws SystemException if a system exception occurred 3965 */ 3966 public void removeByU_C_S(long userId, long classNameId, int status) 3967 throws com.liferay.portal.kernel.exception.SystemException; 3968 3969 /** 3970 * Removes all the message-boards messages where classNameId = ? and classPK = ? and status = ? from the database. 3971 * 3972 * @param classNameId the class name ID 3973 * @param classPK the class p k 3974 * @param status the status 3975 * @throws SystemException if a system exception occurred 3976 */ 3977 public void removeByC_C_S(long classNameId, long classPK, int status) 3978 throws com.liferay.portal.kernel.exception.SystemException; 3979 3980 /** 3981 * Removes all the message-boards messages where groupId = ? and categoryId = ? and threadId = ? and answer = ? from the database. 3982 * 3983 * @param groupId the group ID 3984 * @param categoryId the category ID 3985 * @param threadId the thread ID 3986 * @param answer the answer 3987 * @throws SystemException if a system exception occurred 3988 */ 3989 public void removeByG_C_T_A(long groupId, long categoryId, long threadId, 3990 boolean answer) 3991 throws com.liferay.portal.kernel.exception.SystemException; 3992 3993 /** 3994 * Removes all the message-boards messages where groupId = ? and categoryId = ? and threadId = ? and status = ? from the database. 3995 * 3996 * @param groupId the group ID 3997 * @param categoryId the category ID 3998 * @param threadId the thread ID 3999 * @param status the status 4000 * @throws SystemException if a system exception occurred 4001 */ 4002 public void removeByG_C_T_S(long groupId, long categoryId, long threadId, 4003 int status) throws com.liferay.portal.kernel.exception.SystemException; 4004 4005 /** 4006 * Removes all the message-boards messages where userId = ? and classNameId = ? and classPK = ? and status = ? from the database. 4007 * 4008 * @param userId the user ID 4009 * @param classNameId the class name ID 4010 * @param classPK the class p k 4011 * @param status the status 4012 * @throws SystemException if a system exception occurred 4013 */ 4014 public void removeByU_C_C_S(long userId, long classNameId, long classPK, 4015 int status) throws com.liferay.portal.kernel.exception.SystemException; 4016 4017 /** 4018 * Removes all the message-boards messages from the database. 4019 * 4020 * @throws SystemException if a system exception occurred 4021 */ 4022 public void removeAll() 4023 throws com.liferay.portal.kernel.exception.SystemException; 4024 4025 /** 4026 * Returns the number of message-boards messages where uuid = ?. 4027 * 4028 * @param uuid the uuid 4029 * @return the number of matching message-boards messages 4030 * @throws SystemException if a system exception occurred 4031 */ 4032 public int countByUuid(java.lang.String uuid) 4033 throws com.liferay.portal.kernel.exception.SystemException; 4034 4035 /** 4036 * Returns the number of message-boards messages where uuid = ? and groupId = ?. 4037 * 4038 * @param uuid the uuid 4039 * @param groupId the group ID 4040 * @return the number of matching message-boards messages 4041 * @throws SystemException if a system exception occurred 4042 */ 4043 public int countByUUID_G(java.lang.String uuid, long groupId) 4044 throws com.liferay.portal.kernel.exception.SystemException; 4045 4046 /** 4047 * Returns the number of message-boards messages where groupId = ?. 4048 * 4049 * @param groupId the group ID 4050 * @return the number of matching message-boards messages 4051 * @throws SystemException if a system exception occurred 4052 */ 4053 public int countByGroupId(long groupId) 4054 throws com.liferay.portal.kernel.exception.SystemException; 4055 4056 /** 4057 * Returns the number of message-boards messages that the user has permission to view where groupId = ?. 4058 * 4059 * @param groupId the group ID 4060 * @return the number of matching message-boards messages that the user has permission to view 4061 * @throws SystemException if a system exception occurred 4062 */ 4063 public int filterCountByGroupId(long groupId) 4064 throws com.liferay.portal.kernel.exception.SystemException; 4065 4066 /** 4067 * Returns the number of message-boards messages where companyId = ?. 4068 * 4069 * @param companyId the company ID 4070 * @return the number of matching message-boards messages 4071 * @throws SystemException if a system exception occurred 4072 */ 4073 public int countByCompanyId(long companyId) 4074 throws com.liferay.portal.kernel.exception.SystemException; 4075 4076 /** 4077 * Returns the number of message-boards messages where threadId = ?. 4078 * 4079 * @param threadId the thread ID 4080 * @return the number of matching message-boards messages 4081 * @throws SystemException if a system exception occurred 4082 */ 4083 public int countByThreadId(long threadId) 4084 throws com.liferay.portal.kernel.exception.SystemException; 4085 4086 /** 4087 * Returns the number of message-boards messages where threadId = ?. 4088 * 4089 * @param threadId the thread ID 4090 * @return the number of matching message-boards messages 4091 * @throws SystemException if a system exception occurred 4092 */ 4093 public int countByThreadReplies(long threadId) 4094 throws com.liferay.portal.kernel.exception.SystemException; 4095 4096 /** 4097 * Returns the number of message-boards messages where userId = ?. 4098 * 4099 * @param userId the user ID 4100 * @return the number of matching message-boards messages 4101 * @throws SystemException if a system exception occurred 4102 */ 4103 public int countByUserId(long userId) 4104 throws com.liferay.portal.kernel.exception.SystemException; 4105 4106 /** 4107 * Returns the number of message-boards messages where groupId = ? and userId = ?. 4108 * 4109 * @param groupId the group ID 4110 * @param userId the user ID 4111 * @return the number of matching message-boards messages 4112 * @throws SystemException if a system exception occurred 4113 */ 4114 public int countByG_U(long groupId, long userId) 4115 throws com.liferay.portal.kernel.exception.SystemException; 4116 4117 /** 4118 * Returns the number of message-boards messages that the user has permission to view where groupId = ? and userId = ?. 4119 * 4120 * @param groupId the group ID 4121 * @param userId the user ID 4122 * @return the number of matching message-boards messages that the user has permission to view 4123 * @throws SystemException if a system exception occurred 4124 */ 4125 public int filterCountByG_U(long groupId, long userId) 4126 throws com.liferay.portal.kernel.exception.SystemException; 4127 4128 /** 4129 * Returns the number of message-boards messages where groupId = ? and categoryId = ?. 4130 * 4131 * @param groupId the group ID 4132 * @param categoryId the category ID 4133 * @return the number of matching message-boards messages 4134 * @throws SystemException if a system exception occurred 4135 */ 4136 public int countByG_C(long groupId, long categoryId) 4137 throws com.liferay.portal.kernel.exception.SystemException; 4138 4139 /** 4140 * Returns the number of message-boards messages that the user has permission to view where groupId = ? and categoryId = ?. 4141 * 4142 * @param groupId the group ID 4143 * @param categoryId the category ID 4144 * @return the number of matching message-boards messages that the user has permission to view 4145 * @throws SystemException if a system exception occurred 4146 */ 4147 public int filterCountByG_C(long groupId, long categoryId) 4148 throws com.liferay.portal.kernel.exception.SystemException; 4149 4150 /** 4151 * Returns the number of message-boards messages where groupId = ? and status = ?. 4152 * 4153 * @param groupId the group ID 4154 * @param status the status 4155 * @return the number of matching message-boards messages 4156 * @throws SystemException if a system exception occurred 4157 */ 4158 public int countByG_S(long groupId, int status) 4159 throws com.liferay.portal.kernel.exception.SystemException; 4160 4161 /** 4162 * Returns the number of message-boards messages that the user has permission to view where groupId = ? and status = ?. 4163 * 4164 * @param groupId the group ID 4165 * @param status the status 4166 * @return the number of matching message-boards messages that the user has permission to view 4167 * @throws SystemException if a system exception occurred 4168 */ 4169 public int filterCountByG_S(long groupId, int status) 4170 throws com.liferay.portal.kernel.exception.SystemException; 4171 4172 /** 4173 * Returns the number of message-boards messages where companyId = ? and status = ?. 4174 * 4175 * @param companyId the company ID 4176 * @param status the status 4177 * @return the number of matching message-boards messages 4178 * @throws SystemException if a system exception occurred 4179 */ 4180 public int countByC_S(long companyId, int status) 4181 throws com.liferay.portal.kernel.exception.SystemException; 4182 4183 /** 4184 * Returns the number of message-boards messages where userId = ? and classNameId = ?. 4185 * 4186 * @param userId the user ID 4187 * @param classNameId the class name ID 4188 * @return the number of matching message-boards messages 4189 * @throws SystemException if a system exception occurred 4190 */ 4191 public int countByU_C(long userId, long classNameId) 4192 throws com.liferay.portal.kernel.exception.SystemException; 4193 4194 /** 4195 * Returns the number of message-boards messages where userId = ? and classNameId = any ?. 4196 * 4197 * @param userId the user ID 4198 * @param classNameIds the class name IDs 4199 * @return the number of matching message-boards messages 4200 * @throws SystemException if a system exception occurred 4201 */ 4202 public int countByU_C(long userId, long[] classNameIds) 4203 throws com.liferay.portal.kernel.exception.SystemException; 4204 4205 /** 4206 * Returns the number of message-boards messages where classNameId = ? and classPK = ?. 4207 * 4208 * @param classNameId the class name ID 4209 * @param classPK the class p k 4210 * @return the number of matching message-boards messages 4211 * @throws SystemException if a system exception occurred 4212 */ 4213 public int countByC_C(long classNameId, long classPK) 4214 throws com.liferay.portal.kernel.exception.SystemException; 4215 4216 /** 4217 * Returns the number of message-boards messages where threadId = ? and parentMessageId = ?. 4218 * 4219 * @param threadId the thread ID 4220 * @param parentMessageId the parent message ID 4221 * @return the number of matching message-boards messages 4222 * @throws SystemException if a system exception occurred 4223 */ 4224 public int countByT_P(long threadId, long parentMessageId) 4225 throws com.liferay.portal.kernel.exception.SystemException; 4226 4227 /** 4228 * Returns the number of message-boards messages where threadId = ? and answer = ?. 4229 * 4230 * @param threadId the thread ID 4231 * @param answer the answer 4232 * @return the number of matching message-boards messages 4233 * @throws SystemException if a system exception occurred 4234 */ 4235 public int countByT_A(long threadId, boolean answer) 4236 throws com.liferay.portal.kernel.exception.SystemException; 4237 4238 /** 4239 * Returns the number of message-boards messages where threadId = ? and status = ?. 4240 * 4241 * @param threadId the thread ID 4242 * @param status the status 4243 * @return the number of matching message-boards messages 4244 * @throws SystemException if a system exception occurred 4245 */ 4246 public int countByT_S(long threadId, int status) 4247 throws com.liferay.portal.kernel.exception.SystemException; 4248 4249 /** 4250 * Returns the number of message-boards messages where threadId = ? and status = ?. 4251 * 4252 * @param threadId the thread ID 4253 * @param status the status 4254 * @return the number of matching message-boards messages 4255 * @throws SystemException if a system exception occurred 4256 */ 4257 public int countByTR_S(long threadId, int status) 4258 throws com.liferay.portal.kernel.exception.SystemException; 4259 4260 /** 4261 * Returns the number of message-boards messages where groupId = ? and userId = ? and status = ?. 4262 * 4263 * @param groupId the group ID 4264 * @param userId the user ID 4265 * @param status the status 4266 * @return the number of matching message-boards messages 4267 * @throws SystemException if a system exception occurred 4268 */ 4269 public int countByG_U_S(long groupId, long userId, int status) 4270 throws com.liferay.portal.kernel.exception.SystemException; 4271 4272 /** 4273 * Returns the number of message-boards messages that the user has permission to view where groupId = ? and userId = ? and status = ?. 4274 * 4275 * @param groupId the group ID 4276 * @param userId the user ID 4277 * @param status the status 4278 * @return the number of matching message-boards messages that the user has permission to view 4279 * @throws SystemException if a system exception occurred 4280 */ 4281 public int filterCountByG_U_S(long groupId, long userId, int status) 4282 throws com.liferay.portal.kernel.exception.SystemException; 4283 4284 /** 4285 * Returns the number of message-boards messages where groupId = ? and categoryId = ? and threadId = ?. 4286 * 4287 * @param groupId the group ID 4288 * @param categoryId the category ID 4289 * @param threadId the thread ID 4290 * @return the number of matching message-boards messages 4291 * @throws SystemException if a system exception occurred 4292 */ 4293 public int countByG_C_T(long groupId, long categoryId, long threadId) 4294 throws com.liferay.portal.kernel.exception.SystemException; 4295 4296 /** 4297 * Returns the number of message-boards messages that the user has permission to view where groupId = ? and categoryId = ? and threadId = ?. 4298 * 4299 * @param groupId the group ID 4300 * @param categoryId the category ID 4301 * @param threadId the thread ID 4302 * @return the number of matching message-boards messages that the user has permission to view 4303 * @throws SystemException if a system exception occurred 4304 */ 4305 public int filterCountByG_C_T(long groupId, long categoryId, long threadId) 4306 throws com.liferay.portal.kernel.exception.SystemException; 4307 4308 /** 4309 * Returns the number of message-boards messages where groupId = ? and categoryId = ? and status = ?. 4310 * 4311 * @param groupId the group ID 4312 * @param categoryId the category ID 4313 * @param status the status 4314 * @return the number of matching message-boards messages 4315 * @throws SystemException if a system exception occurred 4316 */ 4317 public int countByG_C_S(long groupId, long categoryId, int status) 4318 throws com.liferay.portal.kernel.exception.SystemException; 4319 4320 /** 4321 * Returns the number of message-boards messages that the user has permission to view where groupId = ? and categoryId = ? and status = ?. 4322 * 4323 * @param groupId the group ID 4324 * @param categoryId the category ID 4325 * @param status the status 4326 * @return the number of matching message-boards messages that the user has permission to view 4327 * @throws SystemException if a system exception occurred 4328 */ 4329 public int filterCountByG_C_S(long groupId, long categoryId, int status) 4330 throws com.liferay.portal.kernel.exception.SystemException; 4331 4332 /** 4333 * Returns the number of message-boards messages where userId = ? and classNameId = ? and classPK = ?. 4334 * 4335 * @param userId the user ID 4336 * @param classNameId the class name ID 4337 * @param classPK the class p k 4338 * @return the number of matching message-boards messages 4339 * @throws SystemException if a system exception occurred 4340 */ 4341 public int countByU_C_C(long userId, long classNameId, long classPK) 4342 throws com.liferay.portal.kernel.exception.SystemException; 4343 4344 /** 4345 * Returns the number of message-boards messages where userId = ? and classNameId = ? and status = ?. 4346 * 4347 * @param userId the user ID 4348 * @param classNameId the class name ID 4349 * @param status the status 4350 * @return the number of matching message-boards messages 4351 * @throws SystemException if a system exception occurred 4352 */ 4353 public int countByU_C_S(long userId, long classNameId, int status) 4354 throws com.liferay.portal.kernel.exception.SystemException; 4355 4356 /** 4357 * Returns the number of message-boards messages where userId = ? and classNameId = any ? and status = ?. 4358 * 4359 * @param userId the user ID 4360 * @param classNameIds the class name IDs 4361 * @param status the status 4362 * @return the number of matching message-boards messages 4363 * @throws SystemException if a system exception occurred 4364 */ 4365 public int countByU_C_S(long userId, long[] classNameIds, int status) 4366 throws com.liferay.portal.kernel.exception.SystemException; 4367 4368 /** 4369 * Returns the number of message-boards messages where classNameId = ? and classPK = ? and status = ?. 4370 * 4371 * @param classNameId the class name ID 4372 * @param classPK the class p k 4373 * @param status the status 4374 * @return the number of matching message-boards messages 4375 * @throws SystemException if a system exception occurred 4376 */ 4377 public int countByC_C_S(long classNameId, long classPK, int status) 4378 throws com.liferay.portal.kernel.exception.SystemException; 4379 4380 /** 4381 * Returns the number of message-boards messages where groupId = ? and categoryId = ? and threadId = ? and answer = ?. 4382 * 4383 * @param groupId the group ID 4384 * @param categoryId the category ID 4385 * @param threadId the thread ID 4386 * @param answer the answer 4387 * @return the number of matching message-boards messages 4388 * @throws SystemException if a system exception occurred 4389 */ 4390 public int countByG_C_T_A(long groupId, long categoryId, long threadId, 4391 boolean answer) 4392 throws com.liferay.portal.kernel.exception.SystemException; 4393 4394 /** 4395 * Returns the number of message-boards messages that the user has permission to view where groupId = ? and categoryId = ? and threadId = ? and answer = ?. 4396 * 4397 * @param groupId the group ID 4398 * @param categoryId the category ID 4399 * @param threadId the thread ID 4400 * @param answer the answer 4401 * @return the number of matching message-boards messages that the user has permission to view 4402 * @throws SystemException if a system exception occurred 4403 */ 4404 public int filterCountByG_C_T_A(long groupId, long categoryId, 4405 long threadId, boolean answer) 4406 throws com.liferay.portal.kernel.exception.SystemException; 4407 4408 /** 4409 * Returns the number of message-boards messages where groupId = ? and categoryId = ? and threadId = ? and status = ?. 4410 * 4411 * @param groupId the group ID 4412 * @param categoryId the category ID 4413 * @param threadId the thread ID 4414 * @param status the status 4415 * @return the number of matching message-boards messages 4416 * @throws SystemException if a system exception occurred 4417 */ 4418 public int countByG_C_T_S(long groupId, long categoryId, long threadId, 4419 int status) throws com.liferay.portal.kernel.exception.SystemException; 4420 4421 /** 4422 * Returns the number of message-boards messages that the user has permission to view where groupId = ? and categoryId = ? and threadId = ? and status = ?. 4423 * 4424 * @param groupId the group ID 4425 * @param categoryId the category ID 4426 * @param threadId the thread ID 4427 * @param status the status 4428 * @return the number of matching message-boards messages that the user has permission to view 4429 * @throws SystemException if a system exception occurred 4430 */ 4431 public int filterCountByG_C_T_S(long groupId, long categoryId, 4432 long threadId, int status) 4433 throws com.liferay.portal.kernel.exception.SystemException; 4434 4435 /** 4436 * Returns the number of message-boards messages where userId = ? and classNameId = ? and classPK = ? and status = ?. 4437 * 4438 * @param userId the user ID 4439 * @param classNameId the class name ID 4440 * @param classPK the class p k 4441 * @param status the status 4442 * @return the number of matching message-boards messages 4443 * @throws SystemException if a system exception occurred 4444 */ 4445 public int countByU_C_C_S(long userId, long classNameId, long classPK, 4446 int status) throws com.liferay.portal.kernel.exception.SystemException; 4447 4448 /** 4449 * Returns the number of message-boards messages. 4450 * 4451 * @return the number of message-boards messages 4452 * @throws SystemException if a system exception occurred 4453 */ 4454 public int countAll() 4455 throws com.liferay.portal.kernel.exception.SystemException; 4456 }