Package org.jdbi.v3.core.statement
Class Call
- All Implemented Interfaces:
Closeable,AutoCloseable,Configurable<Call>
Used for invoking stored procedures.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.jdbi.v3.core.statement.BaseStatement
BaseStatement.StatementCustomizerInvocation -
Field Summary
FieldsFields inherited from class org.jdbi.v3.core.statement.SqlStatement
stmtFields inherited from class org.jdbi.v3.core.statement.BaseStatement
typedThis -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) PreparedStatementcreateStatement(String parsedSql) invoke()Invoke the callable statement.voidinvoke(Consumer<OutParameters> resultConsumer) Invoke the callable statement and process itsOutParametersresults.<T> Tinvoke(Function<OutParameters, T> resultComputer) Invoke the callable statement and process itsOutParametersresults, returning a computed value of typeT.registerOutParameter(int position, int sqlType) Register a positional output parameter.registerOutParameter(int position, int sqlType, CallableStatementMapper mapper) Register a positional output parameter.registerOutParameter(String name, int sqlType) Register a named output parameter.registerOutParameter(String name, int sqlType, CallableStatementMapper mapper) Register a named output parameter.Methods inherited from class org.jdbi.v3.core.statement.SqlStatement
afterExecution, beforeBinding, beforeExecution, beforeTemplating, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bindArray, bindArray, bindArray, bindArray, bindArray, bindArray, bindArray, bindArray, bindASCIIStream, bindASCIIStream, bindBean, bindBean, bindBeanList, bindBinaryStream, bindBinaryStream, bindBySqlType, bindBySqlType, bindByType, bindByType, bindByType, bindByType, bindByType, bindByType, bindFields, bindFields, bindList, bindList, bindList, bindList, bindList, bindList, bindList, bindMap, bindMethods, bindMethods, bindMethodsList, bindNamedArgumentFinder, bindNamedArgumentFinder, bindNull, bindNull, bindNVarchar, bindNVarchar, bindPojo, bindPojo, bindPojo, bindPojo, bindPojo, bindPojo, cleanupHandleCommit, cleanupHandleRollback, cleanupStatement, defineList, defineList, defineNamedBindings, getBinding, getSql, internalExecute, mapperForType, mapperForType, mapperForType, parseSql, setQueryTimeout, toStringMethods inherited from class org.jdbi.v3.core.statement.BaseStatement
addCustomizers, attachToHandleForCleanup, callCustomizers, cleanUpForException, close, equals, getConfig, getContext, getHandle, hashCodeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.jdbi.v3.core.config.Configurable
addCustomizer, configure, define, getConfig, registerArgument, registerArgument, registerArrayType, registerArrayType, registerArrayType, registerArrayType, registerCodecFactory, registerCollector, registerCollector, registerColumnMapper, registerColumnMapper, registerColumnMapper, registerColumnMapper, registerColumnMapper, registerColumnMapper, registerExtension, registerRowMapper, registerRowMapper, registerRowMapper, registerRowMapper, setMapKeyColumn, setMapValueColumn, setSqlArrayArgumentStrategy, setSqlLogger, setSqlParser, setTemplateEngine, setTimingCollector
-
Field Details
-
params
-
-
Constructor Details
-
Call
-
Call
Backwards compatible constructor that takes an explicit string argument.- See Also:
-
-
Method Details
-
createStatement
- Overrides:
createStatementin classSqlStatement<Call>- Throws:
SQLException
-
registerOutParameter
Register a positional output parameter.- Parameters:
position- the parameter position (zero-based)sqlType- an SQL type constant as defined byTypesor by the JDBC vendor.- Returns:
- self
-
registerOutParameter
Register a positional output parameter.- Parameters:
position- the parameter position (zero-based)sqlType- an SQL type constant as defined byTypesor by the JDBC vendor.mapper- a mapper which converts theCallableStatementto a desired output type.- Returns:
- self
-
registerOutParameter
Register a named output parameter.- Parameters:
name- the parameter namesqlType- an SQL type constant as defined byTypesor by the JDBC vendor.- Returns:
- self
-
registerOutParameter
Register a named output parameter.- Parameters:
name- the parameter namesqlType- an SQL type constant as defined byTypesor by the JDBC vendor.mapper- a mapper which converts theCallableStatementto a desired output type.- Returns:
- self
-
invoke
Invoke the callable statement. Note that the statement will be cleaned up, so cursor-typed values may not work.- Returns:
- the output parameters resulting from the invocation.
-
invoke
Invoke the callable statement and process itsOutParametersresults. -
invoke
Invoke the callable statement and process itsOutParametersresults, returning a computed value of typeT.
-