org.lsst.ccs.config.dao.hibernate
Class HibernateDAO

java.lang.Object
  extended by org.lsst.ccs.config.HqlDAO
      extended by org.lsst.ccs.config.dao.hibernate.HibernateDAO
All Implemented Interfaces:
DBInterface

public class HibernateDAO
extends HqlDAO

Author:
bamade

Nested Class Summary
 
Nested classes/interfaces inherited from class org.lsst.ccs.config.HqlDAO
HqlDAO.AbstractQuery, HqlDAO.AbstractSession
 
Field Summary
protected  org.hibernate.SessionFactory sessionFactory
           
 
Constructor Summary
HibernateDAO()
           
 
Method Summary
 void begin()
          starts a transaction
 void close()
          claose all
 void end()
          end a transaction
 void fail()
          failure: must close transaction
 void fail(Throwable th)
          same as fail but a Throwable can be used to log.
protected  org.hibernate.Session getCurrentSession()
           
 org.hibernate.SessionFactory getSessionFactory()
           
protected  void initSession()
           
protected  org.hibernate.Session openSession()
           
 
Methods inherited from class org.lsst.ccs.config.HqlDAO
deleteActiveConfigProfile, deleteActiveSubsystemDescription, getActiveConfigProfile, getActiveProfilesForSubsystem, getActiveSubsystemDescription, getActiveSubsystemDescription, getGhostDescription, getMachineConfiguration, getPreparedConfiguration, getProfilesForSubsystem, getSession, modifyParmConfig, saveConfigProfile, saveGhostDescriptions, saveMachineConfiguration, savePastProfile, savePreparedConfiguration, saveRun, saveSubsystemDescription, setSession, simpleHQLRequest
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sessionFactory

protected org.hibernate.SessionFactory sessionFactory
Constructor Detail

HibernateDAO

public HibernateDAO()
Method Detail

initSession

protected void initSession()

getSessionFactory

public org.hibernate.SessionFactory getSessionFactory()

begin

public void begin()
Description copied from interface: DBInterface
starts a transaction


end

public void end()
Description copied from interface: DBInterface
end a transaction


fail

public void fail()
Description copied from interface: DBInterface
failure: must close transaction


fail

public void fail(Throwable th)
Description copied from interface: DBInterface
same as fail but a Throwable can be used to log.


close

public void close()
Description copied from interface: DBInterface
claose all


getCurrentSession

protected org.hibernate.Session getCurrentSession()

openSession

protected org.hibernate.Session openSession()


Copyright © 2013 LSST. All Rights Reserved.