org.apache.derby.impl.sql.catalog
Class SequenceUpdater.SyssequenceUpdater
java.lang.Object
org.apache.derby.impl.sql.catalog.SequenceUpdater
org.apache.derby.impl.sql.catalog.SequenceUpdater.SyssequenceUpdater
- All Implemented Interfaces:
- Cacheable
- Enclosing class:
- SequenceUpdater
public static final class SequenceUpdater.SyssequenceUpdater
- extends SequenceUpdater
Specific implementation of SequenceUpdater for the sequences managed by
SYSSEQUENCES.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_sequenceRowLocation
private RowLocation _sequenceRowLocation
SequenceUpdater.SyssequenceUpdater
public SequenceUpdater.SyssequenceUpdater()
SequenceUpdater.SyssequenceUpdater
public SequenceUpdater.SyssequenceUpdater(DataDictionaryImpl dd)
createSequenceGenerator
protected SequenceGenerator createSequenceGenerator(TransactionController readOnlyTC)
throws StandardException
- Description copied from class:
SequenceUpdater
Initialize the sequence generator. Work is done inside a read-only subtransaction of
the session's execution transaction.
- Specified by:
createSequenceGenerator
in class SequenceUpdater
- Throws:
StandardException
updateCurrentValueOnDisk
protected boolean updateCurrentValueOnDisk(TransactionController tc,
java.lang.Long oldValue,
java.lang.Long newValue,
boolean wait)
throws StandardException
- Description copied from class:
SequenceUpdater
Update the sequence value on disk. This method is first called with a read/write subtransaction
of the session's execution transaction. If work can't be done there immediately, this method
is called with the session's execution transaction.
- Specified by:
updateCurrentValueOnDisk
in class SequenceUpdater
- Parameters:
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 lock
- Returns:
- Returns true if the value was successfully updated, false if we lost a race with another session.
- Throws:
StandardException
- May throw an exception if a lock can't be obtained.
Apache Derby V10.6 Internals - Copyright © 2004,2007 The Apache Software Foundation. All Rights Reserved.