Interface PersonUniquenessDAO

All Known Implementing Classes:
GetApplicant, GetPilotDirectory

public interface PersonUniquenessDAO
A Data Access Object interface to check for uniqueness.
Since:
1.0
Version:
2.6
Author:
Luke
  • Method Details

    • checkUnique

      Collection<Integer> checkUnique(Person usr, String dbName) throws DAOException
      Checks if a Person exists within a Particular database.
      Parameters:
      usr - the Person to check for
      dbName - the database name
      Returns:
      a Collection of Database IDs
      Throws:
      DAOException - if a JDBC error occurs
    • checkUnique

      Collection<Integer> checkUnique(Person usr, String dbName, int days) throws DAOException
      Checks if a Person exists within a Particular database.
      Parameters:
      usr - the Person to check for
      dbName - the database name
      days - restrict uniqueness search to users created in the last number of days, or -1 for all
      Returns:
      a Collection of Database IDs
      Throws:
      DAOException - if a JDBC error occurs
    • checkSoundex

      Collection<Integer> checkSoundex(Person usr, String dbName) throws DAOException
      Performs a soundex search on a Person's last name to detect possible matches. The soundex implementation is dependent on the capabilities of the underlying database engine, and is not guaranteed to be consistent (or even supported) across different database servers.
      Parameters:
      usr - the Person to check for
      dbName - the database name
      Returns:
      a Collection of Database IDs
      Throws:
      DAOException - if a JDBC error occurs
    • get

      Map<Integer, ? extends Person> get(UserDataMap udm) throws DAOException
      Returns Person objects which may be in another Airline's database.
      Parameters:
      udm - the UserDataMap bean containg the Person locations
      Returns:
      a Map of Persons indexed by database ID
      Throws:
      DAOException - if a JDBC error occurs