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:
- 9.0
- Author:
- Luke
-
Field Summary
Fields inherited from class org.deltava.dao.DAO
_queryMax, _queryStart, _queryTimeout, WGS84_SRID
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
deleteOceanic
(OceanicTrackInfo.Type routeType, Instant vd) Deletes an entry from the Oceanic Routes table.int
purgeOceanic
(Instant sd) Purges the Oceanic Routes table.void
write
(OceanicTrack ow) Wirtes an Oceanic route into the database.void
write
(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
-