ch.tatool.app.service.impl
Class ModuleSessionDAO

java.lang.Object
  extended by org.springframework.dao.support.DaoSupport
      extended by org.springframework.orm.hibernate3.support.HibernateDaoSupport
          extended by ch.tatool.app.service.impl.ModuleSessionDAO
All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean

public class ModuleSessionDAO
extends org.springframework.orm.hibernate3.support.HibernateDaoSupport

Property access object for module objects.

Author:
Michael Ruflin

Field Summary
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
ModuleSessionDAO()
           
 
Method Summary
 void deleteSession(ModuleImpl module, ModuleSession session)
          Deletes a session object.
 List<Object[]> findDistinctSessionPropertyNames(ModuleImpl module)
          Get all distinct session property names for a module.
 ModuleSession findLastSession(ModuleImpl module)
          Finds the last session for a given module.
 Long getSessionCount(ModuleImpl module, boolean includeUnfinished)
          Finds the number of session for the given module.
 List<ModuleSession> getSessions(ModuleImpl module)
          Get a list of all sessions.
 void saveSession(ModuleImpl module, ModuleSession session)
          Saves a session object.
 
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
 

Constructor Detail

ModuleSessionDAO

public ModuleSessionDAO()
Method Detail

getSessions

public List<ModuleSession> getSessions(ModuleImpl module)
Get a list of all sessions.


saveSession

public void saveSession(ModuleImpl module,
                        ModuleSession session)
Saves a session object.


deleteSession

public void deleteSession(ModuleImpl module,
                          ModuleSession session)
Deletes a session object.


findLastSession

public ModuleSession findLastSession(ModuleImpl module)
Finds the last session for a given module.


getSessionCount

public Long getSessionCount(ModuleImpl module,
                            boolean includeUnfinished)
Finds the number of session for the given module.


findDistinctSessionPropertyNames

public List<Object[]> findDistinctSessionPropertyNames(ModuleImpl module)
Get all distinct session property names for a module.

Returns:
An array with [0] containing the item name, [1] the property name


Copyright © 2012. All Rights Reserved.