public abstract class BasicEntityDao<T extends BasicEntity,U extends BasicEntityTable<T>> extends AbstractDao
Constructor and Description |
---|
BasicEntityDao(ConnectionManager connectionManager,
U table,
SequenceTable sequenceTable) |
Modifier and Type | Method and Description |
---|---|
protected void |
clear() |
protected boolean |
delete(long id) |
protected SequenceTable |
getSequenceTable() |
protected BasicEntityTable<T> |
getTable() |
protected long |
insert(Language[] languages,
String[] values) |
protected Collection<T> |
search(Language matchingLanguage,
Language[] subLanguages,
String matchingValue,
MatchingMethod matchingMethod,
jp.go.nict.langrid.commons.transformer.Transformer<ResultSet,T> transformer) |
protected boolean |
update(long id,
Language[] languages,
String[] values) |
beginTransaction, closeConnection, closeConnection, commitTransaction, getConnection, rollbackTransaction, rollbackTransaction
public BasicEntityDao(ConnectionManager connectionManager, U table, SequenceTable sequenceTable)
protected void clear() throws DaoException
DaoException
protected Collection<T> search(Language matchingLanguage, Language[] subLanguages, String matchingValue, MatchingMethod matchingMethod, jp.go.nict.langrid.commons.transformer.Transformer<ResultSet,T> transformer) throws DaoException
DaoException
protected long insert(Language[] languages, String[] values) throws DaoException
DaoException
protected boolean delete(long id) throws DaoException
DaoException
protected boolean update(long id, Language[] languages, String[] values) throws DaoException
DaoException
protected BasicEntityTable<T> getTable()
protected SequenceTable getSequenceTable()