public interface DBInterface
| Modifier and Type | Method and Description |
|---|---|
void |
begin()
starts a transaction
|
void |
close()
claose all
|
void |
deleteActiveConfigProfile(org.lsst.ccs.localdb.configdb.model.AConfigProfile oldProfile)
delectes the active profile from DB
|
void |
deleteActiveSubsystemDescription(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.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)
|
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)
|
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(ASubsystemDescription newDescription)
newDescription - void saveGhostDescriptions(org.lsst.ccs.localdb.configdb.model.GhostSubsystemDescription ghosts)
ghosts - ASubsystemDescription getActiveSubsystemDescription(String name, String tag)
name - tag - ASubsystemDescription getActiveSubsystemDescription(long id)
id - org.lsst.ccs.localdb.configdb.model.GhostSubsystemDescription getGhostDescription(long id)
id - void deleteActiveSubsystemDescription(ASubsystemDescription oldDescription)
oldDescription - void saveConfigProfile(org.lsst.ccs.localdb.configdb.model.AConfigProfile newProfile)
newProfile - void savePastProfile(org.lsst.ccs.localdb.configdb.model.PastConfigProfile deprecatedProfile)
deprecatedProfile - org.lsst.ccs.localdb.configdb.model.AConfigProfile getActiveConfigProfile(String subsystemName, String descriptionName, String name, String tag)
subsystemName - the subsystem namedescriptionName - the description namename - tag - void deleteActiveConfigProfile(org.lsst.ccs.localdb.configdb.model.AConfigProfile oldProfile)
oldProfile - void modifyParmConfig(org.lsst.ccs.localdb.configdb.model.AParameterConfiguration config)
config - Collection<org.lsst.ccs.localdb.configdb.model.AConfigProfile> getActiveProfilesForSubsystem(ASubsystemDescription description, String category)
description - AConfigProfile for the active
ASubsystemDescriptionCollection<org.lsst.ccs.localdb.configdb.model.PastConfigProfile> getProfilesForSubsystem(org.lsst.ccs.localdb.configdb.model.GhostSubsystemDescription description)
description - void saveRun(RunHistory runHistory)
runHistory - List<?> simpleHQLRequest(String hqlString)
hqlString - void close()
Copyright © 2016 LSST. All rights reserved.