Class GetTimeZone
java.lang.Object
org.deltava.dao.DAO
org.deltava.dao.GetTimeZone
A Data Access Object for loading Time Zones.
- Since:
- 1.0
- Version:
- 11.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
initAll()
Intiailizes all Time Zones from the database.locate
(GeoLocation loc) Provides the Time Zone for a given geographic location.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
-
GetTimeZone
Initializes the Data Access Object.- Parameters:
c
- the JDBC connection to use
-
-
Method Details
-
initAll
Intiailizes all Time Zones from the database.- Throws:
DAOException
- if a JDBC error occurs
-
locate
Provides the Time Zone for a given geographic location.- Parameters:
loc
- the GeoLocation- Returns:
- a TZInfo object, or null if unknown
- Throws:
DAOException
- if a JDBC error occurs
-