Class 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.

    • Field Detail

      • _sequenceRowLocation

        private RowLocation _sequenceRowLocation
    • Constructor Detail

      • SyssequenceUpdater

        public SyssequenceUpdater()
    • Method Detail

      • 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 does its work in a subtransaction of the user's execution transaction.

        Specified by:
        updateCurrentValueOnDisk in class SequenceUpdater
        Parameters:
        tc - The transaction to use
        oldValue - Expected value on disk for this sequence
        newValue - The value to poke into the system table backing this sequence
        wait - 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.