edu.nrao.sss.dao.project
Class HibernateExecBlockDao

java.lang.Object
  extended by edu.nrao.sss.dao.HibernateDao
      extended by edu.nrao.sss.dao.project.HibernateExecBlockDao
All Implemented Interfaces:
ExecutionBlockProvider

public class HibernateExecBlockDao
extends HibernateDao
implements ExecutionBlockProvider

A Hibernate data access object for ExecutionBlocks.

Version Info:

$Revision$
$Date$
$Author$ (last person to modify)

Since:
2009-04-10
Author:
David M. Harland

Field Summary
 
Fields inherited from class edu.nrao.sss.dao.HibernateDao
factories
 
Constructor Summary
HibernateExecBlockDao(String cfg, org.hibernate.Interceptor i)
          Creates a new data access object for scheduling blocks
 
Method Summary
 ExecutionBlock findById(long id)
          Returns the execution block with the given ID, or null if no such block is found.
 List<ExecutionBlock> getAllExecBlocks()
           
 
Methods inherited from class edu.nrao.sss.dao.HibernateDao
addDaoListener, beginTransaction, closeSession, commitTransaction, destroyAllFactories, destroyFactory, fireRollbackEvent, getConfigurationFileName, getInterceptor, getSession, getSessionFactory, removeDaoListeners, rollbackTransaction, setConfigurationFileName, setInterceptor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HibernateExecBlockDao

public HibernateExecBlockDao(String cfg,
                             org.hibernate.Interceptor i)
Creates a new data access object for scheduling blocks

See Also:
HibernateDao.HibernateDao(String, Interceptor)
Method Detail

getAllExecBlocks

public List<ExecutionBlock> getAllExecBlocks()
                                      throws RepositoryException
Specified by:
getAllExecBlocks in interface ExecutionBlockProvider
Throws:
RepositoryException

findById

public ExecutionBlock findById(long id)
                        throws RepositoryException
Returns the execution block with the given ID, or null if no such block is found.

Throws:
RepositoryException


Copyright © 2009. All Rights Reserved.