stella
Interface DatabaseParameter
- All Superinterfaces:
- Initializable, Parameter, PropertySupplying
public interface DatabaseParameter
- extends Parameter
A parameter that obtains its value from a data base. The parameter set is
responsible for opening a connection to the data base and handing it over
to the parameter after construction. The method writeToDatabase(java.sql.Connection)
urges the parameter to write its current value to the database. Such
parameters may be used for slowly varying parameters that are accurate during
the entire lifetime of STELLA, like the total observation time of the
telescope.
| Methods inherited from interface util.PropertySupplying |
defaultBoolean, defaultChar, defaultDouble, defaultFloat, defaultInt, defaultLong, defaultObject, defaultObject, defaultProperties, defaultProperty, getAsBoolean, getAsChar, getAsDouble, getAsFloat, getAsInt, getAsList, getAsLong, getAsMap, getAsObject, getAsObject, getProperties, getProperty, has, parseObject, removeProperty, setObject, setProperty, stringProperties |
readFromDatabase
boolean readFromDatabase(Connection con)
- Urges the parameter to read its value from the connection handed over.
- Returns:
- True on success
writeToDatabase
boolean writeToDatabase(Connection con)
- Urges the parameter to write its current value to the connection handed
over.
- Returns:
- True on successful updates.