protected void checkCanceled(){
  if (cancel) {
    cancel=false;
    throw DbException.get(ErrorCode.STATEMENT_WAS_CANCELED);
  }
}

protected void checkCanceled ( ) { if ( cancel ) { cancel = false ; throw DbException . get ( ErrorCode . STATEMENT_WAS_CANCELED ) ; } }
check if this command has been canceled , and throw an exception if yes .
