Class GetACARSErrors
java.lang.Object
org.deltava.dao.DAO
org.deltava.dao.GetACARSErrors
A Data Access Object to load ACARS client error logs.
- 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 TypeMethodDescriptionget
(int id) Returns a specific ACARS Client error log entry.getAll()
Returns all ACARS client error log entries.Returns the ACARS Client builds with error reports.getByBuild
(int build) Returns all ACARS client error log entries logged by a particular ACARS client build.getByPilot
(int id) Returns all ACARS client error log entries logged by a particular Pilot.Returns the Pilots with error reports.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
-
GetACARSErrors
Initializes the Data Access Object.- Parameters:
c
- the JDBC connection to use
-
-
Method Details
-
getBuilds
Returns the ACARS Client builds with error reports.- Returns:
- a Collection of Build numbers
- Throws:
DAOException
- if a JDBC error occurs
-
getPilots
Returns the Pilots with error reports.- Returns:
- a Collection of datbase ID
- Throws:
DAOException
- if a JDBC error occurs
-
get
Returns a specific ACARS Client error log entry.- Parameters:
id
- the entry database ID- Returns:
- an ACARSError bean, or null if not found
- Throws:
DAOException
- if a JDBC error occurs
-
getByPilot
Returns all ACARS client error log entries logged by a particular Pilot.- Parameters:
id
- the Pilot's database ID- Returns:
- a Collection of ACARSError beans
- Throws:
DAOException
- if a JDBC error occurs
-
getByBuild
Returns all ACARS client error log entries logged by a particular ACARS client build.- Parameters:
build
- the client build number- Returns:
- a Collection of ACARSError beans
- Throws:
DAOException
- if a JDBC error occurs
-
getAll
Returns all ACARS client error log entries.- Returns:
- a Collection of ACARSError beans
- Throws:
DAOException
- if a JDBC error occurs
-