public abstract class AbstractPrincetonDatabaseDictionaryElementFactory extends AbstractDictionaryElementFactory implements DatabaseDictionaryElementFactory
CACHE_STRINGS_KEY, cacheStrings, dictionary, maxOffset, stringCache
Constructor and Description |
---|
AbstractPrincetonDatabaseDictionaryElementFactory(Dictionary dictionary,
java.util.Map<java.lang.String,Param> params) |
Modifier and Type | Method and Description |
---|---|
Exc |
createExc(POS pos,
java.lang.String derivation,
java.sql.ResultSet rs)
Create an Exc from a row in the database.
|
IndexWord |
createIndexWord(POS pos,
java.lang.String lemma,
java.sql.ResultSet rs)
Create an IndexWord from a row in the database.
|
Synset |
createSynset(POS pos,
long offset,
java.sql.ResultSet synsets,
java.sql.ResultSet words,
java.sql.ResultSet pointers,
java.sql.ResultSet verbFrames)
Create a Synset from a row in the database.
|
createException, createIndexWord, createNewOffset, createSynset, createWord, getDictionary, initVerbFrameFlags, setDictionary, startCaching, stopCaching
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createException, createIndexWord, createSynset
getDictionary, setDictionary
public AbstractPrincetonDatabaseDictionaryElementFactory(Dictionary dictionary, java.util.Map<java.lang.String,Param> params)
public IndexWord createIndexWord(POS pos, java.lang.String lemma, java.sql.ResultSet rs) throws java.sql.SQLException, JWNLException
DatabaseDictionaryElementFactory
createIndexWord
in interface DatabaseDictionaryElementFactory
pos
- part of speechlemma
- lemmars
- result setjava.sql.SQLException
- SQLExceptionJWNLException
- JWNLExceptionpublic Synset createSynset(POS pos, long offset, java.sql.ResultSet synsets, java.sql.ResultSet words, java.sql.ResultSet pointers, java.sql.ResultSet verbFrames) throws java.sql.SQLException, JWNLException
DatabaseDictionaryElementFactory
createSynset
in interface DatabaseDictionaryElementFactory
pos
- part of speechoffset
- synset offsetsynsets
- synset result setwords
- words result setpointers
- pointers result setverbFrames
- verb frames result setjava.sql.SQLException
- SQLExceptionJWNLException
- JWNLExceptionpublic Exc createExc(POS pos, java.lang.String derivation, java.sql.ResultSet rs) throws java.sql.SQLException, JWNLException
DatabaseDictionaryElementFactory
createExc
in interface DatabaseDictionaryElementFactory
pos
- the part of speechderivation
- derivationrs
- result setjava.sql.SQLException
- SQLExceptionJWNLException
- JWNLException