Class SetXACARS
java.lang.Object
org.deltava.dao.DAO
org.deltava.dao.SetXACARS
A Data Access Object for writing XACARS data to the database.
- Since:
- 4.1
- 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
archive
(int oldID, int newID) Archives a set of XACARS position reports.void
create
(XAFlightInfo inf) Writes a new XACARS flight information bean to the database.void
delete
(int id) Deletes an XACARS flight from the database.void
endFlight
(int flightID) Marks a flight as complete.void
purge
(int hours) Purges old XACARS flights from the database.void
update
(XAFlightInfo inf) Updates an existing XACARS flight information bean in the database.void
write
(XARouteEntry pos) Writes an XACARS position report to 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
-
SetXACARS
Initializes the Data Access Object.- Parameters:
c
- the JDBC connection to use
-
-
Method Details
-
create
Writes a new XACARS flight information bean to the database.- Parameters:
inf
- a FlightInfo bean- Throws:
DAOException
- if a JDBC error occurs
-
update
Updates an existing XACARS flight information bean in the database.- Parameters:
inf
- a FlightInfo bean- Throws:
DAOException
- if a JDBC error occurs
-
endFlight
Marks a flight as complete.- Parameters:
flightID
- the XACARS flight ID- Throws:
DAOException
- if a JDBC error occurs
-
write
Writes an XACARS position report to the database.- Parameters:
pos
- a PositionInfo bean- Throws:
DAOException
- if a JDBC error occurs
-
archive
Archives a set of XACARS position reports.- Parameters:
oldID
- the temporary XACARS flight IDnewID
- the permanent ACARS flight ID- Throws:
DAOException
- if a JDBC error occurs
-
delete
Deletes an XACARS flight from the database.- Parameters:
id
- the flight ID- Throws:
DAOException
- if a JDBC error occurs
-
purge
Purges old XACARS flights from the database.- Parameters:
hours
- the purge interval in hours- Throws:
DAOException
- if a JDBC error occurs
-