HHH-16348 Re-add JdbcOperationQuery#getAppliedParameters for query extensions
This commit is contained in:
parent
e632981e4b
commit
195cbdb342
|
@ -98,6 +98,11 @@ public class AbstractJdbcOperationQuery implements JdbcOperationQuery {
|
||||||
return !appliedParameters.isEmpty();
|
return !appliedParameters.isEmpty();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Map<JdbcParameter, JdbcParameterBinding> getAppliedParameters() {
|
||||||
|
return appliedParameters;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isCompatibleWith(JdbcParameterBindings jdbcParameterBindings, QueryOptions queryOptions) {
|
public boolean isCompatibleWith(JdbcParameterBindings jdbcParameterBindings, QueryOptions queryOptions) {
|
||||||
if ( !appliedParameters.isEmpty() ) {
|
if ( !appliedParameters.isEmpty() ) {
|
||||||
|
|
|
@ -7,10 +7,12 @@
|
||||||
package org.hibernate.sql.exec.spi;
|
package org.hibernate.sql.exec.spi;
|
||||||
|
|
||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
|
import java.util.Map;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
|
||||||
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;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Unifying contract for any SQL statement we want to execute via JDBC.
|
* Unifying contract for any SQL statement we want to execute via JDBC.
|
||||||
|
@ -42,5 +44,10 @@ public interface JdbcOperationQuery extends JdbcOperation {
|
||||||
*/
|
*/
|
||||||
boolean dependsOnParameterBindings();
|
boolean dependsOnParameterBindings();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The parameters which were inlined into the query as literals.
|
||||||
|
*/
|
||||||
|
Map<JdbcParameter, JdbcParameterBinding> getAppliedParameters();
|
||||||
|
|
||||||
boolean isCompatibleWith(JdbcParameterBindings jdbcParameterBindings, QueryOptions queryOptions);
|
boolean isCompatibleWith(JdbcParameterBindings jdbcParameterBindings, QueryOptions queryOptions);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue