public abstract class HqlDAO extends Object implements DBInterface
| Modifier and Type | Class and Description |
|---|---|
static interface |
HqlDAO.AbstractQuery
delegate to Hibernate Query type
|
static interface |
HqlDAO.AbstractSession
delegate to Hibernate Session type
|
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
exceptionFired |
protected HqlDAO.AbstractSession |
session |
| Constructor and Description |
|---|
HqlDAO() |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteActiveConfigProfile(org.lsst.ccs.config.AConfigProfile oldProfile)
delectes the active profile from DB
|
void |
deleteActiveSubsystemDescription(ASubsystemDescription oldDescription)
deletes an active description
|
org.lsst.ccs.config.AConfigProfile |
getActiveConfigProfile(String subsystemName,
String name,
String tag)
get configProfile with name and tag
|
Collection<org.lsst.ccs.config.AConfigProfile> |
getActiveProfilesForSubsystem(ASubsystemDescription description)
gets the active configProfiles that references an active SubsystemDescription
|
ASubsystemDescription |
getActiveSubsystemDescription(long id)
gets a subsystem description by its id
|
ASubsystemDescription |
getActiveSubsystemDescription(String name,
String tag)
gets a SubsystemDescription in the corresponding active object table.
|
org.lsst.ccs.config.GhostSubsystemDescription |
getGhostDescription(long id)
returns ghost with corresponding id
|
Collection<org.lsst.ccs.config.PastConfigProfile> |
getProfilesForSubsystem(org.lsst.ccs.config.GhostSubsystemDescription description)
get the deprecated ConfigProfile that referenced a subsystemDescription (active or deprecated)
|
HqlDAO.AbstractSession |
getSession() |
void |
modifyParmConfig(org.lsst.ccs.config.AParameterConfiguration config)
registers a modified parameter
|
void |
saveConfigProfile(org.lsst.ccs.config.AConfigProfile newProfile)
saves the new argument: ID is modified and argument becomes immutable.
|
void |
saveGhostDescriptions(org.lsst.ccs.config.GhostSubsystemDescription ghosts)
saves the argument
|
void |
savePastProfile(org.lsst.ccs.config.PastConfigProfile deprecatedProfile)
saves argument
|
void |
saveRun(RunHistory runHistory)
saves a run history
|
void |
saveSubsystemDescription(ASubsystemDescription newDescription)
saves the argument: which must now becomes immutable and be numbered (with an ID)
|
void |
setSession(HqlDAO.AbstractSession session) |
List<?> |
simpleHQLRequest(String hqlString)
execut simple request (read only: select of From)
|
protected HqlDAO.AbstractSession session
protected boolean exceptionFired
public HqlDAO.AbstractSession getSession()
public void setSession(HqlDAO.AbstractSession session)
public void saveSubsystemDescription(ASubsystemDescription newDescription)
DBInterfacesaveSubsystemDescription in interface DBInterfacepublic void saveGhostDescriptions(org.lsst.ccs.config.GhostSubsystemDescription ghosts)
DBInterfacesaveGhostDescriptions in interface DBInterfacepublic ASubsystemDescription getActiveSubsystemDescription(String name, String tag)
DBInterfacegetActiveSubsystemDescription in interface DBInterfacepublic ASubsystemDescription getActiveSubsystemDescription(long id)
DBInterfacegetActiveSubsystemDescription in interface DBInterfacepublic org.lsst.ccs.config.GhostSubsystemDescription getGhostDescription(long id)
DBInterfacegetGhostDescription in interface DBInterfacepublic void deleteActiveSubsystemDescription(ASubsystemDescription oldDescription)
DBInterfacedeleteActiveSubsystemDescription in interface DBInterfacepublic void saveConfigProfile(org.lsst.ccs.config.AConfigProfile newProfile)
DBInterfacesaveConfigProfile in interface DBInterfacepublic void savePastProfile(org.lsst.ccs.config.PastConfigProfile deprecatedProfile)
DBInterfacesavePastProfile in interface DBInterfacepublic org.lsst.ccs.config.AConfigProfile getActiveConfigProfile(String subsystemName, String name, String tag)
DBInterfacegetActiveConfigProfile in interface DBInterfacepublic void deleteActiveConfigProfile(org.lsst.ccs.config.AConfigProfile oldProfile)
DBInterfacedeleteActiveConfigProfile in interface DBInterfacepublic void modifyParmConfig(org.lsst.ccs.config.AParameterConfiguration config)
DBInterfacemodifyParmConfig in interface DBInterfacepublic Collection<org.lsst.ccs.config.AConfigProfile> getActiveProfilesForSubsystem(ASubsystemDescription description)
DBInterfacegetActiveProfilesForSubsystem in interface DBInterfaceAConfigProfile for the active
ASubsystemDescriptionpublic Collection<org.lsst.ccs.config.PastConfigProfile> getProfilesForSubsystem(org.lsst.ccs.config.GhostSubsystemDescription description)
DBInterfacegetProfilesForSubsystem in interface DBInterfacepublic void saveRun(RunHistory runHistory)
DBInterfacesaveRun in interface DBInterfacepublic List<?> simpleHQLRequest(String hqlString)
DBInterfacesimpleHQLRequest in interface DBInterfaceCopyright © 2015 LSST. All rights reserved.