Package org.jdbi.v3.sqlobject.customizer
package org.jdbi.v3.sqlobject.customizer
The sqlobject.customizer
package provides annotations
that customize the execution of a statement. The most common utility
is binding parameters with @Bind
but there are also miscellaneous
JDBC options supported here such as timeouts and fetch size.
-
InterfaceDescriptionUsed with
SqlStatementCustomizerFactory
to customize sql statements via annotations.Interface used in conjunction withSqlStatementCustomizingAnnotation
to generateSqlStatementCustomizer
instances.Customize aSqlStatement
according to the value of an annotated parameter. -
EnumDescriptiondescribes what needs to be done if the passed argument is null or empty
-
Annotation TypeDescriptionSuppresses error when bindings are created but never used in the query.Binds the annotated argument as a named parameter, and as a positional parameter.Binds the properties of a JavaBean to a SQL statement.Binds each property for each value in the annotated
Iterable
or array/varargs argument, and defines a named attribute as a comma-separated list of each bound parameter name.Binds the properties and public fields of an object to a SQL statement.Binds each value in the annotatedIterable
or array/varargs argument, and defines a named attribute as a comma-separated list of each bound parameter name.Binds the entries of aMap<String, Object>
to a SQL statement.Binds each method for each value in the annotatedIterable
or array/varargs argument, and defines a named attribute as a comma-separated list of each bound method name.Binds the properties of an object to a SQL statement.Defines a named attribute as the argument passed to the annotated parameter.Defines all bound arguments that don't already have a definition.Specify batch size to fetch resulting rows in.Used to specify the maximum number of rows to return on a result set.Declare a named out parameter on an@SqlCall
annotated method.Specify the query timeout in seconds.Annotation used to build customizing annotations.Binds the named parameter:now
or a custom named parameter with the current DateTime as anOffsetDateTime
.