Class DynamicSqlMapperGenerator
java.lang.Object
org.mybatis.generator.codegen.AbstractGenerator
org.mybatis.generator.codegen.AbstractJavaGenerator
org.mybatis.generator.codegen.AbstractJavaClientGenerator
org.mybatis.generator.runtime.dynamic.sql.DynamicSqlMapperGenerator
-
Field Summary
Modifier and TypeFieldDescriptionprotected FragmentGenerator
protected boolean
protected FullyQualifiedJavaType
protected String
protected String
Fields inherited from class org.mybatis.generator.codegen.AbstractGenerator
context, introspectedTable, progressCallback, warnings
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
addBasicInsertMethod
(Interface interfaze) protected void
addBasicInsertMultipleMethod
(Interface interfaze) protected boolean
addBasicSelectManyMethod
(Interface interfaze) protected void
addBasicSelectOneMethod
(Interface interfaze, boolean reuseResultMap) protected void
addCommonInsertInterface
(Interface interfaze) protected void
addDeleteByPrimaryKeyMethod
(Interface interfaze) protected void
addGeneralCountMethod
(Interface interfaze) protected void
addGeneralDeleteMethod
(Interface interfaze) protected void
addGeneralSelectMethod
(Interface interfaze) protected void
addGeneralSelectOneMethod
(Interface interfaze) protected void
addGeneralUpdateMethod
(Interface interfaze) protected void
addInsertMultipleMethod
(Interface interfaze) protected void
addInsertOneMethod
(Interface interfaze) protected void
addInsertSelectiveMethod
(Interface interfaze) protected void
addSelectByPrimaryKeyMethod
(Interface interfaze) protected void
addSelectDistinctMethod
(Interface interfaze) protected void
addSelectListField
(Interface interfaze) protected void
addUpdateAllMethod
(Interface interfaze) protected void
addUpdateByPrimaryKeyMethod
(Interface interfaze) protected void
addUpdateByPrimaryKeySelectiveMethod
(Interface interfaze) protected void
addUpdateSelectiveMethod
(Interface interfaze) protected Interface
protected boolean
generate
(Interface interfaze, AbstractMethodGenerator generator) Returns an instance of the XML generator associated with this client generator.protected TopLevelClass
protected void
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
-
Field Details
-
recordType
-
resultMapId
-
tableFieldName
-
fragmentGenerator
-
hasGeneratedKeys
protected boolean hasGeneratedKeys
-
-
Constructor Details
-
DynamicSqlMapperGenerator
-
-
Method Details
-
getCompilationUnits
- Specified by:
getCompilationUnits
in classAbstractJavaGenerator
-
preCalculate
protected void preCalculate() -
createBasicInterface
-
getSupportClass
-
addInsertOneMethod
-
addCommonInsertInterface
-
addBasicInsertMultipleMethod
-
addInsertMultipleMethod
-
addGeneralCountMethod
-
addGeneralDeleteMethod
-
addSelectListField
-
addGeneralSelectMethod
-
addSelectDistinctMethod
-
addGeneralSelectOneMethod
-
addGeneralUpdateMethod
-
addUpdateAllMethod
-
addUpdateSelectiveMethod
-
addBasicSelectOneMethod
-
addDeleteByPrimaryKeyMethod
-
addInsertSelectiveMethod
-
addSelectByPrimaryKeyMethod
-
addUpdateByPrimaryKeyMethod
-
addUpdateByPrimaryKeySelectiveMethod
-
addBasicInsertMethod
-
addBasicSelectManyMethod
-
generate
-
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
-