Class SetCoolerNotification
java.lang.Object
org.deltava.dao.DAO
org.deltava.dao.SetCoolerNotification
A Data Access Object to update Water Cooler thread notification entries.
- 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, int userID) Adds a notification entry for a particular message thread.void
clear
(int threadID) Clears all notification entries for a particular message thread.void
delete
(int threadID, int userID) Removes a notification entry for a particular 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
-
SetCoolerNotification
Initializes the Data Access Object.- Parameters:
c
- the JDBC connection to use
-
-
Method Details
-
clear
Clears all notification entries for a particular message thread.- Parameters:
threadID
- the message thread database ID- Throws:
DAOException
- if a JDBC error occurs
-
add
Adds a notification entry for a particular message thread.- Parameters:
threadID
- the message thread database IDuserID
- the user database ID- Throws:
DAOException
- if a JDBC error occurs
-
delete
Removes a notification entry for a particular message thread.- Parameters:
threadID
- the message thread database IDuserID
- the user database ID- Throws:
DAOException
- if a JDBC error occurs
-