Interface BindVariableRender
- All Superinterfaces:
Function<String,
,String> UnaryOperator<String>
- All Known Implementing Classes:
BindVariableRender.BuiltIn
,SpringNamedParameterBindVariableRender
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
The interface for rendering a bind variable.
If you want to customize a default
e.g.) Implementation class:
e.g.) Configuration file (mybatis-thymeleaf.properties):
If you want to customize a default
BindVariableRender
, you implements class of this interface and you need to
specify the 'dialect.bind-variable-render' property of mybatis-thymeleaf.properties. e.g.) Implementation class:
package com.example; // ... public class R2dbcMySQLBindVariableRender extends EnclosingBasedBindVariableRender { public R2dbcMySQLBindVariableRender() { super("?", ""); // Render '?...' (e.g. ?id) } }
e.g.) Configuration file (mybatis-thymeleaf.properties):
dialect.bind-variable-render = com.example.MyBindVariableRender
- Version:
- 1.0.2
- Author:
- Kazuki Shimizu
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic enum
The built-in bind variable renders. -
Method Summary
-
Method Details
-
apply
-
render
-