public class ParallelTextDao extends BasicEntityDao<ParallelText,BasicEntityTable<ParallelText>>
Constructor and Description |
---|
ParallelTextDao(ConnectionManager connectionManager,
DbDictionary dbDictionary,
String tableName,
int maxCount) |
Modifier and Type | Method and Description |
---|---|
long |
addParallelText(Language[] languages,
String[] texts) |
boolean |
deleteParallelText(long id) |
Collection<ParallelText> |
searchParallelTexts(Language sourceLang,
Language[] targetLangs,
String source,
MatchingMethod matchingMethod) |
boolean |
updateParallelText(long id,
Language[] languages,
String[] texts) |
clear, delete, getSequenceTable, getTable, insert, search, update
beginTransaction, closeConnection, closeConnection, commitTransaction, getConnection, rollbackTransaction, rollbackTransaction
public ParallelTextDao(ConnectionManager connectionManager, DbDictionary dbDictionary, String tableName, int maxCount)
public Collection<ParallelText> searchParallelTexts(Language sourceLang, Language[] targetLangs, String source, MatchingMethod matchingMethod) throws DaoException
DaoException
public long addParallelText(Language[] languages, String[] texts) throws DaoException
DaoException
public boolean deleteParallelText(long id) throws DaoException
DaoException
public boolean updateParallelText(long id, Language[] languages, String[] texts) throws DaoException
DaoException