Package org.jdbi.v3.sqlobject.customizer
Interface SqlStatementParameterCustomizer
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Customize a
SqlStatement
according to the value of an annotated parameter.-
Method Summary
Modifier and TypeMethodDescriptionvoid
apply
(SqlStatement<?> stmt, Object arg) Applies the customization to the SQL statement using the argument passed to the method.default void
warm
(ConfigRegistry config) Called after the customizer is instantiated but before any statement is available, to pre-initialize any configuration data structures.
-
Method Details
-
apply
Applies the customization to the SQL statement using the argument passed to the method.- Parameters:
stmt
- the statement being customizedarg
- the argument passed to the method- Throws:
SQLException
- will abort statement creation
-
warm
Called after the customizer is instantiated but before any statement is available, to pre-initialize any configuration data structures.- Parameters:
config
- the configuration registry to warm
-