|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.lsst.ccs.config.HqlDAO
public abstract class HqlDAO
abstract class used to help build DAO that uses HQL but are in a different package
| Nested Class Summary | |
|---|---|
static interface |
HqlDAO.AbstractQuery
delegate to Hibernate Query type |
static interface |
HqlDAO.AbstractSession
delegate to Hibernate Session type |
| Field Summary | |
|---|---|
protected boolean |
exceptionFired
|
protected HqlDAO.AbstractSession |
session
|
| Constructor Summary | |
|---|---|
HqlDAO()
|
|
| Method Summary | |
|---|---|
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) |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.lsst.ccs.config.DBInterface |
|---|
begin, close, end, fail, fail |
| Field Detail |
|---|
protected HqlDAO.AbstractSession session
protected boolean exceptionFired
| Constructor Detail |
|---|
public HqlDAO()
| Method Detail |
|---|
public HqlDAO.AbstractSession getSession()
public void setSession(HqlDAO.AbstractSession session)
public void saveSubsystemDescription(org.lsst.ccs.config.ASubsystemDescription newDescription)
DBInterface
saveSubsystemDescription in interface DBInterfacepublic void saveGhostDescriptions(org.lsst.ccs.config.GhostSubsystemDescription ghosts)
DBInterface
saveGhostDescriptions in interface DBInterface
public org.lsst.ccs.config.ASubsystemDescription getActiveSubsystemDescription(String name,
String tag)
DBInterface
getActiveSubsystemDescription in interface DBInterfacepublic org.lsst.ccs.config.ASubsystemDescription getActiveSubsystemDescription(long id)
DBInterface
getActiveSubsystemDescription in interface DBInterfacepublic org.lsst.ccs.config.GhostSubsystemDescription getGhostDescription(long id)
DBInterface
getGhostDescription in interface DBInterfacepublic void deleteActiveSubsystemDescription(org.lsst.ccs.config.ASubsystemDescription oldDescription)
DBInterface
deleteActiveSubsystemDescription in interface DBInterfacepublic void saveConfigProfile(org.lsst.ccs.config.AConfigProfile newProfile)
DBInterface
saveConfigProfile in interface DBInterfacepublic void savePastProfile(org.lsst.ccs.config.PastConfigProfile deprecatedProfile)
DBInterface
savePastProfile in interface DBInterface
public org.lsst.ccs.config.AConfigProfile getActiveConfigProfile(String name,
String tag)
DBInterface
getActiveConfigProfile in interface DBInterfacepublic void deleteActiveConfigProfile(org.lsst.ccs.config.AConfigProfile oldProfile)
DBInterface
deleteActiveConfigProfile in interface DBInterfacepublic void modifyParmConfig(org.lsst.ccs.config.AParameterConfiguration config)
DBInterface
modifyParmConfig in interface DBInterfacepublic Collection<org.lsst.ccs.config.AConfigProfile> getActiveProfilesForSubsystem(org.lsst.ccs.config.ASubsystemDescription description)
DBInterface
getActiveProfilesForSubsystem in interface DBInterfacepublic Collection<org.lsst.ccs.config.PastConfigProfile> getProfilesForSubsystem(org.lsst.ccs.config.GhostSubsystemDescription description)
DBInterface
getProfilesForSubsystem in interface DBInterfacepublic void saveRun(RunHistory runHistory)
DBInterface
saveRun in interface DBInterfacepublic void savePreparedConfiguration(PreparedConfiguration preparedConfiguration)
DBInterface
savePreparedConfiguration in interface DBInterface
public PreparedConfiguration getPreparedConfiguration(String subsystemName,
String configName,
String tag)
DBInterface
getPreparedConfiguration in interface DBInterfacepublic void saveMachineConfiguration(MachineConfiguration machineConfiguration)
DBInterface
saveMachineConfiguration in interface DBInterfacepublic MachineConfiguration getMachineConfiguration(String macAddress)
DBInterface
getMachineConfiguration in interface DBInterfacepublic List<?> simpleHQLRequest(String hqlString)
DBInterface
simpleHQLRequest in interface DBInterface
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||