Class SimpleJavaClientGenerator
java.lang.Object
org.mybatis.generator.codegen.AbstractGenerator
org.mybatis.generator.codegen.AbstractJavaGenerator
org.mybatis.generator.codegen.AbstractJavaClientGenerator
org.mybatis.generator.codegen.mybatis3.javamapper.SimpleJavaClientGenerator
- Direct Known Subclasses:
SimpleAnnotatedClientGenerator
-
Field Summary
Fields inherited from class org.mybatis.generator.codegen.AbstractGenerator
context, introspectedTable, progressCallback, warnings -
Constructor Summary
ConstructorsConstructorDescriptionSimpleJavaClientGenerator(String project) SimpleJavaClientGenerator(String project, boolean requiresMatchedXMLGenerator) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddDeleteByPrimaryKeyMethod(Interface interfaze) protected voidaddInsertMethod(Interface interfaze) protected voidaddSelectAllMethod(Interface interfaze) protected voidaddSelectByPrimaryKeyMethod(Interface interfaze) protected voidaddUpdateByPrimaryKeyMethod(Interface interfaze) Returns an instance of the XML generator associated with this client generator.protected voidinitializeAndExecuteGenerator(AbstractJavaMapperMethodGenerator methodGenerator, Interface interfaze) Methods inherited from class org.mybatis.generator.codegen.AbstractJavaClientGenerator
requiresXMLGeneratorMethods inherited from class org.mybatis.generator.codegen.AbstractJavaGenerator
addDefaultConstructor, addDefaultConstructorWithGeneratedAnnotatoin, getGetter, getProject, getRootClassMethods inherited from class org.mybatis.generator.codegen.AbstractGenerator
setContext, setIntrospectedTable, setProgressCallback, setWarnings
-
Constructor Details
-
SimpleJavaClientGenerator
-
SimpleJavaClientGenerator
-
-
Method Details
-
getCompilationUnits
- Specified by:
getCompilationUnitsin classAbstractJavaGenerator
-
addDeleteByPrimaryKeyMethod
-
addInsertMethod
-
addSelectByPrimaryKeyMethod
-
addSelectAllMethod
-
addUpdateByPrimaryKeyMethod
-
initializeAndExecuteGenerator
protected void initializeAndExecuteGenerator(AbstractJavaMapperMethodGenerator methodGenerator, Interface interfaze) -
getExtraCompilationUnits
-
getMatchedXMLGenerator
Description copied from class:AbstractJavaClientGeneratorReturns an instance of the XML generator associated with this client generator.- Specified by:
getMatchedXMLGeneratorin classAbstractJavaClientGenerator- Returns:
- the matched XML generator. May return null if no XML is required by this generator
-