Class GetFIR

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

public class GetFIR extends DAO
A Data Access Object to load FIR data.
Since:
3.2
Version:
9.0
Author:
Luke
  • Constructor Details

    • GetFIR

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

    • get

      public FIR get(String id, boolean isOceanic) throws DAOException
      Retrieves FIR data.
      Parameters:
      id - the FIR ID.
      isOceanic - TRUE if an Oceanic FIR, otherwise FALSE
      Returns:
      an FIR bean, or null if not found
      Throws:
      DAOException - if a JDBC or WKT error occurs
    • getAll

      public Collection<FIR> getAll() throws DAOException
      Returns all FIRs.
      Returns:
      a Collection of FIR beans
      Throws:
      DAOException - if a JDBC error occurs
    • search

      public FIR search(GeoLocation loc) throws DAOException
      Deternines the FIR for a given point.
      Parameters:
      loc - the point
      Returns:
      an FIR object, or null if unknown
      Throws:
      DAOException - if a JDBC error occurs