public class HibernateDAO extends HqlDAO
HqlDAO.AbstractQuery, HqlDAO.AbstractSession| Modifier and Type | Field and Description |
|---|---|
protected org.hibernate.SessionFactory |
sessionFactory |
| Constructor and Description |
|---|
HibernateDAO() |
HibernateDAO(org.hibernate.SessionFactory fac) |
| Modifier and Type | Method and Description |
|---|---|
void |
begin()
starts a transaction
|
void |
close()
claose all
|
List |
dumpTable(String table) |
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 org.hibernate.Session |
openSession() |
deleteActiveConfigProfile, deleteActiveSubsystemDescription, getActiveConfigProfile, getActiveProfilesForSubsystem, getActiveSubsystemDescription, getActiveSubsystemDescription, getGhostDescription, getProfilesForSubsystem, getSession, modifyParmConfig, saveConfigProfile, saveGhostDescriptions, savePastProfile, saveRun, saveSubsystemDescription, setSession, simpleHQLRequestpublic HibernateDAO()
public HibernateDAO(org.hibernate.SessionFactory fac)
public org.hibernate.SessionFactory getSessionFactory()
public void begin()
DBInterfacepublic void end()
DBInterfacepublic void fail()
DBInterfacepublic void fail(Throwable th)
DBInterfacepublic void close()
DBInterfaceprotected org.hibernate.Session getCurrentSession()
protected final org.hibernate.Session openSession()
Copyright © 2017 LSST. All rights reserved.