|
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.dictionary.DictionaryBean
Bean to handle dictionary requests.
Field Summary | |
protected Connection |
mConnection
The connection to the database. |
protected int |
mFuzzyThreshold
The maximum Levenshtein distance allowed. |
protected int |
mRecordLimit
The maximum number of records returned. |
protected String |
mWord
The word to look up. |
Constructor Summary | |
DictionaryBean()
Creates a new instance of DictionaryBean |
Method Summary | |
Definition[] |
approximateLookup()
Perform an approximate query. |
Definition[] |
exactLookup()
Perform an exact query. |
Definition[] |
fuzzyLookup()
|
String |
getApproximateQuery()
|
protected Connection |
getConnection()
Get the database connection. |
String |
getExactQuery()
|
int |
getFuzzyThreshold()
Get the maximum Levenshtein distance allowed. |
int |
getRecordLimit()
Get the upper limit on returned records. |
String |
getSoundexQuery()
|
String |
getText()
|
protected String |
getWord()
|
String |
help()
|
protected void |
limit(StringBuffer query,
String value,
String column)
|
protected void |
setConnection(Connection connection)
Set the database connection. |
void |
setFuzzyThreshold(int threshold)
Set the maximum Levenshtein distance allowed. |
void |
setRecordLimit(int limit)
Set the limit on returned records. |
void |
setText(String text)
|
protected void |
setWord(String word)
|
Definition[] |
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 mWord
protected int mRecordLimit
protected int mFuzzyThreshold
Constructor Detail |
public DictionaryBean()
Method Detail |
protected Connection getConnection()
protected void setConnection(Connection connection)
connection
- The connection to use to query the word database.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 String getWord()
protected void setWord(String word)
public String help()
protected void limit(StringBuffer query, String value, String column)
public String getExactQuery()
public String getApproximateQuery()
public String getSoundexQuery()
public Definition[] exactLookup() throws SQLException
SQLException
public Definition[] approximateLookup() throws SQLException
SQLException
public Definition[] fuzzyLookup() throws SQLException
SQLException
public Definition[] soundexLookup() throws SQLException
SQLException
public void setText(String text)
public String getText()
public String toString()
toString
in class Object
theword
|
Email Answering System Version 1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |