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.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.mybatis.scripting.thymeleaf.processor.BindVariableRender
BindVariableRender.BuiltIn
-
Enum Constant Summary
Enum ConstantDescriptionThe render for MyBatis core named parameter format(.e.g #{id}).The render for Spring JDBC named parameter format(.e.g :id). -
Method Summary
Modifier and TypeMethodDescriptionClass
<? extends BindVariableRender> getType()
Get a type of the actualBindVariableRender
.Render a bind variable.static BindVariableRender.BuiltIn
Returns the enum constant of this type with the specified name.static BindVariableRender.BuiltIn[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Methods inherited from interface org.mybatis.scripting.thymeleaf.processor.BindVariableRender
apply
-
Enum Constant Details
-
MYBATIS
The render for MyBatis core named parameter format(.e.g #{id}).This is default.
-
SPRING_NAMED_PARAMETER
The render for Spring JDBC named parameter format(.e.g :id).
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
render
Render a bind variable.- Specified by:
render
in interfaceBindVariableRender
- Parameters:
name
- a bind variable name- Returns:
- a bind variable
-
getType
Get a type of the actualBindVariableRender
.- Returns:
- a type of delegating
BindVariableRender
-