public class DatabaseManagerImpl extends Object implements DatabaseManager, Createable
Modifier and Type | Field and Description |
---|---|
static String |
DRIVER |
static String |
MAPPING |
static String |
PASSWORD |
static String |
URL |
static String |
USERNAME |
Constructor and Description |
---|
DatabaseManagerImpl() |
DatabaseManagerImpl(ConnectionManager connectionManager) |
Modifier and Type | Method and Description |
---|---|
Object |
create(Map params) |
ConnectionManager |
getConnectionManager() |
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 |
getSenseKeyQuery(long offset,
String lemma) |
Query |
getSynsetQuery(POS pos,
long offset) |
Query |
getSynsetsQuery(POS pos) |
Query |
getSynsetWordQuery(POS pos,
long offset) |
Query |
getUsageCountQuery(long offset,
String lemma) |
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 MAPPING
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
public Query getUsageCountQuery(long offset, String lemma) throws JWNLException
getUsageCountQuery
in interface DatabaseManager
JWNLException
public Query getSenseKeyQuery(long offset, String lemma) throws JWNLException
getSenseKeyQuery
in interface DatabaseManager
JWNLException
public ConnectionManager getConnectionManager()
getConnectionManager
in interface DatabaseManager