001 /** 002 * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved. 003 * 004 * This library is free software; you can redistribute it and/or modify it under 005 * the terms of the GNU Lesser General Public License as published by the Free 006 * Software Foundation; either version 2.1 of the License, or (at your option) 007 * any later version. 008 * 009 * This library is distributed in the hope that it will be useful, but WITHOUT 010 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 011 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 012 * details. 013 */ 014 015 package com.liferay.portlet.messageboards.service.persistence; 016 017 import aQute.bnd.annotation.ProviderType; 018 019 import com.liferay.portal.service.persistence.BasePersistence; 020 021 import com.liferay.portlet.messageboards.model.MBThreadFlag; 022 023 /** 024 * The persistence interface for the message boards thread flag service. 025 * 026 * <p> 027 * Caching information and settings can be found in <code>portal.properties</code> 028 * </p> 029 * 030 * @author Brian Wing Shun Chan 031 * @see MBThreadFlagPersistenceImpl 032 * @see MBThreadFlagUtil 033 * @generated 034 */ 035 @ProviderType 036 public interface MBThreadFlagPersistence extends BasePersistence<MBThreadFlag> { 037 /* 038 * NOTE FOR DEVELOPERS: 039 * 040 * Never modify or reference this interface directly. Always use {@link MBThreadFlagUtil} to access the message boards thread flag persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface. 041 */ 042 043 /** 044 * Returns all the message boards thread flags where uuid = ?. 045 * 046 * @param uuid the uuid 047 * @return the matching message boards thread flags 048 * @throws SystemException if a system exception occurred 049 */ 050 public java.util.List<com.liferay.portlet.messageboards.model.MBThreadFlag> findByUuid( 051 java.lang.String uuid) 052 throws com.liferay.portal.kernel.exception.SystemException; 053 054 /** 055 * Returns a range of all the message boards thread flags where uuid = ?. 056 * 057 * <p> 058 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.messageboards.model.impl.MBThreadFlagModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 059 * </p> 060 * 061 * @param uuid the uuid 062 * @param start the lower bound of the range of message boards thread flags 063 * @param end the upper bound of the range of message boards thread flags (not inclusive) 064 * @return the range of matching message boards thread flags 065 * @throws SystemException if a system exception occurred 066 */ 067 public java.util.List<com.liferay.portlet.messageboards.model.MBThreadFlag> findByUuid( 068 java.lang.String uuid, int start, int end) 069 throws com.liferay.portal.kernel.exception.SystemException; 070 071 /** 072 * Returns an ordered range of all the message boards thread flags where uuid = ?. 073 * 074 * <p> 075 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.messageboards.model.impl.MBThreadFlagModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 076 * </p> 077 * 078 * @param uuid the uuid 079 * @param start the lower bound of the range of message boards thread flags 080 * @param end the upper bound of the range of message boards thread flags (not inclusive) 081 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 082 * @return the ordered range of matching message boards thread flags 083 * @throws SystemException if a system exception occurred 084 */ 085 public java.util.List<com.liferay.portlet.messageboards.model.MBThreadFlag> findByUuid( 086 java.lang.String uuid, int start, int end, 087 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 088 throws com.liferay.portal.kernel.exception.SystemException; 089 090 /** 091 * Returns the first message boards thread flag in the ordered set where uuid = ?. 092 * 093 * @param uuid the uuid 094 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 095 * @return the first matching message boards thread flag 096 * @throws com.liferay.portlet.messageboards.NoSuchThreadFlagException if a matching message boards thread flag could not be found 097 * @throws SystemException if a system exception occurred 098 */ 099 public com.liferay.portlet.messageboards.model.MBThreadFlag findByUuid_First( 100 java.lang.String uuid, 101 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 102 throws com.liferay.portal.kernel.exception.SystemException, 103 com.liferay.portlet.messageboards.NoSuchThreadFlagException; 104 105 /** 106 * Returns the first message boards thread flag in the ordered set where uuid = ?. 107 * 108 * @param uuid the uuid 109 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 110 * @return the first matching message boards thread flag, or <code>null</code> if a matching message boards thread flag could not be found 111 * @throws SystemException if a system exception occurred 112 */ 113 public com.liferay.portlet.messageboards.model.MBThreadFlag fetchByUuid_First( 114 java.lang.String uuid, 115 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 116 throws com.liferay.portal.kernel.exception.SystemException; 117 118 /** 119 * Returns the last message boards thread flag in the ordered set where uuid = ?. 120 * 121 * @param uuid the uuid 122 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 123 * @return the last matching message boards thread flag 124 * @throws com.liferay.portlet.messageboards.NoSuchThreadFlagException if a matching message boards thread flag could not be found 125 * @throws SystemException if a system exception occurred 126 */ 127 public com.liferay.portlet.messageboards.model.MBThreadFlag findByUuid_Last( 128 java.lang.String uuid, 129 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 130 throws com.liferay.portal.kernel.exception.SystemException, 131 com.liferay.portlet.messageboards.NoSuchThreadFlagException; 132 133 /** 134 * Returns the last message boards thread flag in the ordered set where uuid = ?. 135 * 136 * @param uuid the uuid 137 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 138 * @return the last matching message boards thread flag, or <code>null</code> if a matching message boards thread flag could not be found 139 * @throws SystemException if a system exception occurred 140 */ 141 public com.liferay.portlet.messageboards.model.MBThreadFlag fetchByUuid_Last( 142 java.lang.String uuid, 143 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 144 throws com.liferay.portal.kernel.exception.SystemException; 145 146 /** 147 * Returns the message boards thread flags before and after the current message boards thread flag in the ordered set where uuid = ?. 148 * 149 * @param threadFlagId the primary key of the current message boards thread flag 150 * @param uuid the uuid 151 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 152 * @return the previous, current, and next message boards thread flag 153 * @throws com.liferay.portlet.messageboards.NoSuchThreadFlagException if a message boards thread flag with the primary key could not be found 154 * @throws SystemException if a system exception occurred 155 */ 156 public com.liferay.portlet.messageboards.model.MBThreadFlag[] findByUuid_PrevAndNext( 157 long threadFlagId, java.lang.String uuid, 158 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 159 throws com.liferay.portal.kernel.exception.SystemException, 160 com.liferay.portlet.messageboards.NoSuchThreadFlagException; 161 162 /** 163 * Removes all the message boards thread flags where uuid = ? from the database. 164 * 165 * @param uuid the uuid 166 * @throws SystemException if a system exception occurred 167 */ 168 public void removeByUuid(java.lang.String uuid) 169 throws com.liferay.portal.kernel.exception.SystemException; 170 171 /** 172 * Returns the number of message boards thread flags where uuid = ?. 173 * 174 * @param uuid the uuid 175 * @return the number of matching message boards thread flags 176 * @throws SystemException if a system exception occurred 177 */ 178 public int countByUuid(java.lang.String uuid) 179 throws com.liferay.portal.kernel.exception.SystemException; 180 181 /** 182 * Returns the message boards thread flag where uuid = ? and groupId = ? or throws a {@link com.liferay.portlet.messageboards.NoSuchThreadFlagException} if it could not be found. 183 * 184 * @param uuid the uuid 185 * @param groupId the group ID 186 * @return the matching message boards thread flag 187 * @throws com.liferay.portlet.messageboards.NoSuchThreadFlagException if a matching message boards thread flag could not be found 188 * @throws SystemException if a system exception occurred 189 */ 190 public com.liferay.portlet.messageboards.model.MBThreadFlag findByUUID_G( 191 java.lang.String uuid, long groupId) 192 throws com.liferay.portal.kernel.exception.SystemException, 193 com.liferay.portlet.messageboards.NoSuchThreadFlagException; 194 195 /** 196 * Returns the message boards thread flag where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 197 * 198 * @param uuid the uuid 199 * @param groupId the group ID 200 * @return the matching message boards thread flag, or <code>null</code> if a matching message boards thread flag could not be found 201 * @throws SystemException if a system exception occurred 202 */ 203 public com.liferay.portlet.messageboards.model.MBThreadFlag fetchByUUID_G( 204 java.lang.String uuid, long groupId) 205 throws com.liferay.portal.kernel.exception.SystemException; 206 207 /** 208 * Returns the message boards thread flag where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 209 * 210 * @param uuid the uuid 211 * @param groupId the group ID 212 * @param retrieveFromCache whether to use the finder cache 213 * @return the matching message boards thread flag, or <code>null</code> if a matching message boards thread flag could not be found 214 * @throws SystemException if a system exception occurred 215 */ 216 public com.liferay.portlet.messageboards.model.MBThreadFlag fetchByUUID_G( 217 java.lang.String uuid, long groupId, boolean retrieveFromCache) 218 throws com.liferay.portal.kernel.exception.SystemException; 219 220 /** 221 * Removes the message boards thread flag where uuid = ? and groupId = ? from the database. 222 * 223 * @param uuid the uuid 224 * @param groupId the group ID 225 * @return the message boards thread flag that was removed 226 * @throws SystemException if a system exception occurred 227 */ 228 public com.liferay.portlet.messageboards.model.MBThreadFlag removeByUUID_G( 229 java.lang.String uuid, long groupId) 230 throws com.liferay.portal.kernel.exception.SystemException, 231 com.liferay.portlet.messageboards.NoSuchThreadFlagException; 232 233 /** 234 * Returns the number of message boards thread flags where uuid = ? and groupId = ?. 235 * 236 * @param uuid the uuid 237 * @param groupId the group ID 238 * @return the number of matching message boards thread flags 239 * @throws SystemException if a system exception occurred 240 */ 241 public int countByUUID_G(java.lang.String uuid, long groupId) 242 throws com.liferay.portal.kernel.exception.SystemException; 243 244 /** 245 * Returns all the message boards thread flags where uuid = ? and companyId = ?. 246 * 247 * @param uuid the uuid 248 * @param companyId the company ID 249 * @return the matching message boards thread flags 250 * @throws SystemException if a system exception occurred 251 */ 252 public java.util.List<com.liferay.portlet.messageboards.model.MBThreadFlag> findByUuid_C( 253 java.lang.String uuid, long companyId) 254 throws com.liferay.portal.kernel.exception.SystemException; 255 256 /** 257 * Returns a range of all the message boards thread flags where uuid = ? and companyId = ?. 258 * 259 * <p> 260 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.messageboards.model.impl.MBThreadFlagModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 261 * </p> 262 * 263 * @param uuid the uuid 264 * @param companyId the company ID 265 * @param start the lower bound of the range of message boards thread flags 266 * @param end the upper bound of the range of message boards thread flags (not inclusive) 267 * @return the range of matching message boards thread flags 268 * @throws SystemException if a system exception occurred 269 */ 270 public java.util.List<com.liferay.portlet.messageboards.model.MBThreadFlag> findByUuid_C( 271 java.lang.String uuid, long companyId, int start, int end) 272 throws com.liferay.portal.kernel.exception.SystemException; 273 274 /** 275 * Returns an ordered range of all the message boards thread flags where uuid = ? and companyId = ?. 276 * 277 * <p> 278 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.messageboards.model.impl.MBThreadFlagModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 279 * </p> 280 * 281 * @param uuid the uuid 282 * @param companyId the company ID 283 * @param start the lower bound of the range of message boards thread flags 284 * @param end the upper bound of the range of message boards thread flags (not inclusive) 285 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 286 * @return the ordered range of matching message boards thread flags 287 * @throws SystemException if a system exception occurred 288 */ 289 public java.util.List<com.liferay.portlet.messageboards.model.MBThreadFlag> findByUuid_C( 290 java.lang.String uuid, long companyId, int start, int end, 291 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 292 throws com.liferay.portal.kernel.exception.SystemException; 293 294 /** 295 * Returns the first message boards thread flag in the ordered set where uuid = ? and companyId = ?. 296 * 297 * @param uuid the uuid 298 * @param companyId the company ID 299 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 300 * @return the first matching message boards thread flag 301 * @throws com.liferay.portlet.messageboards.NoSuchThreadFlagException if a matching message boards thread flag could not be found 302 * @throws SystemException if a system exception occurred 303 */ 304 public com.liferay.portlet.messageboards.model.MBThreadFlag findByUuid_C_First( 305 java.lang.String uuid, long companyId, 306 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 307 throws com.liferay.portal.kernel.exception.SystemException, 308 com.liferay.portlet.messageboards.NoSuchThreadFlagException; 309 310 /** 311 * Returns the first message boards thread flag in the ordered set where uuid = ? and companyId = ?. 312 * 313 * @param uuid the uuid 314 * @param companyId the company ID 315 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 316 * @return the first matching message boards thread flag, or <code>null</code> if a matching message boards thread flag could not be found 317 * @throws SystemException if a system exception occurred 318 */ 319 public com.liferay.portlet.messageboards.model.MBThreadFlag fetchByUuid_C_First( 320 java.lang.String uuid, long companyId, 321 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 322 throws com.liferay.portal.kernel.exception.SystemException; 323 324 /** 325 * Returns the last message boards thread flag in the ordered set where uuid = ? and companyId = ?. 326 * 327 * @param uuid the uuid 328 * @param companyId the company ID 329 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 330 * @return the last matching message boards thread flag 331 * @throws com.liferay.portlet.messageboards.NoSuchThreadFlagException if a matching message boards thread flag could not be found 332 * @throws SystemException if a system exception occurred 333 */ 334 public com.liferay.portlet.messageboards.model.MBThreadFlag findByUuid_C_Last( 335 java.lang.String uuid, long companyId, 336 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 337 throws com.liferay.portal.kernel.exception.SystemException, 338 com.liferay.portlet.messageboards.NoSuchThreadFlagException; 339 340 /** 341 * Returns the last message boards thread flag in the ordered set where uuid = ? and companyId = ?. 342 * 343 * @param uuid the uuid 344 * @param companyId the company ID 345 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 346 * @return the last matching message boards thread flag, or <code>null</code> if a matching message boards thread flag could not be found 347 * @throws SystemException if a system exception occurred 348 */ 349 public com.liferay.portlet.messageboards.model.MBThreadFlag fetchByUuid_C_Last( 350 java.lang.String uuid, long companyId, 351 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 352 throws com.liferay.portal.kernel.exception.SystemException; 353 354 /** 355 * Returns the message boards thread flags before and after the current message boards thread flag in the ordered set where uuid = ? and companyId = ?. 356 * 357 * @param threadFlagId the primary key of the current message boards thread flag 358 * @param uuid the uuid 359 * @param companyId the company ID 360 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 361 * @return the previous, current, and next message boards thread flag 362 * @throws com.liferay.portlet.messageboards.NoSuchThreadFlagException if a message boards thread flag with the primary key could not be found 363 * @throws SystemException if a system exception occurred 364 */ 365 public com.liferay.portlet.messageboards.model.MBThreadFlag[] findByUuid_C_PrevAndNext( 366 long threadFlagId, java.lang.String uuid, long companyId, 367 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 368 throws com.liferay.portal.kernel.exception.SystemException, 369 com.liferay.portlet.messageboards.NoSuchThreadFlagException; 370 371 /** 372 * Removes all the message boards thread flags where uuid = ? and companyId = ? from the database. 373 * 374 * @param uuid the uuid 375 * @param companyId the company ID 376 * @throws SystemException if a system exception occurred 377 */ 378 public void removeByUuid_C(java.lang.String uuid, long companyId) 379 throws com.liferay.portal.kernel.exception.SystemException; 380 381 /** 382 * Returns the number of message boards thread flags where uuid = ? and companyId = ?. 383 * 384 * @param uuid the uuid 385 * @param companyId the company ID 386 * @return the number of matching message boards thread flags 387 * @throws SystemException if a system exception occurred 388 */ 389 public int countByUuid_C(java.lang.String uuid, long companyId) 390 throws com.liferay.portal.kernel.exception.SystemException; 391 392 /** 393 * Returns all the message boards thread flags where userId = ?. 394 * 395 * @param userId the user ID 396 * @return the matching message boards thread flags 397 * @throws SystemException if a system exception occurred 398 */ 399 public java.util.List<com.liferay.portlet.messageboards.model.MBThreadFlag> findByUserId( 400 long userId) throws com.liferay.portal.kernel.exception.SystemException; 401 402 /** 403 * Returns a range of all the message boards thread flags where userId = ?. 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.messageboards.model.impl.MBThreadFlagModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 407 * </p> 408 * 409 * @param userId the user ID 410 * @param start the lower bound of the range of message boards thread flags 411 * @param end the upper bound of the range of message boards thread flags (not inclusive) 412 * @return the range of matching message boards thread flags 413 * @throws SystemException if a system exception occurred 414 */ 415 public java.util.List<com.liferay.portlet.messageboards.model.MBThreadFlag> findByUserId( 416 long userId, int start, int end) 417 throws com.liferay.portal.kernel.exception.SystemException; 418 419 /** 420 * Returns an ordered range of all the message boards thread flags where userId = ?. 421 * 422 * <p> 423 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.messageboards.model.impl.MBThreadFlagModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 424 * </p> 425 * 426 * @param userId the user ID 427 * @param start the lower bound of the range of message boards thread flags 428 * @param end the upper bound of the range of message boards thread flags (not inclusive) 429 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 430 * @return the ordered range of matching message boards thread flags 431 * @throws SystemException if a system exception occurred 432 */ 433 public java.util.List<com.liferay.portlet.messageboards.model.MBThreadFlag> findByUserId( 434 long userId, int start, int end, 435 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 436 throws com.liferay.portal.kernel.exception.SystemException; 437 438 /** 439 * Returns the first message boards thread flag in the ordered set where userId = ?. 440 * 441 * @param userId the user ID 442 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 443 * @return the first matching message boards thread flag 444 * @throws com.liferay.portlet.messageboards.NoSuchThreadFlagException if a matching message boards thread flag could not be found 445 * @throws SystemException if a system exception occurred 446 */ 447 public com.liferay.portlet.messageboards.model.MBThreadFlag findByUserId_First( 448 long userId, 449 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 450 throws com.liferay.portal.kernel.exception.SystemException, 451 com.liferay.portlet.messageboards.NoSuchThreadFlagException; 452 453 /** 454 * Returns the first message boards thread flag in the ordered set where userId = ?. 455 * 456 * @param userId the user ID 457 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 458 * @return the first matching message boards thread flag, or <code>null</code> if a matching message boards thread flag could not be found 459 * @throws SystemException if a system exception occurred 460 */ 461 public com.liferay.portlet.messageboards.model.MBThreadFlag fetchByUserId_First( 462 long userId, 463 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 464 throws com.liferay.portal.kernel.exception.SystemException; 465 466 /** 467 * Returns the last message boards thread flag in the ordered set where userId = ?. 468 * 469 * @param userId the user ID 470 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 471 * @return the last matching message boards thread flag 472 * @throws com.liferay.portlet.messageboards.NoSuchThreadFlagException if a matching message boards thread flag could not be found 473 * @throws SystemException if a system exception occurred 474 */ 475 public com.liferay.portlet.messageboards.model.MBThreadFlag findByUserId_Last( 476 long userId, 477 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 478 throws com.liferay.portal.kernel.exception.SystemException, 479 com.liferay.portlet.messageboards.NoSuchThreadFlagException; 480 481 /** 482 * Returns the last message boards thread flag in the ordered set where userId = ?. 483 * 484 * @param userId the user ID 485 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 486 * @return the last matching message boards thread flag, or <code>null</code> if a matching message boards thread flag could not be found 487 * @throws SystemException if a system exception occurred 488 */ 489 public com.liferay.portlet.messageboards.model.MBThreadFlag fetchByUserId_Last( 490 long userId, 491 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 492 throws com.liferay.portal.kernel.exception.SystemException; 493 494 /** 495 * Returns the message boards thread flags before and after the current message boards thread flag in the ordered set where userId = ?. 496 * 497 * @param threadFlagId the primary key of the current message boards thread flag 498 * @param userId the user ID 499 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 500 * @return the previous, current, and next message boards thread flag 501 * @throws com.liferay.portlet.messageboards.NoSuchThreadFlagException if a message boards thread flag with the primary key could not be found 502 * @throws SystemException if a system exception occurred 503 */ 504 public com.liferay.portlet.messageboards.model.MBThreadFlag[] findByUserId_PrevAndNext( 505 long threadFlagId, long userId, 506 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 507 throws com.liferay.portal.kernel.exception.SystemException, 508 com.liferay.portlet.messageboards.NoSuchThreadFlagException; 509 510 /** 511 * Removes all the message boards thread flags where userId = ? from the database. 512 * 513 * @param userId the user ID 514 * @throws SystemException if a system exception occurred 515 */ 516 public void removeByUserId(long userId) 517 throws com.liferay.portal.kernel.exception.SystemException; 518 519 /** 520 * Returns the number of message boards thread flags where userId = ?. 521 * 522 * @param userId the user ID 523 * @return the number of matching message boards thread flags 524 * @throws SystemException if a system exception occurred 525 */ 526 public int countByUserId(long userId) 527 throws com.liferay.portal.kernel.exception.SystemException; 528 529 /** 530 * Returns all the message boards thread flags where threadId = ?. 531 * 532 * @param threadId the thread ID 533 * @return the matching message boards thread flags 534 * @throws SystemException if a system exception occurred 535 */ 536 public java.util.List<com.liferay.portlet.messageboards.model.MBThreadFlag> findByThreadId( 537 long threadId) 538 throws com.liferay.portal.kernel.exception.SystemException; 539 540 /** 541 * Returns a range of all the message boards thread flags where threadId = ?. 542 * 543 * <p> 544 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.messageboards.model.impl.MBThreadFlagModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 545 * </p> 546 * 547 * @param threadId the thread ID 548 * @param start the lower bound of the range of message boards thread flags 549 * @param end the upper bound of the range of message boards thread flags (not inclusive) 550 * @return the range of matching message boards thread flags 551 * @throws SystemException if a system exception occurred 552 */ 553 public java.util.List<com.liferay.portlet.messageboards.model.MBThreadFlag> findByThreadId( 554 long threadId, int start, int end) 555 throws com.liferay.portal.kernel.exception.SystemException; 556 557 /** 558 * Returns an ordered range of all the message boards thread flags where threadId = ?. 559 * 560 * <p> 561 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.messageboards.model.impl.MBThreadFlagModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 562 * </p> 563 * 564 * @param threadId the thread ID 565 * @param start the lower bound of the range of message boards thread flags 566 * @param end the upper bound of the range of message boards thread flags (not inclusive) 567 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 568 * @return the ordered range of matching message boards thread flags 569 * @throws SystemException if a system exception occurred 570 */ 571 public java.util.List<com.liferay.portlet.messageboards.model.MBThreadFlag> findByThreadId( 572 long threadId, int start, int end, 573 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 574 throws com.liferay.portal.kernel.exception.SystemException; 575 576 /** 577 * Returns the first message boards thread flag in the ordered set where threadId = ?. 578 * 579 * @param threadId the thread ID 580 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 581 * @return the first matching message boards thread flag 582 * @throws com.liferay.portlet.messageboards.NoSuchThreadFlagException if a matching message boards thread flag could not be found 583 * @throws SystemException if a system exception occurred 584 */ 585 public com.liferay.portlet.messageboards.model.MBThreadFlag findByThreadId_First( 586 long threadId, 587 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 588 throws com.liferay.portal.kernel.exception.SystemException, 589 com.liferay.portlet.messageboards.NoSuchThreadFlagException; 590 591 /** 592 * Returns the first message boards thread flag in the ordered set where threadId = ?. 593 * 594 * @param threadId the thread ID 595 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 596 * @return the first matching message boards thread flag, or <code>null</code> if a matching message boards thread flag could not be found 597 * @throws SystemException if a system exception occurred 598 */ 599 public com.liferay.portlet.messageboards.model.MBThreadFlag fetchByThreadId_First( 600 long threadId, 601 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 602 throws com.liferay.portal.kernel.exception.SystemException; 603 604 /** 605 * Returns the last message boards thread flag in the ordered set where threadId = ?. 606 * 607 * @param threadId the thread ID 608 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 609 * @return the last matching message boards thread flag 610 * @throws com.liferay.portlet.messageboards.NoSuchThreadFlagException if a matching message boards thread flag could not be found 611 * @throws SystemException if a system exception occurred 612 */ 613 public com.liferay.portlet.messageboards.model.MBThreadFlag findByThreadId_Last( 614 long threadId, 615 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 616 throws com.liferay.portal.kernel.exception.SystemException, 617 com.liferay.portlet.messageboards.NoSuchThreadFlagException; 618 619 /** 620 * Returns the last message boards thread flag in the ordered set where threadId = ?. 621 * 622 * @param threadId the thread ID 623 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 624 * @return the last matching message boards thread flag, or <code>null</code> if a matching message boards thread flag could not be found 625 * @throws SystemException if a system exception occurred 626 */ 627 public com.liferay.portlet.messageboards.model.MBThreadFlag fetchByThreadId_Last( 628 long threadId, 629 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 630 throws com.liferay.portal.kernel.exception.SystemException; 631 632 /** 633 * Returns the message boards thread flags before and after the current message boards thread flag in the ordered set where threadId = ?. 634 * 635 * @param threadFlagId the primary key of the current message boards thread flag 636 * @param threadId the thread ID 637 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 638 * @return the previous, current, and next message boards thread flag 639 * @throws com.liferay.portlet.messageboards.NoSuchThreadFlagException if a message boards thread flag with the primary key could not be found 640 * @throws SystemException if a system exception occurred 641 */ 642 public com.liferay.portlet.messageboards.model.MBThreadFlag[] findByThreadId_PrevAndNext( 643 long threadFlagId, long threadId, 644 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 645 throws com.liferay.portal.kernel.exception.SystemException, 646 com.liferay.portlet.messageboards.NoSuchThreadFlagException; 647 648 /** 649 * Removes all the message boards thread flags where threadId = ? from the database. 650 * 651 * @param threadId the thread ID 652 * @throws SystemException if a system exception occurred 653 */ 654 public void removeByThreadId(long threadId) 655 throws com.liferay.portal.kernel.exception.SystemException; 656 657 /** 658 * Returns the number of message boards thread flags where threadId = ?. 659 * 660 * @param threadId the thread ID 661 * @return the number of matching message boards thread flags 662 * @throws SystemException if a system exception occurred 663 */ 664 public int countByThreadId(long threadId) 665 throws com.liferay.portal.kernel.exception.SystemException; 666 667 /** 668 * Returns the message boards thread flag where userId = ? and threadId = ? or throws a {@link com.liferay.portlet.messageboards.NoSuchThreadFlagException} if it could not be found. 669 * 670 * @param userId the user ID 671 * @param threadId the thread ID 672 * @return the matching message boards thread flag 673 * @throws com.liferay.portlet.messageboards.NoSuchThreadFlagException if a matching message boards thread flag could not be found 674 * @throws SystemException if a system exception occurred 675 */ 676 public com.liferay.portlet.messageboards.model.MBThreadFlag findByU_T( 677 long userId, long threadId) 678 throws com.liferay.portal.kernel.exception.SystemException, 679 com.liferay.portlet.messageboards.NoSuchThreadFlagException; 680 681 /** 682 * Returns the message boards thread flag where userId = ? and threadId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 683 * 684 * @param userId the user ID 685 * @param threadId the thread ID 686 * @return the matching message boards thread flag, or <code>null</code> if a matching message boards thread flag could not be found 687 * @throws SystemException if a system exception occurred 688 */ 689 public com.liferay.portlet.messageboards.model.MBThreadFlag fetchByU_T( 690 long userId, long threadId) 691 throws com.liferay.portal.kernel.exception.SystemException; 692 693 /** 694 * Returns the message boards thread flag where userId = ? and threadId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 695 * 696 * @param userId the user ID 697 * @param threadId the thread ID 698 * @param retrieveFromCache whether to use the finder cache 699 * @return the matching message boards thread flag, or <code>null</code> if a matching message boards thread flag could not be found 700 * @throws SystemException if a system exception occurred 701 */ 702 public com.liferay.portlet.messageboards.model.MBThreadFlag fetchByU_T( 703 long userId, long threadId, boolean retrieveFromCache) 704 throws com.liferay.portal.kernel.exception.SystemException; 705 706 /** 707 * Removes the message boards thread flag where userId = ? and threadId = ? from the database. 708 * 709 * @param userId the user ID 710 * @param threadId the thread ID 711 * @return the message boards thread flag that was removed 712 * @throws SystemException if a system exception occurred 713 */ 714 public com.liferay.portlet.messageboards.model.MBThreadFlag removeByU_T( 715 long userId, long threadId) 716 throws com.liferay.portal.kernel.exception.SystemException, 717 com.liferay.portlet.messageboards.NoSuchThreadFlagException; 718 719 /** 720 * Returns the number of message boards thread flags where userId = ? and threadId = ?. 721 * 722 * @param userId the user ID 723 * @param threadId the thread ID 724 * @return the number of matching message boards thread flags 725 * @throws SystemException if a system exception occurred 726 */ 727 public int countByU_T(long userId, long threadId) 728 throws com.liferay.portal.kernel.exception.SystemException; 729 730 /** 731 * Caches the message boards thread flag in the entity cache if it is enabled. 732 * 733 * @param mbThreadFlag the message boards thread flag 734 */ 735 public void cacheResult( 736 com.liferay.portlet.messageboards.model.MBThreadFlag mbThreadFlag); 737 738 /** 739 * Caches the message boards thread flags in the entity cache if it is enabled. 740 * 741 * @param mbThreadFlags the message boards thread flags 742 */ 743 public void cacheResult( 744 java.util.List<com.liferay.portlet.messageboards.model.MBThreadFlag> mbThreadFlags); 745 746 /** 747 * Creates a new message boards thread flag with the primary key. Does not add the message boards thread flag to the database. 748 * 749 * @param threadFlagId the primary key for the new message boards thread flag 750 * @return the new message boards thread flag 751 */ 752 public com.liferay.portlet.messageboards.model.MBThreadFlag create( 753 long threadFlagId); 754 755 /** 756 * Removes the message boards thread flag with the primary key from the database. Also notifies the appropriate model listeners. 757 * 758 * @param threadFlagId the primary key of the message boards thread flag 759 * @return the message boards thread flag that was removed 760 * @throws com.liferay.portlet.messageboards.NoSuchThreadFlagException if a message boards thread flag with the primary key could not be found 761 * @throws SystemException if a system exception occurred 762 */ 763 public com.liferay.portlet.messageboards.model.MBThreadFlag remove( 764 long threadFlagId) 765 throws com.liferay.portal.kernel.exception.SystemException, 766 com.liferay.portlet.messageboards.NoSuchThreadFlagException; 767 768 public com.liferay.portlet.messageboards.model.MBThreadFlag updateImpl( 769 com.liferay.portlet.messageboards.model.MBThreadFlag mbThreadFlag) 770 throws com.liferay.portal.kernel.exception.SystemException; 771 772 /** 773 * Returns the message boards thread flag with the primary key or throws a {@link com.liferay.portlet.messageboards.NoSuchThreadFlagException} if it could not be found. 774 * 775 * @param threadFlagId the primary key of the message boards thread flag 776 * @return the message boards thread flag 777 * @throws com.liferay.portlet.messageboards.NoSuchThreadFlagException if a message boards thread flag with the primary key could not be found 778 * @throws SystemException if a system exception occurred 779 */ 780 public com.liferay.portlet.messageboards.model.MBThreadFlag findByPrimaryKey( 781 long threadFlagId) 782 throws com.liferay.portal.kernel.exception.SystemException, 783 com.liferay.portlet.messageboards.NoSuchThreadFlagException; 784 785 /** 786 * Returns the message boards thread flag with the primary key or returns <code>null</code> if it could not be found. 787 * 788 * @param threadFlagId the primary key of the message boards thread flag 789 * @return the message boards thread flag, or <code>null</code> if a message boards thread flag with the primary key could not be found 790 * @throws SystemException if a system exception occurred 791 */ 792 public com.liferay.portlet.messageboards.model.MBThreadFlag fetchByPrimaryKey( 793 long threadFlagId) 794 throws com.liferay.portal.kernel.exception.SystemException; 795 796 /** 797 * Returns all the message boards thread flags. 798 * 799 * @return the message boards thread flags 800 * @throws SystemException if a system exception occurred 801 */ 802 public java.util.List<com.liferay.portlet.messageboards.model.MBThreadFlag> findAll() 803 throws com.liferay.portal.kernel.exception.SystemException; 804 805 /** 806 * Returns a range of all the message boards thread flags. 807 * 808 * <p> 809 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.messageboards.model.impl.MBThreadFlagModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 810 * </p> 811 * 812 * @param start the lower bound of the range of message boards thread flags 813 * @param end the upper bound of the range of message boards thread flags (not inclusive) 814 * @return the range of message boards thread flags 815 * @throws SystemException if a system exception occurred 816 */ 817 public java.util.List<com.liferay.portlet.messageboards.model.MBThreadFlag> findAll( 818 int start, int end) 819 throws com.liferay.portal.kernel.exception.SystemException; 820 821 /** 822 * Returns an ordered range of all the message boards thread flags. 823 * 824 * <p> 825 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.messageboards.model.impl.MBThreadFlagModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 826 * </p> 827 * 828 * @param start the lower bound of the range of message boards thread flags 829 * @param end the upper bound of the range of message boards thread flags (not inclusive) 830 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 831 * @return the ordered range of message boards thread flags 832 * @throws SystemException if a system exception occurred 833 */ 834 public java.util.List<com.liferay.portlet.messageboards.model.MBThreadFlag> findAll( 835 int start, int end, 836 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 837 throws com.liferay.portal.kernel.exception.SystemException; 838 839 /** 840 * Removes all the message boards thread flags from the database. 841 * 842 * @throws SystemException if a system exception occurred 843 */ 844 public void removeAll() 845 throws com.liferay.portal.kernel.exception.SystemException; 846 847 /** 848 * Returns the number of message boards thread flags. 849 * 850 * @return the number of message boards thread flags 851 * @throws SystemException if a system exception occurred 852 */ 853 public int countAll() 854 throws com.liferay.portal.kernel.exception.SystemException; 855 }