Class GetTimeZone

java.lang.Object
org.deltava.dao.DAO
org.deltava.dao.GetTimeZone

public class GetTimeZone extends DAO
A Data Access Object for loading Time Zones.
Since:
1.0
Version:
11.0
Author:
Luke
  • Constructor Details

    • GetTimeZone

      public GetTimeZone(Connection c)
      Initializes the Data Access Object.
      Parameters:
      c - the JDBC connection to use
  • Method Details

    • initAll

      public void initAll() throws DAOException
      Intiailizes all Time Zones from the database.
      Throws:
      DAOException - if a JDBC error occurs
    • locate

      public TZInfo locate(GeoLocation loc) throws DAOException
      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