Class GetNavCycle

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

public class GetNavCycle extends DAO
A Data Access Object to load chart/navigation data cycle update dates.
Since:
5.1
Version:
9.0
Author:
Luke
  • Constructor Details

    • GetNavCycle

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

    • getCycle

      public CycleInfo getCycle(String id) throws DAOException
      Returns information about a particular navigation data cycle.
      Parameters:
      id - the Cycle ID
      Returns:
      a CycleInfo bean, or null if not found
      Throws:
      DAOException - if a JDBC erorr occurs
    • getCycle

      public CycleInfo getCycle(Instant dt) throws DAOException
      Returns the chart/navigation data cycle for a particular date.
      Parameters:
      dt - the date
      Returns:
      the CycleInfo
      Throws:
      DAOException - if a JDBC error occurs
    • getFuture

      public Collection<CycleInfo> getFuture() throws DAOException
      Returns all future navigation cycle release dates.
      Returns:
      a Collection of release dates, ordered by date
      Throws:
      DAOException - if a JDBC error occurs