Class AlterSequence


public class AlterSequence extends SchemaCommand
This class represents the statement ALTER SEQUENCE.
  • 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
    • 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
    • update

      public final long update()
      Description copied from class: Prepared
      Execute the statement.
      Overrides:
      update in class Prepared
      Returns:
      the update count