public void close() throws OperatorException {
  if (isReading) {
    shouldStop=true;
  }
}

public void close ( ) throws OperatorException { if ( isReading ) { shouldStop = true ; } }
this method will stop any ongoing read action and close the underlying dataresultset . it will wait until this has been successfully performed .
