public static enum BindVariableRender.BuiltIn extends Enum<BindVariableRender.BuiltIn> implements BindVariableRender
BindVariableRender.BuiltIn| Enum Constant and Description |
|---|
MYBATIS
The render for MyBatis core named parameter format(.e.g #{id}).
|
SPRING_NAMED_PARAMETER
The render for Spring JDBC named parameter format(.e.g :id).
|
| Modifier and Type | Method and Description |
|---|---|
Class<? extends BindVariableRender> |
getType()
Get a type of the actual
BindVariableRender. |
String |
render(String name)
Render a bind variable.
|
static BindVariableRender.BuiltIn |
valueOf(String name)
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.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfapplyidentitypublic static final BindVariableRender.BuiltIn MYBATIS
This is default.
public static final BindVariableRender.BuiltIn SPRING_NAMED_PARAMETER
public static BindVariableRender.BuiltIn[] values()
for (BindVariableRender.BuiltIn c : BindVariableRender.BuiltIn.values()) System.out.println(c);
public static BindVariableRender.BuiltIn valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String render(String name)
render in interface BindVariableRendername - a bind variable namepublic Class<? extends BindVariableRender> getType()
BindVariableRender.BindVariableRenderCopyright © 2018–2020 MyBatis.org. All rights reserved.