Class GetMetadata
java.lang.Object
org.deltava.dao.DAO
org.deltava.dao.GetMetadata
A Data Access Object to retrieve app-specific metadata.
- Since:
- 5.1
- 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 TypeMethodDescriptionReturns a metadata item.Returns a metadata item.getAll()
Returns all metadata items.Returns all metadata items whose key begins with a particular prefix.Returns a metadata item converted to a Date.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
-
GetMetadata
Initializes the Data Access Object.- Parameters:
c
- the JDBC connection to use
-
-
Method Details
-
get
Returns a metadata item.- Parameters:
key
- the key- Returns:
- the value, or null if not found
- Throws:
DAOException
- if a JDBC error occurs
-
get
Returns a metadata item.- Parameters:
key
- the keydefaultValue
- the default value if not found- Returns:
- the value
- Throws:
DAOException
- if a JDBC error occurs
-
getDate
Returns a metadata item converted to a Date.- Parameters:
key
- the key- Returns:
- the date/time value, or null if not found or unparseable
- Throws:
DAOException
- if a JDBC error occurs- See Also:
-
getAll
Returns all metadata items.- Returns:
- a Map of values, by key
- Throws:
DAOException
- if a JDBC error occurs
-
getAll
Returns all metadata items whose key begins with a particular prefix.- Parameters:
prefix
- the key prefix- Returns:
- a Map of values, by key
- Throws:
DAOException
- if a JDBC error occurs
-