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.
-
Interface Summary Interface Description SqlStatementCustomizer Used withSqlStatementCustomizerFactoryto customize sql statements via annotations.SqlStatementCustomizerFactory Interface used in conjunction withSqlStatementCustomizingAnnotationto generateSqlStatementCustomizerinstances.SqlStatementParameterCustomizer Customize aSqlStatementaccording to the value of an annotated parameter. -
Class Summary Class Description TimestampedConfig Configuration forTimestamped. -
Enum Summary Enum Description BindList.EmptyHandling describes what needs to be done if the passed argument is null or empty -
Annotation Types Summary Annotation Type Description AllowUnusedBindings Suppresses error when bindings are created but never used in the query.Bind Binds the annotated argument as a named parameter, and as a positional parameter.BindBean Binds the properties of a JavaBean to a SQL statement.BindBeanList Binds each property for each value in the annotatedIterableor array/varargs argument, and defines a named attribute as a comma-separated list of each bound parameter name.BindFields Binds the properties and public fields of an object to a SQL statement.BindList Binds each value in the annotatedIterableor array/varargs argument, and defines a named attribute as a comma-separated list of each bound parameter name.BindMap Binds the entries of aMap<String, Object>to a SQL statement.BindMethods BindMethodsList Binds each method for each value in the annotatedIterableor array/varargs argument, and defines a named attribute as a comma-separated list of each bound method name.BindPojo Binds the properties of an object to a SQL statement.Define Defines a named attribute as the argument passed to the annotated parameter.DefineList DefineNamedBindings Defines all bound arguments that don't already have a definition.FetchSize Specify batch size to fetch resulting rows in.MaxRows Used to specify the maximum number of rows to return on a result set.OutParameter Declare a named out parameter on an@SqlCallannotated method.OutParameterList QueryTimeOut Specify the query timeout in seconds.SqlStatementCustomizingAnnotation Annotation used to build customizing annotations.Timestamped Binds the named parameter:nowor a custom named parameter with the current DateTime as anOffsetDateTime.