Class SequenceObjectDefinition

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable

    public class SequenceObjectDefinition
    extends SequenceDefinition

    Purpose: Sequence definition Native Sequence object.

    See Also:
    Serialized Form
    • Constructor Detail

      • SequenceObjectDefinition

        public SequenceObjectDefinition​(Sequence sequence)
        INTERNAL: Should be a sequence defining sequence object in the db: either NativeSequence with shouldAcquireValueAfterInsert() returning false; or DefaultSequence (only if case platform.getDefaultSequence() is a NativeSequence with shouldAcquireValueAfterInsert() returning false).
    • Method Detail

      • buildCreationWriter

        public java.io.Writer buildCreationWriter​(org.eclipse.persistence.internal.sessions.AbstractSession session,
                                                  java.io.Writer writer)
        INTERNAL: Return the SQL required to create the Oracle sequence object.
        Specified by:
        buildCreationWriter in class DatabaseObjectDefinition
      • buildDeletionWriter

        public java.io.Writer buildDeletionWriter​(org.eclipse.persistence.internal.sessions.AbstractSession session,
                                                  java.io.Writer writer)
        INTERNAL: Return the SQL required to drop the Oracle sequence object.
        Specified by:
        buildDeletionWriter in class DatabaseObjectDefinition
      • buildAlterIncrementWriter

        public java.io.Writer buildAlterIncrementWriter​(org.eclipse.persistence.internal.sessions.AbstractSession session,
                                                        java.io.Writer writer)
        INTERNAL: Return the SQL required to alter INCREMENT BY
      • isAlterSupported

        public boolean isAlterSupported​(org.eclipse.persistence.internal.sessions.AbstractSession session)
        INTERNAL: Indicates whether alterIncrement is supported
        Overrides:
        isAlterSupported in class SequenceDefinition
      • alterIncrement

        public void alterIncrement​(org.eclipse.persistence.internal.sessions.AbstractSession session,
                                   java.io.Writer schemaWriter)
                            throws ValidationException
        INTERNAL: Execute the SQL required to alter sequence increment. Assume that the sequence exists.
        Throws:
        ValidationException
      • getFullName

        public java.lang.String getFullName()
        INTERNAL: Most major databases support a creator name scope. This means whenever the database object is referenced, it must be qualified.
        Overrides:
        getFullName in class DatabaseObjectDefinition