public class ParallelTextWithIdDao extends CategorizedEntityDao<ParallelTextWithId,BasicEntityTable<ParallelTextWithId>>
Constructor and Description |
---|
ParallelTextWithIdDao(ConnectionManager connectionManager,
DbDictionary dbDictionary,
String tableName,
int maxCount) |
Modifier and Type | Method and Description |
---|---|
long |
addParallelTextWithId(Language[] languages,
String[] texts) |
boolean |
deleteParallelTextWithId(long id) |
Collection<ParallelTextWithId> |
searchParallelTextWithIds(Language sourceLang,
Language[] targetLangs,
String matchingValue,
MatchingMethod matchingMethod,
long[] categoryIds) |
boolean |
updateParallelTextWithId(long id,
Language[] languages,
String[] texts) |
void |
updateParallelTextWithIdCategories(long parallelTextWithIdId,
long[] categoryIds) |
addCategory, delete, deleteCategory, getCategoryTable, getMappingTable, listCategories, searchCategories, searchCategoryIds, searchEntitiesOfCategories, updateCategory, updateEntityCategories
clear, getSequenceTable, getTable, insert, search, update
beginTransaction, closeConnection, closeConnection, commitTransaction, getConnection, rollbackTransaction, rollbackTransaction
public ParallelTextWithIdDao(ConnectionManager connectionManager, DbDictionary dbDictionary, String tableName, int maxCount)
public Collection<ParallelTextWithId> searchParallelTextWithIds(Language sourceLang, Language[] targetLangs, String matchingValue, MatchingMethod matchingMethod, long[] categoryIds) throws DaoException
DaoException
public long addParallelTextWithId(Language[] languages, String[] texts) throws DaoException
DaoException
public boolean deleteParallelTextWithId(long id) throws DaoException
DaoException
public boolean updateParallelTextWithId(long id, Language[] languages, String[] texts) throws DaoException
DaoException
public void updateParallelTextWithIdCategories(long parallelTextWithIdId, long[] categoryIds) throws DaoException
DaoException