Class SetACARSArchive
java.lang.Object
org.deltava.dao.DAO
org.deltava.dao.SetACARSArchive
A Data Access Object to write to the ACARS position archive.
- Since:
- 4.1
- Version:
- 11.1
- 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
archive
(int flightID, SequencedCollection<? extends RouteEntry> positions) Marks ACARS data as archived.void
delete
(int flightID) Deletes Position Archive metadata.void
Updates Position Archive metadata.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
-
SetACARSArchive
Initializes the Data Access Object.- Parameters:
c
- the JDBC connection to use
-
-
Method Details
-
archive
public void archive(int flightID, SequencedCollection<? extends RouteEntry> positions) throws DAOException Marks ACARS data as archived.- Parameters:
flightID
- the ACARS Flight IDpositions
- a Collection of RouteEntry beans- Throws:
DAOException
- if a JDBC error occurs
-
update
Updates Position Archive metadata.- Parameters:
md
- an ArchiveMetadata bean- Throws:
DAOException
- if a JDBC error occurs
-
delete
Deletes Position Archive metadata.- Parameters:
flightID
- the flight ID- Throws:
DAOException
- if a JDBC error occurs
-