| java.lang.Object com.completex.objective.components.persistency.key.impl.BulkSequenceKeyGeneratorImpl
All known Subclasses: com.completex.objective.components.persistency.key.impl.BulkSequenceKeyGenerator100, com.completex.objective.components.persistency.key.impl.OdalBulkSequenceKeyGenerator100,
BulkSequenceKeyGeneratorImpl | abstract public class BulkSequenceKeyGeneratorImpl implements ComplexSequenceKeyGenerator(Code) | | Provides basic functionaly for bulk sequence generation.
Reserves next bulkSize sequence numbers with single call to the delegateKeyGenerator.
It is assumed that delegateKeyGenerator takes the sequence from the database.
Once chosen bulkSize must not change for the life of the application since it can cause
duplicate sequences to be generated
author: Gennady Krizhevsky |
Method Summary | |
public int | getBulkSize() | public long | getCurrentValue() | public Object | getNextKey(Transaction transaction, Persistency persistency, Record record) | public Object | getNextKey(Transaction transaction, Persistency persistency, Record record, Object dynamicParameters) | public synchronized Long | getNextKeyLong(Transaction transaction, Persistency persistency, Object object) | public synchronized Long | getNextKeyLong(Transaction transaction, Persistency persistency) | public Object | getNextKeyPlain(Transaction transaction, Persistency persistency, String objectName) | public long | getOffset() | public String | getSeqName() | public Object | getStaticParameters() | public void | insertValue(Transaction transaction, Persistency persistency, PersistentEntry persistentEntry) | protected void | setBulkSize(int bulkSize) | public void | setDatabasePolicy(DatabasePolicy databasePolicy) | public void | setLogger(Log log) | protected void | setOffset(long offset) | public void | setSeqName(String seqName) | public void | setStaticParameters(Object staticParameters) | public void | updateValue(Transaction transaction, Persistency persistency, PersistentEntry persistentEntry, boolean complexDirty) |
DEFAULT_BULK_SIZE | final public static int DEFAULT_BULK_SIZE(Code) | | |
BulkSequenceKeyGeneratorImpl | protected BulkSequenceKeyGeneratorImpl()(Code) | | |
getBulkSize | public int getBulkSize()(Code) | | Get number of sequences generated between calls to a delegateKeyGenerator
number of sequences generated between calls to a delegateKeyGenerator |
getCurrentValue | public long getCurrentValue()(Code) | | Get current sequence value
current sequence value |
getOffset | public long getOffset()(Code) | | |
setBulkSize | protected void setBulkSize(int bulkSize)(Code) | | Set number of sequences generated between calls to a delegateKeyGenerator
Parameters: bulkSize - |
setOffset | protected void setOffset(long offset)(Code) | | Set offset which defines the 1st sequnce number to be generated
Parameters: offset - |
|
|