Class KotlinMapperAndExtensionsGenerator
java.lang.Object
org.mybatis.generator.codegen.AbstractGenerator
org.mybatis.generator.codegen.AbstractKotlinGenerator
org.mybatis.generator.runtime.kotlin.KotlinMapperAndExtensionsGenerator
-
Field Summary
Modifier and TypeFieldDescriptionprotected KotlinFragmentGenerator
protected boolean
protected FullyQualifiedKotlinType
protected String
protected KotlinDynamicSqlSupportClassGenerator
Fields inherited from class org.mybatis.generator.codegen.AbstractGenerator
context, introspectedTable, progressCallback, warnings
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
addBasicInsertMethod
(KotlinFile kotlinFile, KotlinType kotlinType) protected void
addBasicInsertMultipleMethod
(KotlinFile kotlinFile, KotlinType kotlinType) protected boolean
addBasicSelectManyMethod
(KotlinFile kotlinFile, KotlinType kotlinType) protected void
addBasicSelectOneMethod
(KotlinFile kotlinFile, KotlinType kotlinType, boolean reuseResultMap) protected void
addColumnListProperty
(KotlinFile kotlinFile) protected void
addCommonInsertInterface
(KotlinFile mapperFile, KotlinType mapper) protected void
addDeleteByPrimaryKeyMethod
(KotlinFile kotlinFile, String mapperName) protected void
addGeneralCountMethod
(KotlinFile mapperFile, KotlinType mapper, String mapperName) protected void
addGeneralDeleteMethod
(KotlinFile mapperFile, KotlinType mapper, String mapperName) protected void
addGeneralSelectMethod
(KotlinFile kotlinFile, String mapperName) protected void
addGeneralSelectOneMethod
(KotlinFile kotlinFile, String mapperName) protected void
addGeneralUpdateMethod
(KotlinFile mapperFile, KotlinType mapper, String mapperName) protected void
addInsertMultipleMethod
(KotlinFile mapperFile, KotlinType mapper, String mapperName) protected void
addInsertMultipleVarargMethod
(KotlinFile kotlinFile, String mapperName) protected void
addInsertOneMethod
(KotlinFile mapperFile, KotlinType mapper, String mapperName) protected void
addInsertSelectiveMethod
(KotlinFile mapperFile, KotlinType mapper, String mapperName) protected void
addSelectByPrimaryKeyMethod
(KotlinFile kotlinFile, String mapperName) protected void
addSelectDistinctMethod
(KotlinFile kotlinFile, String mapperName) protected void
addUpdateAllMethod
(KotlinFile kotlinFile) protected void
addUpdateByPrimaryKeyMethod
(KotlinFile kotlinFile, String mapperName) protected void
addUpdateByPrimaryKeySelectiveMethod
(KotlinFile kotlinFile, String mapperName) protected void
addUpdateSelectiveMethod
(KotlinFile kotlinFile) protected KotlinType
createMapperInterface
(KotlinFile kotlinFile) protected KotlinFile
protected boolean
generate
(KotlinFile kotlinFile, KotlinType kotlinType, AbstractKotlinFunctionGenerator generator) protected boolean
generate
(KotlinFile kotlinFile, AbstractKotlinFunctionGenerator generator) protected void
Methods inherited from class org.mybatis.generator.codegen.AbstractKotlinGenerator
getProject, listOf
Methods inherited from class org.mybatis.generator.codegen.AbstractGenerator
setContext, setIntrospectedTable, setProgressCallback, setWarnings
-
Field Details
-
recordType
-
resultMapId
-
fragmentGenerator
-
supportClassGenerator
-
hasGeneratedKeys
protected boolean hasGeneratedKeys
-
-
Constructor Details
-
KotlinMapperAndExtensionsGenerator
-
-
Method Details
-
preCalculate
protected void preCalculate() -
createMapperInterfaceFile
-
createMapperInterface
-
addBasicInsertMethod
-
addBasicSelectManyMethod
-
generate
-
generate
protected boolean generate(KotlinFile kotlinFile, KotlinType kotlinType, AbstractKotlinFunctionGenerator generator) -
getKotlinFiles
- Specified by:
getKotlinFiles
in classAbstractKotlinGenerator
-
addInsertOneMethod
-
addCommonInsertInterface
-
addBasicInsertMultipleMethod
-
addInsertMultipleMethod
-
addInsertMultipleVarargMethod
-
addGeneralCountMethod
-
addGeneralDeleteMethod
-
addColumnListProperty
-
addGeneralSelectMethod
-
addSelectDistinctMethod
-
addGeneralSelectOneMethod
-
addGeneralUpdateMethod
-
addUpdateAllMethod
-
addUpdateSelectiveMethod
-
addBasicSelectOneMethod
protected void addBasicSelectOneMethod(KotlinFile kotlinFile, KotlinType kotlinType, boolean reuseResultMap) -
addDeleteByPrimaryKeyMethod
-
addInsertSelectiveMethod
protected void addInsertSelectiveMethod(KotlinFile mapperFile, KotlinType mapper, String mapperName) -
addSelectByPrimaryKeyMethod
-
addUpdateByPrimaryKeyMethod
-
addUpdateByPrimaryKeySelectiveMethod
-