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 Summary
Modifier and TypeMethodDescriptioncheckSoundex
(Person usr, String dbName) Performs a soundex search on a Person's last name to detect possible matches.checkUnique
(Person usr, String dbName) Checks if a Person exists within a Particular database.checkUnique
(Person usr, String dbName, int days) Checks if a Person exists within a Particular database.get
(UserDataMap udm) Returns Person objects which may be in another Airline's database.
-
Method Details
-
checkUnique
Checks if a Person exists within a Particular database.- Parameters:
usr
- the Person to check fordbName
- the database name- Returns:
- a Collection of Database IDs
- Throws:
DAOException
- if a JDBC error occurs
-
checkUnique
Checks if a Person exists within a Particular database.- Parameters:
usr
- the Person to check fordbName
- the database namedays
- 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
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 fordbName
- the database name- Returns:
- a Collection of Database IDs
- Throws:
DAOException
- if a JDBC error occurs
-
get
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
-