Package org.jdbi.v3.core.statement
package org.jdbi.v3.core.statement
The statement
package provides most of the Fluent API
to drive statement execution. It also handles parameter binding and
the Statement lifecycle, including cleaning up resources after execution.
-
InterfaceDescriptionMap an
OUT
parameter in a callable statement to a result type.Cleans up some JDBC resource e.g.SqlLoggers receive query data before and after a query is executed, and after an exception is thrown by a bad query.Parses the named parameters out of an SQL statement, and returns theParsedSql
containing the JDBC-ready SQL statement, along with the type of parameters used (named or positional), the number, and the parameter name for each position (if applicable).Used to convert translated SQL into a prepared statement.Used to specify how prepared statements are built.Allows tweaking of statement behaviour.Renders an SQL statement from a template. -
ClassDescriptionRepresents a group of non-prepared statements to be sent to the RDMBS in one "request".Represents the arguments bound to a particular statement.Used for invoking stored procedures.SQL parser which recognizes named parameter tokens of the form
:tokenName
A StatementBuilder which will always create a new PreparedStatement.Template engine which replaces angle-bracketed tokens like<name>
with the string value of the named attribute.SQL parser which recognizes named parameter tokens of the form#tokenName
.Access to Database Metadata.Represents output from a Call (CallableStatement).The parsed parameters from an SQL statement.The SQL and parameters parsed from an SQL statement.Fluent builder for ParsedSql instances.Represents a prepared batch statement.Statement providing convenience result handling for SQL queries.Represents a number of SQL statements which will be executed in a batch statement.SimpleSqlLogger
that emits some diagnostic information about Jdbi usage.SqlStatement<This extends SqlStatement<This>>This class provides the common functions betweenQuery
andUpdate
.Configuration holder forSqlStatement
s.The statement context provides access to statement-local configuration.Some simpleStatementCustomizer
s you might find handy.Configuration forStatementException
and subclasses behavior.Used for INSERT, UPDATE, and DELETE statements -
EnumDescriptiondescribes what should be done if the value passed to
SqlStatement.bindList(java.lang.String, java.lang.Object...)
is null or emptyControl exception message generation. -
ExceptionDescriptionSuperclass for exceptions thrown while trying to execute a statement.Thrown when
Jdbi
couldn't create a statement.Thrown when statement execution fails.Thrown whenJdbi
couldn't retrieve metadata from the connection.