public class SequenceCache extends Object
| 修飾子とタイプ | クラスと説明 |
|---|---|
static interface |
SequenceCache.SequenceRealExecutor |
| 修飾子とタイプ | フィールドと説明 |
|---|---|
protected BigDecimal |
_addedCount
The added count.
|
protected BigDecimal |
_batchFirstValue
The sequence value as first value for batch way only.
|
protected boolean |
_batchWay
Is the batch way valid?
|
protected List<BigDecimal> |
_cachedList |
protected BigDecimal |
_cacheSize
The cache size of sequence that is used by increment way only.
|
protected Integer |
_incrementSize
The increment size of sequence that is used by batch way only.
|
protected boolean |
_internalDebug
Is the internal debug valid?
|
protected Class<?> |
_resultType
The result type of sequence next value.
|
protected BigDecimal |
_sequenceValue
The sequence value as base point.
|
protected SortedSet<BigDecimal> |
_tmpSortedSet |
protected static BigDecimal |
DEFAULT_ADD_SIZE |
protected static BigDecimal |
INITIAL_ADDED_COUNT |
| コンストラクタと説明 |
|---|
SequenceCache(Class<?> resultType,
BigDecimal cacheSize,
Integer incrementSize) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
protected void |
assertSequenceRealExecutorReturnsNotEmptyList(List<?> selectedList,
SequenceCache.SequenceRealExecutor executor) |
protected void |
assertSequenceRealExecutorReturnsNotNull(Object obj,
SequenceCache.SequenceRealExecutor executor) |
protected BigDecimal |
getAddSize() |
protected void |
initialize() |
protected boolean |
isLogEnabled() |
protected void |
log(String msg) |
Object |
nextval(SequenceCache.SequenceRealExecutor executor)
Get a next value of sequence.
|
void |
setInternalDebug(boolean internalDebug) |
protected void |
setupSequence(SequenceCache.SequenceRealExecutor executor) |
protected BigDecimal |
toInternalType(Object value) |
protected Object |
toResultType(BigDecimal value) |
String |
toString() |
protected static final BigDecimal INITIAL_ADDED_COUNT
protected static final BigDecimal DEFAULT_ADD_SIZE
protected final Class<?> _resultType
protected final BigDecimal _cacheSize
protected final Integer _incrementSize
protected volatile BigDecimal _addedCount
protected volatile BigDecimal _sequenceValue
protected volatile BigDecimal _batchFirstValue
protected final List<BigDecimal> _cachedList
protected final SortedSet<BigDecimal> _tmpSortedSet
protected volatile boolean _batchWay
protected boolean _internalDebug
public SequenceCache(Class<?> resultType, BigDecimal cacheSize, Integer incrementSize)
resultType - The result type of sequence next value.cacheSize - The cache size of sequence that is used by increment way only. (NotNull)incrementSize - The increment size of sequence that is used by batch way only. (NullAllowed: If null, it cannot use batch way)public Object nextval(SequenceCache.SequenceRealExecutor executor)
executor - The real executor of sequence. (NotNull)protected BigDecimal getAddSize()
protected void setupSequence(SequenceCache.SequenceRealExecutor executor)
protected void initialize()
protected void assertSequenceRealExecutorReturnsNotNull(Object obj, SequenceCache.SequenceRealExecutor executor)
protected void assertSequenceRealExecutorReturnsNotEmptyList(List<?> selectedList, SequenceCache.SequenceRealExecutor executor)
protected BigDecimal toInternalType(Object value)
protected Object toResultType(BigDecimal value)
protected boolean isLogEnabled()
protected void log(String msg)
public void setInternalDebug(boolean internalDebug)
Copyright © 2014–2015 The DBFlute Project. All rights reserved.