public class AdjacencyPairDao extends CategorizedEntityDao<AdjacencyPair,BasicEntityTable<AdjacencyPair>>
Constructor and Description |
---|
AdjacencyPairDao(ConnectionManager connectionManager,
DbDictionary dbDictionary,
String tableNamePrefix,
int maxCount) |
Modifier and Type | Method and Description |
---|---|
long |
addAdjacencyPair(Language language,
String firstTurn,
String[] secondTurns,
long[] categoryIds) |
long |
addFirstTurn(Language[] languages,
String[] firstTurns) |
long |
addSecondTurn(long firstTurnId,
Language[] languages,
String[] secondTurns) |
boolean |
deleteFirstTurn(long firstTurnId) |
boolean |
deleteSecondTurn(long firstTurnId,
long secondTurnId) |
Collection<AdjacencyPair> |
searchAdjacencyPairs(Language language,
Language[] subLanguages,
String matchingValue,
MatchingMethod matchingMethod,
long[] categoryIds) |
void |
updateFirstTurn(long firstTurnId,
Language[] languages,
String[] firstTurns) |
void |
updateFirstTurnCategories(long firstTurnId,
long[] categoryIds) |
void |
updateSecondTurn(long firstTurnId,
long secondTurnId,
Language[] languages,
String[] secondTurns) |
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 AdjacencyPairDao(ConnectionManager connectionManager, DbDictionary dbDictionary, String tableNamePrefix, int maxCount)
public Collection<AdjacencyPair> searchAdjacencyPairs(Language language, Language[] subLanguages, String matchingValue, MatchingMethod matchingMethod, long[] categoryIds) throws DaoException
DaoException
public long addAdjacencyPair(Language language, String firstTurn, String[] secondTurns, long[] categoryIds) throws DaoException
DaoException
public long addFirstTurn(Language[] languages, String[] firstTurns) throws DaoException
DaoException
public long addSecondTurn(long firstTurnId, Language[] languages, String[] secondTurns) throws DaoException
DaoException
public void updateFirstTurn(long firstTurnId, Language[] languages, String[] firstTurns) throws DaoException
DaoException
public void updateSecondTurn(long firstTurnId, long secondTurnId, Language[] languages, String[] secondTurns) throws DaoException
DaoException
public void updateFirstTurnCategories(long firstTurnId, long[] categoryIds) throws DaoException
DaoException
public boolean deleteFirstTurn(long firstTurnId) throws DaoException
DaoException
public boolean deleteSecondTurn(long firstTurnId, long secondTurnId) throws DaoException
DaoException