Class SetNomination
java.lang.Object
org.deltava.dao.DAO
org.deltava.dao.SetNomination
A Data Access Object to write Senior Captain Nominations to the database.
- Since:
- 3.3
- 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
Moves a nomination forward into the current Quarter.void
create
(Nomination n) Writes a new Nomination to the database.void
update
(Nomination n) Updates a Nomination in the database.void
Writes a Nomination Comment 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
-
SetNomination
Initializes the Data Access Object.- Parameters:
c
- the JDBC connection to use
-
-
Method Details
-
create
Writes a new Nomination to the database.- Parameters:
n
- the Nomination bean- Throws:
DAOException
- if a JDBC error occurs
-
update
Updates a Nomination in the database.- Parameters:
n
- the Nomination bean- Throws:
DAOException
- if a JDBC error occurs
-
writeComment
Writes a Nomination Comment to the database.- Parameters:
n
- the Nomination beannc
- the NominationComment bean- Throws:
DAOException
- if a JDBC error occurs
-
adjustToCurrentQuarter
Moves a nomination forward into the current Quarter.- Parameters:
n
- the Nomination bean- Throws:
DAOException
- if a JDBC error occurs
-