Class MybatisDynamicContextGenerator
java.lang.Object
pro.chenggang.project.reactive.mybatis.support.generator.core.context.impl.AbstractCommonContextGenerator
pro.chenggang.project.reactive.mybatis.support.generator.core.context.impl.MybatisDynamicContextGenerator
- All Implemented Interfaces:
ContextGenerator
The Mybatis dynamic context generator.
- Version:
- 1.0.0
- Author:
- Gang Cheng
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidconfigureGeneratorPlugin(org.mybatis.generator.config.Context context, GeneratorProperties generatorProperties) add custom generator pluginprotected voidconfigureJavaClientGenerator(org.mybatis.generator.config.Context context, GeneratorProperties generatorProperties) configure java client generatorprotected org.mybatis.generator.config.Contextnew contextgenerator typeMethods inherited from class pro.chenggang.project.reactive.mybatis.support.generator.core.context.impl.AbstractCommonContextGenerator
configureJavaType, configureJDBCConnection, configureModelGenerator, configureSqlMapGenerator, configureTable, determineGenerateComment, generateContext
-
Constructor Details
-
MybatisDynamicContextGenerator
public MybatisDynamicContextGenerator()
-
-
Method Details
-
targetGeneratorType
Description copied from interface:ContextGeneratorgenerator type- Returns:
- generator type
-
newContext
protected org.mybatis.generator.config.Context newContext()Description copied from class:AbstractCommonContextGeneratornew context- Specified by:
newContextin classAbstractCommonContextGenerator- Returns:
- the context
-
configureJavaClientGenerator
protected void configureJavaClientGenerator(org.mybatis.generator.config.Context context, GeneratorProperties generatorProperties) Description copied from class:AbstractCommonContextGeneratorconfigure java client generator- Overrides:
configureJavaClientGeneratorin classAbstractCommonContextGenerator- Parameters:
context- the ContextgeneratorProperties- the generator properties
-
configureGeneratorPlugin
protected void configureGeneratorPlugin(org.mybatis.generator.config.Context context, GeneratorProperties generatorProperties) Description copied from class:AbstractCommonContextGeneratoradd custom generator plugin- Overrides:
configureGeneratorPluginin classAbstractCommonContextGenerator- Parameters:
context- the ContextgeneratorProperties- the generator properties
-