001 /** 002 * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved. 003 * 004 * This library is free software; you can redistribute it and/or modify it under 005 * the terms of the GNU Lesser General Public License as published by the Free 006 * Software Foundation; either version 2.1 of the License, or (at your option) 007 * any later version. 008 * 009 * This library is distributed in the hope that it will be useful, but WITHOUT 010 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 011 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 012 * details. 013 */ 014 015 package com.liferay.portlet.messageboards.service.persistence; 016 017 import com.liferay.portal.service.persistence.BasePersistence; 018 019 import com.liferay.portlet.messageboards.model.MBMessageFlag; 020 021 /** 022 * The persistence interface for the message boards message flag service. 023 * 024 * <p> 025 * Never modify this interface directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regnerate this interface. 026 * </p> 027 * 028 * @author Brian Wing Shun Chan 029 * @see MBMessageFlagPersistenceImpl 030 * @see MBMessageFlagUtil 031 * @generated 032 */ 033 public interface MBMessageFlagPersistence extends BasePersistence<MBMessageFlag> { 034 /** 035 * Caches the message boards message flag in the entity cache if it is enabled. 036 * 037 * @param mbMessageFlag the message boards message flag to cache 038 */ 039 public void cacheResult( 040 com.liferay.portlet.messageboards.model.MBMessageFlag mbMessageFlag); 041 042 /** 043 * Caches the message boards message flags in the entity cache if it is enabled. 044 * 045 * @param mbMessageFlags the message boards message flags to cache 046 */ 047 public void cacheResult( 048 java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> mbMessageFlags); 049 050 /** 051 * Creates a new message boards message flag with the primary key. 052 * 053 * @param messageFlagId the primary key for the new message boards message flag 054 * @return the new message boards message flag 055 */ 056 public com.liferay.portlet.messageboards.model.MBMessageFlag create( 057 long messageFlagId); 058 059 /** 060 * Removes the message boards message flag with the primary key from the database. Also notifies the appropriate model listeners. 061 * 062 * @param messageFlagId the primary key of the message boards message flag to remove 063 * @return the message boards message flag that was removed 064 * @throws com.liferay.portlet.messageboards.NoSuchMessageFlagException if a message boards message flag with the primary key could not be found 065 * @throws SystemException if a system exception occurred 066 */ 067 public com.liferay.portlet.messageboards.model.MBMessageFlag remove( 068 long messageFlagId) 069 throws com.liferay.portal.kernel.exception.SystemException, 070 com.liferay.portlet.messageboards.NoSuchMessageFlagException; 071 072 public com.liferay.portlet.messageboards.model.MBMessageFlag updateImpl( 073 com.liferay.portlet.messageboards.model.MBMessageFlag mbMessageFlag, 074 boolean merge) 075 throws com.liferay.portal.kernel.exception.SystemException; 076 077 /** 078 * Finds the message boards message flag with the primary key or throws a {@link com.liferay.portlet.messageboards.NoSuchMessageFlagException} if it could not be found. 079 * 080 * @param messageFlagId the primary key of the message boards message flag to find 081 * @return the message boards message flag 082 * @throws com.liferay.portlet.messageboards.NoSuchMessageFlagException if a message boards message flag with the primary key could not be found 083 * @throws SystemException if a system exception occurred 084 */ 085 public com.liferay.portlet.messageboards.model.MBMessageFlag findByPrimaryKey( 086 long messageFlagId) 087 throws com.liferay.portal.kernel.exception.SystemException, 088 com.liferay.portlet.messageboards.NoSuchMessageFlagException; 089 090 /** 091 * Finds the message boards message flag with the primary key or returns <code>null</code> if it could not be found. 092 * 093 * @param messageFlagId the primary key of the message boards message flag to find 094 * @return the message boards message flag, or <code>null</code> if a message boards message flag with the primary key could not be found 095 * @throws SystemException if a system exception occurred 096 */ 097 public com.liferay.portlet.messageboards.model.MBMessageFlag fetchByPrimaryKey( 098 long messageFlagId) 099 throws com.liferay.portal.kernel.exception.SystemException; 100 101 /** 102 * Finds all the message boards message flags where userId = ?. 103 * 104 * @param userId the user id to search with 105 * @return the matching message boards message flags 106 * @throws SystemException if a system exception occurred 107 */ 108 public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByUserId( 109 long userId) throws com.liferay.portal.kernel.exception.SystemException; 110 111 /** 112 * Finds a range of all the message boards message flags where userId = ?. 113 * 114 * <p> 115 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 116 * </p> 117 * 118 * @param userId the user id to search with 119 * @param start the lower bound of the range of message boards message flags to return 120 * @param end the upper bound of the range of message boards message flags to return (not inclusive) 121 * @return the range of matching message boards message flags 122 * @throws SystemException if a system exception occurred 123 */ 124 public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByUserId( 125 long userId, int start, int end) 126 throws com.liferay.portal.kernel.exception.SystemException; 127 128 /** 129 * Finds an ordered range of all the message boards message flags where userId = ?. 130 * 131 * <p> 132 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 133 * </p> 134 * 135 * @param userId the user id to search with 136 * @param start the lower bound of the range of message boards message flags to return 137 * @param end the upper bound of the range of message boards message flags to return (not inclusive) 138 * @param orderByComparator the comparator to order the results by 139 * @return the ordered range of matching message boards message flags 140 * @throws SystemException if a system exception occurred 141 */ 142 public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByUserId( 143 long userId, int start, int end, 144 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 145 throws com.liferay.portal.kernel.exception.SystemException; 146 147 /** 148 * Finds the first message boards message flag in the ordered set where userId = ?. 149 * 150 * <p> 151 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 152 * </p> 153 * 154 * @param userId the user id to search with 155 * @param orderByComparator the comparator to order the set by 156 * @return the first matching message boards message flag 157 * @throws com.liferay.portlet.messageboards.NoSuchMessageFlagException if a matching message boards message flag could not be found 158 * @throws SystemException if a system exception occurred 159 */ 160 public com.liferay.portlet.messageboards.model.MBMessageFlag findByUserId_First( 161 long userId, 162 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 163 throws com.liferay.portal.kernel.exception.SystemException, 164 com.liferay.portlet.messageboards.NoSuchMessageFlagException; 165 166 /** 167 * Finds the last message boards message flag in the ordered set where userId = ?. 168 * 169 * <p> 170 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 171 * </p> 172 * 173 * @param userId the user id to search with 174 * @param orderByComparator the comparator to order the set by 175 * @return the last matching message boards message flag 176 * @throws com.liferay.portlet.messageboards.NoSuchMessageFlagException if a matching message boards message flag could not be found 177 * @throws SystemException if a system exception occurred 178 */ 179 public com.liferay.portlet.messageboards.model.MBMessageFlag findByUserId_Last( 180 long userId, 181 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 182 throws com.liferay.portal.kernel.exception.SystemException, 183 com.liferay.portlet.messageboards.NoSuchMessageFlagException; 184 185 /** 186 * Finds the message boards message flags before and after the current message boards message flag in the ordered set where userId = ?. 187 * 188 * <p> 189 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 190 * </p> 191 * 192 * @param messageFlagId the primary key of the current message boards message flag 193 * @param userId the user id to search with 194 * @param orderByComparator the comparator to order the set by 195 * @return the previous, current, and next message boards message flag 196 * @throws com.liferay.portlet.messageboards.NoSuchMessageFlagException if a message boards message flag with the primary key could not be found 197 * @throws SystemException if a system exception occurred 198 */ 199 public com.liferay.portlet.messageboards.model.MBMessageFlag[] findByUserId_PrevAndNext( 200 long messageFlagId, long userId, 201 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 202 throws com.liferay.portal.kernel.exception.SystemException, 203 com.liferay.portlet.messageboards.NoSuchMessageFlagException; 204 205 /** 206 * Finds all the message boards message flags where threadId = ?. 207 * 208 * @param threadId the thread id to search with 209 * @return the matching message boards message flags 210 * @throws SystemException if a system exception occurred 211 */ 212 public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByThreadId( 213 long threadId) 214 throws com.liferay.portal.kernel.exception.SystemException; 215 216 /** 217 * Finds a range of all the message boards message flags where threadId = ?. 218 * 219 * <p> 220 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 221 * </p> 222 * 223 * @param threadId the thread id to search with 224 * @param start the lower bound of the range of message boards message flags to return 225 * @param end the upper bound of the range of message boards message flags to return (not inclusive) 226 * @return the range of matching message boards message flags 227 * @throws SystemException if a system exception occurred 228 */ 229 public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByThreadId( 230 long threadId, int start, int end) 231 throws com.liferay.portal.kernel.exception.SystemException; 232 233 /** 234 * Finds an ordered range of all the message boards message flags where threadId = ?. 235 * 236 * <p> 237 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 238 * </p> 239 * 240 * @param threadId the thread id to search with 241 * @param start the lower bound of the range of message boards message flags to return 242 * @param end the upper bound of the range of message boards message flags to return (not inclusive) 243 * @param orderByComparator the comparator to order the results by 244 * @return the ordered range of matching message boards message flags 245 * @throws SystemException if a system exception occurred 246 */ 247 public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByThreadId( 248 long threadId, int start, int end, 249 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 250 throws com.liferay.portal.kernel.exception.SystemException; 251 252 /** 253 * Finds the first message boards message flag in the ordered set where threadId = ?. 254 * 255 * <p> 256 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 257 * </p> 258 * 259 * @param threadId the thread id to search with 260 * @param orderByComparator the comparator to order the set by 261 * @return the first matching message boards message flag 262 * @throws com.liferay.portlet.messageboards.NoSuchMessageFlagException if a matching message boards message flag could not be found 263 * @throws SystemException if a system exception occurred 264 */ 265 public com.liferay.portlet.messageboards.model.MBMessageFlag findByThreadId_First( 266 long threadId, 267 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 268 throws com.liferay.portal.kernel.exception.SystemException, 269 com.liferay.portlet.messageboards.NoSuchMessageFlagException; 270 271 /** 272 * Finds the last message boards message flag in the ordered set where threadId = ?. 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. 276 * </p> 277 * 278 * @param threadId the thread id to search with 279 * @param orderByComparator the comparator to order the set by 280 * @return the last matching message boards message flag 281 * @throws com.liferay.portlet.messageboards.NoSuchMessageFlagException if a matching message boards message flag could not be found 282 * @throws SystemException if a system exception occurred 283 */ 284 public com.liferay.portlet.messageboards.model.MBMessageFlag findByThreadId_Last( 285 long threadId, 286 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 287 throws com.liferay.portal.kernel.exception.SystemException, 288 com.liferay.portlet.messageboards.NoSuchMessageFlagException; 289 290 /** 291 * Finds the message boards message flags before and after the current message boards message flag in the ordered set where threadId = ?. 292 * 293 * <p> 294 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 295 * </p> 296 * 297 * @param messageFlagId the primary key of the current message boards message flag 298 * @param threadId the thread id to search with 299 * @param orderByComparator the comparator to order the set by 300 * @return the previous, current, and next message boards message flag 301 * @throws com.liferay.portlet.messageboards.NoSuchMessageFlagException if a message boards message flag with the primary key could not be found 302 * @throws SystemException if a system exception occurred 303 */ 304 public com.liferay.portlet.messageboards.model.MBMessageFlag[] findByThreadId_PrevAndNext( 305 long messageFlagId, long threadId, 306 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 307 throws com.liferay.portal.kernel.exception.SystemException, 308 com.liferay.portlet.messageboards.NoSuchMessageFlagException; 309 310 /** 311 * Finds all the message boards message flags where messageId = ?. 312 * 313 * @param messageId the message id to search with 314 * @return the matching message boards message flags 315 * @throws SystemException if a system exception occurred 316 */ 317 public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByMessageId( 318 long messageId) 319 throws com.liferay.portal.kernel.exception.SystemException; 320 321 /** 322 * Finds a range of all the message boards message flags where messageId = ?. 323 * 324 * <p> 325 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 326 * </p> 327 * 328 * @param messageId the message id to search with 329 * @param start the lower bound of the range of message boards message flags to return 330 * @param end the upper bound of the range of message boards message flags to return (not inclusive) 331 * @return the range of matching message boards message flags 332 * @throws SystemException if a system exception occurred 333 */ 334 public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByMessageId( 335 long messageId, int start, int end) 336 throws com.liferay.portal.kernel.exception.SystemException; 337 338 /** 339 * Finds an ordered range of all the message boards message flags where messageId = ?. 340 * 341 * <p> 342 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 343 * </p> 344 * 345 * @param messageId the message id to search with 346 * @param start the lower bound of the range of message boards message flags to return 347 * @param end the upper bound of the range of message boards message flags to return (not inclusive) 348 * @param orderByComparator the comparator to order the results by 349 * @return the ordered range of matching message boards message flags 350 * @throws SystemException if a system exception occurred 351 */ 352 public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByMessageId( 353 long messageId, int start, int end, 354 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 355 throws com.liferay.portal.kernel.exception.SystemException; 356 357 /** 358 * Finds the first message boards message flag in the ordered set where messageId = ?. 359 * 360 * <p> 361 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 362 * </p> 363 * 364 * @param messageId the message id to search with 365 * @param orderByComparator the comparator to order the set by 366 * @return the first matching message boards message flag 367 * @throws com.liferay.portlet.messageboards.NoSuchMessageFlagException if a matching message boards message flag could not be found 368 * @throws SystemException if a system exception occurred 369 */ 370 public com.liferay.portlet.messageboards.model.MBMessageFlag findByMessageId_First( 371 long messageId, 372 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 373 throws com.liferay.portal.kernel.exception.SystemException, 374 com.liferay.portlet.messageboards.NoSuchMessageFlagException; 375 376 /** 377 * Finds the last message boards message flag in the ordered set where messageId = ?. 378 * 379 * <p> 380 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 381 * </p> 382 * 383 * @param messageId the message id to search with 384 * @param orderByComparator the comparator to order the set by 385 * @return the last matching message boards message flag 386 * @throws com.liferay.portlet.messageboards.NoSuchMessageFlagException if a matching message boards message flag could not be found 387 * @throws SystemException if a system exception occurred 388 */ 389 public com.liferay.portlet.messageboards.model.MBMessageFlag findByMessageId_Last( 390 long messageId, 391 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 392 throws com.liferay.portal.kernel.exception.SystemException, 393 com.liferay.portlet.messageboards.NoSuchMessageFlagException; 394 395 /** 396 * Finds the message boards message flags before and after the current message boards message flag in the ordered set where messageId = ?. 397 * 398 * <p> 399 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 400 * </p> 401 * 402 * @param messageFlagId the primary key of the current message boards message flag 403 * @param messageId the message id to search with 404 * @param orderByComparator the comparator to order the set by 405 * @return the previous, current, and next message boards message flag 406 * @throws com.liferay.portlet.messageboards.NoSuchMessageFlagException if a message boards message flag with the primary key could not be found 407 * @throws SystemException if a system exception occurred 408 */ 409 public com.liferay.portlet.messageboards.model.MBMessageFlag[] findByMessageId_PrevAndNext( 410 long messageFlagId, long messageId, 411 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 412 throws com.liferay.portal.kernel.exception.SystemException, 413 com.liferay.portlet.messageboards.NoSuchMessageFlagException; 414 415 /** 416 * Finds all the message boards message flags where threadId = ? and flag = ?. 417 * 418 * @param threadId the thread id to search with 419 * @param flag the flag to search with 420 * @return the matching message boards message flags 421 * @throws SystemException if a system exception occurred 422 */ 423 public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByT_F( 424 long threadId, int flag) 425 throws com.liferay.portal.kernel.exception.SystemException; 426 427 /** 428 * Finds a range of all the message boards message flags where threadId = ? and flag = ?. 429 * 430 * <p> 431 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 432 * </p> 433 * 434 * @param threadId the thread id to search with 435 * @param flag the flag to search with 436 * @param start the lower bound of the range of message boards message flags to return 437 * @param end the upper bound of the range of message boards message flags to return (not inclusive) 438 * @return the range of matching message boards message flags 439 * @throws SystemException if a system exception occurred 440 */ 441 public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByT_F( 442 long threadId, int flag, int start, int end) 443 throws com.liferay.portal.kernel.exception.SystemException; 444 445 /** 446 * Finds an ordered range of all the message boards message flags where threadId = ? and flag = ?. 447 * 448 * <p> 449 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 450 * </p> 451 * 452 * @param threadId the thread id to search with 453 * @param flag the flag to search with 454 * @param start the lower bound of the range of message boards message flags to return 455 * @param end the upper bound of the range of message boards message flags to return (not inclusive) 456 * @param orderByComparator the comparator to order the results by 457 * @return the ordered range of matching message boards message flags 458 * @throws SystemException if a system exception occurred 459 */ 460 public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByT_F( 461 long threadId, int flag, int start, int end, 462 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 463 throws com.liferay.portal.kernel.exception.SystemException; 464 465 /** 466 * Finds the first message boards message flag in the ordered set where threadId = ? and flag = ?. 467 * 468 * <p> 469 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 470 * </p> 471 * 472 * @param threadId the thread id to search with 473 * @param flag the flag to search with 474 * @param orderByComparator the comparator to order the set by 475 * @return the first matching message boards message flag 476 * @throws com.liferay.portlet.messageboards.NoSuchMessageFlagException if a matching message boards message flag could not be found 477 * @throws SystemException if a system exception occurred 478 */ 479 public com.liferay.portlet.messageboards.model.MBMessageFlag findByT_F_First( 480 long threadId, int flag, 481 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 482 throws com.liferay.portal.kernel.exception.SystemException, 483 com.liferay.portlet.messageboards.NoSuchMessageFlagException; 484 485 /** 486 * Finds the last message boards message flag in the ordered set where threadId = ? and flag = ?. 487 * 488 * <p> 489 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 490 * </p> 491 * 492 * @param threadId the thread id to search with 493 * @param flag the flag to search with 494 * @param orderByComparator the comparator to order the set by 495 * @return the last matching message boards message flag 496 * @throws com.liferay.portlet.messageboards.NoSuchMessageFlagException if a matching message boards message flag could not be found 497 * @throws SystemException if a system exception occurred 498 */ 499 public com.liferay.portlet.messageboards.model.MBMessageFlag findByT_F_Last( 500 long threadId, int flag, 501 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 502 throws com.liferay.portal.kernel.exception.SystemException, 503 com.liferay.portlet.messageboards.NoSuchMessageFlagException; 504 505 /** 506 * Finds the message boards message flags before and after the current message boards message flag in the ordered set where threadId = ? and flag = ?. 507 * 508 * <p> 509 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 510 * </p> 511 * 512 * @param messageFlagId the primary key of the current message boards message flag 513 * @param threadId the thread id to search with 514 * @param flag the flag to search with 515 * @param orderByComparator the comparator to order the set by 516 * @return the previous, current, and next message boards message flag 517 * @throws com.liferay.portlet.messageboards.NoSuchMessageFlagException if a message boards message flag with the primary key could not be found 518 * @throws SystemException if a system exception occurred 519 */ 520 public com.liferay.portlet.messageboards.model.MBMessageFlag[] findByT_F_PrevAndNext( 521 long messageFlagId, long threadId, int flag, 522 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 523 throws com.liferay.portal.kernel.exception.SystemException, 524 com.liferay.portlet.messageboards.NoSuchMessageFlagException; 525 526 /** 527 * Finds all the message boards message flags where messageId = ? and flag = ?. 528 * 529 * @param messageId the message id to search with 530 * @param flag the flag to search with 531 * @return the matching message boards message flags 532 * @throws SystemException if a system exception occurred 533 */ 534 public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByM_F( 535 long messageId, int flag) 536 throws com.liferay.portal.kernel.exception.SystemException; 537 538 /** 539 * Finds a range of all the message boards message flags where messageId = ? and flag = ?. 540 * 541 * <p> 542 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 543 * </p> 544 * 545 * @param messageId the message id to search with 546 * @param flag the flag to search with 547 * @param start the lower bound of the range of message boards message flags to return 548 * @param end the upper bound of the range of message boards message flags to return (not inclusive) 549 * @return the range of matching message boards message flags 550 * @throws SystemException if a system exception occurred 551 */ 552 public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByM_F( 553 long messageId, int flag, int start, int end) 554 throws com.liferay.portal.kernel.exception.SystemException; 555 556 /** 557 * Finds an ordered range of all the message boards message flags where messageId = ? and flag = ?. 558 * 559 * <p> 560 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 561 * </p> 562 * 563 * @param messageId the message id to search with 564 * @param flag the flag to search with 565 * @param start the lower bound of the range of message boards message flags to return 566 * @param end the upper bound of the range of message boards message flags to return (not inclusive) 567 * @param orderByComparator the comparator to order the results by 568 * @return the ordered range of matching message boards message flags 569 * @throws SystemException if a system exception occurred 570 */ 571 public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByM_F( 572 long messageId, int flag, int start, int end, 573 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 574 throws com.liferay.portal.kernel.exception.SystemException; 575 576 /** 577 * Finds the first message boards message flag in the ordered set where messageId = ? and flag = ?. 578 * 579 * <p> 580 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 581 * </p> 582 * 583 * @param messageId the message id to search with 584 * @param flag the flag to search with 585 * @param orderByComparator the comparator to order the set by 586 * @return the first matching message boards message flag 587 * @throws com.liferay.portlet.messageboards.NoSuchMessageFlagException if a matching message boards message flag could not be found 588 * @throws SystemException if a system exception occurred 589 */ 590 public com.liferay.portlet.messageboards.model.MBMessageFlag findByM_F_First( 591 long messageId, int flag, 592 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 593 throws com.liferay.portal.kernel.exception.SystemException, 594 com.liferay.portlet.messageboards.NoSuchMessageFlagException; 595 596 /** 597 * Finds the last message boards message flag in the ordered set where messageId = ? and flag = ?. 598 * 599 * <p> 600 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 601 * </p> 602 * 603 * @param messageId the message id to search with 604 * @param flag the flag to search with 605 * @param orderByComparator the comparator to order the set by 606 * @return the last matching message boards message flag 607 * @throws com.liferay.portlet.messageboards.NoSuchMessageFlagException if a matching message boards message flag could not be found 608 * @throws SystemException if a system exception occurred 609 */ 610 public com.liferay.portlet.messageboards.model.MBMessageFlag findByM_F_Last( 611 long messageId, int flag, 612 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 613 throws com.liferay.portal.kernel.exception.SystemException, 614 com.liferay.portlet.messageboards.NoSuchMessageFlagException; 615 616 /** 617 * Finds the message boards message flags before and after the current message boards message flag in the ordered set where messageId = ? and flag = ?. 618 * 619 * <p> 620 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 621 * </p> 622 * 623 * @param messageFlagId the primary key of the current message boards message flag 624 * @param messageId the message id to search with 625 * @param flag the flag to search with 626 * @param orderByComparator the comparator to order the set by 627 * @return the previous, current, and next message boards message flag 628 * @throws com.liferay.portlet.messageboards.NoSuchMessageFlagException if a message boards message flag with the primary key could not be found 629 * @throws SystemException if a system exception occurred 630 */ 631 public com.liferay.portlet.messageboards.model.MBMessageFlag[] findByM_F_PrevAndNext( 632 long messageFlagId, long messageId, int flag, 633 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 634 throws com.liferay.portal.kernel.exception.SystemException, 635 com.liferay.portlet.messageboards.NoSuchMessageFlagException; 636 637 /** 638 * Finds all the message boards message flags where userId = ? and threadId = ? and flag = ?. 639 * 640 * @param userId the user id to search with 641 * @param threadId the thread id to search with 642 * @param flag the flag to search with 643 * @return the matching message boards message flags 644 * @throws SystemException if a system exception occurred 645 */ 646 public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByU_T_F( 647 long userId, long threadId, int flag) 648 throws com.liferay.portal.kernel.exception.SystemException; 649 650 /** 651 * Finds a range of all the message boards message flags where userId = ? and threadId = ? and flag = ?. 652 * 653 * <p> 654 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 655 * </p> 656 * 657 * @param userId the user id to search with 658 * @param threadId the thread id to search with 659 * @param flag the flag to search with 660 * @param start the lower bound of the range of message boards message flags to return 661 * @param end the upper bound of the range of message boards message flags to return (not inclusive) 662 * @return the range of matching message boards message flags 663 * @throws SystemException if a system exception occurred 664 */ 665 public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByU_T_F( 666 long userId, long threadId, int flag, int start, int end) 667 throws com.liferay.portal.kernel.exception.SystemException; 668 669 /** 670 * Finds an ordered range of all the message boards message flags where userId = ? and threadId = ? and flag = ?. 671 * 672 * <p> 673 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 674 * </p> 675 * 676 * @param userId the user id to search with 677 * @param threadId the thread id to search with 678 * @param flag the flag to search with 679 * @param start the lower bound of the range of message boards message flags to return 680 * @param end the upper bound of the range of message boards message flags to return (not inclusive) 681 * @param orderByComparator the comparator to order the results by 682 * @return the ordered range of matching message boards message flags 683 * @throws SystemException if a system exception occurred 684 */ 685 public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByU_T_F( 686 long userId, long threadId, int flag, int start, int end, 687 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 688 throws com.liferay.portal.kernel.exception.SystemException; 689 690 /** 691 * Finds the first message boards message flag in the ordered set where userId = ? and threadId = ? and flag = ?. 692 * 693 * <p> 694 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 695 * </p> 696 * 697 * @param userId the user id to search with 698 * @param threadId the thread id to search with 699 * @param flag the flag to search with 700 * @param orderByComparator the comparator to order the set by 701 * @return the first matching message boards message flag 702 * @throws com.liferay.portlet.messageboards.NoSuchMessageFlagException if a matching message boards message flag could not be found 703 * @throws SystemException if a system exception occurred 704 */ 705 public com.liferay.portlet.messageboards.model.MBMessageFlag findByU_T_F_First( 706 long userId, long threadId, int flag, 707 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 708 throws com.liferay.portal.kernel.exception.SystemException, 709 com.liferay.portlet.messageboards.NoSuchMessageFlagException; 710 711 /** 712 * Finds the last message boards message flag in the ordered set where userId = ? and threadId = ? and flag = ?. 713 * 714 * <p> 715 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 716 * </p> 717 * 718 * @param userId the user id to search with 719 * @param threadId the thread id to search with 720 * @param flag the flag to search with 721 * @param orderByComparator the comparator to order the set by 722 * @return the last matching message boards message flag 723 * @throws com.liferay.portlet.messageboards.NoSuchMessageFlagException if a matching message boards message flag could not be found 724 * @throws SystemException if a system exception occurred 725 */ 726 public com.liferay.portlet.messageboards.model.MBMessageFlag findByU_T_F_Last( 727 long userId, long threadId, int flag, 728 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 729 throws com.liferay.portal.kernel.exception.SystemException, 730 com.liferay.portlet.messageboards.NoSuchMessageFlagException; 731 732 /** 733 * Finds the message boards message flags before and after the current message boards message flag in the ordered set where userId = ? and threadId = ? and flag = ?. 734 * 735 * <p> 736 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 737 * </p> 738 * 739 * @param messageFlagId the primary key of the current message boards message flag 740 * @param userId the user id to search with 741 * @param threadId the thread id to search with 742 * @param flag the flag to search with 743 * @param orderByComparator the comparator to order the set by 744 * @return the previous, current, and next message boards message flag 745 * @throws com.liferay.portlet.messageboards.NoSuchMessageFlagException if a message boards message flag with the primary key could not be found 746 * @throws SystemException if a system exception occurred 747 */ 748 public com.liferay.portlet.messageboards.model.MBMessageFlag[] findByU_T_F_PrevAndNext( 749 long messageFlagId, long userId, long threadId, int flag, 750 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 751 throws com.liferay.portal.kernel.exception.SystemException, 752 com.liferay.portlet.messageboards.NoSuchMessageFlagException; 753 754 /** 755 * Finds the message boards message flag where userId = ? and messageId = ? and flag = ? or throws a {@link com.liferay.portlet.messageboards.NoSuchMessageFlagException} if it could not be found. 756 * 757 * @param userId the user id to search with 758 * @param messageId the message id to search with 759 * @param flag the flag to search with 760 * @return the matching message boards message flag 761 * @throws com.liferay.portlet.messageboards.NoSuchMessageFlagException if a matching message boards message flag could not be found 762 * @throws SystemException if a system exception occurred 763 */ 764 public com.liferay.portlet.messageboards.model.MBMessageFlag findByU_M_F( 765 long userId, long messageId, int flag) 766 throws com.liferay.portal.kernel.exception.SystemException, 767 com.liferay.portlet.messageboards.NoSuchMessageFlagException; 768 769 /** 770 * Finds the message boards message flag where userId = ? and messageId = ? and flag = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 771 * 772 * @param userId the user id to search with 773 * @param messageId the message id to search with 774 * @param flag the flag to search with 775 * @return the matching message boards message flag, or <code>null</code> if a matching message boards message flag could not be found 776 * @throws SystemException if a system exception occurred 777 */ 778 public com.liferay.portlet.messageboards.model.MBMessageFlag fetchByU_M_F( 779 long userId, long messageId, int flag) 780 throws com.liferay.portal.kernel.exception.SystemException; 781 782 /** 783 * Finds the message boards message flag where userId = ? and messageId = ? and flag = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 784 * 785 * @param userId the user id to search with 786 * @param messageId the message id to search with 787 * @param flag the flag to search with 788 * @return the matching message boards message flag, or <code>null</code> if a matching message boards message flag could not be found 789 * @throws SystemException if a system exception occurred 790 */ 791 public com.liferay.portlet.messageboards.model.MBMessageFlag fetchByU_M_F( 792 long userId, long messageId, int flag, boolean retrieveFromCache) 793 throws com.liferay.portal.kernel.exception.SystemException; 794 795 /** 796 * Finds all the message boards message flags. 797 * 798 * @return the message boards message flags 799 * @throws SystemException if a system exception occurred 800 */ 801 public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findAll() 802 throws com.liferay.portal.kernel.exception.SystemException; 803 804 /** 805 * Finds a range of all the message boards message flags. 806 * 807 * <p> 808 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 809 * </p> 810 * 811 * @param start the lower bound of the range of message boards message flags to return 812 * @param end the upper bound of the range of message boards message flags to return (not inclusive) 813 * @return the range of message boards message flags 814 * @throws SystemException if a system exception occurred 815 */ 816 public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findAll( 817 int start, int end) 818 throws com.liferay.portal.kernel.exception.SystemException; 819 820 /** 821 * Finds an ordered range of all the message boards message flags. 822 * 823 * <p> 824 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 825 * </p> 826 * 827 * @param start the lower bound of the range of message boards message flags to return 828 * @param end the upper bound of the range of message boards message flags to return (not inclusive) 829 * @param orderByComparator the comparator to order the results by 830 * @return the ordered range of message boards message flags 831 * @throws SystemException if a system exception occurred 832 */ 833 public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findAll( 834 int start, int end, 835 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 836 throws com.liferay.portal.kernel.exception.SystemException; 837 838 /** 839 * Removes all the message boards message flags where userId = ? from the database. 840 * 841 * @param userId the user id to search with 842 * @throws SystemException if a system exception occurred 843 */ 844 public void removeByUserId(long userId) 845 throws com.liferay.portal.kernel.exception.SystemException; 846 847 /** 848 * Removes all the message boards message flags where threadId = ? from the database. 849 * 850 * @param threadId the thread id to search with 851 * @throws SystemException if a system exception occurred 852 */ 853 public void removeByThreadId(long threadId) 854 throws com.liferay.portal.kernel.exception.SystemException; 855 856 /** 857 * Removes all the message boards message flags where messageId = ? from the database. 858 * 859 * @param messageId the message id to search with 860 * @throws SystemException if a system exception occurred 861 */ 862 public void removeByMessageId(long messageId) 863 throws com.liferay.portal.kernel.exception.SystemException; 864 865 /** 866 * Removes all the message boards message flags where threadId = ? and flag = ? from the database. 867 * 868 * @param threadId the thread id to search with 869 * @param flag the flag to search with 870 * @throws SystemException if a system exception occurred 871 */ 872 public void removeByT_F(long threadId, int flag) 873 throws com.liferay.portal.kernel.exception.SystemException; 874 875 /** 876 * Removes all the message boards message flags where messageId = ? and flag = ? from the database. 877 * 878 * @param messageId the message id to search with 879 * @param flag the flag to search with 880 * @throws SystemException if a system exception occurred 881 */ 882 public void removeByM_F(long messageId, int flag) 883 throws com.liferay.portal.kernel.exception.SystemException; 884 885 /** 886 * Removes all the message boards message flags where userId = ? and threadId = ? and flag = ? from the database. 887 * 888 * @param userId the user id to search with 889 * @param threadId the thread id to search with 890 * @param flag the flag to search with 891 * @throws SystemException if a system exception occurred 892 */ 893 public void removeByU_T_F(long userId, long threadId, int flag) 894 throws com.liferay.portal.kernel.exception.SystemException; 895 896 /** 897 * Removes the message boards message flag where userId = ? and messageId = ? and flag = ? from the database. 898 * 899 * @param userId the user id to search with 900 * @param messageId the message id to search with 901 * @param flag the flag to search with 902 * @throws SystemException if a system exception occurred 903 */ 904 public void removeByU_M_F(long userId, long messageId, int flag) 905 throws com.liferay.portal.kernel.exception.SystemException, 906 com.liferay.portlet.messageboards.NoSuchMessageFlagException; 907 908 /** 909 * Removes all the message boards message flags from the database. 910 * 911 * @throws SystemException if a system exception occurred 912 */ 913 public void removeAll() 914 throws com.liferay.portal.kernel.exception.SystemException; 915 916 /** 917 * Counts all the message boards message flags where userId = ?. 918 * 919 * @param userId the user id to search with 920 * @return the number of matching message boards message flags 921 * @throws SystemException if a system exception occurred 922 */ 923 public int countByUserId(long userId) 924 throws com.liferay.portal.kernel.exception.SystemException; 925 926 /** 927 * Counts all the message boards message flags where threadId = ?. 928 * 929 * @param threadId the thread id to search with 930 * @return the number of matching message boards message flags 931 * @throws SystemException if a system exception occurred 932 */ 933 public int countByThreadId(long threadId) 934 throws com.liferay.portal.kernel.exception.SystemException; 935 936 /** 937 * Counts all the message boards message flags where messageId = ?. 938 * 939 * @param messageId the message id to search with 940 * @return the number of matching message boards message flags 941 * @throws SystemException if a system exception occurred 942 */ 943 public int countByMessageId(long messageId) 944 throws com.liferay.portal.kernel.exception.SystemException; 945 946 /** 947 * Counts all the message boards message flags where threadId = ? and flag = ?. 948 * 949 * @param threadId the thread id to search with 950 * @param flag the flag to search with 951 * @return the number of matching message boards message flags 952 * @throws SystemException if a system exception occurred 953 */ 954 public int countByT_F(long threadId, int flag) 955 throws com.liferay.portal.kernel.exception.SystemException; 956 957 /** 958 * Counts all the message boards message flags where messageId = ? and flag = ?. 959 * 960 * @param messageId the message id to search with 961 * @param flag the flag to search with 962 * @return the number of matching message boards message flags 963 * @throws SystemException if a system exception occurred 964 */ 965 public int countByM_F(long messageId, int flag) 966 throws com.liferay.portal.kernel.exception.SystemException; 967 968 /** 969 * Counts all the message boards message flags where userId = ? and threadId = ? and flag = ?. 970 * 971 * @param userId the user id to search with 972 * @param threadId the thread id to search with 973 * @param flag the flag to search with 974 * @return the number of matching message boards message flags 975 * @throws SystemException if a system exception occurred 976 */ 977 public int countByU_T_F(long userId, long threadId, int flag) 978 throws com.liferay.portal.kernel.exception.SystemException; 979 980 /** 981 * Counts all the message boards message flags where userId = ? and messageId = ? and flag = ?. 982 * 983 * @param userId the user id to search with 984 * @param messageId the message id to search with 985 * @param flag the flag to search with 986 * @return the number of matching message boards message flags 987 * @throws SystemException if a system exception occurred 988 */ 989 public int countByU_M_F(long userId, long messageId, int flag) 990 throws com.liferay.portal.kernel.exception.SystemException; 991 992 /** 993 * Counts all the message boards message flags. 994 * 995 * @return the number of message boards message flags 996 * @throws SystemException if a system exception occurred 997 */ 998 public int countAll() 999 throws com.liferay.portal.kernel.exception.SystemException; 1000 }