org.cyclopsgroup.doorman.service.hibernate
Class HibernateDAOFactory

java.lang.Object
  extended by org.cyclopsgroup.doorman.service.hibernate.HibernateDAOFactory
All Implemented Interfaces:
DAOFactory

@Service(value="doormanHibernateDAOFactory")
public class HibernateDAOFactory
extends Object
implements DAOFactory

DAO factory that creates Hibernate DAOs

Author:
Jiaqi Guo

Constructor Summary
HibernateDAOFactory(org.hibernate.SessionFactory sessionFactory)
           
 
Method Summary
 UserDAO createUserDAO()
           
 UserSessionDAO createUserSessionDAO()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HibernateDAOFactory

public HibernateDAOFactory(org.hibernate.SessionFactory sessionFactory)
Parameters:
sessionFactory - Hibernate session factory
Method Detail

createUserDAO

public UserDAO createUserDAO()
Specified by:
createUserDAO in interface DAOFactory
Returns:
Instance of DAO for StoredUser and StoredUserSignUpRequest

createUserSessionDAO

public UserSessionDAO createUserSessionDAO()
Specified by:
createUserSessionDAO in interface DAOFactory
Returns:
Instance of DAO for StoredUserSession


Copyright © 2010-2012. All Rights Reserved.