public abstract class ValuesDbTable<T,V> extends DerivedDbTable
| Modifier and Type | Field and Description |
|---|---|
protected DbKey.Factory<T> |
dbKeyFactory |
db, schema, schemaTable, table| Modifier | Constructor and Description |
|---|---|
protected |
ValuesDbTable(java.lang.String schemaTable,
DbKey.Factory<T> dbKeyFactory) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
clearCache() |
java.util.List<V> |
get(DbKey dbKey) |
int |
getCount() |
int |
getCount(DbClause dbClause) |
void |
insert(T t,
java.util.List<V> values) |
protected abstract V |
load(java.sql.Connection con,
java.sql.ResultSet rs) |
void |
popOffTo(int height) |
protected abstract void |
save(java.sql.Connection con,
T t,
V v) |
void |
trim(int height) |
createSearchIndex, isPersistent, rollback, truncategetConnection, getCount, getRowCount, getSchemaTable, toStringprotected final DbKey.Factory<T> dbKeyFactory
protected ValuesDbTable(java.lang.String schemaTable,
DbKey.Factory<T> dbKeyFactory)
protected abstract V load(java.sql.Connection con, java.sql.ResultSet rs) throws java.sql.SQLException
java.sql.SQLExceptionprotected abstract void save(java.sql.Connection con,
T t,
V v)
throws java.sql.SQLException
java.sql.SQLExceptionprotected void clearCache()
public final void popOffTo(int height)
popOffTo in class DerivedDbTablepublic final void trim(int height)
trim in class DerivedDbTable