Class GetFIR
java.lang.Object
org.deltava.dao.DAO
org.deltava.dao.GetFIR
A Data Access Object to load FIR data.
- Since:
- 3.2
- 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
Modifier and TypeMethodDescriptionRetrieves FIR data.getAll()
Returns all FIRs.search
(GeoLocation loc) Deternines the FIR for a given point.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
-
GetFIR
Initializes the Data Access Object.- Parameters:
c
- the JDBC connection to use
-
-
Method Details
-
get
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
Returns all FIRs.- Returns:
- a Collection of FIR beans
- Throws:
DAOException
- if a JDBC error occurs
-
search
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
-