org.directdemocracyportal.democracy.service.dao.hibernate
Class HibernateUserSessionDAO

Package class diagram package HibernateUserSessionDAO
java.lang.Object
  extended by org.springframework.dao.support.DaoSupport
      extended by org.springframework.orm.hibernate3.support.HibernateDaoSupport
          extended by org.directdemocracyportal.democracy.service.dao.hibernate.GenericHibernateDAO<UserSession,java.lang.Long>
              extended by org.directdemocracyportal.democracy.service.dao.hibernate.HibernateUserSessionDAO
All Implemented Interfaces:
GenericDAO<UserSession,java.lang.Long>, UserSessionDAO, org.springframework.beans.factory.InitializingBean

@Transactional(propagation=MANDATORY)
public class HibernateUserSessionDAO
extends GenericHibernateDAO<UserSession,java.lang.Long>
implements UserSessionDAO

The Class HibernateUserSessionDAO.


Field Summary
Modifier and Type Field and Description
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
Constructor and Description
HibernateUserSessionDAO()
          Instantiates a new hibernate user session dao.
 
Method Summary
Modifier and Type Method and Description
 void endActiveSessions()
          End active sessions.
 UserSession findBySessionId(java.lang.String sessionId)
          Find by session id.
 UserSession findByUserId(java.lang.Long userId)
          Find by user id.
 java.util.List<UserSession> getActiveSessions()
          Gets the active sessions.
 
Methods inherited from class org.directdemocracyportal.democracy.service.dao.hibernate.GenericHibernateDAO
delete, getAll, load, save
 
Methods inherited from class org.springframework.orm.hibernate3.support.HibernateDaoSupport
checkDaoConfig, convertHibernateAccessException, createHibernateTemplate, getHibernateTemplate, getSession, getSession, getSessionFactory, releaseSession, setHibernateTemplate, setSessionFactory
 
Methods inherited from class org.springframework.dao.support.DaoSupport
afterPropertiesSet, initDao
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.directdemocracyportal.democracy.service.dao.GenericDAO
delete, getAll, load, save
 

Constructor Detail

HibernateUserSessionDAO

public HibernateUserSessionDAO()
Instantiates a new hibernate user session dao.

Method Detail

findBySessionId

@Transactional(readOnly=true)
public UserSession findBySessionId(java.lang.String sessionId)
                            throws org.springframework.dao.DataAccessException
Description copied from interface: UserSessionDAO
Find by session id.

Specified by:
findBySessionId in interface UserSessionDAO
Parameters:
sessionId - the session id
Returns:
the user session
Throws:
org.springframework.dao.DataAccessException - the data access exception

findByUserId

@Transactional(readOnly=true)
public UserSession findByUserId(java.lang.Long userId)
                         throws org.springframework.dao.DataAccessException
Description copied from interface: UserSessionDAO
Find by user id.

Specified by:
findByUserId in interface UserSessionDAO
Parameters:
userId - the user id
Returns:
the user session
Throws:
org.springframework.dao.DataAccessException - the data access exception

getActiveSessions

@Transactional(readOnly=true)
public java.util.List<UserSession> getActiveSessions()
                                              throws org.springframework.dao.DataAccessException
Description copied from interface: UserSessionDAO
Gets the active sessions.

Specified by:
getActiveSessions in interface UserSessionDAO
Returns:
the active sessions
Throws:
org.springframework.dao.DataAccessException

endActiveSessions

public void endActiveSessions()
Description copied from interface: UserSessionDAO
End active sessions.

Specified by:
endActiveSessions in interface UserSessionDAO


Copyright © 2004-2010 www.DirectDemocracyPortal.org. All Rights Reserved.