Implemented QueryKey.ParameterBindingsMemento NO_PARAMETER_BINDING_MEMENTO

This commit is contained in:
Andrea Boriero 2021-09-15 09:31:05 +02:00
parent ac1123be05
commit b2aca3c846
1 changed files with 8 additions and 0 deletions

View File

@ -91,6 +91,9 @@ public interface QueryParameterBindings {
throw new NotYetImplementedFor6Exception( getClass() );
}
QueryKey.ParameterBindingsMemento NO_PARAMETER_BINDING_MEMENTO = new QueryKey.ParameterBindingsMemento(){
};
QueryParameterBindings NO_PARAM_BINDINGS = new QueryParameterBindings() {
@Override
public boolean isBound(QueryParameterImplementor parameter) {
@ -124,5 +127,10 @@ public interface QueryParameterBindings {
public boolean hasAnyMultiValuedBindings() {
return false;
}
@Override
public QueryKey.ParameterBindingsMemento generateQueryKeyMemento(SharedSessionContractImplementor persistenceContext) {
return NO_PARAMETER_BINDING_MEMENTO;
}
};
}