public class DictionaryDataBase extends Object
Constructor and Description |
---|
DictionaryDataBase(String tableName,
ConnectionManager manager,
String dbDictionary,
int maxCount) |
Modifier and Type | Method and Description |
---|---|
Collection<AdjacencyPair> |
getAdjacencyPair(String category,
Language language,
String firstTurn,
MatchingMethod matchingMethod) |
protected Connection |
getConnection() |
protected DbDictionary |
getDbDictionary() |
void |
getFirstTranslations(Language headLang,
Language targetLang,
DictionaryQuery[] queries,
Translation[] result) |
protected int |
getMaxCount() |
Collection<ParallelText> |
getParallelText(Language headLang,
Language targetLang,
String headword,
MatchingMethod matchingMethod) |
String |
getTableName() |
Collection<Translation> |
getTranslation(Language headLang,
Language targetLang,
String headword,
MatchingMethod matchingMethod) |
public DictionaryDataBase(String tableName, ConnectionManager manager, String dbDictionary, int maxCount)
public Collection<Translation> getTranslation(Language headLang, Language targetLang, String headword, MatchingMethod matchingMethod) throws SQLException
SQLException
public void getFirstTranslations(Language headLang, Language targetLang, DictionaryQuery[] queries, Translation[] result) throws SQLException
SQLException
public Collection<ParallelText> getParallelText(Language headLang, Language targetLang, String headword, MatchingMethod matchingMethod) throws SQLException
SQLException
public Collection<AdjacencyPair> getAdjacencyPair(String category, Language language, String firstTurn, MatchingMethod matchingMethod) throws SQLException
SQLException
public String getTableName()
protected Connection getConnection() throws SQLException
SQLException
protected DbDictionary getDbDictionary()
protected int getMaxCount()