Class AlterTableSet


public class AlterTableSet extends SchemaCommand
This class represents the statement ALTER TABLE SET
  • Field Details

    • ifTableExists

      private boolean ifTableExists
    • tableName

      private String tableName
    • type

      private final int type
    • value

      private final boolean value
    • checkExisting

      private boolean checkExisting
  • Constructor Details

    • AlterTableSet

      public AlterTableSet(SessionLocal session, Schema schema, int type, boolean value)
  • Method Details

    • setCheckExisting

      public void setCheckExisting(boolean b)
    • 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
    • setIfTableExists

      public void setIfTableExists(boolean b)
    • setTableName

      public void setTableName(String tableName)
    • update

      public long update()
      Description copied from class: Prepared
      Execute the statement.
      Overrides:
      update in class Prepared
      Returns:
      the update count
    • 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