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