org.zeroexchange.dao.invitation
Class InvitationDAOImpl

java.lang.Object
  extended by org.zeroexchange.dao.HibernateSessionHolder
      extended by org.zeroexchange.dao.BaseHibernateDAO<Integer,T>
          extended by org.zeroexchange.dao.BaseIntegerPKDAO<Invitation>
              extended by org.zeroexchange.dao.invitation.InvitationDAOImpl
All Implemented Interfaces:
DAO<Integer,Invitation>, IntegerPKDAO<Invitation>, InvitationDAO

public class InvitationDAOImpl
extends BaseIntegerPKDAO<Invitation>
implements InvitationDAO

Author:
black

Constructor Summary
InvitationDAOImpl()
           
 
Method Summary
protected  Class<Invitation> getEntityClass()
          
 Invitation getInvitation(Integer inviterId, Integer inviteeId, Integer contractId)
          Returns an invitation if exists.
 SlicingDataSet<Invitation> getInvitations(Integer contractId)
          Lists invitations for the specified contract.
 
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

InvitationDAOImpl

public InvitationDAOImpl()
Method Detail

getEntityClass

protected Class<Invitation> getEntityClass()

Specified by:
getEntityClass in class BaseHibernateDAO<Integer,Invitation>

getInvitations

public SlicingDataSet<Invitation> getInvitations(Integer contractId)
Lists invitations for the specified contract.

Specified by:
getInvitations in interface InvitationDAO

getInvitation

public Invitation getInvitation(Integer inviterId,
                                Integer inviteeId,
                                Integer contractId)
Returns an invitation if exists.

Specified by:
getInvitation in interface InvitationDAO


Copyright © 2013. All Rights Reserved.