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