Class GetAddressValidation

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

public class GetAddressValidation extends DAO
A Data Access Object to read e-mail address validation entries.
Since:
1.0
Version:
9.0
Author:
Luke
  • Constructor Details

    • GetAddressValidation

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

    • get

      public AddressValidation get(int id) throws DAOException
      Returns the Address Validation data for a particular Pilot/Applicant ID
      Parameters:
      id - the database ID
      Returns:
      the AddressValidation bean, or null if not found
      Throws:
      DAOException - if a JDBC error occurs
    • isValid

      public boolean isValid(int pilotID) throws DAOException
      Returns if a Pilot or Applicant's e-mail address is valid.
      Parameters:
      pilotID - the Pilot/Applicant ID
      Returns:
      TRUE if the address is valid (no record found), otherwise FALSE
      Throws:
      DAOException - if a JDBC error occurs
    • get

      public AddressValidation get(String hashCode) throws DAOException
      Returns the Address Validation data matching a particular hash code.
      Parameters:
      hashCode - the hash code
      Returns:
      the AddressValidation bean, or null if not found
      Throws:
      DAOException - if a JDBC error occurs
    • getAddress

      public AddressValidation getAddress(String eMail) throws DAOException
      Returns the Address Validation data matching a particular e-mail address.
      Parameters:
      eMail - the e-mail address
      Returns:
      the AddressValidation bean, or null if not found
      Throws:
      DAOException - if a JDBC error occurs