public enum AutoMappingUnknownColumnBehavior extends Enum<AutoMappingUnknownColumnBehavior>
| Enum Constant and Description |
|---|
FAILING
Fail mapping.
|
NONE
Do nothing (Default).
|
WARNING
Output warning log.
|
| Modifier and Type | Method and Description |
|---|---|
abstract void |
doAction(MappedStatement mappedStatement,
String columnName,
String propertyName,
Class<?> propertyType)
Perform the action when detects an unknown column (or unknown property type) of automatic mapping target.
|
static AutoMappingUnknownColumnBehavior |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AutoMappingUnknownColumnBehavior[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AutoMappingUnknownColumnBehavior NONE
public static final AutoMappingUnknownColumnBehavior WARNING
'org.apache.ibatis.session.AutoMappingUnknownColumnBehavior' must be set to WARN.public static final AutoMappingUnknownColumnBehavior FAILING
SqlSessionException.public static AutoMappingUnknownColumnBehavior[] values()
for (AutoMappingUnknownColumnBehavior c : AutoMappingUnknownColumnBehavior.values()) System.out.println(c);
public static AutoMappingUnknownColumnBehavior 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 abstract void doAction(MappedStatement mappedStatement, String columnName, String propertyName, Class<?> propertyType)
mappedStatement - current mapped statementcolumnName - column name for mapping targetpropertyName - property name for mapping targetpropertyType - property type for mapping target (If this argument is not null, TypeHandler for property type is not registered)Copyright © 2009–2021 MyBatis.org. All rights reserved.