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, getTableName
public 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
SQLException
public void insert(Connection connection, long id, Language[] languages, String[] values) throws SQLException
SQLException
public boolean delete(Connection connection, long id) throws SQLException
SQLException
public boolean update(Connection connection, long id, Language[] languages, String[] values) throws SQLException
SQLException