Class SetSchedule
java.lang.Object
org.deltava.dao.DAO
org.deltava.dao.SetSchedule
A Data Access Object to update the Flight Schedule.
- Since:
- 1.0
- Version:
- 11.2
- 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
(RawScheduleEntry entry) Deletes an entry from the Flight Schedule.int
purge
(ScheduleSource src) Purges entries from the Flight Schedule.int
purgeRaw
(ScheduleSource src) Purges entries from the raw Flight Schedule.void
Purges Raw Schedule source / airline mappings.void
write
(ScheduleEntry entry, boolean doReplace) Adds an entry to the Flight Schedule.void
writeRaw
(RawScheduleEntry rse, boolean doReplace) Writes a raw Schedule Entry from a schedule provider into the storage database.void
Updates the mapping of Raw Schedules sources to Airlines.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
-
SetSchedule
Initializes the Data Access Object.- Parameters:
c
- the JDBC connection to use
-
-
Method Details
-
write
Adds an entry to the Flight Schedule.- Parameters:
entry
- the Schedule EntrydoReplace
- TRUE if an existing entry can be replaced, otherwise FALSE- Throws:
DAOException
- if a JDBC error occurs
-
writeRaw
Writes a raw Schedule Entry from a schedule provider into the storage database.- Parameters:
rse
- a RawScheduleEntrydoReplace
- TRUE if an existing entry can be replaced, otherwise FALSE- Throws:
DAOException
- if a JDBC error occurs
-
delete
Deletes an entry from the Flight Schedule.- Parameters:
entry
- the entry- Throws:
DAOException
- if a JDBC error occursNullPointerException
- if entry is null
-
purge
Purges entries from the Flight Schedule.- Parameters:
src
- a ScheduleSource, or null for all- Returns:
- the number of deleted entries
- Throws:
DAOException
- if a JDBC error occurs
-
writeSourceAirlines
Updates the mapping of Raw Schedules sources to Airlines.- Parameters:
src
- a ScheduleSourceInfo bean- Throws:
DAOException
- if a JDBC error occurs
-
purgeSourceAirlines
Purges Raw Schedule source / airline mappings.- Parameters:
src
- a ScheduleSource, or null for all- Throws:
DAOException
- if a JDBC error occurs
-
purgeRaw
Purges entries from the raw Flight Schedule.- Parameters:
src
- the ScheduleSource- Returns:
- the number of entries deleted
- Throws:
DAOException
- if a JDBC error occurs
-