|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.extjwnl.dictionary.database.DatabaseManagerImpl
public class DatabaseManagerImpl
Database manager.
Field Summary | |
---|---|
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 ConnectionManager |
connectionManager
|
protected static String |
COUNT_INDEX_WORDS_SQL
|
protected Dictionary |
dictionary
|
static String |
DRIVER
|
protected static String |
EXCEPTION_SQL
|
static String |
JNDI
|
protected static String |
LEMMA_FOR_INDEX_WORD_ID_SQL
|
protected Map<POS,net.sf.extjwnl.dictionary.database.DatabaseManagerImpl.MinMax> |
minMaxIds
|
static String |
PASSWORD
|
protected static Random |
rand
|
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 Summary | |
---|---|
DatabaseManagerImpl(Dictionary dictionary,
Map<String,Param> params)
|
Method Summary | |
---|---|
void |
close()
Closes the connections and frees associated resources. |
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)
|
Dictionary |
getDictionary()
Returns the dictionary this object belongs to. |
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)
|
void |
setDictionary(Dictionary dictionary)
Sets the dictionary this object belongs to. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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 final ConnectionManager connectionManager
protected final Map<POS,net.sf.extjwnl.dictionary.database.DatabaseManagerImpl.MinMax> minMaxIds
protected final Dictionary dictionary
Constructor Detail |
---|
public DatabaseManagerImpl(Dictionary dictionary, Map<String,Param> params) throws JWNLException
JWNLException
Method Detail |
---|
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 void close()
DatabaseManager
close
in interface DatabaseManager
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
public Dictionary getDictionary()
Owned
getDictionary
in interface Owned
public void setDictionary(Dictionary dictionary)
Owned
setDictionary
in interface Owned
dictionary
- the dictionary this object belongs to
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |