Class SetOceanic
java.lang.Object
org.deltava.dao.DAO
org.deltava.dao.SetOceanic
A Data Access Object to write Oceanic Routes.
- Since:
- 1.0
- Version:
- 11.6
- Author:
- Luke
-
Field Summary
Fields inherited from class org.deltava.dao.DAO
_queryMax, _queryStart, _queryTimeout, WGS84_SRID -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteOceanic(OceanicTrackInfo.Type routeType, Instant vd) Deletes an entry from the Oceanic Routes table.intpurgeOceanic(Instant sd) Purges the Oceanic Routes table.voidwrite(OceanicTrack ow) Wirtes an Oceanic route into the database.voidwrite(OceanicNOTAM or) Writes an Oceanic Route NOTAM into the database.Methods inherited from class org.deltava.dao.DAO
commitTransaction, createTimestamp, executeIDs, executeUpdate, executeUpdate, expandDate, formatDBName, formatLocation, getNewID, getQueryCount, prepare, prepareWithoutLimits, rollbackTransaction, setQueryMax, setQueryStart, setQueryTimeout, startTransaction, toID, toID, toInstant
-
Constructor Details
-
SetOceanic
Initialize the Data Access Object.- Parameters:
c- the JDBC connection to use
-
-
Method Details
-
purgeOceanic
Purges the Oceanic Routes table.- Parameters:
sd- the start date for the purge operation; purge all records before this date- Returns:
- the number of routes deleted
- Throws:
DAOException- if a JDBC error occurs
-
write
Writes an Oceanic Route NOTAM into the database.- Parameters:
or- the OceanicNOTAM bean- Throws:
DAOException- if a JDBC error occurs
-