public class JdbcDictionaryImpl extends AbstractBaseDictionary
Modifier and Type | Field and Description |
---|---|
private java.sql.PreparedStatement |
iv_cntPrepStmt |
private java.sql.Connection |
iv_dbConn |
private java.lang.String |
iv_lookupFieldName |
private java.sql.PreparedStatement |
iv_mdPrepStmt |
private java.lang.String |
iv_tableName |
Constructor and Description |
---|
JdbcDictionaryImpl(java.sql.Connection conn,
java.lang.String tableName,
java.lang.String lookupFieldName) |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(java.lang.String text)
Determines whether the Dictionary contains the specified input text.
|
java.util.Collection<MetaDataHit> |
getEntries(java.lang.String text)
Gets any meta data entries associated with the specified input text.
|
private java.sql.PreparedStatement |
initCountPrepStmt(java.lang.String text) |
private java.sql.PreparedStatement |
initMetaDataPrepStmt(java.lang.String text) |
getMetaFieldNames, retainMetaData
private final java.sql.Connection iv_dbConn
private final java.lang.String iv_tableName
private final java.lang.String iv_lookupFieldName
private java.sql.PreparedStatement iv_mdPrepStmt
private java.sql.PreparedStatement iv_cntPrepStmt
public JdbcDictionaryImpl(java.sql.Connection conn, java.lang.String tableName, java.lang.String lookupFieldName)
private java.sql.PreparedStatement initCountPrepStmt(java.lang.String text) throws java.sql.SQLException
java.sql.SQLException
private java.sql.PreparedStatement initMetaDataPrepStmt(java.lang.String text) throws java.sql.SQLException
java.sql.SQLException
public boolean contains(java.lang.String text) throws DictionaryException
text
- The input text.DictionaryException
public java.util.Collection<MetaDataHit> getEntries(java.lang.String text) throws DictionaryException
text
- The input text.DictionaryException