Class GetDispatchCalendar
java.lang.Object
org.deltava.dao.DAO
org.deltava.dao.GetACARSData
org.deltava.dao.GetDispatchCalendar
A Data Access Object to read the ACARS Dispatcher service calendar.
- Since:
- 2.2
- Version:
- 10.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 TypeMethodDescriptionget
(int id) Retrieves a specifc Dispatcher service entry.getCalendar
(int dispatcherID, DateRange dr) Return Dispatcher service times for the Calendar.Returns all ACARS Dispatch connection entries within a time span.Retrieves all Flights dispatched by a Dispatcher during a particular Connection.Methods inherited from class org.deltava.dao.GetACARSData
executeConnectionInfo, executeFlightInfo, getArchiveInfo, getConnection, getInfo, getLandingRunway, getRoute, getTakeoffLanding, getTerminalRoutes
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
-
GetDispatchCalendar
Initializes the Data Access Object.- Parameters:
c
- the JDBC connection to use
-
-
Method Details
-
getDispatchConnections
Returns all ACARS Dispatch connection entries within a time span.- Parameters:
dr
- the DateRange- Returns:
- a List of dispatch ConnectionEntry beans
- Throws:
DAOException
- if a JDBC error occurs
-
getDispatchedFlights
Retrieves all Flights dispatched by a Dispatcher during a particular Connection.- Parameters:
ce
- the DispatchConnectionEntry- Returns:
- a List of FlightInfo beans
- Throws:
DAOException
- if a JDBC error occurs
-
get
Retrieves a specifc Dispatcher service entry.- Parameters:
id
- the entry database ID- Returns:
- a DispatchScheduleEntry, or null if not found
- Throws:
DAOException
- if a JDBC error occurs
-
getCalendar
public Collection<DispatchScheduleEntry> getCalendar(int dispatcherID, DateRange dr) throws DAOException Return Dispatcher service times for the Calendar.- Parameters:
dispatcherID
- the dispatcher database ID, or zero if alldr
- the DateRange- Returns:
- a Collection of DispatchScheduleEntry beans
- Throws:
DAOException
- if a JDBC error occurs
-