org.zeroexchange.dao.message
Class MessageDAOImpl

java.lang.Object
  extended by org.zeroexchange.dao.HibernateSessionHolder
      extended by org.zeroexchange.dao.BaseHibernateDAO<Integer,T>
          extended by org.zeroexchange.dao.BaseIntegerPKDAO<Message>
              extended by org.zeroexchange.dao.message.MessageDAOImpl
All Implemented Interfaces:
DAO<Integer,Message>, IntegerPKDAO<Message>, MessageDAO

public class MessageDAOImpl
extends BaseIntegerPKDAO<Message>
implements MessageDAO

Author:
black

Constructor Summary
MessageDAOImpl()
           
 
Method Summary
 long countUnreadMessages(Integer userId)
          Returns count of unread message for the specified user.
 Class<Message> getEntityClass()
          
 ProcessorAwareDataSet<Message> getUserMessages(Integer userId)
          Returns messages delivered to the specified user.
 
Methods inherited from class org.zeroexchange.dao.BaseHibernateDAO
getById, removeById, save
 
Methods inherited from class org.zeroexchange.dao.HibernateSessionHolder
getSession
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.zeroexchange.dao.DAO
getById, removeById, save
 

Constructor Detail

MessageDAOImpl

public MessageDAOImpl()
Method Detail

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.