HHH-16348 Re-add JdbcOperationQuery#getAppliedParameters for query extensions

This commit is contained in:
Christian Beikov 2023-03-22 18:03:48 +01:00
parent 9e16edb28b
commit bf03ae4a6a
2 changed files with 16 additions and 0 deletions

View File

@ -9,17 +9,20 @@ package org.hibernate.sql.exec.internal;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Collections; import java.util.Collections;
import java.util.List; import java.util.List;
import java.util.Map;
import java.util.Set; import java.util.Set;
import org.hibernate.HibernateException; import org.hibernate.HibernateException;
import org.hibernate.internal.FilterJdbcParameter; import org.hibernate.internal.FilterJdbcParameter;
import org.hibernate.query.spi.QueryOptions; import org.hibernate.query.spi.QueryOptions;
import org.hibernate.sql.ast.tree.expression.JdbcParameter;
import org.hibernate.sql.exec.spi.JdbcCallFunctionReturn; import org.hibernate.sql.exec.spi.JdbcCallFunctionReturn;
import org.hibernate.sql.exec.spi.JdbcCallParameterExtractor; import org.hibernate.sql.exec.spi.JdbcCallParameterExtractor;
import org.hibernate.sql.exec.spi.JdbcCallParameterRegistration; import org.hibernate.sql.exec.spi.JdbcCallParameterRegistration;
import org.hibernate.sql.exec.spi.JdbcCallRefCursorExtractor; import org.hibernate.sql.exec.spi.JdbcCallRefCursorExtractor;
import org.hibernate.sql.exec.spi.JdbcOperationQueryCall; import org.hibernate.sql.exec.spi.JdbcOperationQueryCall;
import org.hibernate.sql.exec.spi.JdbcParameterBinder; import org.hibernate.sql.exec.spi.JdbcParameterBinder;
import org.hibernate.sql.exec.spi.JdbcParameterBinding;
import org.hibernate.sql.exec.spi.JdbcParameterBindings; import org.hibernate.sql.exec.spi.JdbcParameterBindings;
import org.hibernate.sql.results.jdbc.spi.JdbcValuesMappingProducer; import org.hibernate.sql.results.jdbc.spi.JdbcValuesMappingProducer;
@ -117,6 +120,11 @@ public class JdbcCallImpl implements JdbcOperationQueryCall {
return false; return false;
} }
@Override
public Map<JdbcParameter, JdbcParameterBinding> getAppliedParameters() {
return Collections.emptyMap();
}
@Override @Override
public boolean isCompatibleWith( public boolean isCompatibleWith(
JdbcParameterBindings jdbcParameterBindings, QueryOptions queryOptions) { JdbcParameterBindings jdbcParameterBindings, QueryOptions queryOptions) {

View File

@ -6,10 +6,13 @@
*/ */
package org.hibernate.sql.exec.spi; package org.hibernate.sql.exec.spi;
import java.util.Collections;
import java.util.List; import java.util.List;
import java.util.Map;
import java.util.Set; import java.util.Set;
import org.hibernate.query.spi.QueryOptions; import org.hibernate.query.spi.QueryOptions;
import org.hibernate.sql.ast.tree.expression.JdbcParameter;
/** /**
* Executable JDBC command * Executable JDBC command
@ -50,6 +53,11 @@ public class JdbcOperationQueryMutationNative implements JdbcOperationQueryMutat
return false; return false;
} }
@Override
public Map<JdbcParameter, JdbcParameterBinding> getAppliedParameters() {
return Collections.emptyMap();
}
@Override @Override
public boolean isCompatibleWith(JdbcParameterBindings jdbcParameterBindings, QueryOptions queryOptions) { public boolean isCompatibleWith(JdbcParameterBindings jdbcParameterBindings, QueryOptions queryOptions) {
return true; return true;