public interface DBInterface
| Modifier and Type | Method and Description |
|---|---|
void |
begin()
starts a transaction
|
void |
close()
claose all
|
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
|
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.
|
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)
|
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)
|
List<?> |
simpleHQLRequest(String hqlString)
execut simple request (read only: select of From)
|
void begin()
void end()
void fail()
void fail(Throwable th)
th - void saveSubsystemDescription(org.lsst.ccs.config.ASubsystemDescription newDescription)
newDescription - void saveGhostDescriptions(org.lsst.ccs.config.GhostSubsystemDescription ghosts)
ghosts - org.lsst.ccs.config.ASubsystemDescription getActiveSubsystemDescription(String name, String tag)
name - tag - org.lsst.ccs.config.ASubsystemDescription getActiveSubsystemDescription(long id)
id - org.lsst.ccs.config.GhostSubsystemDescription getGhostDescription(long id)
id - void deleteActiveSubsystemDescription(org.lsst.ccs.config.ASubsystemDescription oldDescription)
oldDescription - void saveConfigProfile(org.lsst.ccs.config.AConfigProfile newProfile)
newProfile - void savePastProfile(org.lsst.ccs.config.PastConfigProfile deprecatedProfile)
deprecatedProfile - org.lsst.ccs.config.AConfigProfile getActiveConfigProfile(String name, String tag)
name - tag - void deleteActiveConfigProfile(org.lsst.ccs.config.AConfigProfile oldProfile)
oldProfile - void modifyParmConfig(org.lsst.ccs.config.AParameterConfiguration config)
config - Collection<org.lsst.ccs.config.AConfigProfile> getActiveProfilesForSubsystem(org.lsst.ccs.config.ASubsystemDescription description)
description - Collection<org.lsst.ccs.config.PastConfigProfile> getProfilesForSubsystem(org.lsst.ccs.config.GhostSubsystemDescription description)
description - void saveRun(RunHistory runHistory)
runHistory - void savePreparedConfiguration(PreparedConfiguration preparedConfiguration)
preparedConfiguration - PreparedConfiguration getPreparedConfiguration(String subsystemName, String configName, String tag)
subsystemName - configName - tag - void saveMachineConfiguration(MachineConfiguration machineConfiguration)
machineConfiguration - MachineConfiguration getMachineConfiguration(String macAddress)
macAddress - List<?> simpleHQLRequest(String hqlString)
hqlString - void close()
Copyright © 2014 LSST. All rights reserved.