Enum BindVariableRender.BuiltIn

java.lang.Object
java.lang.Enum<BindVariableRender.BuiltIn>
org.mybatis.scripting.thymeleaf.processor.BindVariableRender.BuiltIn
All Implemented Interfaces:
Serializable, Comparable<BindVariableRender.BuiltIn>, Function<String,String>, UnaryOperator<String>, BindVariableRender
Enclosing interface:
BindVariableRender

public static enum BindVariableRender.BuiltIn extends Enum<BindVariableRender.BuiltIn> implements BindVariableRender
The built-in bind variable renders.
  • Enum Constant Details

    • MYBATIS

      public static final BindVariableRender.BuiltIn MYBATIS
      The render for MyBatis core named parameter format(.e.g #{id}).

      This is default.

    • SPRING_NAMED_PARAMETER

      public static final BindVariableRender.BuiltIn SPRING_NAMED_PARAMETER
      The render for Spring JDBC named parameter format(.e.g :id).
  • Method Details

    • values

      public static BindVariableRender.BuiltIn[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static BindVariableRender.BuiltIn valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • render

      public String render(String name)
      Render a bind variable.
      Specified by:
      render in interface BindVariableRender
      Parameters:
      name - a bind variable name
      Returns:
      a bind variable
    • getType

      public Class<? extends BindVariableRender> getType()
      Get a type of the actual BindVariableRender.
      Returns:
      a type of delegating BindVariableRender