Class DatabaseManagerImpl
java.lang.Object
net.didion.jwnl.dictionary.database.DatabaseManagerImpl
- All Implemented Interfaces:
DatabaseManager,Createable
- Direct Known Subclasses:
SenseAndUsageDatabaseManager
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ConnectionManagerprotected Mapprotected static final Randomprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringstatic final Stringprotected static final Stringstatic final Stringprotected static final Stringstatic final Stringprotected static final StringSQL query for getting all synsets for an index word.protected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected QuerycreatePOSIdQuery(POS pos, int id, String sql) protected QuerycreatePOSOffsetQuery(POS pos, long offset, String sql) protected QuerycreatePOSQuery(POS pos, String sql) protected QuerycreatePOSStringQuery(POS pos, String str, String sql) getExceptionQuery(POS pos, String derivation) getExceptionsQuery(POS pos) getIndexWordLemmasQuery(POS pos, String substring) getIndexWordSynsetsQuery(POS pos, String lemma) getPointerQuery(POS pos, long offset) getSynsetQuery(POS pos, long offset) getSynsetsQuery(POS pos) getSynsetWordQuery(POS pos, long offset) getVerbFrameQuery(POS pos, long offset)
-
Field Details
-
DRIVER
- See Also:
-
URL
- See Also:
-
USERNAME
- See Also:
-
PASSWORD
- See Also:
-
JNDI
- See Also:
-
LEMMA_FOR_INDEX_WORD_ID_SQL
- See Also:
-
SYNSET_IDS_FOR_INDEX_WORD_SQL
SQL query for getting all synsets for an index word.- See Also:
-
COUNT_INDEX_WORDS_SQL
- See Also:
-
ALL_LEMMAS_SQL
- See Also:
-
ALL_LEMMAS_LIKE_SQL
- See Also:
-
SYNSET_SQL
- See Also:
-
SYNSET_WORD_SQL
- See Also:
-
SYNSET_POINTER_SQL
- See Also:
-
SYNSET_VERB_FRAME_SQL
- See Also:
-
ALL_SYNSETS_SQL
- See Also:
-
EXCEPTION_SQL
- See Also:
-
ALL_EXCEPTIONS_SQL
- See Also:
-
_rand
-
_connectionManager
-
_minMaxIds
-
-
Constructor Details
-
DatabaseManagerImpl
public DatabaseManagerImpl() -
DatabaseManagerImpl
-
-
Method Details
-
create
- Specified by:
createin interfaceCreateable- Throws:
JWNLException
-
getIndexWordSynsetsQuery
- Specified by:
getIndexWordSynsetsQueryin interfaceDatabaseManager- Throws:
JWNLException
-
getIndexWordLemmasQuery
- Specified by:
getIndexWordLemmasQueryin interfaceDatabaseManager- Throws:
JWNLException
-
getIndexWordLemmasQuery
- Specified by:
getIndexWordLemmasQueryin interfaceDatabaseManager- Throws:
JWNLException
-
getRandomIndexWordQuery
- Specified by:
getRandomIndexWordQueryin interfaceDatabaseManager- Throws:
JWNLException
-
getSynsetQuery
- Specified by:
getSynsetQueryin interfaceDatabaseManager- Throws:
JWNLException
-
getSynsetWordQuery
- Specified by:
getSynsetWordQueryin interfaceDatabaseManager- Throws:
JWNLException
-
getPointerQuery
- Specified by:
getPointerQueryin interfaceDatabaseManager- Throws:
JWNLException
-
getVerbFrameQuery
- Specified by:
getVerbFrameQueryin interfaceDatabaseManager- Throws:
JWNLException
-
getSynsetsQuery
- Specified by:
getSynsetsQueryin interfaceDatabaseManager- Throws:
JWNLException
-
getExceptionQuery
- Specified by:
getExceptionQueryin interfaceDatabaseManager- Throws:
JWNLException
-
getExceptionsQuery
- Specified by:
getExceptionsQueryin interfaceDatabaseManager- Throws:
JWNLException
-
createPOSQuery
- Throws:
JWNLException
-
createPOSStringQuery
- Throws:
JWNLException
-
createPOSOffsetQuery
- Throws:
JWNLException
-
createPOSIdQuery
- Throws:
JWNLException
-