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 1ead5d2b37
commit f6d93e1f8d
1 changed files with 17 additions and 1 deletions

View File

@ -108,6 +108,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;
@ -997,7 +1012,8 @@ public class UpdateCoordinatorStandard extends AbstractMutationCoordinator imple
return NoBatchKeyAccess.INSTANCE;
}
private BatchKey getVersionUpdateBatchkey(){
//Used by Hibernate Reactive
protected BatchKey getVersionUpdateBatchkey(){
return versionUpdateBatchkey;
}