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, getQueuepublic void setHashManager(HashManager hashes)
public IdSequence getIdSequence()
public void setIdSequence(IdSequence ids)
public void init()
public void flush()
throws SQLException,
InterruptedException
flush in class ManagerBaseSQLExceptionInterruptedExceptionpublic void cache(V value) throws InterruptedException
InterruptedExceptionpublic Number getInternalId(V value) throws SQLException, InterruptedException
SQLExceptionInterruptedExceptionpublic int getIdVersion()
public void removedStatements(String condition) throws SQLException
SQLExceptionprotected abstract int getBatchSize()
protected abstract void insert(Number id, V value) throws SQLException, InterruptedException
SQLExceptionInterruptedExceptionprotected abstract boolean expunge(String condition) throws SQLException
SQLExceptionprotected void optimize()
throws SQLException
optimize in class ManagerBaseSQLExceptionCopyright © 2001-2014 Aduna. All Rights Reserved.