Class SetCoolerChannel
java.lang.Object
org.deltava.dao.DAO
org.deltava.dao.SetCoolerChannel
A Data Access Object to write Water Cooler Channel Profiles.
- 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
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
-
SetCoolerChannel
Initialize the Data Access Object.- Parameters:
c
- the JDBC connection to use
-
-
Method Details
-
create
Writes a new Channel Profile to the database.- Parameters:
c
- the Channel Profile bean- Throws:
DAOException
- if a JDBC error occurs
-
update
Updates an existing Channel Profile within the database.- Parameters:
c
- the Channel Profile beannewName
- the new Channel name if renaming, otherwise the old name- Throws:
DAOException
- if a JDBC error occurs
-
delete
Deletes a Water Cooler channel profile.- Parameters:
c
- the Channel bean- Throws:
DAOException
- if a JDBC error occurs
-