Class SetScheduleSync
java.lang.Object
org.deltava.dao.DAO
org.deltava.dao.SetScheduleSync
A Data Access Object to synchronize flight schedules.
- Since:
- 6.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
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
-
SetScheduleSync
Initializes the Data Access Object.- Parameters:
c
- the JDBC connection to use
-
-
Method Details
-
copy
Copies all schedule entries for a particular airline into the current database.- Parameters:
al
- the AirlinecanPurge
- TRUE if the entries should be purged next import, otherwise FALSEsrcDB
- the source database name- Returns:
- the number of entries copied
- Throws:
DAOException
- if a JDBC error occurs
-
purge
Purges schedule entries from a particular airline from the current database. This will remove all entries whether they are purgeable or not.- Parameters:
al
- the Airline- Returns:
- the number of schedule entries deleted
- Throws:
DAOException
- if a JDBC error occurs
-