Class GetXACARS
java.lang.Object
org.deltava.dao.DAO
org.deltava.dao.GetXACARS
A Data Access Object for reading XACARS data from 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 TypeMethodDescriptionReturns XACARS flights with a position report submitted within the last 30 minutes.getFlight
(int id) Retrieves an XACARS flight record.int
Retrieves an XACARS flight ID from a flight number and user.getPositions
(int flightID) Retrieves all position entries associated with a particular flight.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
-
GetXACARS
Initializes the Data Access Object.- Parameters:
c
- the JDBC connection to use
-
-
Method Details
-
getID
Retrieves an XACARS flight ID from a flight number and user.- Parameters:
userID
- the user's database IDf
- the Flight information- Returns:
- a Flight ID, or zero if not found
- Throws:
DAOException
- if a JDBC error occurs
-
getFlight
Retrieves an XACARS flight record.- Parameters:
id
- the flight ID- Returns:
- a FlightInfo bean, or null if not found
- Throws:
DAOException
- if a JDBC error occurs
-
getActive
Returns XACARS flights with a position report submitted within the last 30 minutes.- Returns:
- a Collection of XAFlightInfo beans
- Throws:
DAOException
- if a JDBC error occurs
-
getPositions
Retrieves all position entries associated with a particular flight.- Parameters:
flightID
- the XACARS flight ID- Returns:
- a Collection of PositionInfo beans
- Throws:
DAOException
- if a JDBC error occurs
-