Package org.hibernate.sql.exec.internal
Class JdbcCallImpl
java.lang.Object
org.hibernate.sql.exec.internal.JdbcCallImpl
- All Implemented Interfaces:
JdbcOperation
,JdbcOperationQuery
,JdbcOperationQueryAnonBlock
,JdbcOperationQueryCall
Models the actual call, allowing iterative building of the parts.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
JdbcCallImpl
(String callableName, JdbcCallFunctionReturn functionReturn, List<JdbcCallParameterRegistration> parameterRegistrations, List<JdbcParameterBinder> parameterBinders, List<JdbcCallParameterExtractor> parameterExtractors) protected
JdbcCallImpl
(String callableName, JdbcCallFunctionReturn functionReturn, List<JdbcCallParameterRegistration> parameterRegistrations, List<JdbcParameterBinder> parameterBinders, List<JdbcCallParameterExtractor> parameterExtractors, List<JdbcCallRefCursorExtractor> refCursorExtractors) JdbcCallImpl
(JdbcCallImpl.Builder builder) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Signals that the SQL depends on the parameter bindings e.g.The names of tables this operation refers toThe parameters which were inlined into the query as literals.Extractors for REF_CURSOR (ResultSet) parametersIf the call is a function, returns the function return descriptorRetrieve the "result set mappings" for processing any ResultSets returned from the JDBC call.Get the list of parameter binders for the generated PreparedStatementExtractors for reading back any OUT/INOUT parameters.Get the list of any parameter registrations we need to register against the generated CallableStatementGet the SQL command we will be executing through JDBC PreparedStatement or CallableStatementboolean
isCompatibleWith
(JdbcParameterBindings jdbcParameterBindings, QueryOptions queryOptions)
-
Constructor Details
-
JdbcCallImpl
-
JdbcCallImpl
protected JdbcCallImpl(String callableName, JdbcCallFunctionReturn functionReturn, List<JdbcCallParameterRegistration> parameterRegistrations, List<JdbcParameterBinder> parameterBinders, List<JdbcCallParameterExtractor> parameterExtractors, List<JdbcCallRefCursorExtractor> refCursorExtractors) -
JdbcCallImpl
protected JdbcCallImpl(String callableName, JdbcCallFunctionReturn functionReturn, List<JdbcCallParameterRegistration> parameterRegistrations, List<JdbcParameterBinder> parameterBinders, List<JdbcCallParameterExtractor> parameterExtractors)
-
-
Method Details
-
getSqlString
Description copied from interface:JdbcOperation
Get the SQL command we will be executing through JDBC PreparedStatement or CallableStatement- Specified by:
getSqlString
in interfaceJdbcOperation
-
getFunctionReturn
Description copied from interface:JdbcOperationQueryCall
If the call is a function, returns the function return descriptor- Specified by:
getFunctionReturn
in interfaceJdbcOperationQueryCall
-
getParameterRegistrations
Description copied from interface:JdbcOperationQueryCall
Get the list of any parameter registrations we need to register against the generated CallableStatement- Specified by:
getParameterRegistrations
in interfaceJdbcOperationQueryCall
-
getParameterBinders
Description copied from interface:JdbcOperation
Get the list of parameter binders for the generated PreparedStatement- Specified by:
getParameterBinders
in interfaceJdbcOperation
-
getAffectedTableNames
Description copied from interface:JdbcOperationQuery
The names of tables this operation refers to- Specified by:
getAffectedTableNames
in interfaceJdbcOperationQuery
-
dependsOnParameterBindings
public boolean dependsOnParameterBindings()Description copied from interface:JdbcOperationQuery
Signals that the SQL depends on the parameter bindings e.g. due to the need for inlining of parameter values or multiValued parameters.- Specified by:
dependsOnParameterBindings
in interfaceJdbcOperationQuery
-
getAppliedParameters
Description copied from interface:JdbcOperationQuery
The parameters which were inlined into the query as literals.- Specified by:
getAppliedParameters
in interfaceJdbcOperationQuery
-
isCompatibleWith
public boolean isCompatibleWith(JdbcParameterBindings jdbcParameterBindings, QueryOptions queryOptions) - Specified by:
isCompatibleWith
in interfaceJdbcOperationQuery
-
getParameterExtractors
Description copied from interface:JdbcOperationQueryCall
Extractors for reading back any OUT/INOUT parameters.- Specified by:
getParameterExtractors
in interfaceJdbcOperationQueryCall
-
getCallRefCursorExtractors
Description copied from interface:JdbcOperationQueryCall
Extractors for REF_CURSOR (ResultSet) parameters- Specified by:
getCallRefCursorExtractors
in interfaceJdbcOperationQueryCall
-
getJdbcValuesMappingProducer
Description copied from interface:JdbcOperationQueryAnonBlock
Retrieve the "result set mappings" for processing any ResultSets returned from the JDBC call. We expose multiple because JPA allows for an application to define multiple such mappings which are (unclearly) intended to describe the mapping for each ResultSet (in order) returned from the call.- Specified by:
getJdbcValuesMappingProducer
in interfaceJdbcOperationQueryAnonBlock
-