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.
-
Interface Summary Interface Description BaseStatement.StatementCustomizerInvocation CallableStatementMapper Map anOUTparameter in a callable statement to a result type.Cleanable Cleans up some JDBC resource e.g.MetaData.MetaDataResultSetProvider MetaData.MetaDataValueProvider<T> SqlLoggable<T> Deprecated. this class is not for end-user use and should not be in the public API.SqlLogger SqlLoggers receive query data before and after a query is executed, and after an exception is thrown by a bad query.SqlParser Parses the named parameters out of an SQL statement, and returns theParsedSqlcontaining 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).StatementBuilder Used to convert translated SQL into a prepared statement.StatementBuilderFactory Used to specify how prepared statements are built.StatementContextListener Listener interface for theStatementContext.StatementCustomizer Allows tweaking of statement behaviour.TemplateEngine Renders an SQL statement from a template.TemplateEngine.Parsing TimingCollector Deprecated. UseSqlLoggerinstead. -
Class Summary Class Description ArgumentBinder ArgumentBinder.Prepared BaseStatement<This> Batch Represents a group of non-prepared statements to be sent to the RDMBS in one "request".Binding Represents the arguments bound to a particular statement.CachingSqlParser Call Used for invoking stored procedures.ColonPrefixSqlParser SQL parser which recognizes named parameter tokens of the form:tokenNameDefaultStatementBuilder A StatementBuilder which will always create a new PreparedStatement.DefinedAttributeTemplateEngine Template engine which replaces angle-bracketed tokens like<name>with the string value of the named attribute.DefineNamedBindingsStatementCustomizer DefineNamedBindingsStatementCustomizer.SetNullHandler DescribedArgument HashPrefixSqlParser SQL parser which recognizes named parameter tokens of the form#tokenName.MessageFormatTemplateEngine Deprecated. MessageFormatformats integers with decimal separators, e.g.MetaData Access to Database Metadata.NoTemplateEngine A TemplateEngine that does not do any templating but returns SQL verbatim.OutParameters Represents output from a Call (CallableStatement).ParsedParameters The parsed parameters from an SQL statement.ParsedSql The SQL and parameters parsed from an SQL statement.ParsedSql.Builder Fluent builder for ParsedSql instances.PreparedBatch Represents a prepared batch statement.PreparedBatch.ExecutedBatch PreparedBatch.ExecutedBatchConsumer Query Statement providing convenience result handling for SQL queries.Script Represents a number of SQL statements delimited by semicolon which will be executed in order in a batch statement.Slf4JSqlLogger SimpleSqlLoggerthat emits some diagnostic information about Jdbi usage.SqlLoggerUtil SqlStatement<This extends SqlStatement<This>> This class provides the common functions betweenQueryandUpdate.SqlStatements Configuration holder forSqlStatements.SqlStatements.StatementCacheKey StatementContext The statement context provides access to statement-local configuration.StatementCustomizers Some simpleStatementCustomizers you might find handy.StatementExceptions Configuration forStatementExceptionand subclasses behavior.Update Used for INSERT, UPDATE, and DELETE statements -
Enum Summary Enum Description EmptyHandling describes what should be done if the value passed toSqlStatement.bindList(java.lang.String, java.lang.Object...)is null or emptyStatementExceptions.MessageRendering Control exception message generation. -
Exception Summary Exception Description StatementException Superclass for exceptions thrown while trying to execute a statement.UnableToCreateStatementException Thrown whenJdbicouldn't create a statement.UnableToExecuteStatementException Thrown when statement execution fails.UnableToRetrieveMetaDataException Thrown whenJdbicouldn't retrieve metadata from the connection.