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.localdb.configdb.model.AConfigProfile oldProfile)
delectes the active profile from DB
|
void |
deleteActiveSubsystemDescription(ASubsystemDescription oldDescription)
deletes an active description
|
org.lsst.ccs.localdb.configdb.model.AConfigProfile |
getActiveConfigProfile(String subsystemName,
String descriptionName,
String name,
String tag)
get configProfile with name and tag
|
Collection<org.lsst.ccs.localdb.configdb.model.AConfigProfile> |
getActiveProfilesForSubsystem(ASubsystemDescription description,
String category)
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.localdb.configdb.model.GhostSubsystemDescription |
getGhostDescription(long id)
returns ghost with corresponding id
|
Collection<org.lsst.ccs.localdb.configdb.model.PastConfigProfile> |
getProfilesForSubsystem(org.lsst.ccs.localdb.configdb.model.GhostSubsystemDescription description)
get the deprecated ConfigProfile that referenced a subsystemDescription (active or deprecated)
|
HqlDAO.AbstractSession |
getSession() |
void |
modifyParmConfig(org.lsst.ccs.localdb.configdb.model.AParameterConfiguration config)
registers a modified parameter
|
void |
saveConfigProfile(org.lsst.ccs.localdb.configdb.model.AConfigProfile newProfile)
saves the new argument: ID is modified and argument becomes immutable.
|
void |
saveGhostDescriptions(org.lsst.ccs.localdb.configdb.model.GhostSubsystemDescription ghosts)
saves the argument
|
void |
savePastProfile(org.lsst.ccs.localdb.configdb.model.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.localdb.configdb.model.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.localdb.configdb.model.GhostSubsystemDescription getGhostDescription(long id)
DBInterfacegetGhostDescription in interface DBInterfacepublic void deleteActiveSubsystemDescription(ASubsystemDescription oldDescription)
DBInterfacedeleteActiveSubsystemDescription in interface DBInterfacepublic void saveConfigProfile(org.lsst.ccs.localdb.configdb.model.AConfigProfile newProfile)
DBInterfacesaveConfigProfile in interface DBInterfacepublic void savePastProfile(org.lsst.ccs.localdb.configdb.model.PastConfigProfile deprecatedProfile)
DBInterfacesavePastProfile in interface DBInterfacepublic org.lsst.ccs.localdb.configdb.model.AConfigProfile getActiveConfigProfile(String subsystemName, String descriptionName, String name, String tag)
DBInterfacegetActiveConfigProfile in interface DBInterfacesubsystemName - the subsystem namedescriptionName - the description namepublic void deleteActiveConfigProfile(org.lsst.ccs.localdb.configdb.model.AConfigProfile oldProfile)
DBInterfacedeleteActiveConfigProfile in interface DBInterfacepublic void modifyParmConfig(org.lsst.ccs.localdb.configdb.model.AParameterConfiguration config)
DBInterfacemodifyParmConfig in interface DBInterfacepublic Collection<org.lsst.ccs.localdb.configdb.model.AConfigProfile> getActiveProfilesForSubsystem(ASubsystemDescription description, String category)
DBInterfacegetActiveProfilesForSubsystem in interface DBInterfaceAConfigProfile for the active
ASubsystemDescriptionpublic Collection<org.lsst.ccs.localdb.configdb.model.PastConfigProfile> getProfilesForSubsystem(org.lsst.ccs.localdb.configdb.model.GhostSubsystemDescription description)
DBInterfacegetProfilesForSubsystem in interface DBInterfacepublic void saveRun(RunHistory runHistory)
DBInterfacesaveRun in interface DBInterfacepublic List<?> simpleHQLRequest(String hqlString)
DBInterfacesimpleHQLRequest in interface DBInterfaceCopyright © 2016 LSST. All rights reserved.