public class JavaTypeResolverDefaultImpl extends Object implements JavaTypeResolver
| Modifier and Type | Class and Description |
|---|---|
static class |
JavaTypeResolverDefaultImpl.JdbcTypeInformation |
| Modifier and Type | Field and Description |
|---|---|
protected Context |
context |
protected boolean |
forceBigDecimals |
protected Properties |
properties |
protected Map<Integer,JavaTypeResolverDefaultImpl.JdbcTypeInformation> |
typeMap |
protected List<String> |
warnings |
| Constructor and Description |
|---|
JavaTypeResolverDefaultImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addConfigurationProperties(Properties properties)
Adds properties for this instance from any properties configured in the
JavaTypeResolverConfiguration.
|
FullyQualifiedJavaType |
calculateJavaType(IntrospectedColumn introspectedColumn)
Calculates and returns the Java type that should be associated with this
column based on the jdbc type, length, and scale of the column.
|
String |
calculateJdbcTypeName(IntrospectedColumn introspectedColumn)
Calculates and returns the JDBC type name that should be associated with
this column based on the jdbc type, length, and scale of the column.
|
void |
setContext(Context context)
Sets the instance of the Context object associated with this instance.
|
void |
setWarnings(List<String> warnings)
The generator will supply a list to this method.
|
protected Properties properties
protected Context context
protected boolean forceBigDecimals
protected Map<Integer,JavaTypeResolverDefaultImpl.JdbcTypeInformation> typeMap
public void addConfigurationProperties(Properties properties)
JavaTypeResolveraddConfigurationProperties in interface JavaTypeResolverproperties - All properties from the configurationpublic FullyQualifiedJavaType calculateJavaType(IntrospectedColumn introspectedColumn)
JavaTypeResolvercalculateJavaType in interface JavaTypeResolverintrospectedColumn - the column whose Java type needs to be calculatedpublic String calculateJdbcTypeName(IntrospectedColumn introspectedColumn)
JavaTypeResolvercalculateJdbcTypeName in interface JavaTypeResolverintrospectedColumn - the column whose Java type needs to be calculatedpublic void setWarnings(List<String> warnings)
JavaTypeResolversetWarnings in interface JavaTypeResolverpublic void setContext(Context context)
JavaTypeResolversetContext in interface JavaTypeResolvercontext - The current ContextCopyright © 2010–2016 MyBatis.org. All rights reserved.