Class SequenceDefinition

    • Field Detail

    • Constructor Detail

      • SequenceDefinition

        public SequenceDefinition​(java.lang.String name)
      • SequenceDefinition

        public SequenceDefinition​(Sequence sequence)
    • Method Detail

      • checkIfExist

        public abstract boolean checkIfExist​(org.eclipse.persistence.internal.sessions.AbstractSession session)
                                      throws DatabaseException
        INTERAL: Verify whether the sequence exists.
        Throws:
        DatabaseException
      • isAlterSupported

        public boolean isAlterSupported​(org.eclipse.persistence.internal.sessions.AbstractSession session)
        INTERNAL: Indicates whether alter is supported
      • isTableSequenceDefinition

        public boolean isTableSequenceDefinition()
        INTERNAL:
      • alterOnDatabase

        public void alterOnDatabase​(org.eclipse.persistence.internal.sessions.AbstractSession session)
                             throws EclipseLinkException
        INTERNAL: By default does nothing.
        Throws:
        EclipseLinkException
      • alter

        public void alter​(org.eclipse.persistence.internal.sessions.AbstractSession session,
                          java.io.Writer writer)
                   throws ValidationException
        INTERNAL: Execute the SQL required to alter sequence. By default does nothing.
        Throws:
        ValidationException
      • buildTableDefinition

        public TableDefinition buildTableDefinition()
        INTERNAL: Return a TableDefinition