@FunctionalInterface public interface BindVariableRender extends UnaryOperator<String>
BindVariableRender, you implements class of this interface and you need to
specify the 'dialect.bind-variable-render' property of mybatis-thymeleaf.properties.
package com.example;
// ...
public class R2dbcMySQLBindVariableRender extends EnclosingBasedBindVariableRender {
public R2dbcMySQLBindVariableRender() {
super("?", ""); // Render '?...' (e.g. ?id)
}
}
dialect.bind-variable-render = com.example.MyBindVariableRender
| Modifier and Type | Interface and Description |
|---|---|
static class |
BindVariableRender.BuiltIn
The built-in bind variable renders.
|
| Modifier and Type | Method and Description |
|---|---|
default String |
apply(String name) |
String |
render(String name)
Render a bind variable.
|
identityCopyright © 2018–2020 MyBatis.org. All rights reserved.