edu.nrao.sss.dao.project
Class HibernateSchedBlockDao

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

public class HibernateSchedBlockDao
extends HibernateDao
implements SchedulingBlockProvider

A Hibernate data access object for SchedulingBlocks.

Version Info:

$Revision: 2131 $
$Date: 2009-03-20 10:24:37 -0600 (Fri, 20 Mar 2009) $
$Author: btruitt $ (last person to modify)

Since:
2008-06-11
Author:
David M. Harland

Field Summary
 
Fields inherited from class edu.nrao.sss.dao.HibernateDao
factories
 
Constructor Summary
HibernateSchedBlockDao(String cfg, org.hibernate.Interceptor i)
          Creates a new data access object for scheduling blocks
 
Method Summary
 SchedulingBlock findById(long id)
           
 List<SchedulingBlock> getAllSchedBlocks()
           
 List<SchedulingBlock> getSchedBlocks(SchedulingBlockFilter filter)
           
 
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

HibernateSchedBlockDao

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

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

getSchedBlocks

public List<SchedulingBlock> getSchedBlocks(SchedulingBlockFilter filter)
                                     throws RepositoryException
Specified by:
getSchedBlocks in interface SchedulingBlockProvider
Throws:
RepositoryException

getAllSchedBlocks

public List<SchedulingBlock> getAllSchedBlocks()
                                        throws RepositoryException
Specified by:
getAllSchedBlocks in interface SchedulingBlockProvider
Throws:
RepositoryException

findById

public SchedulingBlock findById(long id)
                         throws RepositoryException
Returns:
null if a SchedulingBlock with the provided id doesn't exist.
Throws:
RepositoryException


Copyright © 2009. All Rights Reserved.