Class AbstractCommonContextGenerator
- java.lang.Object
-
- pro.chenggang.project.reactive.mybatis.support.generator.core.context.impl.AbstractCommonContextGenerator
-
- All Implemented Interfaces:
ContextGenerator
- Direct Known Subclasses:
MybatisDynamicContextGenerator,MybatisDynamicMapperContextGenerator,MyBatisSimpleContextGenerator,MyBatisSimpleModelContextGenerator,MyBatisSimpleModelXmlContextGenerator
public abstract class AbstractCommonContextGenerator extends Object implements ContextGenerator
- Since:
- 1.0.0
- Version:
- 1.0.0
- Author:
- Gang Cheng
-
-
Constructor Summary
Constructors Constructor Description AbstractCommonContextGenerator()
-
Method Summary
All Methods Instance Methods Abstract 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 voidconfigureJavaType(org.mybatis.generator.config.Context context, GeneratorProperties generatorProperties)configure java typeprotected voidconfigureJDBCConnection(org.mybatis.generator.config.Context context, GeneratorProperties generatorProperties)configure jdbc connectionprotected voidconfigureModelGenerator(org.mybatis.generator.config.Context context, GeneratorProperties generatorProperties)configure model generatorprotected voidconfigureSqlMapGenerator(org.mybatis.generator.config.Context context, GeneratorProperties generatorProperties)configure sql map generatorprotected voidconfigureTable(org.mybatis.generator.config.Context context, GeneratorProperties generatorProperties)configure table generatorprotected voiddetermineGenerateComment(org.mybatis.generator.config.Context context, GeneratorProperties generatorProperties)determine generate commentorg.mybatis.generator.config.ContextgenerateContext(GeneratorProperties generatorProperties)Generate generator contextprotected abstract org.mybatis.generator.config.ContextnewContext()new context-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface pro.chenggang.project.reactive.mybatis.support.generator.core.context.ContextGenerator
targetGeneratorType
-
-
-
-
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:ContextGeneratorGenerate generator context- Specified by:
generateContextin interfaceContextGenerator- 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 ContextgeneratorProperties- the generator properties
-
configureGeneratorPlugin
protected void configureGeneratorPlugin(org.mybatis.generator.config.Context context, GeneratorProperties generatorProperties)add custom generator plugin- Parameters:
context- the ContextgeneratorProperties- the generator properties
-
configureJDBCConnection
protected void configureJDBCConnection(org.mybatis.generator.config.Context context, GeneratorProperties generatorProperties)configure jdbc connection- Parameters:
context- the ContextgeneratorProperties- the generator properties
-
configureModelGenerator
protected void configureModelGenerator(org.mybatis.generator.config.Context context, GeneratorProperties generatorProperties)configure model generator- Parameters:
context- the ContextgeneratorProperties- the generator properties
-
configureSqlMapGenerator
protected void configureSqlMapGenerator(org.mybatis.generator.config.Context context, GeneratorProperties generatorProperties)configure sql map generator- Parameters:
context- the ContextgeneratorProperties- the generator properties
-
configureJavaClientGenerator
protected void configureJavaClientGenerator(org.mybatis.generator.config.Context context, GeneratorProperties generatorProperties)configure java client generator- Parameters:
context- the ContextgeneratorProperties- the generator properties
-
configureTable
protected void configureTable(org.mybatis.generator.config.Context context, GeneratorProperties generatorProperties)configure table generator- Parameters:
context- the ContextgeneratorProperties- the generator properties
-
configureJavaType
protected void configureJavaType(org.mybatis.generator.config.Context context, GeneratorProperties generatorProperties)configure java type- Parameters:
context- the ContextgeneratorProperties- the generator properties
-
-