HHH-16873 Expose fast-path cloning constructors for UpdateCoordinatorStandard

This commit is contained in:
Sanne Grinovero 2023-06-29 19:23:15 +01:00 committed by Sanne Grinovero
parent 11aa022aa2
commit 2acda737d2
1 changed files with 17 additions and 1 deletions

View File

@ -109,6 +109,21 @@ public class UpdateCoordinatorStandard extends AbstractMutationCoordinator imple
}
}
//Used by Hibernate Reactive to efficiently create new instances of this same class
protected UpdateCoordinatorStandard(
AbstractEntityPersister entityPersister,
SessionFactoryImplementor factory,
MutationOperationGroup staticUpdateGroup,
BatchKey batchKey,
MutationOperationGroup versionUpdateGroup,
BatchKey versionUpdateBatchkey) {
super( entityPersister, factory );
this.staticUpdateGroup = staticUpdateGroup;
this.batchKey = batchKey;
this.versionUpdateGroup = versionUpdateGroup;
this.versionUpdateBatchkey = versionUpdateBatchkey;
}
@Override
public MutationOperationGroup getStaticUpdateGroup() {
return staticUpdateGroup;
@ -998,7 +1013,8 @@ public class UpdateCoordinatorStandard extends AbstractMutationCoordinator imple
return NoBatchKeyAccess.INSTANCE;
}
private BatchKey getVersionUpdateBatchkey(){
//Used by Hibernate Reactive
protected BatchKey getVersionUpdateBatchkey(){
return versionUpdateBatchkey;
}