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 ConnectionManager
protected Map
protected static final Random
protected static final String
protected static final String
protected static final String
protected static final String
protected static final String
static final String
protected static final String
static final String
protected static final String
static final String
protected static final String
SQL query for getting all synsets for an index word.protected static final String
protected static final String
protected static final String
protected static final String
static final String
static final String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Query
createPOSIdQuery
(POS pos, int id, String sql) protected Query
createPOSOffsetQuery
(POS pos, long offset, String sql) protected Query
createPOSQuery
(POS pos, String sql) protected Query
createPOSStringQuery
(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:
create
in interfaceCreateable
- Throws:
JWNLException
-
getIndexWordSynsetsQuery
- Specified by:
getIndexWordSynsetsQuery
in interfaceDatabaseManager
- Throws:
JWNLException
-
getIndexWordLemmasQuery
- Specified by:
getIndexWordLemmasQuery
in interfaceDatabaseManager
- Throws:
JWNLException
-
getIndexWordLemmasQuery
- Specified by:
getIndexWordLemmasQuery
in interfaceDatabaseManager
- Throws:
JWNLException
-
getRandomIndexWordQuery
- Specified by:
getRandomIndexWordQuery
in interfaceDatabaseManager
- Throws:
JWNLException
-
getSynsetQuery
- Specified by:
getSynsetQuery
in interfaceDatabaseManager
- Throws:
JWNLException
-
getSynsetWordQuery
- Specified by:
getSynsetWordQuery
in interfaceDatabaseManager
- Throws:
JWNLException
-
getPointerQuery
- Specified by:
getPointerQuery
in interfaceDatabaseManager
- Throws:
JWNLException
-
getVerbFrameQuery
- Specified by:
getVerbFrameQuery
in interfaceDatabaseManager
- Throws:
JWNLException
-
getSynsetsQuery
- Specified by:
getSynsetsQuery
in interfaceDatabaseManager
- Throws:
JWNLException
-
getExceptionQuery
- Specified by:
getExceptionQuery
in interfaceDatabaseManager
- Throws:
JWNLException
-
getExceptionsQuery
- Specified by:
getExceptionsQuery
in interfaceDatabaseManager
- Throws:
JWNLException
-
createPOSQuery
- Throws:
JWNLException
-
createPOSStringQuery
- Throws:
JWNLException
-
createPOSOffsetQuery
- Throws:
JWNLException
-
createPOSIdQuery
- Throws:
JWNLException
-