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(org.lsst.ccs.config.ASubsystemDescription oldDescription)
deletes an active description
|
org.lsst.ccs.config.AConfigProfile |
getActiveConfigProfile(String name,
String tag)
get configProfile with name and tag
|
Collection<org.lsst.ccs.config.AConfigProfile> |
getActiveProfilesForSubsystem(org.lsst.ccs.config.ASubsystemDescription description)
gets the active configProfiles that references an active SubsystemDescription
|
org.lsst.ccs.config.ASubsystemDescription |
getActiveSubsystemDescription(long id)
gets a subsystem descirption by it"s id
|
org.lsst.ccs.config.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
|
MachineConfiguration |
getMachineConfiguration(String macAddress)
get a machine configuration..
|
PreparedConfiguration |
getPreparedConfiguration(String subsystemName,
String configName,
String tag)
returns a prepared Configuration
|
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 |
saveMachineConfiguration(MachineConfiguration machineConfiguration)
saves a machine configuration
|
void |
savePastProfile(org.lsst.ccs.config.PastConfigProfile deprecatedProfile)
saves argument
|
void |
savePreparedConfiguration(PreparedConfiguration preparedConfiguration)
saves a preparedConfiguration
|
void |
saveRun(RunHistory runHistory)
saves a run history
|
void |
saveSubsystemDescription(org.lsst.ccs.config.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(org.lsst.ccs.config.ASubsystemDescription newDescription)
DBInterfacesaveSubsystemDescription in interface DBInterfacepublic void saveGhostDescriptions(org.lsst.ccs.config.GhostSubsystemDescription ghosts)
DBInterfacesaveGhostDescriptions in interface DBInterfacepublic org.lsst.ccs.config.ASubsystemDescription getActiveSubsystemDescription(String name, String tag)
DBInterfacegetActiveSubsystemDescription in interface DBInterfacepublic org.lsst.ccs.config.ASubsystemDescription getActiveSubsystemDescription(long id)
DBInterfacegetActiveSubsystemDescription in interface DBInterfacepublic org.lsst.ccs.config.GhostSubsystemDescription getGhostDescription(long id)
DBInterfacegetGhostDescription in interface DBInterfacepublic void deleteActiveSubsystemDescription(org.lsst.ccs.config.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 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(org.lsst.ccs.config.ASubsystemDescription description)
DBInterfacegetActiveProfilesForSubsystem in interface DBInterfacepublic 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 void savePreparedConfiguration(PreparedConfiguration preparedConfiguration)
DBInterfacesavePreparedConfiguration in interface DBInterfacepublic PreparedConfiguration getPreparedConfiguration(String subsystemName, String configName, String tag)
DBInterfacegetPreparedConfiguration in interface DBInterfacepublic void saveMachineConfiguration(MachineConfiguration machineConfiguration)
DBInterfacesaveMachineConfiguration in interface DBInterfacepublic MachineConfiguration getMachineConfiguration(String macAddress)
DBInterfacegetMachineConfiguration in interface DBInterfacepublic List<?> simpleHQLRequest(String hqlString)
DBInterfacesimpleHQLRequest in interface DBInterfaceCopyright © 2014 LSST. All rights reserved.