public static final class SequenceGeneratorTest.T_SequenceUpdater
extends org.apache.derby.impl.sql.catalog.SequenceUpdater
Machine for testing sequence generators standalone.
Modifier and Type | Field and Description |
---|---|
private java.lang.Long |
_valueOnDisk |
Constructor and Description |
---|
T_SequenceUpdater(java.lang.Long currentValue,
boolean canCycle,
long increment,
long maxValue,
long minValue,
long restartValue) |
Modifier and Type | Method and Description |
---|---|
protected org.apache.derby.impl.sql.catalog.SequenceGenerator |
createSequenceGenerator(org.apache.derby.iapi.store.access.TransactionController readOnlyTC) |
long |
getCurrentValueAndAdvance() |
java.lang.Long |
getValueOnDisk() |
boolean |
updateCurrentValueOnDisk(java.lang.Long oldValue,
java.lang.Long newValue) |
protected boolean |
updateCurrentValueOnDisk(org.apache.derby.iapi.store.access.TransactionController tc,
java.lang.Long oldValue,
java.lang.Long newValue,
boolean wait) |
public T_SequenceUpdater(java.lang.Long currentValue, boolean canCycle, long increment, long maxValue, long minValue, long restartValue)
public java.lang.Long getValueOnDisk()
public long getCurrentValueAndAdvance() throws java.lang.Exception
java.lang.Exception
protected org.apache.derby.impl.sql.catalog.SequenceGenerator createSequenceGenerator(org.apache.derby.iapi.store.access.TransactionController readOnlyTC)
createSequenceGenerator
in class org.apache.derby.impl.sql.catalog.SequenceUpdater
protected boolean updateCurrentValueOnDisk(org.apache.derby.iapi.store.access.TransactionController tc, java.lang.Long oldValue, java.lang.Long newValue, boolean wait)
updateCurrentValueOnDisk
in class org.apache.derby.impl.sql.catalog.SequenceUpdater
public boolean updateCurrentValueOnDisk(java.lang.Long oldValue, java.lang.Long newValue)
updateCurrentValueOnDisk
in class org.apache.derby.impl.sql.catalog.SequenceUpdater
Apache Derby V10.13 Internals - Copyright © 2004,2016 The Apache Software Foundation. All Rights Reserved.