Class SetFlightReportQueue
java.lang.Object
org.deltava.dao.DAO
org.deltava.dao.SetFlightReportQueue
A Data Access Object to write to asynchronous Flight Report operation queues. This are done for asynchronous updates of Flight Statistics,
Flight Report approvals and Elite Status updates.
- Since:
- 12.2
- Version:
- 12.2
- Author:
- Luke
-
Field Summary
Fields inherited from class DAO
_queryMax, _queryStart, _queryTimeout, WGS84_SRID -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds an entry to the operation queue.voidclear(int id) Deletes an entry from the operation queue.voidcomplete(int id, ApprovalOperation a) Marks a post-approval operation as complete in the queue.Methods inherited from class DAO
commitTransaction, createTimestamp, executeIDs, executeUpdate, executeUpdate, expandDate, formatDBName, formatLocation, getNewID, getQueryCount, prepare, prepareWithoutLimits, rollbackTransaction, setQueryMax, setQueryStart, setQueryTimeout, startTransaction, toID, toID, toInstant
-
Constructor Details
-
SetFlightReportQueue
Iniaitlaizes the Data Access Object.- Parameters:
c- the JDBC connection to use
-
-
Method Details
-
add
Adds an entry to the operation queue.- Parameters:
id- the Flight Report database IDskipElite- TRUE if Elite scoring should be marked complete (for Rejected flights and no Elite program), otherwise FALSEdbName- the database name- Throws:
DAOException- if a JDBC error occurs
-
clear
Deletes an entry from the operation queue.- Parameters:
id- the Flight Report database ID- Throws:
DAOException- if a JDBC error occurs
-
complete
Marks a post-approval operation as complete in the queue.- Parameters:
id- the Flight Report database IDa- the AppropvalOperation- Throws:
DAOException- if a JDBC error occurs
-