Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Override
- protected void doExecuteBatch(PreparedStatement ps) throws SQLException, HibernateException {
- if ( batchSize == 0 ) {
- log.debug( "no batched statements to execute" );
- }
- else {
- if ( log.isDebugEnabled() ) {
- log.debug( "Executing batch size: " + batchSize );
- }
- try {
- // checkRowCounts( ps.executeBatch(), ps );
- ps.executeBatch();
- }
- catch (RuntimeException re) {
- log.error( "Exception executing batch: ", re );
- throw re;
- }
- finally {
- batchSize = 0;
- }
- }
- }
Add Comment
Please, Sign In to add comment