|
Liferay 6.0.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.portal.service.persistence.impl.BasePersistenceImpl<MBMessageFlag>
com.liferay.portlet.messageboards.service.persistence.MBMessageFlagPersistenceImpl
public class MBMessageFlagPersistenceImpl
The persistence for the message boards message flag service.
Never modify this class directly. Modify service.xml and rerun ServiceBuilder to regnerate this class.
Caching information and settings can be found in portal.properties
MBMessageFlagPersistence,
MBMessageFlagUtil| Fields inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl |
|---|
COUNT_COLUMN_NAME, listeners, ORDER_BY_ASC, ORDER_BY_ASC_HAS_NEXT, ORDER_BY_CLAUSE, ORDER_BY_DESC, ORDER_BY_DESC_HAS_NEXT, WHERE_AND, WHERE_GREATER_THAN, WHERE_GREATER_THAN_HAS_NEXT, WHERE_LESSER_THAN, WHERE_LESSER_THAN_HAS_NEXT, WHERE_OR |
| Constructor Summary | |
|---|---|
MBMessageFlagPersistenceImpl()
|
|
| Method Summary | |
|---|---|
void |
afterPropertiesSet()
Initializes the message boards message flag persistence. |
void |
cacheResult(List<MBMessageFlag> mbMessageFlags)
Caches the message boards message flags in the entity cache if it is enabled. |
void |
cacheResult(MBMessageFlag mbMessageFlag)
Caches the message boards message flag in the entity cache if it is enabled. |
void |
clearCache()
Clears the cache for all message boards message flags. |
void |
clearCache(MBMessageFlag mbMessageFlag)
Clears the cache for the message boards message flag. |
int |
countAll()
Counts all the message boards message flags. |
int |
countByM_F(long messageId,
int flag)
Counts all the message boards message flags where messageId = ? and flag = ?. |
int |
countByMessageId(long messageId)
Counts all the message boards message flags where messageId = ?. |
int |
countByT_F(long threadId,
int flag)
Counts all the message boards message flags where threadId = ? and flag = ?. |
int |
countByThreadId(long threadId)
Counts all the message boards message flags where threadId = ?. |
int |
countByU_M_F(long userId,
long messageId,
int flag)
Counts all the message boards message flags where userId = ? and messageId = ? and flag = ?. |
int |
countByU_T_F(long userId,
long threadId,
int flag)
Counts all the message boards message flags where userId = ? and threadId = ? and flag = ?. |
int |
countByUserId(long userId)
Counts all the message boards message flags where userId = ?. |
MBMessageFlag |
create(long messageFlagId)
Creates a new message boards message flag with the primary key. |
MBMessageFlag |
fetchByPrimaryKey(long messageFlagId)
Finds the message boards message flag with the primary key or returns null if it could not be found. |
MBMessageFlag |
fetchByPrimaryKey(Serializable primaryKey)
Finds the message boards message flag with the primary key or returns null if it could not be found. |
MBMessageFlag |
fetchByU_M_F(long userId,
long messageId,
int flag)
Finds the message boards message flag where userId = ? and messageId = ? and flag = ? or returns null if it could not be found. |
MBMessageFlag |
fetchByU_M_F(long userId,
long messageId,
int flag,
boolean retrieveFromCache)
Finds the message boards message flag where userId = ? and messageId = ? and flag = ? or returns null if it could not be found, optionally using the finder cache. |
List<MBMessageFlag> |
findAll()
Finds all the message boards message flags. |
List<MBMessageFlag> |
findAll(int start,
int end)
Finds a range of all the message boards message flags. |
List<MBMessageFlag> |
findAll(int start,
int end,
OrderByComparator orderByComparator)
Finds an ordered range of all the message boards message flags. |
MBMessageFlag |
findByM_F_First(long messageId,
int flag,
OrderByComparator orderByComparator)
Finds the first message boards message flag in the ordered set where messageId = ? and flag = ?. |
MBMessageFlag |
findByM_F_Last(long messageId,
int flag,
OrderByComparator orderByComparator)
Finds the last message boards message flag in the ordered set where messageId = ? and flag = ?. |
MBMessageFlag[] |
findByM_F_PrevAndNext(long messageFlagId,
long messageId,
int flag,
OrderByComparator orderByComparator)
Finds the message boards message flags before and after the current message boards message flag in the ordered set where messageId = ? and flag = ?. |
List<MBMessageFlag> |
findByM_F(long messageId,
int flag)
Finds all the message boards message flags where messageId = ? and flag = ?. |
List<MBMessageFlag> |
findByM_F(long messageId,
int flag,
int start,
int end)
Finds a range of all the message boards message flags where messageId = ? and flag = ?. |
List<MBMessageFlag> |
findByM_F(long messageId,
int flag,
int start,
int end,
OrderByComparator orderByComparator)
Finds an ordered range of all the message boards message flags where messageId = ? and flag = ?. |
MBMessageFlag |
findByMessageId_First(long messageId,
OrderByComparator orderByComparator)
Finds the first message boards message flag in the ordered set where messageId = ?. |
MBMessageFlag |
findByMessageId_Last(long messageId,
OrderByComparator orderByComparator)
Finds the last message boards message flag in the ordered set where messageId = ?. |
MBMessageFlag[] |
findByMessageId_PrevAndNext(long messageFlagId,
long messageId,
OrderByComparator orderByComparator)
Finds the message boards message flags before and after the current message boards message flag in the ordered set where messageId = ?. |
List<MBMessageFlag> |
findByMessageId(long messageId)
Finds all the message boards message flags where messageId = ?. |
List<MBMessageFlag> |
findByMessageId(long messageId,
int start,
int end)
Finds a range of all the message boards message flags where messageId = ?. |
List<MBMessageFlag> |
findByMessageId(long messageId,
int start,
int end,
OrderByComparator orderByComparator)
Finds an ordered range of all the message boards message flags where messageId = ?. |
MBMessageFlag |
findByPrimaryKey(long messageFlagId)
Finds the message boards message flag with the primary key or throws a NoSuchMessageFlagException if it could not be found. |
MBMessageFlag |
findByPrimaryKey(Serializable primaryKey)
Finds the message boards message flag with the primary key or throws a NoSuchModelException if it could not be found. |
MBMessageFlag |
findByT_F_First(long threadId,
int flag,
OrderByComparator orderByComparator)
Finds the first message boards message flag in the ordered set where threadId = ? and flag = ?. |
MBMessageFlag |
findByT_F_Last(long threadId,
int flag,
OrderByComparator orderByComparator)
Finds the last message boards message flag in the ordered set where threadId = ? and flag = ?. |
MBMessageFlag[] |
findByT_F_PrevAndNext(long messageFlagId,
long threadId,
int flag,
OrderByComparator orderByComparator)
Finds the message boards message flags before and after the current message boards message flag in the ordered set where threadId = ? and flag = ?. |
List<MBMessageFlag> |
findByT_F(long threadId,
int flag)
Finds all the message boards message flags where threadId = ? and flag = ?. |
List<MBMessageFlag> |
findByT_F(long threadId,
int flag,
int start,
int end)
Finds a range of all the message boards message flags where threadId = ? and flag = ?. |
List<MBMessageFlag> |
findByT_F(long threadId,
int flag,
int start,
int end,
OrderByComparator orderByComparator)
Finds an ordered range of all the message boards message flags where threadId = ? and flag = ?. |
MBMessageFlag |
findByThreadId_First(long threadId,
OrderByComparator orderByComparator)
Finds the first message boards message flag in the ordered set where threadId = ?. |
MBMessageFlag |
findByThreadId_Last(long threadId,
OrderByComparator orderByComparator)
Finds the last message boards message flag in the ordered set where threadId = ?. |
MBMessageFlag[] |
findByThreadId_PrevAndNext(long messageFlagId,
long threadId,
OrderByComparator orderByComparator)
Finds the message boards message flags before and after the current message boards message flag in the ordered set where threadId = ?. |
List<MBMessageFlag> |
findByThreadId(long threadId)
Finds all the message boards message flags where threadId = ?. |
List<MBMessageFlag> |
findByThreadId(long threadId,
int start,
int end)
Finds a range of all the message boards message flags where threadId = ?. |
List<MBMessageFlag> |
findByThreadId(long threadId,
int start,
int end,
OrderByComparator orderByComparator)
Finds an ordered range of all the message boards message flags where threadId = ?. |
MBMessageFlag |
findByU_M_F(long userId,
long messageId,
int flag)
Finds the message boards message flag where userId = ? and messageId = ? and flag = ? or throws a NoSuchMessageFlagException if it could not be found. |
MBMessageFlag |
findByU_T_F_First(long userId,
long threadId,
int flag,
OrderByComparator orderByComparator)
Finds the first message boards message flag in the ordered set where userId = ? and threadId = ? and flag = ?. |
MBMessageFlag |
findByU_T_F_Last(long userId,
long threadId,
int flag,
OrderByComparator orderByComparator)
Finds the last message boards message flag in the ordered set where userId = ? and threadId = ? and flag = ?. |
MBMessageFlag[] |
findByU_T_F_PrevAndNext(long messageFlagId,
long userId,
long threadId,
int flag,
OrderByComparator orderByComparator)
Finds the message boards message flags before and after the current message boards message flag in the ordered set where userId = ? and threadId = ? and flag = ?. |
List<MBMessageFlag> |
findByU_T_F(long userId,
long threadId,
int flag)
Finds all the message boards message flags where userId = ? and threadId = ? and flag = ?. |
List<MBMessageFlag> |
findByU_T_F(long userId,
long threadId,
int flag,
int start,
int end)
Finds a range of all the message boards message flags where userId = ? and threadId = ? and flag = ?. |
List<MBMessageFlag> |
findByU_T_F(long userId,
long threadId,
int flag,
int start,
int end,
OrderByComparator orderByComparator)
Finds an ordered range of all the message boards message flags where userId = ? and threadId = ? and flag = ?. |
MBMessageFlag |
findByUserId_First(long userId,
OrderByComparator orderByComparator)
Finds the first message boards message flag in the ordered set where userId = ?. |
MBMessageFlag |
findByUserId_Last(long userId,
OrderByComparator orderByComparator)
Finds the last message boards message flag in the ordered set where userId = ?. |
MBMessageFlag[] |
findByUserId_PrevAndNext(long messageFlagId,
long userId,
OrderByComparator orderByComparator)
Finds the message boards message flags before and after the current message boards message flag in the ordered set where userId = ?. |
List<MBMessageFlag> |
findByUserId(long userId)
Finds all the message boards message flags where userId = ?. |
List<MBMessageFlag> |
findByUserId(long userId,
int start,
int end)
Finds a range of all the message boards message flags where userId = ?. |
List<MBMessageFlag> |
findByUserId(long userId,
int start,
int end,
OrderByComparator orderByComparator)
Finds an ordered range of all the message boards message flags where userId = ?. |
protected MBMessageFlag |
getByM_F_PrevAndNext(Session session,
MBMessageFlag mbMessageFlag,
long messageId,
int flag,
OrderByComparator orderByComparator,
boolean previous)
|
protected MBMessageFlag |
getByMessageId_PrevAndNext(Session session,
MBMessageFlag mbMessageFlag,
long messageId,
OrderByComparator orderByComparator,
boolean previous)
|
protected MBMessageFlag |
getByT_F_PrevAndNext(Session session,
MBMessageFlag mbMessageFlag,
long threadId,
int flag,
OrderByComparator orderByComparator,
boolean previous)
|
protected MBMessageFlag |
getByThreadId_PrevAndNext(Session session,
MBMessageFlag mbMessageFlag,
long threadId,
OrderByComparator orderByComparator,
boolean previous)
|
protected MBMessageFlag |
getByU_T_F_PrevAndNext(Session session,
MBMessageFlag mbMessageFlag,
long userId,
long threadId,
int flag,
OrderByComparator orderByComparator,
boolean previous)
|
protected MBMessageFlag |
getByUserId_PrevAndNext(Session session,
MBMessageFlag mbMessageFlag,
long userId,
OrderByComparator orderByComparator,
boolean previous)
|
MBMessageFlag |
remove(long messageFlagId)
Removes the message boards message flag with the primary key from the database. |
MBMessageFlag |
remove(Serializable primaryKey)
Removes the message boards message flag with the primary key from the database. |
void |
removeAll()
Removes all the message boards message flags from the database. |
void |
removeByM_F(long messageId,
int flag)
Removes all the message boards message flags where messageId = ? and flag = ? from the database. |
void |
removeByMessageId(long messageId)
Removes all the message boards message flags where messageId = ? from the database. |
void |
removeByT_F(long threadId,
int flag)
Removes all the message boards message flags where threadId = ? and flag = ? from the database. |
void |
removeByThreadId(long threadId)
Removes all the message boards message flags where threadId = ? from the database. |
void |
removeByU_M_F(long userId,
long messageId,
int flag)
Removes the message boards message flag where userId = ? and messageId = ? and flag = ? from the database. |
void |
removeByU_T_F(long userId,
long threadId,
int flag)
Removes all the message boards message flags where userId = ? and threadId = ? and flag = ? from the database. |
void |
removeByUserId(long userId)
Removes all the message boards message flags where userId = ? from the database. |
protected MBMessageFlag |
removeImpl(MBMessageFlag mbMessageFlag)
Removes the model instance from the database. |
protected MBMessageFlag |
toUnwrappedModel(MBMessageFlag mbMessageFlag)
|
MBMessageFlag |
updateImpl(MBMessageFlag mbMessageFlag,
boolean merge)
Updates the model instance in the database or adds it if it does not yet exist. |
| Methods inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl |
|---|
appendOrderByComparator, closeSession, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getDialect, getListeners, openNewSession, openSession, processException, registerListener, remove, setDataSource, setSessionFactory, unregisterListener, update, update |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence |
|---|
countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getListeners, registerListener, remove, setDataSource, unregisterListener, update, update |
| Field Detail |
|---|
public static final String FINDER_CLASS_NAME_ENTITY
public static final String FINDER_CLASS_NAME_LIST
public static final FinderPath FINDER_PATH_FIND_BY_USERID
public static final FinderPath FINDER_PATH_COUNT_BY_USERID
public static final FinderPath FINDER_PATH_FIND_BY_THREADID
public static final FinderPath FINDER_PATH_COUNT_BY_THREADID
public static final FinderPath FINDER_PATH_FIND_BY_MESSAGEID
public static final FinderPath FINDER_PATH_COUNT_BY_MESSAGEID
public static final FinderPath FINDER_PATH_FIND_BY_T_F
public static final FinderPath FINDER_PATH_COUNT_BY_T_F
public static final FinderPath FINDER_PATH_FIND_BY_M_F
public static final FinderPath FINDER_PATH_COUNT_BY_M_F
public static final FinderPath FINDER_PATH_FIND_BY_U_T_F
public static final FinderPath FINDER_PATH_COUNT_BY_U_T_F
public static final FinderPath FINDER_PATH_FETCH_BY_U_M_F
public static final FinderPath FINDER_PATH_COUNT_BY_U_M_F
public static final FinderPath FINDER_PATH_FIND_ALL
public static final FinderPath FINDER_PATH_COUNT_ALL
@BeanReference(type=MBBanPersistence.class) protected MBBanPersistence mbBanPersistence
@BeanReference(type=MBCategoryPersistence.class) protected MBCategoryPersistence mbCategoryPersistence
@BeanReference(type=MBDiscussionPersistence.class) protected MBDiscussionPersistence mbDiscussionPersistence
@BeanReference(type=MBMailingListPersistence.class) protected MBMailingListPersistence mbMailingListPersistence
@BeanReference(type=MBMessagePersistence.class) protected MBMessagePersistence mbMessagePersistence
@BeanReference(type=MBMessageFlagPersistence.class) protected MBMessageFlagPersistence mbMessageFlagPersistence
@BeanReference(type=MBStatsUserPersistence.class) protected MBStatsUserPersistence mbStatsUserPersistence
@BeanReference(type=MBThreadPersistence.class) protected MBThreadPersistence mbThreadPersistence
@BeanReference(type=ResourcePersistence.class) protected ResourcePersistence resourcePersistence
@BeanReference(type=UserPersistence.class) protected UserPersistence userPersistence
| Constructor Detail |
|---|
public MBMessageFlagPersistenceImpl()
| Method Detail |
|---|
public void cacheResult(MBMessageFlag mbMessageFlag)
cacheResult in interface MBMessageFlagPersistencembMessageFlag - the message boards message flag to cachepublic void cacheResult(List<MBMessageFlag> mbMessageFlags)
cacheResult in interface MBMessageFlagPersistencembMessageFlags - the message boards message flags to cachepublic void clearCache()
The EntityCache and FinderCache are both cleared by this method.
clearCache in interface BasePersistence<MBMessageFlag>clearCache in class BasePersistenceImpl<MBMessageFlag>public void clearCache(MBMessageFlag mbMessageFlag)
The EntityCache and FinderCache are both cleared by this method.
clearCache in interface BasePersistence<MBMessageFlag>clearCache in class BasePersistenceImpl<MBMessageFlag>mbMessageFlag - the instance of this model to clear the cache forpublic MBMessageFlag create(long messageFlagId)
create in interface MBMessageFlagPersistencemessageFlagId - the primary key for the new message boards message flag
public MBMessageFlag remove(Serializable primaryKey)
throws NoSuchModelException,
SystemException
remove in interface BasePersistence<MBMessageFlag>remove in class BasePersistenceImpl<MBMessageFlag>primaryKey - the primary key of the message boards message flag to remove
NoSuchModelException - if a message boards message flag with the primary key could not be found
SystemException - if a system exception occurred
public MBMessageFlag remove(long messageFlagId)
throws NoSuchMessageFlagException,
SystemException
remove in interface MBMessageFlagPersistencemessageFlagId - the primary key of the message boards message flag to remove
NoSuchMessageFlagException - if a message boards message flag with the primary key could not be found
SystemException - if a system exception occurred
protected MBMessageFlag removeImpl(MBMessageFlag mbMessageFlag)
throws SystemException
BasePersistenceImplBasePersistenceImpl.update(BaseModel,
boolean) depends on this method to implement the remove operation; it
only notifies the model listeners.
removeImpl in class BasePersistenceImpl<MBMessageFlag>mbMessageFlag - the model instance to remove
SystemException - if a system exception occurred
public MBMessageFlag updateImpl(MBMessageFlag mbMessageFlag,
boolean merge)
throws SystemException
BasePersistenceImplBasePersistenceImpl.remove(BaseModel) depends on this method to implement the
update operation; it only notifies the model listeners.
updateImpl in interface MBMessageFlagPersistenceupdateImpl in class BasePersistenceImpl<MBMessageFlag>mbMessageFlag - the model instance to updatemerge - whether to merge the model instance with the current
session. See BatchSession.update(
com.liferay.portal.kernel.dao.orm.Session, BaseModel, boolean)
for an explanation.
SystemException - if a system exception occurredprotected MBMessageFlag toUnwrappedModel(MBMessageFlag mbMessageFlag)
public MBMessageFlag findByPrimaryKey(Serializable primaryKey)
throws NoSuchModelException,
SystemException
NoSuchModelException if it could not be found.
findByPrimaryKey in interface BasePersistence<MBMessageFlag>findByPrimaryKey in class BasePersistenceImpl<MBMessageFlag>primaryKey - the primary key of the message boards message flag to find
NoSuchModelException - if a message boards message flag with the primary key could not be found
SystemException - if a system exception occurred
public MBMessageFlag findByPrimaryKey(long messageFlagId)
throws NoSuchMessageFlagException,
SystemException
NoSuchMessageFlagException if it could not be found.
findByPrimaryKey in interface MBMessageFlagPersistencemessageFlagId - the primary key of the message boards message flag to find
NoSuchMessageFlagException - if a message boards message flag with the primary key could not be found
SystemException - if a system exception occurred
public MBMessageFlag fetchByPrimaryKey(Serializable primaryKey)
throws SystemException
null if it could not be found.
fetchByPrimaryKey in interface BasePersistence<MBMessageFlag>fetchByPrimaryKey in class BasePersistenceImpl<MBMessageFlag>primaryKey - the primary key of the message boards message flag to find
null if a message boards message flag with the primary key could not be found
SystemException - if a system exception occurred
public MBMessageFlag fetchByPrimaryKey(long messageFlagId)
throws SystemException
null if it could not be found.
fetchByPrimaryKey in interface MBMessageFlagPersistencemessageFlagId - the primary key of the message boards message flag to find
null if a message boards message flag with the primary key could not be found
SystemException - if a system exception occurred
public List<MBMessageFlag> findByUserId(long userId)
throws SystemException
findByUserId in interface MBMessageFlagPersistenceuserId - the user id to search with
SystemException - if a system exception occurred
public List<MBMessageFlag> 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.
findByUserId in interface MBMessageFlagPersistenceuserId - the user id to search withstart - the lower bound of the range of message boards message flags to returnend - the upper bound of the range of message boards message flags to return (not inclusive)
SystemException - if a system exception occurred
public List<MBMessageFlag> 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.
findByUserId in interface MBMessageFlagPersistenceuserId - the user id to search withstart - the lower bound of the range of message boards message flags to returnend - the upper bound of the range of message boards message flags to return (not inclusive)orderByComparator - the comparator to order the results by
SystemException - if a system exception occurred
public MBMessageFlag findByUserId_First(long userId,
OrderByComparator orderByComparator)
throws NoSuchMessageFlagException,
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.
findByUserId_First in interface MBMessageFlagPersistenceuserId - the user id to search withorderByComparator - the comparator to order the set by
NoSuchMessageFlagException - if a matching message boards message flag could not be found
SystemException - if a system exception occurred
public MBMessageFlag findByUserId_Last(long userId,
OrderByComparator orderByComparator)
throws NoSuchMessageFlagException,
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.
findByUserId_Last in interface MBMessageFlagPersistenceuserId - the user id to search withorderByComparator - the comparator to order the set by
NoSuchMessageFlagException - if a matching message boards message flag could not be found
SystemException - if a system exception occurred
public MBMessageFlag[] findByUserId_PrevAndNext(long messageFlagId,
long userId,
OrderByComparator orderByComparator)
throws NoSuchMessageFlagException,
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.
findByUserId_PrevAndNext in interface MBMessageFlagPersistencemessageFlagId - the primary key of the current message boards message flaguserId - the user id to search withorderByComparator - the comparator to order the set by
NoSuchMessageFlagException - if a message boards message flag with the primary key could not be found
SystemException - if a system exception occurred
protected MBMessageFlag getByUserId_PrevAndNext(Session session,
MBMessageFlag mbMessageFlag,
long userId,
OrderByComparator orderByComparator,
boolean previous)
public List<MBMessageFlag> findByThreadId(long threadId)
throws SystemException
findByThreadId in interface MBMessageFlagPersistencethreadId - the thread id to search with
SystemException - if a system exception occurred
public List<MBMessageFlag> 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.
findByThreadId in interface MBMessageFlagPersistencethreadId - the thread id to search withstart - the lower bound of the range of message boards message flags to returnend - the upper bound of the range of message boards message flags to return (not inclusive)
SystemException - if a system exception occurred
public List<MBMessageFlag> 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.
findByThreadId in interface MBMessageFlagPersistencethreadId - the thread id to search withstart - the lower bound of the range of message boards message flags to returnend - the upper bound of the range of message boards message flags to return (not inclusive)orderByComparator - the comparator to order the results by
SystemException - if a system exception occurred
public MBMessageFlag findByThreadId_First(long threadId,
OrderByComparator orderByComparator)
throws NoSuchMessageFlagException,
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.
findByThreadId_First in interface MBMessageFlagPersistencethreadId - the thread id to search withorderByComparator - the comparator to order the set by
NoSuchMessageFlagException - if a matching message boards message flag could not be found
SystemException - if a system exception occurred
public MBMessageFlag findByThreadId_Last(long threadId,
OrderByComparator orderByComparator)
throws NoSuchMessageFlagException,
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.
findByThreadId_Last in interface MBMessageFlagPersistencethreadId - the thread id to search withorderByComparator - the comparator to order the set by
NoSuchMessageFlagException - if a matching message boards message flag could not be found
SystemException - if a system exception occurred
public MBMessageFlag[] findByThreadId_PrevAndNext(long messageFlagId,
long threadId,
OrderByComparator orderByComparator)
throws NoSuchMessageFlagException,
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.
findByThreadId_PrevAndNext in interface MBMessageFlagPersistencemessageFlagId - the primary key of the current message boards message flagthreadId - the thread id to search withorderByComparator - the comparator to order the set by
NoSuchMessageFlagException - if a message boards message flag with the primary key could not be found
SystemException - if a system exception occurred
protected MBMessageFlag getByThreadId_PrevAndNext(Session session,
MBMessageFlag mbMessageFlag,
long threadId,
OrderByComparator orderByComparator,
boolean previous)
public List<MBMessageFlag> findByMessageId(long messageId)
throws SystemException
findByMessageId in interface MBMessageFlagPersistencemessageId - the message id to search with
SystemException - if a system exception occurred
public List<MBMessageFlag> findByMessageId(long messageId,
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.
findByMessageId in interface MBMessageFlagPersistencemessageId - the message id to search withstart - the lower bound of the range of message boards message flags to returnend - the upper bound of the range of message boards message flags to return (not inclusive)
SystemException - if a system exception occurred
public List<MBMessageFlag> findByMessageId(long messageId,
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.
findByMessageId in interface MBMessageFlagPersistencemessageId - the message id to search withstart - the lower bound of the range of message boards message flags to returnend - the upper bound of the range of message boards message flags to return (not inclusive)orderByComparator - the comparator to order the results by
SystemException - if a system exception occurred
public MBMessageFlag findByMessageId_First(long messageId,
OrderByComparator orderByComparator)
throws NoSuchMessageFlagException,
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.
findByMessageId_First in interface MBMessageFlagPersistencemessageId - the message id to search withorderByComparator - the comparator to order the set by
NoSuchMessageFlagException - if a matching message boards message flag could not be found
SystemException - if a system exception occurred
public MBMessageFlag findByMessageId_Last(long messageId,
OrderByComparator orderByComparator)
throws NoSuchMessageFlagException,
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.
findByMessageId_Last in interface MBMessageFlagPersistencemessageId - the message id to search withorderByComparator - the comparator to order the set by
NoSuchMessageFlagException - if a matching message boards message flag could not be found
SystemException - if a system exception occurred
public MBMessageFlag[] findByMessageId_PrevAndNext(long messageFlagId,
long messageId,
OrderByComparator orderByComparator)
throws NoSuchMessageFlagException,
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.
findByMessageId_PrevAndNext in interface MBMessageFlagPersistencemessageFlagId - the primary key of the current message boards message flagmessageId - the message id to search withorderByComparator - the comparator to order the set by
NoSuchMessageFlagException - if a message boards message flag with the primary key could not be found
SystemException - if a system exception occurred
protected MBMessageFlag getByMessageId_PrevAndNext(Session session,
MBMessageFlag mbMessageFlag,
long messageId,
OrderByComparator orderByComparator,
boolean previous)
public List<MBMessageFlag> findByT_F(long threadId,
int flag)
throws SystemException
findByT_F in interface MBMessageFlagPersistencethreadId - the thread id to search withflag - the flag to search with
SystemException - if a system exception occurred
public List<MBMessageFlag> findByT_F(long threadId,
int flag,
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.
findByT_F in interface MBMessageFlagPersistencethreadId - the thread id to search withflag - the flag to search withstart - the lower bound of the range of message boards message flags to returnend - the upper bound of the range of message boards message flags to return (not inclusive)
SystemException - if a system exception occurred
public List<MBMessageFlag> findByT_F(long threadId,
int flag,
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.
findByT_F in interface MBMessageFlagPersistencethreadId - the thread id to search withflag - the flag to search withstart - the lower bound of the range of message boards message flags to returnend - the upper bound of the range of message boards message flags to return (not inclusive)orderByComparator - the comparator to order the results by
SystemException - if a system exception occurred
public MBMessageFlag findByT_F_First(long threadId,
int flag,
OrderByComparator orderByComparator)
throws NoSuchMessageFlagException,
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.
findByT_F_First in interface MBMessageFlagPersistencethreadId - the thread id to search withflag - the flag to search withorderByComparator - the comparator to order the set by
NoSuchMessageFlagException - if a matching message boards message flag could not be found
SystemException - if a system exception occurred
public MBMessageFlag findByT_F_Last(long threadId,
int flag,
OrderByComparator orderByComparator)
throws NoSuchMessageFlagException,
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.
findByT_F_Last in interface MBMessageFlagPersistencethreadId - the thread id to search withflag - the flag to search withorderByComparator - the comparator to order the set by
NoSuchMessageFlagException - if a matching message boards message flag could not be found
SystemException - if a system exception occurred
public MBMessageFlag[] findByT_F_PrevAndNext(long messageFlagId,
long threadId,
int flag,
OrderByComparator orderByComparator)
throws NoSuchMessageFlagException,
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.
findByT_F_PrevAndNext in interface MBMessageFlagPersistencemessageFlagId - the primary key of the current message boards message flagthreadId - the thread id to search withflag - the flag to search withorderByComparator - the comparator to order the set by
NoSuchMessageFlagException - if a message boards message flag with the primary key could not be found
SystemException - if a system exception occurred
protected MBMessageFlag getByT_F_PrevAndNext(Session session,
MBMessageFlag mbMessageFlag,
long threadId,
int flag,
OrderByComparator orderByComparator,
boolean previous)
public List<MBMessageFlag> findByM_F(long messageId,
int flag)
throws SystemException
findByM_F in interface MBMessageFlagPersistencemessageId - the message id to search withflag - the flag to search with
SystemException - if a system exception occurred
public List<MBMessageFlag> findByM_F(long messageId,
int flag,
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.
findByM_F in interface MBMessageFlagPersistencemessageId - the message id to search withflag - the flag to search withstart - the lower bound of the range of message boards message flags to returnend - the upper bound of the range of message boards message flags to return (not inclusive)
SystemException - if a system exception occurred
public List<MBMessageFlag> findByM_F(long messageId,
int flag,
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.
findByM_F in interface MBMessageFlagPersistencemessageId - the message id to search withflag - the flag to search withstart - the lower bound of the range of message boards message flags to returnend - the upper bound of the range of message boards message flags to return (not inclusive)orderByComparator - the comparator to order the results by
SystemException - if a system exception occurred
public MBMessageFlag findByM_F_First(long messageId,
int flag,
OrderByComparator orderByComparator)
throws NoSuchMessageFlagException,
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.
findByM_F_First in interface MBMessageFlagPersistencemessageId - the message id to search withflag - the flag to search withorderByComparator - the comparator to order the set by
NoSuchMessageFlagException - if a matching message boards message flag could not be found
SystemException - if a system exception occurred
public MBMessageFlag findByM_F_Last(long messageId,
int flag,
OrderByComparator orderByComparator)
throws NoSuchMessageFlagException,
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.
findByM_F_Last in interface MBMessageFlagPersistencemessageId - the message id to search withflag - the flag to search withorderByComparator - the comparator to order the set by
NoSuchMessageFlagException - if a matching message boards message flag could not be found
SystemException - if a system exception occurred
public MBMessageFlag[] findByM_F_PrevAndNext(long messageFlagId,
long messageId,
int flag,
OrderByComparator orderByComparator)
throws NoSuchMessageFlagException,
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.
findByM_F_PrevAndNext in interface MBMessageFlagPersistencemessageFlagId - the primary key of the current message boards message flagmessageId - the message id to search withflag - the flag to search withorderByComparator - the comparator to order the set by
NoSuchMessageFlagException - if a message boards message flag with the primary key could not be found
SystemException - if a system exception occurred
protected MBMessageFlag getByM_F_PrevAndNext(Session session,
MBMessageFlag mbMessageFlag,
long messageId,
int flag,
OrderByComparator orderByComparator,
boolean previous)
public List<MBMessageFlag> findByU_T_F(long userId,
long threadId,
int flag)
throws SystemException
findByU_T_F in interface MBMessageFlagPersistenceuserId - the user id to search withthreadId - the thread id to search withflag - the flag to search with
SystemException - if a system exception occurred
public List<MBMessageFlag> findByU_T_F(long userId,
long threadId,
int flag,
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.
findByU_T_F in interface MBMessageFlagPersistenceuserId - the user id to search withthreadId - the thread id to search withflag - the flag to search withstart - the lower bound of the range of message boards message flags to returnend - the upper bound of the range of message boards message flags to return (not inclusive)
SystemException - if a system exception occurred
public List<MBMessageFlag> findByU_T_F(long userId,
long threadId,
int flag,
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.
findByU_T_F in interface MBMessageFlagPersistenceuserId - the user id to search withthreadId - the thread id to search withflag - the flag to search withstart - the lower bound of the range of message boards message flags to returnend - the upper bound of the range of message boards message flags to return (not inclusive)orderByComparator - the comparator to order the results by
SystemException - if a system exception occurred
public MBMessageFlag findByU_T_F_First(long userId,
long threadId,
int flag,
OrderByComparator orderByComparator)
throws NoSuchMessageFlagException,
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.
findByU_T_F_First in interface MBMessageFlagPersistenceuserId - the user id to search withthreadId - the thread id to search withflag - the flag to search withorderByComparator - the comparator to order the set by
NoSuchMessageFlagException - if a matching message boards message flag could not be found
SystemException - if a system exception occurred
public MBMessageFlag findByU_T_F_Last(long userId,
long threadId,
int flag,
OrderByComparator orderByComparator)
throws NoSuchMessageFlagException,
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.
findByU_T_F_Last in interface MBMessageFlagPersistenceuserId - the user id to search withthreadId - the thread id to search withflag - the flag to search withorderByComparator - the comparator to order the set by
NoSuchMessageFlagException - if a matching message boards message flag could not be found
SystemException - if a system exception occurred
public MBMessageFlag[] findByU_T_F_PrevAndNext(long messageFlagId,
long userId,
long threadId,
int flag,
OrderByComparator orderByComparator)
throws NoSuchMessageFlagException,
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.
findByU_T_F_PrevAndNext in interface MBMessageFlagPersistencemessageFlagId - the primary key of the current message boards message flaguserId - the user id to search withthreadId - the thread id to search withflag - the flag to search withorderByComparator - the comparator to order the set by
NoSuchMessageFlagException - if a message boards message flag with the primary key could not be found
SystemException - if a system exception occurred
protected MBMessageFlag getByU_T_F_PrevAndNext(Session session,
MBMessageFlag mbMessageFlag,
long userId,
long threadId,
int flag,
OrderByComparator orderByComparator,
boolean previous)
public MBMessageFlag findByU_M_F(long userId,
long messageId,
int flag)
throws NoSuchMessageFlagException,
SystemException
NoSuchMessageFlagException if it could not be found.
findByU_M_F in interface MBMessageFlagPersistenceuserId - the user id to search withmessageId - the message id to search withflag - the flag to search with
NoSuchMessageFlagException - if a matching message boards message flag could not be found
SystemException - if a system exception occurred
public MBMessageFlag fetchByU_M_F(long userId,
long messageId,
int flag)
throws SystemException
null if it could not be found. Uses the finder cache.
fetchByU_M_F in interface MBMessageFlagPersistenceuserId - the user id to search withmessageId - the message id to search withflag - the flag to search with
null if a matching message boards message flag could not be found
SystemException - if a system exception occurred
public MBMessageFlag fetchByU_M_F(long userId,
long messageId,
int flag,
boolean retrieveFromCache)
throws SystemException
null if it could not be found, optionally using the finder cache.
fetchByU_M_F in interface MBMessageFlagPersistenceuserId - the user id to search withmessageId - the message id to search withflag - the flag to search with
null if a matching message boards message flag could not be found
SystemException - if a system exception occurred
public List<MBMessageFlag> findAll()
throws SystemException
findAll in interface MBMessageFlagPersistenceSystemException - if a system exception occurred
public List<MBMessageFlag> 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.
findAll in interface MBMessageFlagPersistencestart - the lower bound of the range of message boards message flags to returnend - the upper bound of the range of message boards message flags to return (not inclusive)
SystemException - if a system exception occurred
public List<MBMessageFlag> 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.
findAll in interface MBMessageFlagPersistencestart - the lower bound of the range of message boards message flags to returnend - the upper bound of the range of message boards message flags to return (not inclusive)orderByComparator - the comparator to order the results by
SystemException - if a system exception occurred
public void removeByUserId(long userId)
throws SystemException
removeByUserId in interface MBMessageFlagPersistenceuserId - the user id to search with
SystemException - if a system exception occurred
public void removeByThreadId(long threadId)
throws SystemException
removeByThreadId in interface MBMessageFlagPersistencethreadId - the thread id to search with
SystemException - if a system exception occurred
public void removeByMessageId(long messageId)
throws SystemException
removeByMessageId in interface MBMessageFlagPersistencemessageId - the message id to search with
SystemException - if a system exception occurred
public void removeByT_F(long threadId,
int flag)
throws SystemException
removeByT_F in interface MBMessageFlagPersistencethreadId - the thread id to search withflag - the flag to search with
SystemException - if a system exception occurred
public void removeByM_F(long messageId,
int flag)
throws SystemException
removeByM_F in interface MBMessageFlagPersistencemessageId - the message id to search withflag - the flag to search with
SystemException - if a system exception occurred
public void removeByU_T_F(long userId,
long threadId,
int flag)
throws SystemException
removeByU_T_F in interface MBMessageFlagPersistenceuserId - the user id to search withthreadId - the thread id to search withflag - the flag to search with
SystemException - if a system exception occurred
public void removeByU_M_F(long userId,
long messageId,
int flag)
throws NoSuchMessageFlagException,
SystemException
removeByU_M_F in interface MBMessageFlagPersistenceuserId - the user id to search withmessageId - the message id to search withflag - the flag to search with
SystemException - if a system exception occurred
NoSuchMessageFlagException
public void removeAll()
throws SystemException
removeAll in interface MBMessageFlagPersistenceSystemException - if a system exception occurred
public int countByUserId(long userId)
throws SystemException
countByUserId in interface MBMessageFlagPersistenceuserId - the user id to search with
SystemException - if a system exception occurred
public int countByThreadId(long threadId)
throws SystemException
countByThreadId in interface MBMessageFlagPersistencethreadId - the thread id to search with
SystemException - if a system exception occurred
public int countByMessageId(long messageId)
throws SystemException
countByMessageId in interface MBMessageFlagPersistencemessageId - the message id to search with
SystemException - if a system exception occurred
public int countByT_F(long threadId,
int flag)
throws SystemException
countByT_F in interface MBMessageFlagPersistencethreadId - the thread id to search withflag - the flag to search with
SystemException - if a system exception occurred
public int countByM_F(long messageId,
int flag)
throws SystemException
countByM_F in interface MBMessageFlagPersistencemessageId - the message id to search withflag - the flag to search with
SystemException - if a system exception occurred
public int countByU_T_F(long userId,
long threadId,
int flag)
throws SystemException
countByU_T_F in interface MBMessageFlagPersistenceuserId - the user id to search withthreadId - the thread id to search withflag - the flag to search with
SystemException - if a system exception occurred
public int countByU_M_F(long userId,
long messageId,
int flag)
throws SystemException
countByU_M_F in interface MBMessageFlagPersistenceuserId - the user id to search withmessageId - the message id to search withflag - the flag to search with
SystemException - if a system exception occurred
public int countAll()
throws SystemException
countAll in interface MBMessageFlagPersistenceSystemException - if a system exception occurredpublic void afterPropertiesSet()
|
Liferay 6.0.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||