Class CustomJavaTypeResolver
- java.lang.Object
-
- pro.chenggang.project.reactive.mybatis.support.generator.support.CustomJavaTypeResolver
-
- All Implemented Interfaces:
org.mybatis.generator.api.JavaTypeResolver
public class CustomJavaTypeResolver extends Object implements org.mybatis.generator.api.JavaTypeResolver
The type Custom java type resolver.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCustomJavaTypeResolver.JdbcTypeInformationThe type Jdbc type information.
-
Field Summary
Fields Modifier and Type Field Description protected org.mybatis.generator.config.ContextcontextThe Context.protected booleanforceBigDecimalsThe Force big decimals.protected PropertiespropertiesThe Properties.protected Map<Integer,CustomJavaTypeResolver.JdbcTypeInformation>typeMapThe Type map.protected booleanuseJSR310TypesThe Use jsr 310 types.protected List<String>warningsThe Warnings.
-
Constructor Summary
Constructors Constructor Description CustomJavaTypeResolver()Instantiates a new Custom java type resolver.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddConfigurationProperties(Properties properties)protected org.mybatis.generator.api.dom.java.FullyQualifiedJavaTypecalculateBigDecimalReplacement(org.mybatis.generator.api.IntrospectedColumn column, org.mybatis.generator.api.dom.java.FullyQualifiedJavaType defaultType)Calculate big decimal replacement fully qualified java type.protected org.mybatis.generator.api.dom.java.FullyQualifiedJavaTypecalculateBitReplacement(org.mybatis.generator.api.IntrospectedColumn column, org.mybatis.generator.api.dom.java.FullyQualifiedJavaType defaultType)Calculate bit replacement fully qualified java type.protected org.mybatis.generator.api.dom.java.FullyQualifiedJavaTypecalculateDateType(org.mybatis.generator.api.IntrospectedColumn column, org.mybatis.generator.api.dom.java.FullyQualifiedJavaType defaultType)Calculate date type fully qualified java type.org.mybatis.generator.api.dom.java.FullyQualifiedJavaTypecalculateJavaType(org.mybatis.generator.api.IntrospectedColumn introspectedColumn)StringcalculateJdbcTypeName(org.mybatis.generator.api.IntrospectedColumn introspectedColumn)protected org.mybatis.generator.api.dom.java.FullyQualifiedJavaTypecalculateTimestampType(org.mybatis.generator.api.IntrospectedColumn column, org.mybatis.generator.api.dom.java.FullyQualifiedJavaType defaultType)Calculate timestamp type fully qualified java type.protected org.mybatis.generator.api.dom.java.FullyQualifiedJavaTypecalculateTimeType(org.mybatis.generator.api.IntrospectedColumn column, org.mybatis.generator.api.dom.java.FullyQualifiedJavaType defaultType)Calculate time type fully qualified java type.protected org.mybatis.generator.api.dom.java.FullyQualifiedJavaTypeoverrideDefaultType(org.mybatis.generator.api.IntrospectedColumn column, org.mybatis.generator.api.dom.java.FullyQualifiedJavaType defaultType)Override default type fully qualified java type.voidsetContext(org.mybatis.generator.config.Context context)voidsetWarnings(List<String> warnings)
-
-
-
Field Detail
-
properties
protected Properties properties
The Properties.
-
context
protected org.mybatis.generator.config.Context context
The Context.
-
forceBigDecimals
protected boolean forceBigDecimals
The Force big decimals.
-
useJSR310Types
protected boolean useJSR310Types
The Use jsr 310 types.
-
typeMap
protected Map<Integer,CustomJavaTypeResolver.JdbcTypeInformation> typeMap
The Type map.
-
-
Method Detail
-
addConfigurationProperties
public void addConfigurationProperties(Properties properties)
- Specified by:
addConfigurationPropertiesin interfaceorg.mybatis.generator.api.JavaTypeResolver
-
calculateJavaType
public org.mybatis.generator.api.dom.java.FullyQualifiedJavaType calculateJavaType(org.mybatis.generator.api.IntrospectedColumn introspectedColumn)
- Specified by:
calculateJavaTypein interfaceorg.mybatis.generator.api.JavaTypeResolver
-
overrideDefaultType
protected org.mybatis.generator.api.dom.java.FullyQualifiedJavaType overrideDefaultType(org.mybatis.generator.api.IntrospectedColumn column, org.mybatis.generator.api.dom.java.FullyQualifiedJavaType defaultType)Override default type fully qualified java type.- Parameters:
column- the columndefaultType- the default type- Returns:
- the fully qualified java type
-
calculateDateType
protected org.mybatis.generator.api.dom.java.FullyQualifiedJavaType calculateDateType(org.mybatis.generator.api.IntrospectedColumn column, org.mybatis.generator.api.dom.java.FullyQualifiedJavaType defaultType)Calculate date type fully qualified java type.- Parameters:
column- the columndefaultType- the default type- Returns:
- the fully qualified java type
-
calculateTimeType
protected org.mybatis.generator.api.dom.java.FullyQualifiedJavaType calculateTimeType(org.mybatis.generator.api.IntrospectedColumn column, org.mybatis.generator.api.dom.java.FullyQualifiedJavaType defaultType)Calculate time type fully qualified java type.- Parameters:
column- the columndefaultType- the default type- Returns:
- the fully qualified java type
-
calculateTimestampType
protected org.mybatis.generator.api.dom.java.FullyQualifiedJavaType calculateTimestampType(org.mybatis.generator.api.IntrospectedColumn column, org.mybatis.generator.api.dom.java.FullyQualifiedJavaType defaultType)Calculate timestamp type fully qualified java type.- Parameters:
column- the columndefaultType- the default type- Returns:
- the fully qualified java type
-
calculateBitReplacement
protected org.mybatis.generator.api.dom.java.FullyQualifiedJavaType calculateBitReplacement(org.mybatis.generator.api.IntrospectedColumn column, org.mybatis.generator.api.dom.java.FullyQualifiedJavaType defaultType)Calculate bit replacement fully qualified java type.- Parameters:
column- the columndefaultType- the default type- Returns:
- the fully qualified java type
-
calculateBigDecimalReplacement
protected org.mybatis.generator.api.dom.java.FullyQualifiedJavaType calculateBigDecimalReplacement(org.mybatis.generator.api.IntrospectedColumn column, org.mybatis.generator.api.dom.java.FullyQualifiedJavaType defaultType)Calculate big decimal replacement fully qualified java type.- Parameters:
column- the columndefaultType- the default type- Returns:
- the fully qualified java type
-
calculateJdbcTypeName
public String calculateJdbcTypeName(org.mybatis.generator.api.IntrospectedColumn introspectedColumn)
- Specified by:
calculateJdbcTypeNamein interfaceorg.mybatis.generator.api.JavaTypeResolver
-
setWarnings
public void setWarnings(List<String> warnings)
- Specified by:
setWarningsin interfaceorg.mybatis.generator.api.JavaTypeResolver
-
setContext
public void setContext(org.mybatis.generator.config.Context context)
- Specified by:
setContextin interfaceorg.mybatis.generator.api.JavaTypeResolver
-
-