public abstract class ValueManagerBase<V extends RdbmsValue> extends ManagerBase
BATCH_SIZE, MAX_QUEUE, MIN_QUEUE, queue
Constructor and Description |
---|
ValueManagerBase() |
Modifier and Type | Method and Description |
---|---|
void |
cache(V value) |
protected abstract boolean |
expunge(String condition) |
V |
findInCache(Object key) |
void |
flush() |
protected abstract int |
getBatchSize() |
IdSequence |
getIdSequence() |
int |
getIdVersion() |
Number |
getInternalId(V value) |
void |
init() |
protected abstract void |
insert(Number id,
V value) |
protected abstract Object |
key(V value) |
protected void |
optimize() |
void |
removedStatements(String condition) |
void |
setHashManager(HashManager hashes) |
void |
setIdSequence(IdSequence ids) |
clear, close, flush, getQueue
public void setHashManager(HashManager hashes)
public IdSequence getIdSequence()
public void setIdSequence(IdSequence ids)
public void init()
public void flush() throws SQLException, InterruptedException
flush
in class ManagerBase
SQLException
InterruptedException
public void cache(V value) throws InterruptedException
InterruptedException
public Number getInternalId(V value) throws SQLException, InterruptedException
SQLException
InterruptedException
public int getIdVersion()
public void removedStatements(String condition) throws SQLException
SQLException
protected abstract int getBatchSize()
protected abstract void insert(Number id, V value) throws SQLException, InterruptedException
SQLException
InterruptedException
protected abstract boolean expunge(String condition) throws SQLException
SQLException
protected void optimize() throws SQLException
optimize
in class ManagerBase
SQLException
Copyright © 2001-2016 Aduna. All Rights Reserved.