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.Exceptionprotected 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.SequenceUpdaterprotected 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.SequenceUpdaterpublic boolean updateCurrentValueOnDisk(java.lang.Long oldValue,
java.lang.Long newValue)
updateCurrentValueOnDisk in class org.apache.derby.impl.sql.catalog.SequenceUpdaterApache Derby V10.10 Internals - Copyright © 2004,2014 The Apache Software Foundation. All Rights Reserved.