org.directdemocracyportal.democracy.service.dao.hibernate
Class HibernateUserSessionDAO
java.lang.Object
org.springframework.dao.support.DaoSupport
org.springframework.orm.hibernate3.support.HibernateDaoSupport
org.directdemocracyportal.democracy.service.dao.hibernate.GenericHibernateDAO<UserSession,java.lang.Long>
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.
Fields inherited from class org.springframework.dao.support.DaoSupport |
logger |
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 |
HibernateUserSessionDAO
public HibernateUserSessionDAO()
- Instantiates a new hibernate user session dao.
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.