|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.agmodel.dbUtility.InternetHost
net.agmodel.dbUtility.JDBC
net.agmodel.dbUtility.JDBCPostgres
net.agmodel.metDriver.FieldServer
Provides acccess to HortPlus' MySQL database
| Constructor Summary | |
FieldServer(MetSourceForDrivers metSource,
Properties properties)
|
|
| Method Summary | |
void |
checkForDatabaseUpdates()
connect to database and check the metadata |
boolean |
connectForData(String username,
String password)
Called before data is retrieved from the AccessMechanism |
TimeZone |
getDatabaseTimeZone()
|
int |
looseCompare(double a,
double b,
double delta)
|
void |
queryForStation(MetRequest request,
String stationID,
StationDataSetImpl result)
Retrieve the relevant data from a single station. |
void |
updateRegionList()
Update the list of regions (if any) held by the MetSource |
void |
updateStationList(String fromStation)
Update the list of stations held by the MetSource |
| Methods inherited from class net.agmodel.dbUtility.JDBCPostgres |
connect |
| Methods inherited from class net.agmodel.dbUtility.JDBC |
connectForMetaData, disconnectFromData, disconnectFromMetaData, getConn |
| Methods inherited from class net.agmodel.dbUtility.InternetHost |
getHost, getPort |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface net.agmodel.brokerImpl.DBAccessMechanism |
connectForMetaData, disconnectFromData, disconnectFromMetaData |
| Constructor Detail |
public FieldServer(MetSourceForDrivers metSource,
Properties properties)
| Method Detail |
public TimeZone getDatabaseTimeZone()
getDatabaseTimeZone in interface MetAccessMechanism
public void queryForStation(MetRequest request,
String stationID,
StationDataSetImpl result)
throws ConnectionException
MetAccessMechanism
queryForStation in interface MetAccessMechanismrequest - describes what data is requiredstationID - identifies which station from the met data source to queryresult - the skeletal query result (created by MetSourceImpl) for the driver fill in with data
hostID is the native identifier for the station on the host database system.ConnectionException
public void updateStationList(String fromStation)
throws ConnectionException
MetAccessMechanism
updateStationList in interface MetAccessMechanismfromStation - start the update from this station (the driver may ignore this value and update all stations)
The fromStation parameter is intended to help with large databases where, particularly during driver development, the
updating process may fail midway through. It avoids the need to start again from the beginning. Drivers are welcome to entirely ignore this parameter.
A null parameter value indicates that updating should start from the beginning.
ConnectionException
public void updateRegionList()
throws GeneralException
MetAccessMechanism
updateRegionList in interface MetAccessMechanismGeneralException
public boolean connectForData(String username,
String password)
throws ConnectionException
DBAccessMechanism
connectForData in interface DBAccessMechanismconnectForData in class JDBCConnectionException
public void checkForDatabaseUpdates()
throws ConnectionException
DBAccessMechanism
checkForDatabaseUpdates in interface DBAccessMechanismcheckForDatabaseUpdates in class JDBCConnectionException
public int looseCompare(double a,
double b,
double delta)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||