Class SetAcademyCalendar
java.lang.Object
org.deltava.dao.DAO
org.deltava.dao.SetAcademyCalendar
A Data Access Object to update Flight Academy Flight reports.
- 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 TypeMethodDescriptionvoid
delete
(int id) Deletes an Instruction Flight entry from the database.void
deleteBusy
(int instructorID, Instant startTime) Deletes an Instructor busy time entry from the database.void
write
(InstructionBusy ib) Writes an Instruction Calendar busy time entry.void
write
(InstructionFlight flight) Writes an Instruction flight entry to the database.void
Writes an Instruction Calendar entry.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
-
SetAcademyCalendar
Initializes the Data Access Object.- Parameters:
c
- the JDBC connection to use
-
-
Method Details
-
write
Writes an Instruction flight entry to the database.- Parameters:
flight
- the InstructionFlight bean- Throws:
DAOException
- if a JDBC error occurs
-
write
Writes an Instruction Calendar entry.- Parameters:
s
- the InstructionSession bean- Throws:
DAOException
- if a JDBC error occurs
-
write
Writes an Instruction Calendar busy time entry.- Parameters:
ib
- the InstructionBusy bean- Throws:
DAOException
- if a JDBC error occurs
-
delete
Deletes an Instruction Flight entry from the database.- Parameters:
id
- the database ID- Throws:
DAOException
- if a JDBC error occurs
-
deleteBusy
Deletes an Instructor busy time entry from the database.- Parameters:
instructorID
- the Instructor's database IDstartTime
- the start time- Throws:
DAOException
- if a JDBC error occurs
-