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