Package org.hibernate.sql.exec.internal
Class JdbcCallImpl
- java.lang.Object
-
- org.hibernate.sql.exec.internal.JdbcCallImpl
-
- All Implemented Interfaces:
JdbcOperation,JdbcOperationQuery,JdbcOperationQueryAnonBlock,JdbcOperationQueryCall
public class JdbcCallImpl extends Object implements JdbcOperationQueryCall
Models the actual call, allowing iterative building of the parts.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classJdbcCallImpl.Builder
-
Constructor Summary
Constructors Modifier Constructor Description protectedJdbcCallImpl(String callableName, JdbcCallFunctionReturn functionReturn, List<JdbcCallParameterRegistration> parameterRegistrations, List<JdbcParameterBinder> parameterBinders, List<JdbcCallParameterExtractor> parameterExtractors)protectedJdbcCallImpl(String callableName, JdbcCallFunctionReturn functionReturn, List<JdbcCallParameterRegistration> parameterRegistrations, List<JdbcParameterBinder> parameterBinders, List<JdbcCallParameterExtractor> parameterExtractors, List<JdbcCallRefCursorExtractor> refCursorExtractors)JdbcCallImpl(JdbcCallImpl.Builder builder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleandependsOnParameterBindings()Signals that the SQL depends on the parameter bindings e.g.Set<String>getAffectedTableNames()The names of tables this operation refers toMap<JdbcParameter,JdbcParameterBinding>getAppliedParameters()The parameters which were inlined into the query as literals.List<JdbcCallRefCursorExtractor>getCallRefCursorExtractors()Extractors for REF_CURSOR (ResultSet) parametersJdbcCallFunctionReturngetFunctionReturn()If the call is a function, returns the function return descriptorJdbcValuesMappingProducergetJdbcValuesMappingProducer()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 CallableStatementStringgetSqlString()Get the SQL command we will be executing through JDBC PreparedStatement or CallableStatementbooleanisCompatibleWith(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.JdbcOperationQuery
getFilterJdbcParameters
-
-
-
-
Constructor Detail
-
JdbcCallImpl
public JdbcCallImpl(JdbcCallImpl.Builder builder)
-
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 Detail
-
getSqlString
public String getSqlString()
Description copied from interface:JdbcOperationGet the SQL command we will be executing through JDBC PreparedStatement or CallableStatement- Specified by:
getSqlStringin interfaceJdbcOperation
-
getFunctionReturn
public JdbcCallFunctionReturn getFunctionReturn()
Description copied from interface:JdbcOperationQueryCallIf the call is a function, returns the function return descriptor- Specified by:
getFunctionReturnin interfaceJdbcOperationQueryCall
-
getParameterRegistrations
public List<JdbcCallParameterRegistration> getParameterRegistrations()
Description copied from interface:JdbcOperationQueryCallGet the list of any parameter registrations we need to register against the generated CallableStatement- Specified by:
getParameterRegistrationsin interfaceJdbcOperationQueryCall
-
getParameterBinders
public List<JdbcParameterBinder> getParameterBinders()
Description copied from interface:JdbcOperationGet the list of parameter binders for the generated PreparedStatement- Specified by:
getParameterBindersin interfaceJdbcOperation
-
getAffectedTableNames
public Set<String> getAffectedTableNames()
Description copied from interface:JdbcOperationQueryThe names of tables this operation refers to- Specified by:
getAffectedTableNamesin interfaceJdbcOperationQuery
-
dependsOnParameterBindings
public boolean dependsOnParameterBindings()
Description copied from interface:JdbcOperationQuerySignals that the SQL depends on the parameter bindings e.g. due to the need for inlining of parameter values or multiValued parameters.- Specified by:
dependsOnParameterBindingsin interfaceJdbcOperationQuery
-
getAppliedParameters
public Map<JdbcParameter,JdbcParameterBinding> getAppliedParameters()
Description copied from interface:JdbcOperationQueryThe parameters which were inlined into the query as literals.- Specified by:
getAppliedParametersin interfaceJdbcOperationQuery
-
isCompatibleWith
public boolean isCompatibleWith(JdbcParameterBindings jdbcParameterBindings, QueryOptions queryOptions)
- Specified by:
isCompatibleWithin interfaceJdbcOperationQuery
-
getParameterExtractors
public List<JdbcCallParameterExtractor> getParameterExtractors()
Description copied from interface:JdbcOperationQueryCallExtractors for reading back any OUT/INOUT parameters.- Specified by:
getParameterExtractorsin interfaceJdbcOperationQueryCall
-
getCallRefCursorExtractors
public List<JdbcCallRefCursorExtractor> getCallRefCursorExtractors()
Description copied from interface:JdbcOperationQueryCallExtractors for REF_CURSOR (ResultSet) parameters- Specified by:
getCallRefCursorExtractorsin interfaceJdbcOperationQueryCall
-
getJdbcValuesMappingProducer
public JdbcValuesMappingProducer getJdbcValuesMappingProducer()
Description copied from interface:JdbcOperationQueryAnonBlockRetrieve 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:
getJdbcValuesMappingProducerin interfaceJdbcOperationQueryAnonBlock
-
-