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
public class MybatisDynamicContextGenerator extends AbstractCommonContextGenerator
The Mybatis dynamic context generator.- Version:
- 1.0.0
- Author:
- Gang Cheng
-
-
Constructor Summary
Constructors Constructor Description MybatisDynamicContextGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected 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.ContextnewContext()new contextGeneratorTypetargetGeneratorType()generator type-
Methods inherited from class pro.chenggang.project.reactive.mybatis.support.generator.core.context.impl.AbstractCommonContextGenerator
configureJavaType, configureJDBCConnection, configureModelGenerator, configureSqlMapGenerator, configureTable, determineGenerateComment, generateContext
-
-
-
-
Method Detail
-
targetGeneratorType
public GeneratorType 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
-
-