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