Class SetMessageTemplate
java.lang.Object
org.deltava.dao.DAO
org.deltava.dao.SetMessageTemplate
A Data Access Object to write e-mail Message Templates.
- Since:
- 1.0
- Version:
- 10.6
- 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
Deletes a Message Template from the database.void
write
(MessageTemplate mt) Writes a Message Template to the database.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
-
SetMessageTemplate
Initialize the Data Access Object.- Parameters:
c
- the JDBC connection to use
-
-
Method Details
-
write
Writes a Message Template to the database. This can handle INSERTs and UPDATEs.- Parameters:
mt
- the MessageTemplate object to write- Throws:
DAOException
- if a JDBC error occurs
-
delete
Deletes a Message Template from the database.- Parameters:
name
- the template name- Throws:
DAOException
- if a JDBC error occurs
-