final protected void closeAndRemoveResultSets ( boolean closeWrapperOnly ) { // Close and remove all the result sets in the childWrappers // - remove childWrappers.isEmpty() check since the precondition of this method // is that childWrappers have at least one element. for ( int i = childWrappers . size ( ) - 1 ; i > - 1 ; i -- ) { try { ( ( WSJdbcObject ) childWrappers . get ( i ) ) . close ( closeWrapperOnly ) ; } catch ( SQLException ex ) { // Just trace the error since we need to continue FFDCFilter . processException ( ex , "com.ibm.ws.rsadapter.jdbc.WSJdbcStatement.closeAndRemoveResultSets" , "277" , this ) ; Tr . warning ( tc , "ERR_CLOSING_OBJECT" , ex ) ; } } }
Close the ResultSet for this Statement if it s still around . Close even if the execute is not a query as stated in the java . sql . Statement API .