Class SetACARSLog
java.lang.Object
org.deltava.dao.DAO
org.deltava.dao.SetACARSLog
- Direct Known Subclasses:
SetACARSPurge
A Data Access Object to update or remove ACARS log entries.
- Since:
- 1.0
- Version:
- 10.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
deleteConnection
(long id) Deletes an ACARS Connection log entry.void
deleteError
(int id) Deletes an ACARS Error message from the error log.void
deleteInfo
(int flightID) Deletes an ACARS Flight Information log entry, and associated position reports.void
logError
(ACARSError err) Writes an ACARS Error message to the error log.int
purgeByUser
(int userID) Purges all ACARS Error messages for a given user from the error log.int
purgeError
(int build, int beta) Purges all ACARS Error messages for a given build from the error log.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
-
SetACARSLog
Initializes the Data Access Object.- Parameters:
c
- the JDBC connection to use
-
-
Method Details
-
deleteConnection
Deletes an ACARS Connection log entry.- Parameters:
id
- the connection ID- Throws:
DAOException
- if a JDBC error occurs
-
deleteInfo
Deletes an ACARS Flight Information log entry, and associated position reports.- Parameters:
flightID
- the flight ID- Throws:
DAOException
- if a JDBC error occurs
-
logError
Writes an ACARS Error message to the error log.- Parameters:
err
- the Error bean- Throws:
DAOException
- if a JDBC error occurs
-
deleteError
Deletes an ACARS Error message from the error log.- Parameters:
id
- the Error database ID- Throws:
DAOException
- if a JDBC error occurs
-
purgeError
Purges all ACARS Error messages for a given build from the error log.- Parameters:
build
- the client buildbeta
- the beta, zero for all betas and -1 for everything- Returns:
- the number of reports deleted
- Throws:
DAOException
-
purgeByUser
Purges all ACARS Error messages for a given user from the error log.- Parameters:
userID
- the user's database ID- Returns:
- the number of reports deleted
- Throws:
DAOException
- if a JDBC error occurs
-