Cacheable
public static final class SequenceUpdater.SyssequenceUpdater extends SequenceUpdater
Specific implementation of SequenceUpdater for the sequences managed by SYSSEQUENCES.
SequenceUpdater.BulkInsertUpdater, SequenceUpdater.SyssequenceUpdater
Modifier and Type | Field | Description |
---|---|---|
private RowLocation |
_sequenceRowLocation |
_dd, _sequenceGenerator, _uuidString
Constructor | Description |
---|---|
SyssequenceUpdater() |
|
SyssequenceUpdater(DataDictionaryImpl dd) |
Modifier and Type | Method | Description |
---|---|---|
protected SequenceGenerator |
createSequenceGenerator(TransactionController readOnlyTC) |
Initialize the sequence generator.
|
protected boolean |
updateCurrentValueOnDisk(TransactionController tc,
java.lang.Long oldValue,
java.lang.Long newValue,
boolean wait) |
Update the sequence value on disk.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clean, clearIdentity, createIdentity, getBulkInsertUpdater, getCurrentValueAndAdvance, getIdentity, isDirty, makePreallocator, peekAtCurrentValue, reset, setIdentity, updateCurrentValueOnDisk
private RowLocation _sequenceRowLocation
public SyssequenceUpdater()
public SyssequenceUpdater(DataDictionaryImpl dd)
protected SequenceGenerator createSequenceGenerator(TransactionController readOnlyTC) throws StandardException
SequenceUpdater
Initialize the sequence generator. Work is done inside a read-only subtransaction of the session's execution transaction.
createSequenceGenerator
in class SequenceUpdater
StandardException
protected boolean updateCurrentValueOnDisk(TransactionController tc, java.lang.Long oldValue, java.lang.Long newValue, boolean wait) throws StandardException
SequenceUpdater
Update the sequence value on disk. This method does its work in a subtransaction of the user's execution transaction.
updateCurrentValueOnDisk
in class SequenceUpdater
tc
- The transaction to useoldValue
- Expected value on disk for this sequencenewValue
- The value to poke into the system table backing this sequencewait
- Whether to wait for a lockStandardException
- May throw an exception if a lock can't be obtained.Apache Derby V10.14 Internals - Copyright © 2004,2018 The Apache Software Foundation. All Rights Reserved.