Class SetTour
java.lang.Object
org.deltava.dao.DAO
org.deltava.dao.SetTour
A Data Access Object to write Tour data to the database.
- Since:
- 10.0
- Version:
- 11.6
- Author:
- Luke
-
Field Summary
Fields inherited from class org.deltava.dao.DAO
_queryMax, _queryStart, _queryTimeout, WGS84_SRID
-
Constructor Summary
Constructors -
Method Summary
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
-
SetTour
Initializes the Data Access Object.- Parameters:
c
- the JDBC connection to use
-
-
Method Details
-
write
Writes a Tour and its legs to the database.- Parameters:
t
- the Tour- Throws:
DAOException
- if a JDBC error occurs
-
delete
Deletes a Tour from the database, clearing the flag from any existing Flight Reports.- Parameters:
t
- the Tour- Returns:
- the number of Flight Reports updated
- Throws:
DAOException
- if a JDBC error occurs
-
write
Writes Flight Tour feedback to the database.- Parameters:
tf
- a Feedback bean- Throws:
DAOException
- if a JDBC error occurs
-