private Object executeBatch ( Object implObject , Method method , Object [ ] args ) throws IllegalAccessException , IllegalArgumentException , InvocationTargetException , SQLException { final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "executeBatch" , new Object [ ] { this , args [ 0 ] } ) ; if ( childWrapper != null ) { closeAndRemoveResultSet ( ) ; } if ( childWrappers != null && ! childWrappers . isEmpty ( ) ) { closeAndRemoveResultSets ( ) ; } enforceStatementProperties ( ) ; Object results = method . invoke ( implObject , args ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) Tr . exit ( tc , "executeBatch" , results instanceof int [ ] ? Arrays . toString ( ( int [ ] ) results ) : results ) ; return results ; }
Invokes executeBatch and after closing any previous result sets and ensuring statement properties are up - to - date .