Class SetACARSRoute
java.lang.Object
org.deltava.dao.DAO
org.deltava.dao.SetACARSRoute
A Data Access Object to write ACARS Dispatcher routes.
- Since:
- 2.2
- 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 TypeMethodDescriptionvoid
activate
(int id, boolean isActive) Marks a saved route as active or inactive.void
delete
(int id) Deletes a saved route from the database.void
write
(DispatchRoute rp) Creates a new ACARS dispatcher route.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
-
SetACARSRoute
Initializes the Data Access Object.- Parameters:
c
- the JDBC connection to use
-
-
Method Details
-
write
Creates a new ACARS dispatcher route.- Parameters:
rp
- the RoutePlan bean- Throws:
DAOException
- if a JDBC error occurs
-
activate
Marks a saved route as active or inactive.- Parameters:
id
- the route IDisActive
- TRUE if active, otherwise FALSE- Throws:
DAOException
- if a JDBC error occurs
-
delete
Deletes a saved route from the database.- Parameters:
id
- the route ID- Throws:
DAOException
- if a JDBC error occurs
-