Class SetSignatureImage

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

public class SetSignatureImage extends DAO
A Data Access Object to write Signature Images.
Since:
1.0
Version:
9.0
Author:
Luke
  • Constructor Details

    • SetSignatureImage

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

    • write

      public void write(Pilot p, int x, int y, String ext, boolean isApproved) throws DAOException
      Writes a Signature Image to the Database. The image data should be contained within the Pilot bean.
      Parameters:
      p - the Pilot containing the Signature image
      x - the Image width in pixels
      y - the Image height in pixels
      ext - the Image extension
      isApproved - whether the signature has been approved by management
      Throws:
      DAOException - if a JDBC error occurs
      See Also:
    • delete

      public void delete(int pilotID) throws DAOException
      Removes a Signature Image from the database.
      Parameters:
      pilotID - the Pilot ID
      Throws:
      DAOException - if a JDBC error occurs