public class BasicEntityTable<T extends BasicEntity> extends AbstractTable
| Constructor and Description |
|---|
BasicEntityTable(DbDictionary dbDictionary,
String tableName,
int maxCount) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
delete(Connection connection,
long id) |
DbDictionary |
getDbDictionary() |
int |
getMaxCount() |
void |
insert(Connection connection,
long id,
Language[] languages,
String[] values) |
Collection<T> |
search(Connection connection,
Language matchingLanguage,
Language[] subLanguages,
String matchingValue,
MatchingMethod matchingMethod,
jp.go.nict.langrid.commons.transformer.Transformer<ResultSet,T> transformer) |
boolean |
update(Connection connection,
long id,
Language[] languages,
String[] values) |
clear, getTableNamepublic BasicEntityTable(DbDictionary dbDictionary, String tableName, int maxCount)
public DbDictionary getDbDictionary()
public int getMaxCount()
public Collection<T> search(Connection connection, Language matchingLanguage, Language[] subLanguages, String matchingValue, MatchingMethod matchingMethod, jp.go.nict.langrid.commons.transformer.Transformer<ResultSet,T> transformer) throws SQLException
SQLExceptionpublic void insert(Connection connection, long id, Language[] languages, String[] values) throws SQLException
SQLExceptionpublic boolean delete(Connection connection, long id) throws SQLException
SQLExceptionpublic boolean update(Connection connection, long id, Language[] languages, String[] values) throws SQLException
SQLException