Class AlterSequence


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

      • ifExists

        private boolean ifExists
      • column

        private Column column
      • always

        private java.lang.Boolean always
      • sequenceName

        private java.lang.String sequenceName
    • Method Detail

      • setIfExists

        public void setIfExists​(boolean b)
      • setSequenceName

        public void setSequenceName​(java.lang.String sequenceName)
      • 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,
                              java.lang.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