Class SetDispatchCalendar
java.lang.Object
org.deltava.dao.DAO
org.deltava.dao.SetDispatchCalendar
A Data Access Object to write entries to the ACARS Dispatcher service calendar.
- 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
delete
(int id) Deletes a schedule entry from the calendar.void
Writes a schedule entry to the calendar.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
-
SetDispatchCalendar
Initializes the Data Access Object.- Parameters:
c
- the JDBC connection to use
-
-
Method Details
-
write
Writes a schedule entry to the calendar. This can handle INSERT and UPDATE operations.- Parameters:
dse
- the DispatchScheduleEntry to write- Throws:
DAOException
- if a JDBC error occurs
-
delete
Deletes a schedule entry from the calendar.- Parameters:
id
- the entry database ID- Throws:
DAOException
- if a JDBC error occurs
-