|
Email Answering System Version 1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ninecode.email.beans.slave.phone.PhoneBean
Bean to handle phone requests.
Field Summary | |
protected String |
mAreaCode
|
protected String |
mCity
|
protected Connection |
mConnection
The connection to the database. |
protected String |
mExchange
|
protected String |
mFirstName
|
protected int |
mFuzzyThreshold
The maximum Levenshtein distance allowed. |
protected String |
mLastName
|
protected String |
mNumber
|
protected String |
mPhone
|
protected String |
mProvince
|
protected String |
mQualifier
|
protected int |
mRecordLimit
The maximum number of records returned. |
protected String |
mStreet
|
Constructor Summary | |
PhoneBean()
|
Method Summary | |
Listing[] |
approximateLookup()
Perform an approximate query. |
Listing[] |
exactLookup()
Perform an exact query. |
protected void |
field(StringBuffer query,
String value,
String column)
|
Listing[] |
fuzzyLookup()
Perform a fuzzy query. |
String |
getApproximateQuery()
|
String |
getAreaCode()
|
String |
getCity()
|
protected Connection |
getConnection()
Get the database connection. |
String |
getExactQuery()
|
String |
getExchange()
|
String |
getFirstName()
|
String |
getFuzzyQuery()
|
int |
getFuzzyThreshold()
Get the maximum Levenshtein distance allowed. |
String |
getLastName()
|
String |
getNumber()
|
String |
getPhone()
|
String |
getPhoneNumber()
|
String |
getProvince()
|
String |
getQualifier()
|
int |
getRecordLimit()
Get the upper limit on returned records. |
String |
getSoundexQuery()
|
String |
getStreet()
|
String |
getText()
Output results in text form. |
String |
help()
|
protected void |
limit(StringBuffer query,
String value,
String column)
|
protected String |
parse(String body,
String key)
Parse out keyword phrase. |
protected void |
qualify(StringBuffer query,
String value,
String column)
|
void |
setAreaCode(String areacode)
|
void |
setCity(String city)
|
protected void |
setConnection(Connection connection)
Set the database connection. |
void |
setExchange(String exchange)
|
void |
setFirstName(String firstname)
|
void |
setFuzzyThreshold(int threshold)
Set the maximum Levenshtein distance allowed. |
void |
setLastName(String lastname)
|
void |
setNumber(String number)
|
void |
setPhone(String phone)
|
void |
setPhoneNumber(String phone_number)
|
void |
setProvince(String province)
|
void |
setQualifier(String qualifier)
|
void |
setRecordLimit(int limit)
Set the limit on returned records. |
void |
setStreet(String street)
|
void |
setText(String text)
Freeform text input. |
protected void |
soundex(StringBuffer query,
String value,
String column)
|
Listing[] |
soundexLookup()
Perform a soundex query. |
String |
toString()
Generate a string representing the state of this bean. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected Connection mConnection
protected String mLastName
protected String mFirstName
protected String mNumber
protected String mQualifier
protected String mStreet
protected String mCity
protected String mProvince
protected String mAreaCode
protected String mExchange
protected String mPhone
protected int mRecordLimit
protected int mFuzzyThreshold
Constructor Detail |
public PhoneBean()
Method Detail |
public String getLastName()
public void setLastName(String lastname)
public String getFirstName()
public void setFirstName(String firstname)
public String getNumber()
public void setNumber(String number)
public String getQualifier()
public void setQualifier(String qualifier)
public String getStreet()
public void setStreet(String street)
public String getCity()
public void setCity(String city)
public String getProvince()
public void setProvince(String province)
public String getAreaCode()
public void setAreaCode(String areacode)
public String getExchange()
public void setExchange(String exchange)
public String getPhone()
public void setPhone(String phone)
public String getPhoneNumber()
public void setPhoneNumber(String phone_number) throws IllegalArgumentException
IllegalArgumentException
public int getRecordLimit()
public void setRecordLimit(int limit)
limit
- The new value of property recordLimit.public int getFuzzyThreshold()
public void setFuzzyThreshold(int threshold)
threshold
- The new value for property fuzzyThreshold.protected Connection getConnection()
protected void setConnection(Connection connection)
connection
- The connection to use to query the phonebook database.protected void qualify(StringBuffer query, String value, String column)
public String getExactQuery()
public Listing[] exactLookup() throws SQLException
SQLException
protected void limit(StringBuffer query, String value, String column)
public String getApproximateQuery()
public Listing[] approximateLookup() throws SQLException
SQLException
protected void field(StringBuffer query, String value, String column)
public String getFuzzyQuery()
public Listing[] fuzzyLookup() throws SQLException
SQLException
protected void soundex(StringBuffer query, String value, String column)
public String getSoundexQuery()
public Listing[] soundexLookup() throws SQLException
SQLException
public String help()
protected String parse(String body, String key)
body
- The text to search in.key
- The keyword to search for.
null
if not found.public void setText(String text)
text
- Input in the form documented in help()
.public String getText()
public String toString()
toString
in class Object
lastname SMITH, firstname BOB
|
Email Answering System Version 1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |