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