Class TruncateTable


  • public class TruncateTable
    extends DefineCommand
    This class represents the statement TRUNCATE TABLE
    • Field Detail

      • table

        private Table table
      • restart

        private boolean restart
    • Constructor Detail

      • TruncateTable

        public TruncateTable​(SessionLocal session)
    • Method Detail

      • setTable

        public void setTable​(Table table)
      • setRestart

        public void setRestart​(boolean restart)
      • 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