Package org.jdbi.v3.sqlobject.customizer
Interface SqlStatementCustomizer
-
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface SqlStatementCustomizer
Used withSqlStatementCustomizerFactoryto customize sql statements via annotations.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidapply(SqlStatement<?> q)Invoked to customize the sql statementdefault voidwarm(ConfigRegistry config)Called after the customizer is instantiated but before any statement is available, to pre-initialize any configuration data structures.
-
-
-
Method Detail
-
apply
void apply(SqlStatement<?> q) throws SQLException
Invoked to customize the sql statement- Parameters:
q- the statement being customized- Throws:
SQLException- will abort statement creation
-
warm
@Beta default void warm(ConfigRegistry config)
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
-
-