Class AbstractCommonContextGenerator

    • Constructor Detail

      • AbstractCommonContextGenerator

        public AbstractCommonContextGenerator()
    • Method Detail

      • newContext

        protected abstract org.mybatis.generator.config.Context newContext()
        new context
        Returns:
        the context
      • generateContext

        public org.mybatis.generator.config.Context generateContext​(GeneratorProperties generatorProperties)
        Description copied from interface: ContextGenerator
        Generate generator context
        Specified by:
        generateContext in interface ContextGenerator
        Parameters:
        generatorProperties - the generator properties
        Returns:
        context
      • determineGenerateComment

        protected void determineGenerateComment​(org.mybatis.generator.config.Context context,
                                                GeneratorProperties generatorProperties)
        determine generate comment
        Parameters:
        context - the Context
        generatorProperties - the generator properties
      • configureGeneratorPlugin

        protected void configureGeneratorPlugin​(org.mybatis.generator.config.Context context,
                                                GeneratorProperties generatorProperties)
        add custom generator plugin
        Parameters:
        context - the Context
        generatorProperties - the generator properties
      • configureJDBCConnection

        protected void configureJDBCConnection​(org.mybatis.generator.config.Context context,
                                               GeneratorProperties generatorProperties)
        configure jdbc connection
        Parameters:
        context - the Context
        generatorProperties - the generator properties
      • configureModelGenerator

        protected void configureModelGenerator​(org.mybatis.generator.config.Context context,
                                               GeneratorProperties generatorProperties)
        configure model generator
        Parameters:
        context - the Context
        generatorProperties - the generator properties
      • configureSqlMapGenerator

        protected void configureSqlMapGenerator​(org.mybatis.generator.config.Context context,
                                                GeneratorProperties generatorProperties)
        configure sql map generator
        Parameters:
        context - the Context
        generatorProperties - the generator properties
      • configureJavaClientGenerator

        protected void configureJavaClientGenerator​(org.mybatis.generator.config.Context context,
                                                    GeneratorProperties generatorProperties)
        configure java client generator
        Parameters:
        context - the Context
        generatorProperties - the generator properties
      • configureTable

        protected void configureTable​(org.mybatis.generator.config.Context context,
                                      GeneratorProperties generatorProperties)
        configure table generator
        Parameters:
        context - the Context
        generatorProperties - the generator properties
      • configureJavaType

        protected void configureJavaType​(org.mybatis.generator.config.Context context,
                                         GeneratorProperties generatorProperties)
        configure java type
        Parameters:
        context - the Context
        generatorProperties - the generator properties