Class DropTable


  • public class DropTable
    extends DefineCommand
    This class represents the statement DROP TABLE
    • Constructor Detail

    • Method Detail

      • setIfExists

        public void setIfExists​(boolean b)
      • addTable

        public void addTable​(Schema schema,
                             java.lang.String tableName)
        Add a table to drop.
        Parameters:
        schema - the schema
        tableName - the table name
      • prepareDrop

        private boolean prepareDrop()
      • executeDrop

        private void executeDrop()
      • 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