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, rollbackTransactionpublic BasicEntityDao(ConnectionManager connectionManager, U table, SequenceTable sequenceTable)
protected void clear()
throws DaoException
DaoExceptionprotected Collection<T> search(Language matchingLanguage, Language[] subLanguages, String matchingValue, MatchingMethod matchingMethod, jp.go.nict.langrid.commons.transformer.Transformer<ResultSet,T> transformer) throws DaoException
DaoExceptionprotected long insert(Language[] languages, String[] values) throws DaoException
DaoExceptionprotected boolean delete(long id)
throws DaoException
DaoExceptionprotected boolean update(long id,
Language[] languages,
String[] values)
throws DaoException
DaoExceptionprotected BasicEntityTable<T> getTable()
protected SequenceTable getSequenceTable()