Class KotlinDynamicSqlSupportClassGenerator
java.lang.Object
org.mybatis.generator.runtime.kotlin.KotlinDynamicSqlSupportClassGenerator
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Contextprivate KotlinTypeprivate final IntrospectedTableprivate KotlinFileprivate KotlinTypeprivate KotlinProperty -
Constructor Summary
ConstructorsConstructorDescriptionKotlinDynamicSqlSupportClassGenerator(Context context, IntrospectedTable introspectedTable, List<String> warnings) -
Method Summary
Modifier and TypeMethodDescriptionprivate KotlinFileprivate KotlinTypeprivate KotlinTypebuildOuterObject(KotlinFile kotlinFile, FullyQualifiedJavaType type) private Stringprivate KotlinPropertyprivate voidgenerate()private voidhandleColumn(KotlinFile kotlinFile, KotlinType outerObject, KotlinType innerClass, String tableFieldName, IntrospectedColumn column)
-
Field Details
-
introspectedTable
-
context
-
warnings
-
kotlinFile
-
innerClass
-
outerObject
-
tableProperty
-
-
Constructor Details
-
KotlinDynamicSqlSupportClassGenerator
public KotlinDynamicSqlSupportClassGenerator(Context context, IntrospectedTable introspectedTable, List<String> warnings)
-
-
Method Details
-
generate
private void generate() -
getKotlinFile
-
getTablePropertyName
-
getInnerClass
-
getOuterObject
-
getTablePropertyImport
-
getSupportObjectImport
-
buildBasicFile
-
buildOuterObject
-
buildInnerClass
-
calculateTableProperty
-
handleColumn
private void handleColumn(KotlinFile kotlinFile, KotlinType outerObject, KotlinType innerClass, String tableFieldName, IntrospectedColumn column) -
calculateInnerInitializationString
private String calculateInnerInitializationString(IntrospectedColumn column, FullyQualifiedKotlinType kt)
-