Class SetCoolerLinks
java.lang.Object
org.deltava.dao.DAO
org.deltava.dao.SetCoolerLinks
A Data Access Object to write and update Water Cooler image URLs.
- Since:
- 1.0
- 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 TypeMethodDescriptionvoid
add
(int threadID, LinkedImage img) Adds a Linked Image to an existing discussion thread.void
delete
(int threadID, int seq) Deletes an image URL associated with a particular Message Thread.void
disable
(int threadID, int seq) Disables an image URL associated with a particular Message Thread.void
restore
(int threadID) Restores disabled Linked Images within an existing discussion thread.void
Writes Image URLs for a Message Thread.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
-
SetCoolerLinks
Initializes the Data Access Object.- Parameters:
c
- the JDBC connection to use
-
-
Method Details
-
write
Writes Image URLs for a Message Thread.- Parameters:
t
- the Message Thread bean- Throws:
DAOException
- if a JDBC error occurs
-
add
Adds a Linked Image to an existing discussion thread.- Parameters:
threadID
- the MessageThread database IDimg
- the LinkedImage bean- Throws:
DAOException
- if a JDBC error occurs
-
restore
Restores disabled Linked Images within an existing discussion thread.- Parameters:
threadID
- the MessageThread database ID- Throws:
DAOException
- if a JDBC error occurs
-
delete
Deletes an image URL associated with a particular Message Thread.- Parameters:
threadID
- the MessageThread database IDseq
- the Image URL sequence ID- Throws:
DAOException
- if a JDBC error occurs
-
disable
Disables an image URL associated with a particular Message Thread.- Parameters:
threadID
- the MessageThread database IDseq
- the Image URL sequence ID- Throws:
DAOException
- if a JDBC error occurs
-