HHH-18854 Allow HR to change DeleteOrUpsertOperation
This commit is contained in:
parent
25790c26df
commit
5b3e06e534
|
@ -44,7 +44,6 @@ public class DeleteOrUpsertOperation implements SelfExecutingUpdateOperation {
|
||||||
|
|
||||||
private final OptionalTableUpdate optionalTableUpdate;
|
private final OptionalTableUpdate optionalTableUpdate;
|
||||||
|
|
||||||
|
|
||||||
public DeleteOrUpsertOperation(
|
public DeleteOrUpsertOperation(
|
||||||
EntityMutationTarget mutationTarget,
|
EntityMutationTarget mutationTarget,
|
||||||
EntityTableMapping tableMapping,
|
EntityTableMapping tableMapping,
|
||||||
|
@ -56,6 +55,16 @@ public class DeleteOrUpsertOperation implements SelfExecutingUpdateOperation {
|
||||||
this.optionalTableUpdate = optionalTableUpdate;
|
this.optionalTableUpdate = optionalTableUpdate;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Used by Hibernate Reactive
|
||||||
|
*/
|
||||||
|
protected DeleteOrUpsertOperation(DeleteOrUpsertOperation original) {
|
||||||
|
this.mutationTarget = original.mutationTarget;
|
||||||
|
this.tableMapping = original.tableMapping;
|
||||||
|
this.upsertOperation = original.upsertOperation;
|
||||||
|
this.optionalTableUpdate = original.optionalTableUpdate;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public MutationType getMutationType() {
|
public MutationType getMutationType() {
|
||||||
return MutationType.UPDATE;
|
return MutationType.UPDATE;
|
||||||
|
@ -197,4 +206,18 @@ public class DeleteOrUpsertOperation implements SelfExecutingUpdateOperation {
|
||||||
|
|
||||||
MODEL_MUTATION_LOGGER.tracef( "`%s` rows upserted into `%s`", rowCount, tableMapping.getTableName() );
|
MODEL_MUTATION_LOGGER.tracef( "`%s` rows upserted into `%s`", rowCount, tableMapping.getTableName() );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Used by Hibernate Reactive
|
||||||
|
*/
|
||||||
|
public UpsertOperation getUpsertOperation() {
|
||||||
|
return upsertOperation;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Used by Hibernate Reactive
|
||||||
|
*/
|
||||||
|
public OptionalTableUpdate getOptionalTableUpdate() {
|
||||||
|
return optionalTableUpdate;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue