|
Liferay 6.2.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@ProviderType public interface MBThreadFlagPersistence
The persistence interface for the message boards thread flag service.
Caching information and settings can be found in portal.properties
MBThreadFlagPersistenceImpl
,
MBThreadFlagUtil
Method Summary | |
---|---|
abstract void |
cacheResult(List<MBThreadFlag> mbThreadFlags)
Caches the message boards thread flags in the entity cache if it is enabled. |
abstract void |
cacheResult(MBThreadFlag mbThreadFlag)
Caches the message boards thread flag in the entity cache if it is enabled. |
abstract int |
countAll()
Returns the number of message boards thread flags. |
abstract int |
countByThreadId(long threadId)
Returns the number of message boards thread flags where threadId = ?. |
abstract int |
countByU_T(long userId,
long threadId)
Returns the number of message boards thread flags where userId = ? and threadId = ?. |
abstract int |
countByUserId(long userId)
Returns the number of message boards thread flags where userId = ?. |
abstract int |
countByUuid_C(String uuid,
long companyId)
Returns the number of message boards thread flags where uuid = ? and companyId = ?. |
abstract int |
countByUUID_G(String uuid,
long groupId)
Returns the number of message boards thread flags where uuid = ? and groupId = ?. |
abstract int |
countByUuid(String uuid)
Returns the number of message boards thread flags where uuid = ?. |
abstract MBThreadFlag |
create(long threadFlagId)
Creates a new message boards thread flag with the primary key. |
abstract MBThreadFlag |
fetchByPrimaryKey(long threadFlagId)
Returns the message boards thread flag with the primary key or returns null if it could not be found. |
abstract MBThreadFlag |
fetchByThreadId_First(long threadId,
OrderByComparator orderByComparator)
Returns the first message boards thread flag in the ordered set where threadId = ?. |
abstract MBThreadFlag |
fetchByThreadId_Last(long threadId,
OrderByComparator orderByComparator)
Returns the last message boards thread flag in the ordered set where threadId = ?. |
abstract 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. |
abstract 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. |
abstract MBThreadFlag |
fetchByUserId_First(long userId,
OrderByComparator orderByComparator)
Returns the first message boards thread flag in the ordered set where userId = ?. |
abstract MBThreadFlag |
fetchByUserId_Last(long userId,
OrderByComparator orderByComparator)
Returns the last message boards thread flag in the ordered set where userId = ?. |
abstract 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 = ?. |
abstract 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 = ?. |
abstract MBThreadFlag |
fetchByUuid_First(String uuid,
OrderByComparator orderByComparator)
Returns the first message boards thread flag in the ordered set where uuid = ?. |
abstract 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. |
abstract 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. |
abstract MBThreadFlag |
fetchByUuid_Last(String uuid,
OrderByComparator orderByComparator)
Returns the last message boards thread flag in the ordered set where uuid = ?. |
abstract List<MBThreadFlag> |
findAll()
Returns all the message boards thread flags. |
abstract List<MBThreadFlag> |
findAll(int start,
int end)
Returns a range of all the message boards thread flags. |
abstract List<MBThreadFlag> |
findAll(int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the message boards thread flags. |
abstract MBThreadFlag |
findByPrimaryKey(long threadFlagId)
Returns the message boards thread flag with the primary key or throws a NoSuchThreadFlagException if it could not be found. |
abstract MBThreadFlag |
findByThreadId_First(long threadId,
OrderByComparator orderByComparator)
Returns the first message boards thread flag in the ordered set where threadId = ?. |
abstract MBThreadFlag |
findByThreadId_Last(long threadId,
OrderByComparator orderByComparator)
Returns the last message boards thread flag in the ordered set where threadId = ?. |
abstract 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 = ?. |
abstract List<MBThreadFlag> |
findByThreadId(long threadId)
Returns all the message boards thread flags where threadId = ?. |
abstract List<MBThreadFlag> |
findByThreadId(long threadId,
int start,
int end)
Returns a range of all the message boards thread flags where threadId = ?. |
abstract List<MBThreadFlag> |
findByThreadId(long threadId,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the message boards thread flags where threadId = ?. |
abstract 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. |
abstract MBThreadFlag |
findByUserId_First(long userId,
OrderByComparator orderByComparator)
Returns the first message boards thread flag in the ordered set where userId = ?. |
abstract MBThreadFlag |
findByUserId_Last(long userId,
OrderByComparator orderByComparator)
Returns the last message boards thread flag in the ordered set where userId = ?. |
abstract 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 = ?. |
abstract List<MBThreadFlag> |
findByUserId(long userId)
Returns all the message boards thread flags where userId = ?. |
abstract List<MBThreadFlag> |
findByUserId(long userId,
int start,
int end)
Returns a range of all the message boards thread flags where userId = ?. |
abstract List<MBThreadFlag> |
findByUserId(long userId,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the message boards thread flags where userId = ?. |
abstract 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 = ?. |
abstract 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 = ?. |
abstract 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 = ?. |
abstract List<MBThreadFlag> |
findByUuid_C(String uuid,
long companyId)
Returns all the message boards thread flags where uuid = ? and companyId = ?. |
abstract 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 = ?. |
abstract 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 = ?. |
abstract MBThreadFlag |
findByUuid_First(String uuid,
OrderByComparator orderByComparator)
Returns the first message boards thread flag in the ordered set where uuid = ?. |
abstract 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. |
abstract MBThreadFlag |
findByUuid_Last(String uuid,
OrderByComparator orderByComparator)
Returns the last message boards thread flag in the ordered set where uuid = ?. |
abstract 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 = ?. |
abstract List<MBThreadFlag> |
findByUuid(String uuid)
Returns all the message boards thread flags where uuid = ?. |
abstract List<MBThreadFlag> |
findByUuid(String uuid,
int start,
int end)
Returns a range of all the message boards thread flags where uuid = ?. |
abstract List<MBThreadFlag> |
findByUuid(String uuid,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the message boards thread flags where uuid = ?. |
abstract MBThreadFlag |
remove(long threadFlagId)
Removes the message boards thread flag with the primary key from the database. |
abstract void |
removeAll()
Removes all the message boards thread flags from the database. |
abstract void |
removeByThreadId(long threadId)
Removes all the message boards thread flags where threadId = ? from the database. |
abstract MBThreadFlag |
removeByU_T(long userId,
long threadId)
Removes the message boards thread flag where userId = ? and threadId = ? from the database. |
abstract void |
removeByUserId(long userId)
Removes all the message boards thread flags where userId = ? from the database. |
abstract void |
removeByUuid_C(String uuid,
long companyId)
Removes all the message boards thread flags where uuid = ? and companyId = ? from the database. |
abstract MBThreadFlag |
removeByUUID_G(String uuid,
long groupId)
Removes the message boards thread flag where uuid = ? and groupId = ? from the database. |
abstract void |
removeByUuid(String uuid)
Removes all the message boards thread flags where uuid = ? from the database. |
abstract 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 |
---|
List<MBThreadFlag> findByUuid(String uuid) throws SystemException
uuid
- the uuid
SystemException
- if a system exception occurredList<MBThreadFlag> findByUuid(String uuid, int start, int end) throws SystemException
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.
uuid
- the uuidstart
- the lower bound of the range of message boards thread flagsend
- the upper bound of the range of message boards thread flags (not inclusive)
SystemException
- if a system exception occurredList<MBThreadFlag> findByUuid(String uuid, int start, int end, OrderByComparator orderByComparator) throws SystemException
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.
uuid
- the uuidstart
- the lower bound of the range of message boards thread flagsend
- the upper bound of the range of message boards thread flags (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredMBThreadFlag findByUuid_First(String uuid, OrderByComparator orderByComparator) throws SystemException, NoSuchThreadFlagException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchThreadFlagException
- if a matching message boards thread flag could not be found
SystemException
- if a system exception occurredMBThreadFlag fetchByUuid_First(String uuid, OrderByComparator orderByComparator) throws SystemException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching message boards thread flag could not be found
SystemException
- if a system exception occurredMBThreadFlag findByUuid_Last(String uuid, OrderByComparator orderByComparator) throws SystemException, NoSuchThreadFlagException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchThreadFlagException
- if a matching message boards thread flag could not be found
SystemException
- if a system exception occurredMBThreadFlag fetchByUuid_Last(String uuid, OrderByComparator orderByComparator) throws SystemException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching message boards thread flag could not be found
SystemException
- if a system exception occurredMBThreadFlag[] findByUuid_PrevAndNext(long threadFlagId, String uuid, OrderByComparator orderByComparator) throws SystemException, NoSuchThreadFlagException
threadFlagId
- the primary key of the current message boards thread flaguuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchThreadFlagException
- if a message boards thread flag with the primary key could not be found
SystemException
- if a system exception occurredvoid removeByUuid(String uuid) throws SystemException
uuid
- the uuid
SystemException
- if a system exception occurredint countByUuid(String uuid) throws SystemException
uuid
- the uuid
SystemException
- if a system exception occurredMBThreadFlag findByUUID_G(String uuid, long groupId) throws SystemException, NoSuchThreadFlagException
NoSuchThreadFlagException
if it could not be found.
uuid
- the uuidgroupId
- the group ID
NoSuchThreadFlagException
- if a matching message boards thread flag could not be found
SystemException
- if a system exception occurredMBThreadFlag fetchByUUID_G(String uuid, long groupId) throws SystemException
null
if it could not be found. Uses the finder cache.
uuid
- the uuidgroupId
- the group ID
null
if a matching message boards thread flag could not be found
SystemException
- if a system exception occurredMBThreadFlag fetchByUUID_G(String uuid, long groupId, boolean retrieveFromCache) throws SystemException
null
if it could not be found, optionally using the finder cache.
uuid
- the uuidgroupId
- the group IDretrieveFromCache
- whether to use the finder cache
null
if a matching message boards thread flag could not be found
SystemException
- if a system exception occurredMBThreadFlag removeByUUID_G(String uuid, long groupId) throws SystemException, NoSuchThreadFlagException
uuid
- the uuidgroupId
- the group ID
SystemException
- if a system exception occurred
NoSuchThreadFlagException
int countByUUID_G(String uuid, long groupId) throws SystemException
uuid
- the uuidgroupId
- the group ID
SystemException
- if a system exception occurredList<MBThreadFlag> findByUuid_C(String uuid, long companyId) throws SystemException
uuid
- the uuidcompanyId
- the company ID
SystemException
- if a system exception occurredList<MBThreadFlag> findByUuid_C(String uuid, long companyId, int start, int end) throws SystemException
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.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of message boards thread flagsend
- the upper bound of the range of message boards thread flags (not inclusive)
SystemException
- if a system exception occurredList<MBThreadFlag> findByUuid_C(String uuid, long companyId, int start, int end, OrderByComparator orderByComparator) throws SystemException
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.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of message boards thread flagsend
- the upper bound of the range of message boards thread flags (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredMBThreadFlag findByUuid_C_First(String uuid, long companyId, OrderByComparator orderByComparator) throws SystemException, NoSuchThreadFlagException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchThreadFlagException
- if a matching message boards thread flag could not be found
SystemException
- if a system exception occurredMBThreadFlag fetchByUuid_C_First(String uuid, long companyId, OrderByComparator orderByComparator) throws SystemException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching message boards thread flag could not be found
SystemException
- if a system exception occurredMBThreadFlag findByUuid_C_Last(String uuid, long companyId, OrderByComparator orderByComparator) throws SystemException, NoSuchThreadFlagException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchThreadFlagException
- if a matching message boards thread flag could not be found
SystemException
- if a system exception occurredMBThreadFlag fetchByUuid_C_Last(String uuid, long companyId, OrderByComparator orderByComparator) throws SystemException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching message boards thread flag could not be found
SystemException
- if a system exception occurredMBThreadFlag[] findByUuid_C_PrevAndNext(long threadFlagId, String uuid, long companyId, OrderByComparator orderByComparator) throws SystemException, NoSuchThreadFlagException
threadFlagId
- the primary key of the current message boards thread flaguuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchThreadFlagException
- if a message boards thread flag with the primary key could not be found
SystemException
- if a system exception occurredvoid removeByUuid_C(String uuid, long companyId) throws SystemException
uuid
- the uuidcompanyId
- the company ID
SystemException
- if a system exception occurredint countByUuid_C(String uuid, long companyId) throws SystemException
uuid
- the uuidcompanyId
- the company ID
SystemException
- if a system exception occurredList<MBThreadFlag> findByUserId(long userId) throws SystemException
userId
- the user ID
SystemException
- if a system exception occurredList<MBThreadFlag> findByUserId(long userId, int start, int end) throws SystemException
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.
userId
- the user IDstart
- the lower bound of the range of message boards thread flagsend
- the upper bound of the range of message boards thread flags (not inclusive)
SystemException
- if a system exception occurredList<MBThreadFlag> findByUserId(long userId, int start, int end, OrderByComparator orderByComparator) throws SystemException
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.
userId
- the user IDstart
- the lower bound of the range of message boards thread flagsend
- the upper bound of the range of message boards thread flags (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredMBThreadFlag findByUserId_First(long userId, OrderByComparator orderByComparator) throws SystemException, NoSuchThreadFlagException
userId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchThreadFlagException
- if a matching message boards thread flag could not be found
SystemException
- if a system exception occurredMBThreadFlag fetchByUserId_First(long userId, OrderByComparator orderByComparator) throws SystemException
userId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching message boards thread flag could not be found
SystemException
- if a system exception occurredMBThreadFlag findByUserId_Last(long userId, OrderByComparator orderByComparator) throws SystemException, NoSuchThreadFlagException
userId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchThreadFlagException
- if a matching message boards thread flag could not be found
SystemException
- if a system exception occurredMBThreadFlag fetchByUserId_Last(long userId, OrderByComparator orderByComparator) throws SystemException
userId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching message boards thread flag could not be found
SystemException
- if a system exception occurredMBThreadFlag[] findByUserId_PrevAndNext(long threadFlagId, long userId, OrderByComparator orderByComparator) throws SystemException, NoSuchThreadFlagException
threadFlagId
- the primary key of the current message boards thread flaguserId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchThreadFlagException
- if a message boards thread flag with the primary key could not be found
SystemException
- if a system exception occurredvoid removeByUserId(long userId) throws SystemException
userId
- the user ID
SystemException
- if a system exception occurredint countByUserId(long userId) throws SystemException
userId
- the user ID
SystemException
- if a system exception occurredList<MBThreadFlag> findByThreadId(long threadId) throws SystemException
threadId
- the thread ID
SystemException
- if a system exception occurredList<MBThreadFlag> findByThreadId(long threadId, int start, int end) throws SystemException
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.
threadId
- the thread IDstart
- the lower bound of the range of message boards thread flagsend
- the upper bound of the range of message boards thread flags (not inclusive)
SystemException
- if a system exception occurredList<MBThreadFlag> findByThreadId(long threadId, int start, int end, OrderByComparator orderByComparator) throws SystemException
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.
threadId
- the thread IDstart
- the lower bound of the range of message boards thread flagsend
- the upper bound of the range of message boards thread flags (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredMBThreadFlag findByThreadId_First(long threadId, OrderByComparator orderByComparator) throws SystemException, NoSuchThreadFlagException
threadId
- the thread IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchThreadFlagException
- if a matching message boards thread flag could not be found
SystemException
- if a system exception occurredMBThreadFlag fetchByThreadId_First(long threadId, OrderByComparator orderByComparator) throws SystemException
threadId
- the thread IDorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching message boards thread flag could not be found
SystemException
- if a system exception occurredMBThreadFlag findByThreadId_Last(long threadId, OrderByComparator orderByComparator) throws SystemException, NoSuchThreadFlagException
threadId
- the thread IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchThreadFlagException
- if a matching message boards thread flag could not be found
SystemException
- if a system exception occurredMBThreadFlag fetchByThreadId_Last(long threadId, OrderByComparator orderByComparator) throws SystemException
threadId
- the thread IDorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching message boards thread flag could not be found
SystemException
- if a system exception occurredMBThreadFlag[] findByThreadId_PrevAndNext(long threadFlagId, long threadId, OrderByComparator orderByComparator) throws SystemException, NoSuchThreadFlagException
threadFlagId
- the primary key of the current message boards thread flagthreadId
- the thread IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchThreadFlagException
- if a message boards thread flag with the primary key could not be found
SystemException
- if a system exception occurredvoid removeByThreadId(long threadId) throws SystemException
threadId
- the thread ID
SystemException
- if a system exception occurredint countByThreadId(long threadId) throws SystemException
threadId
- the thread ID
SystemException
- if a system exception occurredMBThreadFlag findByU_T(long userId, long threadId) throws SystemException, NoSuchThreadFlagException
NoSuchThreadFlagException
if it could not be found.
userId
- the user IDthreadId
- the thread ID
NoSuchThreadFlagException
- if a matching message boards thread flag could not be found
SystemException
- if a system exception occurredMBThreadFlag fetchByU_T(long userId, long threadId) throws SystemException
null
if it could not be found. Uses the finder cache.
userId
- the user IDthreadId
- the thread ID
null
if a matching message boards thread flag could not be found
SystemException
- if a system exception occurredMBThreadFlag fetchByU_T(long userId, long threadId, boolean retrieveFromCache) throws SystemException
null
if it could not be found, optionally using the finder cache.
userId
- the user IDthreadId
- the thread IDretrieveFromCache
- whether to use the finder cache
null
if a matching message boards thread flag could not be found
SystemException
- if a system exception occurredMBThreadFlag removeByU_T(long userId, long threadId) throws SystemException, NoSuchThreadFlagException
userId
- the user IDthreadId
- the thread ID
SystemException
- if a system exception occurred
NoSuchThreadFlagException
int countByU_T(long userId, long threadId) throws SystemException
userId
- the user IDthreadId
- the thread ID
SystemException
- if a system exception occurredvoid cacheResult(MBThreadFlag mbThreadFlag)
mbThreadFlag
- the message boards thread flagvoid cacheResult(List<MBThreadFlag> mbThreadFlags)
mbThreadFlags
- the message boards thread flagsMBThreadFlag create(long threadFlagId)
threadFlagId
- the primary key for the new message boards thread flag
MBThreadFlag remove(long threadFlagId) throws SystemException, NoSuchThreadFlagException
threadFlagId
- the primary key of the message boards thread flag
NoSuchThreadFlagException
- if a message boards thread flag with the primary key could not be found
SystemException
- if a system exception occurredMBThreadFlag updateImpl(MBThreadFlag mbThreadFlag) throws SystemException
SystemException
MBThreadFlag findByPrimaryKey(long threadFlagId) throws SystemException, NoSuchThreadFlagException
NoSuchThreadFlagException
if it could not be found.
threadFlagId
- the primary key of the message boards thread flag
NoSuchThreadFlagException
- if a message boards thread flag with the primary key could not be found
SystemException
- if a system exception occurredMBThreadFlag fetchByPrimaryKey(long threadFlagId) throws SystemException
null
if it could not be found.
threadFlagId
- the primary key of the message boards thread flag
null
if a message boards thread flag with the primary key could not be found
SystemException
- if a system exception occurredList<MBThreadFlag> findAll() throws SystemException
SystemException
- if a system exception occurredList<MBThreadFlag> findAll(int start, int end) throws SystemException
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.
start
- the lower bound of the range of message boards thread flagsend
- the upper bound of the range of message boards thread flags (not inclusive)
SystemException
- if a system exception occurredList<MBThreadFlag> findAll(int start, int end, OrderByComparator orderByComparator) throws SystemException
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.
start
- the lower bound of the range of message boards thread flagsend
- the upper bound of the range of message boards thread flags (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredvoid removeAll() throws SystemException
SystemException
- if a system exception occurredint countAll() throws SystemException
SystemException
- if a system exception occurred
|
Liferay 6.2.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |