|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.agmodel.metDriver.FAWNMetDB
Provides access to the FAWN SQL Server database, Institute of Food and Agricultural Sciences (IFAS), University of Florida
| Constructor Summary | |
FAWNMetDB(MetSourceForDrivers metSource,
Properties properties)
|
|
| Method Summary | |
void |
checkForDatabaseUpdates()
connect to database and check the metadata |
boolean |
connectForData(String user,
String password)
Called before data is retrieved from the AccessMechanism |
boolean |
connectForMetaData(String user,
String password)
Called before metadata is retrieved from the AccessMechanism |
void |
disconnectFromData()
Called after data is retrieved from the AccessMechanism using connectForData. |
void |
disconnectFromMetaData()
Called after meta data is retrieved from the AccessMechanism using connectForMetaData. |
TimeZone |
getDatabaseTimeZone()
|
String |
prepareRequestQuery(MetRequest request,
String stationID,
StationDataSetImpl result)
|
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 java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public FAWNMetDB(MetSourceForDrivers metSource,
Properties properties)
| Method Detail |
public TimeZone getDatabaseTimeZone()
getDatabaseTimeZone in interface MetAccessMechanism
public String prepareRequestQuery(MetRequest request,
String stationID,
StationDataSetImpl result)
throws ConnectionException
ConnectionException
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 GeneralException
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.
GeneralException
public void updateRegionList()
throws GeneralException
MetAccessMechanism
updateRegionList in interface MetAccessMechanismGeneralException
public boolean connectForMetaData(String user,
String password)
DBAccessMechanism
connectForMetaData in interface DBAccessMechanismuser - a valid username for the database if it requires it, or null otherwise.password - the corresponding password (not encrypted) if required, or null otherwise.
public void disconnectFromMetaData()
DBAccessMechanism
disconnectFromMetaData in interface DBAccessMechanism
public boolean connectForData(String user,
String password)
DBAccessMechanism
connectForData in interface DBAccessMechanismuser - a valid username for the database if it requires it, or null otherwise.password - the corresponding password (not encrypted) if required, or null otherwise.
public void disconnectFromData()
DBAccessMechanism
disconnectFromData in interface DBAccessMechanismpublic void checkForDatabaseUpdates()
DBAccessMechanism
checkForDatabaseUpdates in interface DBAccessMechanism
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||