org.zeroexchange.dao.message
Class MessageDAOImpl
java.lang.Object
org.zeroexchange.dao.HibernateSessionHolder
org.zeroexchange.dao.BaseHibernateDAO<Integer,T>
org.zeroexchange.dao.BaseIntegerPKDAO<Message>
org.zeroexchange.dao.message.MessageDAOImpl
- All Implemented Interfaces:
- DAO<Integer,Message>, IntegerPKDAO<Message>, MessageDAO
public class MessageDAOImpl
- extends BaseIntegerPKDAO<Message>
- implements MessageDAO
- Author:
- black
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MessageDAOImpl
public MessageDAOImpl()
getEntityClass
public Class<Message> getEntityClass()
-
- Specified by:
getEntityClass
in class BaseHibernateDAO<Integer,Message>
getUserMessages
public ProcessorAwareDataSet<Message> getUserMessages(Integer userId)
- Returns messages delivered to the specified user.
- Specified by:
getUserMessages
in interface MessageDAO
countUnreadMessages
public long countUnreadMessages(Integer userId)
- Returns count of unread message for the specified user.
- Specified by:
countUnreadMessages
in interface MessageDAO
Copyright © 2013. All Rights Reserved.