public class BilingualDictionaryDao extends BasicEntityDao<Translation,BasicEntityTable<Translation>>
Constructor and Description |
---|
BilingualDictionaryDao(ConnectionManager connectionManager,
DbDictionary dbDictionary,
String tableName,
int maxCount) |
Modifier and Type | Method and Description |
---|---|
long |
addTranslation(Language[] languages,
String[] translations) |
boolean |
deleteTranslation(long id) |
void |
dump(PrintStream ps) |
Collection<Translation> |
searchTranslations(Language headLang,
Language[] targetLangs,
String headWord,
MatchingMethod matchingMethod) |
void |
updateTranslation(long id,
Language[] languages,
String[] translations) |
clear, delete, getSequenceTable, getTable, insert, search, update
beginTransaction, closeConnection, closeConnection, commitTransaction, getConnection, rollbackTransaction, rollbackTransaction
public BilingualDictionaryDao(ConnectionManager connectionManager, DbDictionary dbDictionary, String tableName, int maxCount)
public Collection<Translation> searchTranslations(Language headLang, Language[] targetLangs, String headWord, MatchingMethod matchingMethod) throws DaoException
DaoException
public long addTranslation(Language[] languages, String[] translations) throws DaoException
DaoException
public boolean deleteTranslation(long id) throws DaoException
DaoException
public void updateTranslation(long id, Language[] languages, String[] translations) throws DaoException
DaoException
public void dump(PrintStream ps) throws DaoException
DaoException