Class SetNomination

java.lang.Object
org.deltava.dao.DAO
org.deltava.dao.SetNomination

public class SetNomination extends DAO
A Data Access Object to write Senior Captain Nominations to the database.
Since:
3.3
Version:
9.0
Author:
Luke
  • Constructor Details

    • SetNomination

      public SetNomination(Connection c)
      Initializes the Data Access Object.
      Parameters:
      c - the JDBC connection to use
  • Method Details

    • create

      public void create(Nomination n) throws DAOException
      Writes a new Nomination to the database.
      Parameters:
      n - the Nomination bean
      Throws:
      DAOException - if a JDBC error occurs
    • update

      public void update(Nomination n) throws DAOException
      Updates a Nomination in the database.
      Parameters:
      n - the Nomination bean
      Throws:
      DAOException - if a JDBC error occurs
    • writeComment

      public void writeComment(Nomination n, NominationComment nc) throws DAOException
      Writes a Nomination Comment to the database.
      Parameters:
      n - the Nomination bean
      nc - the NominationComment bean
      Throws:
      DAOException - if a JDBC error occurs
    • adjustToCurrentQuarter

      public void adjustToCurrentQuarter(Nomination n) throws DAOException
      Moves a nomination forward into the current Quarter.
      Parameters:
      n - the Nomination bean
      Throws:
      DAOException - if a JDBC error occurs