public class DatabaseManagerImpl extends Object implements DatabaseManager, Createable
Modifier and Type | Field and Description |
---|---|
protected ConnectionManager |
_connectionManager |
protected Map |
_minMaxIds |
protected static Random |
_rand |
protected static String |
ALL_EXCEPTIONS_SQL |
protected static String |
ALL_LEMMAS_LIKE_SQL |
protected static String |
ALL_LEMMAS_SQL |
protected static String |
ALL_SYNSETS_SQL |
protected static String |
COUNT_INDEX_WORDS_SQL |
static String |
DRIVER |
protected static String |
EXCEPTION_SQL |
static String |
JNDI |
protected static String |
LEMMA_FOR_INDEX_WORD_ID_SQL |
static String |
PASSWORD |
protected static String |
SYNSET_IDS_FOR_INDEX_WORD_SQL
SQL query for getting all synsets for an index word.
|
protected static String |
SYNSET_POINTER_SQL |
protected static String |
SYNSET_SQL |
protected static String |
SYNSET_VERB_FRAME_SQL |
protected static String |
SYNSET_WORD_SQL |
static String |
URL |
static String |
USERNAME |
Constructor and Description |
---|
DatabaseManagerImpl() |
DatabaseManagerImpl(ConnectionManager connectionManager) |
Modifier and Type | Method and Description |
---|---|
Object |
create(Map params) |
protected 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) |
Query |
getExceptionQuery(POS pos,
String derivation) |
Query |
getExceptionsQuery(POS pos) |
Query |
getIndexWordLemmasQuery(POS pos) |
Query |
getIndexWordLemmasQuery(POS pos,
String substring) |
Query |
getIndexWordSynsetsQuery(POS pos,
String lemma) |
Query |
getPointerQuery(POS pos,
long offset) |
Query |
getRandomIndexWordQuery(POS pos) |
Query |
getSynsetQuery(POS pos,
long offset) |
Query |
getSynsetsQuery(POS pos) |
Query |
getSynsetWordQuery(POS pos,
long offset) |
Query |
getVerbFrameQuery(POS pos,
long offset) |
public static final String DRIVER
public static final String URL
public static final String USERNAME
public static final String PASSWORD
public static final String JNDI
protected static final String LEMMA_FOR_INDEX_WORD_ID_SQL
protected static final String SYNSET_IDS_FOR_INDEX_WORD_SQL
protected static final String COUNT_INDEX_WORDS_SQL
protected static final String ALL_LEMMAS_SQL
protected static final String ALL_LEMMAS_LIKE_SQL
protected static final String SYNSET_SQL
protected static final String SYNSET_WORD_SQL
protected static final String SYNSET_POINTER_SQL
protected static final String SYNSET_VERB_FRAME_SQL
protected static final String ALL_SYNSETS_SQL
protected static final String EXCEPTION_SQL
protected static final String ALL_EXCEPTIONS_SQL
protected static final Random _rand
protected ConnectionManager _connectionManager
protected Map _minMaxIds
public DatabaseManagerImpl()
public DatabaseManagerImpl(ConnectionManager connectionManager)
public Object create(Map params) throws JWNLException
create
in interface Createable
JWNLException
public Query getIndexWordSynsetsQuery(POS pos, String lemma) throws JWNLException
getIndexWordSynsetsQuery
in interface DatabaseManager
JWNLException
public Query getIndexWordLemmasQuery(POS pos) throws JWNLException
getIndexWordLemmasQuery
in interface DatabaseManager
JWNLException
public Query getIndexWordLemmasQuery(POS pos, String substring) throws JWNLException
getIndexWordLemmasQuery
in interface DatabaseManager
JWNLException
public Query getRandomIndexWordQuery(POS pos) throws JWNLException
getRandomIndexWordQuery
in interface DatabaseManager
JWNLException
public Query getSynsetQuery(POS pos, long offset) throws JWNLException
getSynsetQuery
in interface DatabaseManager
JWNLException
public Query getSynsetWordQuery(POS pos, long offset) throws JWNLException
getSynsetWordQuery
in interface DatabaseManager
JWNLException
public Query getPointerQuery(POS pos, long offset) throws JWNLException
getPointerQuery
in interface DatabaseManager
JWNLException
public Query getVerbFrameQuery(POS pos, long offset) throws JWNLException
getVerbFrameQuery
in interface DatabaseManager
JWNLException
public Query getSynsetsQuery(POS pos) throws JWNLException
getSynsetsQuery
in interface DatabaseManager
JWNLException
public Query getExceptionQuery(POS pos, String derivation) throws JWNLException
getExceptionQuery
in interface DatabaseManager
JWNLException
public Query getExceptionsQuery(POS pos) throws JWNLException
getExceptionsQuery
in interface DatabaseManager
JWNLException
protected Query createPOSQuery(POS pos, String sql) throws JWNLException
JWNLException
protected Query createPOSStringQuery(POS pos, String str, String sql) throws JWNLException
JWNLException
protected Query createPOSOffsetQuery(POS pos, long offset, String sql) throws JWNLException
JWNLException
protected Query createPOSIdQuery(POS pos, int id, String sql) throws JWNLException
JWNLException
Copyright © 2022. All rights reserved.