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.

@FunctionalInterface public interface BindVariableRender extends UnaryOperator<String>
The interface for rendering a bind variable.
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

    Nested Classes
    Modifier and Type
    Interface
    Description
    static enum 
    The built-in bind variable renders.
  • Method Summary

    Modifier and Type
    Method
    Description
    default String
    apply(String name)
    render(String name)
    Render a bind variable.

    Methods inherited from interface java.util.function.Function

    andThen, compose