ch.tatool.app.service.impl
Class TrialDAO

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.TrialDAO
All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean

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

Property access object for module objects.

Author:
Michael Ruflin

Constructor Summary
TrialDAO()
           
 
Method Summary
 void deleteTrial(Module module, ModuleSession session, Trial trial)
          Delete a trial object.
 List<Object[]> findDistinctTrialPropertyNames(ModuleImpl module)
          Get all distinct trial property names for a module.
 int getLastTrialIndex(ModuleSession moduleSession)
          Get the last trial index for a given session.
 List<Trial> getTrials(ModuleImpl module, ModuleSession moduleSession, String elementNameLike, String propertyNameLike, int offset, int maxResults)
          Get all trials for a given session.
 List<Trial> getTrials(ModuleSession moduleSession)
          Get all trials for a given session.
 List<Trial> getTrials(ModuleSession session, Node node, int maxResults)
           
 List<Trial> loadAllTrials(ModuleImpl module)
          Get a list of all sessions.
 void saveTrial(Module module, ModuleSession session, Trial trial)
          Persist a trial.
 
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

TrialDAO

public TrialDAO()
Method Detail

loadAllTrials

public List<Trial> loadAllTrials(ModuleImpl module)
Get a list of all sessions.


getTrials

public List<Trial> getTrials(ModuleSession moduleSession)
Get all trials for a given session.


getTrials

public List<Trial> getTrials(ModuleImpl module,
                             ModuleSession moduleSession,
                             String elementNameLike,
                             String propertyNameLike,
                             int offset,
                             int maxResults)
Get all trials for a given session.


getLastTrialIndex

public int getLastTrialIndex(ModuleSession moduleSession)
Get the last trial index for a given session.


saveTrial

public void saveTrial(Module module,
                      ModuleSession session,
                      Trial trial)
Persist a trial.


deleteTrial

public void deleteTrial(Module module,
                        ModuleSession session,
                        Trial trial)
Delete a trial object.


getTrials

public List<Trial> getTrials(ModuleSession session,
                             Node node,
                             int maxResults)

findDistinctTrialPropertyNames

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

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


Copyright © 2012. All Rights Reserved.