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.
-
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.Map an
OUT
parameter in a callable statement to a result type.Cleans up some JDBC resource e.g.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.describes what should be done if the value passed toSqlStatement.bindList(java.lang.String, java.lang.Object...)
is null or emptySQL parser which recognizes named parameter tokens of the form#tokenName
.Access to Database Metadata.A TemplateEngine that does not do any templating but returns SQL verbatim.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 delimited by semicolon which will be executed in order in a batch statement.SimpleSqlLogger
that emits some diagnostic information about Jdbi usage.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).SqlStatement<This extends SqlStatement<This>>This class provides the common functions betweenQuery
andUpdate
.Configuration holder forSqlStatement
s.Used to convert translated SQL into a prepared statement.Used to specify how prepared statements are built.The statement context provides access to statement-local configuration.Allows tweaking of statement behaviour.Some simpleStatementCustomizer
s you might find handy.Superclass for exceptions thrown while trying to execute a statement.Configuration forStatementException
and subclasses behavior.Control exception message generation.Renders an SQL statement from a template.Thrown whenJdbi
couldn't create a statement.Thrown when statement execution fails.Thrown whenJdbi
couldn't retrieve metadata from the connection.Used for INSERT, UPDATE, and DELETE statements