public abstract class CategorizedEntityDao<T extends CategorizedEntity,U extends BasicEntityTable<T>> extends BasicEntityDao<T,U>
Constructor and Description |
---|
CategorizedEntityDao(ConnectionManager connectionManager,
U table,
CategoryTable categoryTable,
MappingTable mappingTable,
SequenceTable sequenceTable) |
Modifier and Type | Method and Description |
---|---|
long |
addCategory(Language[] languages,
String[] categories) |
protected boolean |
delete(long id) |
void |
deleteCategory(long categoryId) |
protected CategoryTable |
getCategoryTable() |
protected MappingTable |
getMappingTable() |
Collection<Category> |
listCategories(Language[] languages) |
Collection<Category> |
searchCategories(Language language,
Language[] subLanguages,
String category) |
long[] |
searchCategoryIds(Language language,
String[] categories) |
protected Collection<T> |
searchEntitiesOfCategories(Language language,
Language[] subLanguages,
String matchingValue,
MatchingMethod matchingMethod,
long[] categoryIds,
jp.go.nict.langrid.commons.transformer.Transformer<ResultSet,T> transformer) |
void |
updateCategory(long categoryId,
Language[] languages,
String[] categories) |
protected void |
updateEntityCategories(long entityId,
long[] categoryIds) |
clear, getSequenceTable, getTable, insert, search, update
beginTransaction, closeConnection, closeConnection, commitTransaction, getConnection, rollbackTransaction, rollbackTransaction
public CategorizedEntityDao(ConnectionManager connectionManager, U table, CategoryTable categoryTable, MappingTable mappingTable, SequenceTable sequenceTable)
public Collection<Category> listCategories(Language[] languages) throws DaoException
DaoException
public Collection<Category> searchCategories(Language language, Language[] subLanguages, String category) throws DaoException
DaoException
public long[] searchCategoryIds(Language language, String[] categories) throws DaoException
DaoException
public long addCategory(Language[] languages, String[] categories) throws DaoException
DaoException
public void deleteCategory(long categoryId) throws DaoException
DaoException
public void updateCategory(long categoryId, Language[] languages, String[] categories) throws DaoException
DaoException
protected Collection<T> searchEntitiesOfCategories(Language language, Language[] subLanguages, String matchingValue, MatchingMethod matchingMethod, long[] categoryIds, jp.go.nict.langrid.commons.transformer.Transformer<ResultSet,T> transformer) throws DaoException
DaoException
protected boolean delete(long id) throws DaoException
delete
in class BasicEntityDao<T extends CategorizedEntity,U extends BasicEntityTable<T>>
DaoException
protected void updateEntityCategories(long entityId, long[] categoryIds) throws DaoException
DaoException
protected CategoryTable getCategoryTable()
protected MappingTable getMappingTable()