Class AlterSequence


public class AlterSequence extends SchemaOwnerCommand
This class represents the statement ALTER SEQUENCE.
  • Field Details

    • ifExists

      private boolean ifExists
    • column

      private Column column
    • always

      private Boolean always
    • sequenceName

      private String sequenceName
    • sequence

      private Sequence sequence
    • options

      private SequenceOptions options
  • Constructor Details

  • Method Details

    • setIfExists

      public void setIfExists(boolean b)
    • setSequenceName

      public void setSequenceName(String sequenceName)
    • setOptions

      public void setOptions(SequenceOptions options)
    • isTransactional

      public boolean isTransactional()
      Description copied from class: Prepared
      Check if this command is transactional. If it is not, then it forces the current transaction to commit.
      Overrides:
      isTransactional in class DefineCommand
      Returns:
      true if it is
    • setColumn

      public void setColumn(Column column, Boolean always)
      Set the column
      Parameters:
      column - the column
      always - whether value should be always generated, or null if "set generated is not specified
    • update

      long update(Schema schema)
      Specified by:
      update in class SchemaOwnerCommand
    • getType

      public int getType()
      Description copied from class: Prepared
      Get the command type as defined in CommandInterface
      Specified by:
      getType in class Prepared
      Returns:
      the statement type