Class 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.
    • 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
      void addConfigurationProperties​(Properties properties)  
      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.
      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.
      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.
      org.mybatis.generator.api.dom.java.FullyQualifiedJavaType calculateJavaType​(org.mybatis.generator.api.IntrospectedColumn introspectedColumn)  
      String calculateJdbcTypeName​(org.mybatis.generator.api.IntrospectedColumn introspectedColumn)  
      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.
      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.
      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.
      void setContext​(org.mybatis.generator.config.Context context)  
      void setWarnings​(List<String> warnings)  
    • Field Detail

      • warnings

        protected List<String> warnings
        The Warnings.
      • 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.
    • Constructor Detail

      • CustomJavaTypeResolver

        public CustomJavaTypeResolver()
        Instantiates a new Custom java type resolver.
    • Method Detail

      • addConfigurationProperties

        public void addConfigurationProperties​(Properties properties)
        Specified by:
        addConfigurationProperties in interface org.mybatis.generator.api.JavaTypeResolver
      • calculateJavaType

        public org.mybatis.generator.api.dom.java.FullyQualifiedJavaType calculateJavaType​(org.mybatis.generator.api.IntrospectedColumn introspectedColumn)
        Specified by:
        calculateJavaType in interface org.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 column
        defaultType - 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 column
        defaultType - 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 column
        defaultType - 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 column
        defaultType - 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 column
        defaultType - 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 column
        defaultType - the default type
        Returns:
        the fully qualified java type
      • calculateJdbcTypeName

        public String calculateJdbcTypeName​(org.mybatis.generator.api.IntrospectedColumn introspectedColumn)
        Specified by:
        calculateJdbcTypeName in interface org.mybatis.generator.api.JavaTypeResolver
      • setWarnings

        public void setWarnings​(List<String> warnings)
        Specified by:
        setWarnings in interface org.mybatis.generator.api.JavaTypeResolver
      • setContext

        public void setContext​(org.mybatis.generator.config.Context context)
        Specified by:
        setContext in interface org.mybatis.generator.api.JavaTypeResolver