Liferay 6.2-ce-ga5

com.liferay.portlet.messageboards.service.persistence
Interface MBThreadFlagPersistence

All Superinterfaces:
BasePersistence<MBThreadFlag>
All Known Implementing Classes:
MBThreadFlagPersistenceImpl

@ProviderType
public interface MBThreadFlagPersistence
extends BasePersistence<MBThreadFlag>

The persistence interface for the message boards thread flag service.

Caching information and settings can be found in portal.properties

See Also:
MBThreadFlagPersistenceImpl, MBThreadFlagUtil
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time it is generated.

Method Summary
 void cacheResult(List<MBThreadFlag> mbThreadFlags)
          Caches the message boards thread flags in the entity cache if it is enabled.
 void cacheResult(MBThreadFlag mbThreadFlag)
          Caches the message boards thread flag in the entity cache if it is enabled.
 int countAll()
          Returns the number of message boards thread flags.
 int countByThreadId(long threadId)
          Returns the number of message boards thread flags where threadId = ?.
 int countByU_T(long userId, long threadId)
          Returns the number of message boards thread flags where userId = ? and threadId = ?.
 int countByUserId(long userId)
          Returns the number of message boards thread flags where userId = ?.
 int countByUuid_C(String uuid, long companyId)
          Returns the number of message boards thread flags where uuid = ? and companyId = ?.
 int countByUUID_G(String uuid, long groupId)
          Returns the number of message boards thread flags where uuid = ? and groupId = ?.
 int countByUuid(String uuid)
          Returns the number of message boards thread flags where uuid = ?.
 MBThreadFlag create(long threadFlagId)
          Creates a new message boards thread flag with the primary key.
 MBThreadFlag fetchByPrimaryKey(long threadFlagId)
          Returns the message boards thread flag with the primary key or returns null if it could not be found.
 MBThreadFlag fetchByThreadId_First(long threadId, OrderByComparator orderByComparator)
          Returns the first message boards thread flag in the ordered set where threadId = ?.
 MBThreadFlag fetchByThreadId_Last(long threadId, OrderByComparator orderByComparator)
          Returns the last message boards thread flag in the ordered set where threadId = ?.
 MBThreadFlag fetchByU_T(long userId, long threadId)
          Returns the message boards thread flag where userId = ? and threadId = ? or returns null if it could not be found.
 MBThreadFlag fetchByU_T(long userId, long threadId, boolean retrieveFromCache)
          Returns the message boards thread flag where userId = ? and threadId = ? or returns null if it could not be found, optionally using the finder cache.
 MBThreadFlag fetchByUserId_First(long userId, OrderByComparator orderByComparator)
          Returns the first message boards thread flag in the ordered set where userId = ?.
 MBThreadFlag fetchByUserId_Last(long userId, OrderByComparator orderByComparator)
          Returns the last message boards thread flag in the ordered set where userId = ?.
 MBThreadFlag fetchByUuid_C_First(String uuid, long companyId, OrderByComparator orderByComparator)
          Returns the first message boards thread flag in the ordered set where uuid = ? and companyId = ?.
 MBThreadFlag fetchByUuid_C_Last(String uuid, long companyId, OrderByComparator orderByComparator)
          Returns the last message boards thread flag in the ordered set where uuid = ? and companyId = ?.
 MBThreadFlag fetchByUuid_First(String uuid, OrderByComparator orderByComparator)
          Returns the first message boards thread flag in the ordered set where uuid = ?.
 MBThreadFlag fetchByUUID_G(String uuid, long groupId)
          Returns the message boards thread flag where uuid = ? and groupId = ? or returns null if it could not be found.
 MBThreadFlag fetchByUUID_G(String uuid, long groupId, boolean retrieveFromCache)
          Returns the message boards thread flag where uuid = ? and groupId = ? or returns null if it could not be found, optionally using the finder cache.
 MBThreadFlag fetchByUuid_Last(String uuid, OrderByComparator orderByComparator)
          Returns the last message boards thread flag in the ordered set where uuid = ?.
 List<MBThreadFlag> findAll()
          Returns all the message boards thread flags.
 List<MBThreadFlag> findAll(int start, int end)
          Returns a range of all the message boards thread flags.
 List<MBThreadFlag> findAll(int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the message boards thread flags.
 MBThreadFlag findByPrimaryKey(long threadFlagId)
          Returns the message boards thread flag with the primary key or throws a NoSuchThreadFlagException if it could not be found.
 MBThreadFlag findByThreadId_First(long threadId, OrderByComparator orderByComparator)
          Returns the first message boards thread flag in the ordered set where threadId = ?.
 MBThreadFlag findByThreadId_Last(long threadId, OrderByComparator orderByComparator)
          Returns the last message boards thread flag in the ordered set where threadId = ?.
 MBThreadFlag[] findByThreadId_PrevAndNext(long threadFlagId, long threadId, OrderByComparator orderByComparator)
          Returns the message boards thread flags before and after the current message boards thread flag in the ordered set where threadId = ?.
 List<MBThreadFlag> findByThreadId(long threadId)
          Returns all the message boards thread flags where threadId = ?.
 List<MBThreadFlag> findByThreadId(long threadId, int start, int end)
          Returns a range of all the message boards thread flags where threadId = ?.
 List<MBThreadFlag> findByThreadId(long threadId, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the message boards thread flags where threadId = ?.
 MBThreadFlag findByU_T(long userId, long threadId)
          Returns the message boards thread flag where userId = ? and threadId = ? or throws a NoSuchThreadFlagException if it could not be found.
 MBThreadFlag findByUserId_First(long userId, OrderByComparator orderByComparator)
          Returns the first message boards thread flag in the ordered set where userId = ?.
 MBThreadFlag findByUserId_Last(long userId, OrderByComparator orderByComparator)
          Returns the last message boards thread flag in the ordered set where userId = ?.
 MBThreadFlag[] findByUserId_PrevAndNext(long threadFlagId, long userId, OrderByComparator orderByComparator)
          Returns the message boards thread flags before and after the current message boards thread flag in the ordered set where userId = ?.
 List<MBThreadFlag> findByUserId(long userId)
          Returns all the message boards thread flags where userId = ?.
 List<MBThreadFlag> findByUserId(long userId, int start, int end)
          Returns a range of all the message boards thread flags where userId = ?.
 List<MBThreadFlag> findByUserId(long userId, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the message boards thread flags where userId = ?.
 MBThreadFlag findByUuid_C_First(String uuid, long companyId, OrderByComparator orderByComparator)
          Returns the first message boards thread flag in the ordered set where uuid = ? and companyId = ?.
 MBThreadFlag findByUuid_C_Last(String uuid, long companyId, OrderByComparator orderByComparator)
          Returns the last message boards thread flag in the ordered set where uuid = ? and companyId = ?.
 MBThreadFlag[] findByUuid_C_PrevAndNext(long threadFlagId, String uuid, long companyId, OrderByComparator orderByComparator)
          Returns the message boards thread flags before and after the current message boards thread flag in the ordered set where uuid = ? and companyId = ?.
 List<MBThreadFlag> findByUuid_C(String uuid, long companyId)
          Returns all the message boards thread flags where uuid = ? and companyId = ?.
 List<MBThreadFlag> findByUuid_C(String uuid, long companyId, int start, int end)
          Returns a range of all the message boards thread flags where uuid = ? and companyId = ?.
 List<MBThreadFlag> findByUuid_C(String uuid, long companyId, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the message boards thread flags where uuid = ? and companyId = ?.
 MBThreadFlag findByUuid_First(String uuid, OrderByComparator orderByComparator)
          Returns the first message boards thread flag in the ordered set where uuid = ?.
 MBThreadFlag findByUUID_G(String uuid, long groupId)
          Returns the message boards thread flag where uuid = ? and groupId = ? or throws a NoSuchThreadFlagException if it could not be found.
 MBThreadFlag findByUuid_Last(String uuid, OrderByComparator orderByComparator)
          Returns the last message boards thread flag in the ordered set where uuid = ?.
 MBThreadFlag[] findByUuid_PrevAndNext(long threadFlagId, String uuid, OrderByComparator orderByComparator)
          Returns the message boards thread flags before and after the current message boards thread flag in the ordered set where uuid = ?.
 List<MBThreadFlag> findByUuid(String uuid)
          Returns all the message boards thread flags where uuid = ?.
 List<MBThreadFlag> findByUuid(String uuid, int start, int end)
          Returns a range of all the message boards thread flags where uuid = ?.
 List<MBThreadFlag> findByUuid(String uuid, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the message boards thread flags where uuid = ?.
 MBThreadFlag remove(long threadFlagId)
          Removes the message boards thread flag with the primary key from the database.
 void removeAll()
          Removes all the message boards thread flags from the database.
 void removeByThreadId(long threadId)
          Removes all the message boards thread flags where threadId = ? from the database.
 MBThreadFlag removeByU_T(long userId, long threadId)
          Removes the message boards thread flag where userId = ? and threadId = ? from the database.
 void removeByUserId(long userId)
          Removes all the message boards thread flags where userId = ? from the database.
 void removeByUuid_C(String uuid, long companyId)
          Removes all the message boards thread flags where uuid = ? and companyId = ? from the database.
 MBThreadFlag removeByUUID_G(String uuid, long groupId)
          Removes the message boards thread flag where uuid = ? and groupId = ? from the database.
 void removeByUuid(String uuid)
          Removes all the message boards thread flags where uuid = ? from the database.
 MBThreadFlag updateImpl(MBThreadFlag mbThreadFlag)
           
 
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence
clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, setDataSource, unregisterListener, update, update, update, update
 

Method Detail

findByUuid

List<MBThreadFlag> findByUuid(String uuid)
                              throws SystemException
Returns all the message boards thread flags where uuid = ?.

Parameters:
uuid - the uuid
Returns:
the matching message boards thread flags
Throws:
SystemException - if a system exception occurred

findByUuid

List<MBThreadFlag> findByUuid(String uuid,
                              int start,
                              int end)
                              throws SystemException
Returns a range of all the message boards thread flags where uuid = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from MBThreadFlagModelImpl. If both orderByComparator 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.

Parameters:
uuid - the uuid
start - the lower bound of the range of message boards thread flags
end - the upper bound of the range of message boards thread flags (not inclusive)
Returns:
the range of matching message boards thread flags
Throws:
SystemException - if a system exception occurred

findByUuid

List<MBThreadFlag> findByUuid(String uuid,
                              int start,
                              int end,
                              OrderByComparator orderByComparator)
                              throws SystemException
Returns an ordered range of all the message boards thread flags where uuid = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from MBThreadFlagModelImpl. If both orderByComparator 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.

Parameters:
uuid - the uuid
start - the lower bound of the range of message boards thread flags
end - the upper bound of the range of message boards thread flags (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching message boards thread flags
Throws:
SystemException - if a system exception occurred

findByUuid_First

MBThreadFlag findByUuid_First(String uuid,
                              OrderByComparator orderByComparator)
                              throws SystemException,
                                     NoSuchThreadFlagException
Returns the first message boards thread flag in the ordered set where uuid = ?.

Parameters:
uuid - the uuid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching message boards thread flag
Throws:
NoSuchThreadFlagException - if a matching message boards thread flag could not be found
SystemException - if a system exception occurred

fetchByUuid_First

MBThreadFlag fetchByUuid_First(String uuid,
                               OrderByComparator orderByComparator)
                               throws SystemException
Returns the first message boards thread flag in the ordered set where uuid = ?.

Parameters:
uuid - the uuid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching message boards thread flag, or null if a matching message boards thread flag could not be found
Throws:
SystemException - if a system exception occurred

findByUuid_Last

MBThreadFlag findByUuid_Last(String uuid,
                             OrderByComparator orderByComparator)
                             throws SystemException,
                                    NoSuchThreadFlagException
Returns the last message boards thread flag in the ordered set where uuid = ?.

Parameters:
uuid - the uuid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching message boards thread flag
Throws:
NoSuchThreadFlagException - if a matching message boards thread flag could not be found
SystemException - if a system exception occurred

fetchByUuid_Last

MBThreadFlag fetchByUuid_Last(String uuid,
                              OrderByComparator orderByComparator)
                              throws SystemException
Returns the last message boards thread flag in the ordered set where uuid = ?.

Parameters:
uuid - the uuid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching message boards thread flag, or null if a matching message boards thread flag could not be found
Throws:
SystemException - if a system exception occurred

findByUuid_PrevAndNext

MBThreadFlag[] findByUuid_PrevAndNext(long threadFlagId,
                                      String uuid,
                                      OrderByComparator orderByComparator)
                                      throws SystemException,
                                             NoSuchThreadFlagException
Returns the message boards thread flags before and after the current message boards thread flag in the ordered set where uuid = ?.

Parameters:
threadFlagId - the primary key of the current message boards thread flag
uuid - the uuid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next message boards thread flag
Throws:
NoSuchThreadFlagException - if a message boards thread flag with the primary key could not be found
SystemException - if a system exception occurred

removeByUuid

void removeByUuid(String uuid)
                  throws SystemException
Removes all the message boards thread flags where uuid = ? from the database.

Parameters:
uuid - the uuid
Throws:
SystemException - if a system exception occurred

countByUuid

int countByUuid(String uuid)
                throws SystemException
Returns the number of message boards thread flags where uuid = ?.

Parameters:
uuid - the uuid
Returns:
the number of matching message boards thread flags
Throws:
SystemException - if a system exception occurred

findByUUID_G

MBThreadFlag findByUUID_G(String uuid,
                          long groupId)
                          throws SystemException,
                                 NoSuchThreadFlagException
Returns the message boards thread flag where uuid = ? and groupId = ? or throws a NoSuchThreadFlagException if it could not be found.

Parameters:
uuid - the uuid
groupId - the group ID
Returns:
the matching message boards thread flag
Throws:
NoSuchThreadFlagException - if a matching message boards thread flag could not be found
SystemException - if a system exception occurred

fetchByUUID_G

MBThreadFlag fetchByUUID_G(String uuid,
                           long groupId)
                           throws SystemException
Returns the message boards thread flag where uuid = ? and groupId = ? or returns null if it could not be found. Uses the finder cache.

Parameters:
uuid - the uuid
groupId - the group ID
Returns:
the matching message boards thread flag, or null if a matching message boards thread flag could not be found
Throws:
SystemException - if a system exception occurred

fetchByUUID_G

MBThreadFlag fetchByUUID_G(String uuid,
                           long groupId,
                           boolean retrieveFromCache)
                           throws SystemException
Returns the message boards thread flag where uuid = ? and groupId = ? or returns null if it could not be found, optionally using the finder cache.

Parameters:
uuid - the uuid
groupId - the group ID
retrieveFromCache - whether to use the finder cache
Returns:
the matching message boards thread flag, or null if a matching message boards thread flag could not be found
Throws:
SystemException - if a system exception occurred

removeByUUID_G

MBThreadFlag removeByUUID_G(String uuid,
                            long groupId)
                            throws SystemException,
                                   NoSuchThreadFlagException
Removes the message boards thread flag where uuid = ? and groupId = ? from the database.

Parameters:
uuid - the uuid
groupId - the group ID
Returns:
the message boards thread flag that was removed
Throws:
SystemException - if a system exception occurred
NoSuchThreadFlagException

countByUUID_G

int countByUUID_G(String uuid,
                  long groupId)
                  throws SystemException
Returns the number of message boards thread flags where uuid = ? and groupId = ?.

Parameters:
uuid - the uuid
groupId - the group ID
Returns:
the number of matching message boards thread flags
Throws:
SystemException - if a system exception occurred

findByUuid_C

List<MBThreadFlag> findByUuid_C(String uuid,
                                long companyId)
                                throws SystemException
Returns all the message boards thread flags where uuid = ? and companyId = ?.

Parameters:
uuid - the uuid
companyId - the company ID
Returns:
the matching message boards thread flags
Throws:
SystemException - if a system exception occurred

findByUuid_C

List<MBThreadFlag> findByUuid_C(String uuid,
                                long companyId,
                                int start,
                                int end)
                                throws SystemException
Returns a range of all the message boards thread flags where uuid = ? and companyId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from MBThreadFlagModelImpl. If both orderByComparator 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.

Parameters:
uuid - the uuid
companyId - the company ID
start - the lower bound of the range of message boards thread flags
end - the upper bound of the range of message boards thread flags (not inclusive)
Returns:
the range of matching message boards thread flags
Throws:
SystemException - if a system exception occurred

findByUuid_C

List<MBThreadFlag> findByUuid_C(String uuid,
                                long companyId,
                                int start,
                                int end,
                                OrderByComparator orderByComparator)
                                throws SystemException
Returns an ordered range of all the message boards thread flags where uuid = ? and companyId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from MBThreadFlagModelImpl. If both orderByComparator 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.

Parameters:
uuid - the uuid
companyId - the company ID
start - the lower bound of the range of message boards thread flags
end - the upper bound of the range of message boards thread flags (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching message boards thread flags
Throws:
SystemException - if a system exception occurred

findByUuid_C_First

MBThreadFlag findByUuid_C_First(String uuid,
                                long companyId,
                                OrderByComparator orderByComparator)
                                throws SystemException,
                                       NoSuchThreadFlagException
Returns the first message boards thread flag in the ordered set where uuid = ? and companyId = ?.

Parameters:
uuid - the uuid
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching message boards thread flag
Throws:
NoSuchThreadFlagException - if a matching message boards thread flag could not be found
SystemException - if a system exception occurred

fetchByUuid_C_First

MBThreadFlag fetchByUuid_C_First(String uuid,
                                 long companyId,
                                 OrderByComparator orderByComparator)
                                 throws SystemException
Returns the first message boards thread flag in the ordered set where uuid = ? and companyId = ?.

Parameters:
uuid - the uuid
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching message boards thread flag, or null if a matching message boards thread flag could not be found
Throws:
SystemException - if a system exception occurred

findByUuid_C_Last

MBThreadFlag findByUuid_C_Last(String uuid,
                               long companyId,
                               OrderByComparator orderByComparator)
                               throws SystemException,
                                      NoSuchThreadFlagException
Returns the last message boards thread flag in the ordered set where uuid = ? and companyId = ?.

Parameters:
uuid - the uuid
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching message boards thread flag
Throws:
NoSuchThreadFlagException - if a matching message boards thread flag could not be found
SystemException - if a system exception occurred

fetchByUuid_C_Last

MBThreadFlag fetchByUuid_C_Last(String uuid,
                                long companyId,
                                OrderByComparator orderByComparator)
                                throws SystemException
Returns the last message boards thread flag in the ordered set where uuid = ? and companyId = ?.

Parameters:
uuid - the uuid
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching message boards thread flag, or null if a matching message boards thread flag could not be found
Throws:
SystemException - if a system exception occurred

findByUuid_C_PrevAndNext

MBThreadFlag[] findByUuid_C_PrevAndNext(long threadFlagId,
                                        String uuid,
                                        long companyId,
                                        OrderByComparator orderByComparator)
                                        throws SystemException,
                                               NoSuchThreadFlagException
Returns the message boards thread flags before and after the current message boards thread flag in the ordered set where uuid = ? and companyId = ?.

Parameters:
threadFlagId - the primary key of the current message boards thread flag
uuid - the uuid
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next message boards thread flag
Throws:
NoSuchThreadFlagException - if a message boards thread flag with the primary key could not be found
SystemException - if a system exception occurred

removeByUuid_C

void removeByUuid_C(String uuid,
                    long companyId)
                    throws SystemException
Removes all the message boards thread flags where uuid = ? and companyId = ? from the database.

Parameters:
uuid - the uuid
companyId - the company ID
Throws:
SystemException - if a system exception occurred

countByUuid_C

int countByUuid_C(String uuid,
                  long companyId)
                  throws SystemException
Returns the number of message boards thread flags where uuid = ? and companyId = ?.

Parameters:
uuid - the uuid
companyId - the company ID
Returns:
the number of matching message boards thread flags
Throws:
SystemException - if a system exception occurred

findByUserId

List<MBThreadFlag> findByUserId(long userId)
                                throws SystemException
Returns all the message boards thread flags where userId = ?.

Parameters:
userId - the user ID
Returns:
the matching message boards thread flags
Throws:
SystemException - if a system exception occurred

findByUserId

List<MBThreadFlag> findByUserId(long userId,
                                int start,
                                int end)
                                throws SystemException
Returns a range of all the message boards thread flags where userId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from MBThreadFlagModelImpl. If both orderByComparator 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.

Parameters:
userId - the user ID
start - the lower bound of the range of message boards thread flags
end - the upper bound of the range of message boards thread flags (not inclusive)
Returns:
the range of matching message boards thread flags
Throws:
SystemException - if a system exception occurred

findByUserId

List<MBThreadFlag> findByUserId(long userId,
                                int start,
                                int end,
                                OrderByComparator orderByComparator)
                                throws SystemException
Returns an ordered range of all the message boards thread flags where userId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from MBThreadFlagModelImpl. If both orderByComparator 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.

Parameters:
userId - the user ID
start - the lower bound of the range of message boards thread flags
end - the upper bound of the range of message boards thread flags (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching message boards thread flags
Throws:
SystemException - if a system exception occurred

findByUserId_First

MBThreadFlag findByUserId_First(long userId,
                                OrderByComparator orderByComparator)
                                throws SystemException,
                                       NoSuchThreadFlagException
Returns the first message boards thread flag in the ordered set where userId = ?.

Parameters:
userId - the user ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching message boards thread flag
Throws:
NoSuchThreadFlagException - if a matching message boards thread flag could not be found
SystemException - if a system exception occurred

fetchByUserId_First

MBThreadFlag fetchByUserId_First(long userId,
                                 OrderByComparator orderByComparator)
                                 throws SystemException
Returns the first message boards thread flag in the ordered set where userId = ?.

Parameters:
userId - the user ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching message boards thread flag, or null if a matching message boards thread flag could not be found
Throws:
SystemException - if a system exception occurred

findByUserId_Last

MBThreadFlag findByUserId_Last(long userId,
                               OrderByComparator orderByComparator)
                               throws SystemException,
                                      NoSuchThreadFlagException
Returns the last message boards thread flag in the ordered set where userId = ?.

Parameters:
userId - the user ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching message boards thread flag
Throws:
NoSuchThreadFlagException - if a matching message boards thread flag could not be found
SystemException - if a system exception occurred

fetchByUserId_Last

MBThreadFlag fetchByUserId_Last(long userId,
                                OrderByComparator orderByComparator)
                                throws SystemException
Returns the last message boards thread flag in the ordered set where userId = ?.

Parameters:
userId - the user ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching message boards thread flag, or null if a matching message boards thread flag could not be found
Throws:
SystemException - if a system exception occurred

findByUserId_PrevAndNext

MBThreadFlag[] findByUserId_PrevAndNext(long threadFlagId,
                                        long userId,
                                        OrderByComparator orderByComparator)
                                        throws SystemException,
                                               NoSuchThreadFlagException
Returns the message boards thread flags before and after the current message boards thread flag in the ordered set where userId = ?.

Parameters:
threadFlagId - the primary key of the current message boards thread flag
userId - the user ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next message boards thread flag
Throws:
NoSuchThreadFlagException - if a message boards thread flag with the primary key could not be found
SystemException - if a system exception occurred

removeByUserId

void removeByUserId(long userId)
                    throws SystemException
Removes all the message boards thread flags where userId = ? from the database.

Parameters:
userId - the user ID
Throws:
SystemException - if a system exception occurred

countByUserId

int countByUserId(long userId)
                  throws SystemException
Returns the number of message boards thread flags where userId = ?.

Parameters:
userId - the user ID
Returns:
the number of matching message boards thread flags
Throws:
SystemException - if a system exception occurred

findByThreadId

List<MBThreadFlag> findByThreadId(long threadId)
                                  throws SystemException
Returns all the message boards thread flags where threadId = ?.

Parameters:
threadId - the thread ID
Returns:
the matching message boards thread flags
Throws:
SystemException - if a system exception occurred

findByThreadId

List<MBThreadFlag> findByThreadId(long threadId,
                                  int start,
                                  int end)
                                  throws SystemException
Returns a range of all the message boards thread flags where threadId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from MBThreadFlagModelImpl. If both orderByComparator 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.

Parameters:
threadId - the thread ID
start - the lower bound of the range of message boards thread flags
end - the upper bound of the range of message boards thread flags (not inclusive)
Returns:
the range of matching message boards thread flags
Throws:
SystemException - if a system exception occurred

findByThreadId

List<MBThreadFlag> findByThreadId(long threadId,
                                  int start,
                                  int end,
                                  OrderByComparator orderByComparator)
                                  throws SystemException
Returns an ordered range of all the message boards thread flags where threadId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from MBThreadFlagModelImpl. If both orderByComparator 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.

Parameters:
threadId - the thread ID
start - the lower bound of the range of message boards thread flags
end - the upper bound of the range of message boards thread flags (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching message boards thread flags
Throws:
SystemException - if a system exception occurred

findByThreadId_First

MBThreadFlag findByThreadId_First(long threadId,
                                  OrderByComparator orderByComparator)
                                  throws SystemException,
                                         NoSuchThreadFlagException
Returns the first message boards thread flag in the ordered set where threadId = ?.

Parameters:
threadId - the thread ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching message boards thread flag
Throws:
NoSuchThreadFlagException - if a matching message boards thread flag could not be found
SystemException - if a system exception occurred

fetchByThreadId_First

MBThreadFlag fetchByThreadId_First(long threadId,
                                   OrderByComparator orderByComparator)
                                   throws SystemException
Returns the first message boards thread flag in the ordered set where threadId = ?.

Parameters:
threadId - the thread ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching message boards thread flag, or null if a matching message boards thread flag could not be found
Throws:
SystemException - if a system exception occurred

findByThreadId_Last

MBThreadFlag findByThreadId_Last(long threadId,
                                 OrderByComparator orderByComparator)
                                 throws SystemException,
                                        NoSuchThreadFlagException
Returns the last message boards thread flag in the ordered set where threadId = ?.

Parameters:
threadId - the thread ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching message boards thread flag
Throws:
NoSuchThreadFlagException - if a matching message boards thread flag could not be found
SystemException - if a system exception occurred

fetchByThreadId_Last

MBThreadFlag fetchByThreadId_Last(long threadId,
                                  OrderByComparator orderByComparator)
                                  throws SystemException
Returns the last message boards thread flag in the ordered set where threadId = ?.

Parameters:
threadId - the thread ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching message boards thread flag, or null if a matching message boards thread flag could not be found
Throws:
SystemException - if a system exception occurred

findByThreadId_PrevAndNext

MBThreadFlag[] findByThreadId_PrevAndNext(long threadFlagId,
                                          long threadId,
                                          OrderByComparator orderByComparator)
                                          throws SystemException,
                                                 NoSuchThreadFlagException
Returns the message boards thread flags before and after the current message boards thread flag in the ordered set where threadId = ?.

Parameters:
threadFlagId - the primary key of the current message boards thread flag
threadId - the thread ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next message boards thread flag
Throws:
NoSuchThreadFlagException - if a message boards thread flag with the primary key could not be found
SystemException - if a system exception occurred

removeByThreadId

void removeByThreadId(long threadId)
                      throws SystemException
Removes all the message boards thread flags where threadId = ? from the database.

Parameters:
threadId - the thread ID
Throws:
SystemException - if a system exception occurred

countByThreadId

int countByThreadId(long threadId)
                    throws SystemException
Returns the number of message boards thread flags where threadId = ?.

Parameters:
threadId - the thread ID
Returns:
the number of matching message boards thread flags
Throws:
SystemException - if a system exception occurred

findByU_T

MBThreadFlag findByU_T(long userId,
                       long threadId)
                       throws SystemException,
                              NoSuchThreadFlagException
Returns the message boards thread flag where userId = ? and threadId = ? or throws a NoSuchThreadFlagException if it could not be found.

Parameters:
userId - the user ID
threadId - the thread ID
Returns:
the matching message boards thread flag
Throws:
NoSuchThreadFlagException - if a matching message boards thread flag could not be found
SystemException - if a system exception occurred

fetchByU_T

MBThreadFlag fetchByU_T(long userId,
                        long threadId)
                        throws SystemException
Returns the message boards thread flag where userId = ? and threadId = ? or returns null if it could not be found. Uses the finder cache.

Parameters:
userId - the user ID
threadId - the thread ID
Returns:
the matching message boards thread flag, or null if a matching message boards thread flag could not be found
Throws:
SystemException - if a system exception occurred

fetchByU_T

MBThreadFlag fetchByU_T(long userId,
                        long threadId,
                        boolean retrieveFromCache)
                        throws SystemException
Returns the message boards thread flag where userId = ? and threadId = ? or returns null if it could not be found, optionally using the finder cache.

Parameters:
userId - the user ID
threadId - the thread ID
retrieveFromCache - whether to use the finder cache
Returns:
the matching message boards thread flag, or null if a matching message boards thread flag could not be found
Throws:
SystemException - if a system exception occurred

removeByU_T

MBThreadFlag removeByU_T(long userId,
                         long threadId)
                         throws SystemException,
                                NoSuchThreadFlagException
Removes the message boards thread flag where userId = ? and threadId = ? from the database.

Parameters:
userId - the user ID
threadId - the thread ID
Returns:
the message boards thread flag that was removed
Throws:
SystemException - if a system exception occurred
NoSuchThreadFlagException

countByU_T

int countByU_T(long userId,
               long threadId)
               throws SystemException
Returns the number of message boards thread flags where userId = ? and threadId = ?.

Parameters:
userId - the user ID
threadId - the thread ID
Returns:
the number of matching message boards thread flags
Throws:
SystemException - if a system exception occurred

cacheResult

void cacheResult(MBThreadFlag mbThreadFlag)
Caches the message boards thread flag in the entity cache if it is enabled.

Parameters:
mbThreadFlag - the message boards thread flag

cacheResult

void cacheResult(List<MBThreadFlag> mbThreadFlags)
Caches the message boards thread flags in the entity cache if it is enabled.

Parameters:
mbThreadFlags - the message boards thread flags

create

MBThreadFlag create(long threadFlagId)
Creates a new message boards thread flag with the primary key. Does not add the message boards thread flag to the database.

Parameters:
threadFlagId - the primary key for the new message boards thread flag
Returns:
the new message boards thread flag

remove

MBThreadFlag remove(long threadFlagId)
                    throws SystemException,
                           NoSuchThreadFlagException
Removes the message boards thread flag with the primary key from the database. Also notifies the appropriate model listeners.

Parameters:
threadFlagId - the primary key of the message boards thread flag
Returns:
the message boards thread flag that was removed
Throws:
NoSuchThreadFlagException - if a message boards thread flag with the primary key could not be found
SystemException - if a system exception occurred

updateImpl

MBThreadFlag updateImpl(MBThreadFlag mbThreadFlag)
                        throws SystemException
Throws:
SystemException

findByPrimaryKey

MBThreadFlag findByPrimaryKey(long threadFlagId)
                              throws SystemException,
                                     NoSuchThreadFlagException
Returns the message boards thread flag with the primary key or throws a NoSuchThreadFlagException if it could not be found.

Parameters:
threadFlagId - the primary key of the message boards thread flag
Returns:
the message boards thread flag
Throws:
NoSuchThreadFlagException - if a message boards thread flag with the primary key could not be found
SystemException - if a system exception occurred

fetchByPrimaryKey

MBThreadFlag fetchByPrimaryKey(long threadFlagId)
                               throws SystemException
Returns the message boards thread flag with the primary key or returns null if it could not be found.

Parameters:
threadFlagId - the primary key of the message boards thread flag
Returns:
the message boards thread flag, or null if a message boards thread flag with the primary key could not be found
Throws:
SystemException - if a system exception occurred

findAll

List<MBThreadFlag> findAll()
                           throws SystemException
Returns all the message boards thread flags.

Returns:
the message boards thread flags
Throws:
SystemException - if a system exception occurred

findAll

List<MBThreadFlag> findAll(int start,
                           int end)
                           throws SystemException
Returns a range of all the message boards thread flags.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from MBThreadFlagModelImpl. If both orderByComparator 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.

Parameters:
start - the lower bound of the range of message boards thread flags
end - the upper bound of the range of message boards thread flags (not inclusive)
Returns:
the range of message boards thread flags
Throws:
SystemException - if a system exception occurred

findAll

List<MBThreadFlag> findAll(int start,
                           int end,
                           OrderByComparator orderByComparator)
                           throws SystemException
Returns an ordered range of all the message boards thread flags.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from MBThreadFlagModelImpl. If both orderByComparator 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.

Parameters:
start - the lower bound of the range of message boards thread flags
end - the upper bound of the range of message boards thread flags (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of message boards thread flags
Throws:
SystemException - if a system exception occurred

removeAll

void removeAll()
               throws SystemException
Removes all the message boards thread flags from the database.

Throws:
SystemException - if a system exception occurred

countAll

int countAll()
             throws SystemException
Returns the number of message boards thread flags.

Returns:
the number of message boards thread flags
Throws:
SystemException - if a system exception occurred

Liferay 6.2-ce-ga5