void updateExceptionStatement ( PreparedStatement exceptionStatement , String txt , short i , long eventId ) throws SQLException { exceptionStatement . setLong ( 1 , eventId ) ; exceptionStatement . setShort ( 2 , i ) ; exceptionStatement . setString ( 3 , txt ) ; if ( cnxSupportsBatchUpdates ) { exceptionStatement . addBatch ( ) ; } else { exceptionStatement . execute ( ) ; } }
Add an exception statement either as a batch or execute immediately if batch updates are not supported .