|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecticecube.daq.db.domprodtest.DOMProdTestDB
icecube.daq.domcal.CalibratorDB
public class CalibratorDB
Database interface for Calibrator.
Constructor Summary | |
---|---|
CalibratorDB()
Constructor. |
|
CalibratorDB(java.util.Properties props)
Constructor. |
Method Summary | |
---|---|
static void |
clearStatic()
Clear all cached entries. |
void |
load(Calibrator cal,
java.lang.String mbSerial,
java.util.Date date,
double temp)
Load calibration data. |
Calibrator |
load(java.lang.String mbSerial,
java.util.Date date,
double temp)
Load calibration data. |
void |
loadMain(java.sql.Statement stmt,
Calibrator cal,
java.lang.String mbSerial,
java.util.Date date,
double temp)
Load main calibration data. |
int |
save(Calibrator cal)
Save calibration data. |
static void |
save(java.lang.String fileName,
org.apache.log4j.Logger logger)
Save specified file to the database. |
static void |
save(java.lang.String fileName,
org.apache.log4j.Logger logger,
CalibratorDB calDB,
boolean verbose)
Save specified file to the database. |
void |
setLaboratory(icecube.daq.db.domprodtest.Laboratory lab)
Set the laboratory used to generate unique IDs. |
Methods inherited from class icecube.daq.db.domprodtest.DOMProdTestDB |
---|
close, findProperties, findPropertiesFile, getConnection, getStatement |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CalibratorDB() throws icecube.daq.db.domprodtest.DOMProdTestException, java.io.IOException, java.sql.SQLException
icecube.daq.db.domprodtest.DOMProdTestException
- if there is a problem creating the object
java.io.IOException
- if there is a problem reading the properties.
java.sql.SQLException
- if there is a problem initializing the database.public CalibratorDB(java.util.Properties props) throws icecube.daq.db.domprodtest.DOMProdTestException, java.io.IOException, java.sql.SQLException
props
- properties used to initialize the database connection
icecube.daq.db.domprodtest.DOMProdTestException
- if there is a problem creating the object
java.io.IOException
- if there is a problem reading the properties.
java.sql.SQLException
- if there is a problem initializing the database.Method Detail |
---|
public static void clearStatic()
public Calibrator load(java.lang.String mbSerial, java.util.Date date, double temp) throws DOMCalibrationException, java.sql.SQLException
mbSerial
- mainboard serial number of DOM being loadeddate
- date of data being loadedtemp
- temperature of data being loaded
DOMCalibrationException
- if an argument is invalid
java.sql.SQLException
- if there is a database problempublic void load(Calibrator cal, java.lang.String mbSerial, java.util.Date date, double temp) throws DOMCalibrationException, java.sql.SQLException
cal
- calibration object to be filledmbSerial
- mainboard serial number of DOM being loadeddate
- date of data being loadedtemp
- temperature of data being loaded
DOMCalibrationException
- if an argument is invalid
java.sql.SQLException
- if there is a database problempublic void loadMain(java.sql.Statement stmt, Calibrator cal, java.lang.String mbSerial, java.util.Date date, double temp) throws DOMCalibrationException, java.sql.SQLException
stmt
- SQL statementcal
- calibration object to be filledmbSerial
- mainboard serial number of DOM being loadeddate
- date of data being loadedtemp
- temperature of data being loaded
DOMCalibrationException
- if there is a problem with the data
java.sql.SQLException
- if there is a database problempublic static final void save(java.lang.String fileName, org.apache.log4j.Logger logger) throws DOMCalibrationException, java.io.IOException, java.sql.SQLException
fileName
- file namelogger
- error logger
icecube.daq.db.domprodtest.DOMProdTestException
- if there is a problem creating the object
java.io.IOException
- if there is a problem reading the properties.
java.sql.SQLException
- if there is a problem initializing the database.
DOMCalibrationException
public static final void save(java.lang.String fileName, org.apache.log4j.Logger logger, CalibratorDB calDB, boolean verbose) throws DOMCalibrationException, java.io.IOException, java.sql.SQLException
fileName
- file namelogger
- error loggercalDB
- database interface (one will be created if this
is not null
verbose
- true
for verbose comparison
icecube.daq.db.domprodtest.DOMProdTestException
- if there is a problem creating the object
java.io.IOException
- if there is a problem reading the properties.
java.sql.SQLException
- if there is a problem initializing the database.
DOMCalibrationException
public int save(Calibrator cal) throws DOMCalibrationException, java.sql.SQLException
cal
- calibration data
DOMCalibrationException
- if there is a problem with the data
java.sql.SQLException
- if there is a database problempublic void setLaboratory(icecube.daq.db.domprodtest.Laboratory lab)
lab
- laboratory
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |