Class JavaMapperGenerator
java.lang.Object
org.mybatis.generator.codegen.AbstractGenerator
org.mybatis.generator.codegen.AbstractJavaGenerator
org.mybatis.generator.codegen.AbstractJavaClientGenerator
org.mybatis.generator.codegen.mybatis3.javamapper.JavaMapperGenerator
- Direct Known Subclasses:
AnnotatedClientGenerator
,MixedClientGenerator
-
Field Summary
Fields inherited from class org.mybatis.generator.codegen.AbstractGenerator
context, introspectedTable, progressCallback, warnings
-
Constructor Summary
ConstructorDescriptionJavaMapperGenerator
(String project) JavaMapperGenerator
(String project, boolean requiresMatchedXMLGenerator) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addCountByExampleMethod
(Interface interfaze) protected void
addDeleteByExampleMethod
(Interface interfaze) protected void
addDeleteByPrimaryKeyMethod
(Interface interfaze) protected void
addInsertMethod
(Interface interfaze) protected void
addInsertSelectiveMethod
(Interface interfaze) protected void
addSelectByExampleWithBLOBsMethod
(Interface interfaze) protected void
addSelectByExampleWithoutBLOBsMethod
(Interface interfaze) protected void
addSelectByPrimaryKeyMethod
(Interface interfaze) protected void
addUpdateByExampleSelectiveMethod
(Interface interfaze) protected void
addUpdateByExampleWithBLOBsMethod
(Interface interfaze) protected void
addUpdateByExampleWithoutBLOBsMethod
(Interface interfaze) protected void
addUpdateByPrimaryKeySelectiveMethod
(Interface interfaze) protected void
addUpdateByPrimaryKeyWithBLOBsMethod
(Interface interfaze) protected void
addUpdateByPrimaryKeyWithoutBLOBsMethod
(Interface interfaze) Returns an instance of the XML generator associated with this client generator.protected void
initializeAndExecuteGenerator
(AbstractJavaMapperMethodGenerator methodGenerator, Interface interfaze) Methods inherited from class org.mybatis.generator.codegen.AbstractJavaClientGenerator
requiresXMLGenerator
Methods inherited from class org.mybatis.generator.codegen.AbstractJavaGenerator
addDefaultConstructor, addDefaultConstructorWithGeneratedAnnotatoin, getGetter, getProject, getRootClass
Methods inherited from class org.mybatis.generator.codegen.AbstractGenerator
setContext, setIntrospectedTable, setProgressCallback, setWarnings
-
Constructor Details
-
JavaMapperGenerator
-
JavaMapperGenerator
-
-
Method Details
-
getCompilationUnits
- Specified by:
getCompilationUnits
in classAbstractJavaGenerator
-
addCountByExampleMethod
-
addDeleteByExampleMethod
-
addDeleteByPrimaryKeyMethod
-
addInsertMethod
-
addInsertSelectiveMethod
-
addSelectByExampleWithBLOBsMethod
-
addSelectByExampleWithoutBLOBsMethod
-
addSelectByPrimaryKeyMethod
-
addUpdateByExampleSelectiveMethod
-
addUpdateByExampleWithBLOBsMethod
-
addUpdateByExampleWithoutBLOBsMethod
-
addUpdateByPrimaryKeySelectiveMethod
-
addUpdateByPrimaryKeyWithBLOBsMethod
-
addUpdateByPrimaryKeyWithoutBLOBsMethod
-
initializeAndExecuteGenerator
protected void initializeAndExecuteGenerator(AbstractJavaMapperMethodGenerator methodGenerator, Interface interfaze) -
getExtraCompilationUnits
-
getMatchedXMLGenerator
Description copied from class:AbstractJavaClientGenerator
Returns an instance of the XML generator associated with this client generator.- Specified by:
getMatchedXMLGenerator
in classAbstractJavaClientGenerator
- Returns:
- the matched XML generator. May return null if no XML is required by this generator
-