Package org.hibernate.sql.exec.internal
Class JdbcCallImpl
- java.lang.Object
-
- org.hibernate.sql.exec.internal.JdbcCallImpl
-
- All Implemented Interfaces:
JdbcAnonBlock
,JdbcCall
,JdbcOperation
public class JdbcCallImpl extends Object implements JdbcCall
Models the actual call, allowing iterative building of the parts.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
JdbcCallImpl.Builder
-
Constructor Summary
Constructors Constructor Description JdbcCallImpl(JdbcCallImpl.Builder builder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
dependsOnParameterBindings()
Signals that the SQL depends on the parameter bindings e.g.Set<String>
getAffectedTableNames()
List<JdbcCallRefCursorExtractor>
getCallRefCursorExtractors()
Extractors for REF_CURSOR (ResultSet) parametersSet<FilterJdbcParameter>
getFilterJdbcParameters()
JdbcCallFunctionReturn
getFunctionReturn()
If the call is a function, returns the function return descriptorJdbcValuesMappingProducer
getJdbcValuesMappingProducer()
Retrieve the "result set mappings" for processing any ResultSets returned from the JDBC call.List<JdbcParameterBinder>
getParameterBinders()
Get the list of parameter binders for the generated PreparedStatementList<JdbcCallParameterExtractor>
getParameterExtractors()
Extractors for reading back any OUT/INOUT parameters.List<JdbcCallParameterRegistration>
getParameterRegistrations()
Get the list of any parameter registrations we need to register against the generated CallableStatementString
getSql()
Get the SQL command we will be executing through JDBC PreparedStatement or CallableStatementboolean
isCompatibleWith(JdbcParameterBindings jdbcParameterBindings, QueryOptions queryOptions)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hibernate.sql.exec.spi.JdbcOperation
bindFilterJdbcParameters
-
-
-
-
Constructor Detail
-
JdbcCallImpl
public JdbcCallImpl(JdbcCallImpl.Builder builder)
-
-
Method Detail
-
getSql
public String getSql()
Description copied from interface:JdbcOperation
Get the SQL command we will be executing through JDBC PreparedStatement or CallableStatement- Specified by:
getSql
in interfaceJdbcOperation
-
getFunctionReturn
public JdbcCallFunctionReturn getFunctionReturn()
Description copied from interface:JdbcCall
If the call is a function, returns the function return descriptor- Specified by:
getFunctionReturn
in interfaceJdbcCall
-
getParameterRegistrations
public List<JdbcCallParameterRegistration> getParameterRegistrations()
Description copied from interface:JdbcCall
Get the list of any parameter registrations we need to register against the generated CallableStatement- Specified by:
getParameterRegistrations
in interfaceJdbcCall
-
getParameterBinders
public List<JdbcParameterBinder> getParameterBinders()
Description copied from interface:JdbcOperation
Get the list of parameter binders for the generated PreparedStatement- Specified by:
getParameterBinders
in interfaceJdbcOperation
-
getAffectedTableNames
public Set<String> getAffectedTableNames()
- Specified by:
getAffectedTableNames
in interfaceJdbcOperation
-
getFilterJdbcParameters
public Set<FilterJdbcParameter> getFilterJdbcParameters()
- Specified by:
getFilterJdbcParameters
in interfaceJdbcOperation
-
dependsOnParameterBindings
public boolean dependsOnParameterBindings()
Description copied from interface:JdbcOperation
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 interfaceJdbcOperation
-
isCompatibleWith
public boolean isCompatibleWith(JdbcParameterBindings jdbcParameterBindings, QueryOptions queryOptions)
- Specified by:
isCompatibleWith
in interfaceJdbcOperation
-
getParameterExtractors
public List<JdbcCallParameterExtractor> getParameterExtractors()
Description copied from interface:JdbcCall
Extractors for reading back any OUT/INOUT parameters.- Specified by:
getParameterExtractors
in interfaceJdbcCall
-
getCallRefCursorExtractors
public List<JdbcCallRefCursorExtractor> getCallRefCursorExtractors()
Description copied from interface:JdbcCall
Extractors for REF_CURSOR (ResultSet) parameters- Specified by:
getCallRefCursorExtractors
in interfaceJdbcCall
-
getJdbcValuesMappingProducer
public JdbcValuesMappingProducer getJdbcValuesMappingProducer()
Description copied from interface:JdbcAnonBlock
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 interfaceJdbcAnonBlock
-
-