public class FIleBasedDAO extends Object implements DBInterface
| Constructor and Description |
|---|
FIleBasedDAO() |
FIleBasedDAO(boolean notFromFile)
dummy constructor used by MemoryDAO
|
| 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(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 subsystemName,
String name,
String tag)
get configProfile with name and tag
|
Collection<org.lsst.ccs.config.AConfigProfile> |
getActiveProfilesForSubsystem(ASubsystemDescription description)
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.config.GhostSubsystemDescription |
getGhostDescription(long id)
returns ghost with corresponding id
|
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 |
savePastProfile(org.lsst.ccs.config.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)
|
public FIleBasedDAO()
public FIleBasedDAO(boolean notFromFile)
notFromFile - public void begin()
DBInterfacebegin in interface DBInterfacepublic void end()
DBInterfaceend in interface DBInterfacepublic void fail()
DBInterfacefail in interface DBInterfacepublic void fail(Throwable th)
DBInterfacefail in interface DBInterfacepublic void saveSubsystemDescription(ASubsystemDescription newDescription)
DBInterfacesaveSubsystemDescription in interface DBInterfacepublic void saveGhostDescriptions(org.lsst.ccs.config.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.config.GhostSubsystemDescription getGhostDescription(long id)
DBInterfacegetGhostDescription in interface DBInterfacepublic void deleteActiveSubsystemDescription(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 subsystemName, 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(ASubsystemDescription description)
DBInterfacegetActiveProfilesForSubsystem in interface DBInterfaceAConfigProfile for the active
ASubsystemDescriptionpublic 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 List<?> simpleHQLRequest(String hqlString)
DBInterfacesimpleHQLRequest in interface DBInterfacepublic void close()
DBInterfaceclose in interface DBInterfaceCopyright © 2015 LSST. All rights reserved.