HHH-13565 Remove some dead code from SessionImpl
This commit is contained in:
parent
b8f3fc3616
commit
91299aeb7f
|
@ -725,37 +725,15 @@ public final class SessionImpl
|
||||||
|
|
||||||
// persistOnFlush() operations ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
// persistOnFlush() operations ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
public void persistOnFlush(String entityName, Object object)
|
|
||||||
throws HibernateException {
|
|
||||||
firePersistOnFlush( new PersistEvent( entityName, object, this ) );
|
|
||||||
}
|
|
||||||
|
|
||||||
public void persistOnFlush(Object object) throws HibernateException {
|
|
||||||
persist( null, object );
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void persistOnFlush(String entityName, Object object, Map copiedAlready)
|
public void persistOnFlush(String entityName, Object object, Map copiedAlready) {
|
||||||
throws HibernateException {
|
|
||||||
firePersistOnFlush( copiedAlready, new PersistEvent( entityName, object, this ) );
|
|
||||||
}
|
|
||||||
|
|
||||||
private void firePersistOnFlush(final Map copiedAlready, final PersistEvent event) {
|
|
||||||
checkOpenOrWaitingForAutoClose();
|
checkOpenOrWaitingForAutoClose();
|
||||||
pulseTransactionCoordinator();
|
pulseTransactionCoordinator();
|
||||||
|
PersistEvent event = new PersistEvent( entityName, object, this );
|
||||||
fastSessionServices.eventListenerGroup_PERSIST_ONFLUSH.fireEventOnEachListener( event, (l,e) -> l.onPersist( e, copiedAlready ) );
|
fastSessionServices.eventListenerGroup_PERSIST_ONFLUSH.fireEventOnEachListener( event, (l,e) -> l.onPersist( e, copiedAlready ) );
|
||||||
delayedAfterCompletion();
|
delayedAfterCompletion();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void firePersistOnFlush(final PersistEvent event) {
|
|
||||||
checkOpen();
|
|
||||||
checkTransactionSynchStatus();
|
|
||||||
checkNoUnresolvedActionsBeforeOperation();
|
|
||||||
fastSessionServices.eventListenerGroup_PERSIST_ONFLUSH.fireEventOnEachListener( event, PersistEventListener::onPersist );
|
|
||||||
checkNoUnresolvedActionsAfterOperation();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// merge() operations ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
// merge() operations ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue