HHH-10190 - org.hibernate.engine.spi.ActionQueue#executeActions() optimization

This commit is contained in:
Andrea Boriero 2015-10-14 14:03:22 +01:00
parent ac2f06800e
commit 1729067cbc
1 changed files with 6 additions and 2 deletions

View File

@ -316,8 +316,10 @@ public class ActionQueue {
* @throws HibernateException error executing queued insertion actions.
*/
public void executeInserts() throws HibernateException {
if ( !insertions.isEmpty() ) {
executeActions( insertions );
}
}
/**
* Perform all currently queued actions.
@ -330,9 +332,11 @@ public class ActionQueue {
}
for ( ExecutableList<?> l : executableLists ) {
if ( !l.isEmpty() ) {
executeActions( l );
}
}
}
/**
* Prepares the internal action queues for execution.