Class SetResource
java.lang.Object
org.deltava.dao.DAO
org.deltava.dao.SetResource
A Data Access Object to write Web Resources to a database.
- Since:
- 1.0
- Version:
- 10.4
- Author:
- Luke
-
Field Summary
Fields inherited from class org.deltava.dao.DAO
_queryMax, _queryStart, _queryTimeout, WGS84_SRID
-
Constructor Summary
Constructors -
Method Summary
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
-
SetResource
Initializes the Data Access Object.- Parameters:
c
- the JDBC connection to use
-
-
Method Details
-
write
Writes a Web Resource to the database.- Parameters:
r
- the Resource bean- Throws:
DAOException
- if a JDBC errror occurs
-
hit
Logs a link to a particular Web Resource.- Parameters:
id
- the Resource database ID- Throws:
DAOException
- if a JDBC error occurs
-
delete
Deletes a Web Resource from the database.- Parameters:
id
- the Resource database ID- Throws:
DAOException
- if a JDBC error occurs
-