Class SetTransferRequest

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

public class SetTransferRequest extends DAO
A Data Access Object to write equipment program Transfer Requests.
Since:
1.0
Version:
9.0
Author:
Luke
  • Constructor Details

    • SetTransferRequest

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

    • create

      public void create(TransferRequest txreq, String dbName) throws DAOException
      Writes a new Transfer Request into a database.
      Parameters:
      txreq - the TransferRequest bean
      dbName - the database name
      Throws:
      DAOException - if a JDBC error occurs
    • update

      public void update(TransferRequest txreq) throws DAOException
      Updates an existing Transfer Request in the current database.
      Parameters:
      txreq - the TransferRequest bean
      Throws:
      DAOException - if a JDBC error occurs
    • delete

      public void delete(int pilotID) throws DAOException
      Deletes a Transfer Request from the current database.
      Parameters:
      pilotID - the Pilot's database ID
      Throws:
      DAOException - if a JDBC error occurs