Interface Sequencing

  • All Known Subinterfaces:
    SequencingServer

    public interface Sequencing

    Purpose: Define interface to use sequencing.

    Description: This interface accessed through Session.getSequencing() method. Used by EclipseLink internals to obtain sequencing values.

    Responsibilities:

    • Provides sequencing objects and supporting APIs.
    • Method Detail

      • whenShouldAcquireValueForAll

        int whenShouldAcquireValueForAll()
        INTERNAL: Indicates when sequencing value should be acquired for all classes. There are just three possible return values: BEFORE_INSERT, UNDEFINED, AFTER_INSERT. Used as a shortcut to avoid individual checks for each class: shouldAcquireValueAfterInsert(Class cls). Currently UNDEFINED only happens in a case of a SessionBroker: session1 - BEFORE_INSERT, session2 - AFTER_INSERT
      • getNextValue

        Object getNextValue​(Class cls)
        INTERNAL: Return the newly-generated sequencing value.
        Parameters:
        cls - Class for which the sequencing value is generated.