Class KotlinMapperAndExtensionsGenerator


public class KotlinMapperAndExtensionsGenerator extends AbstractKotlinGenerator
  • Field Details

  • Constructor Details

    • KotlinMapperAndExtensionsGenerator

      public KotlinMapperAndExtensionsGenerator(String project)
  • Method Details

    • preCalculate

      protected void preCalculate()
    • createMapperInterfaceFile

      protected KotlinFile createMapperInterfaceFile()
    • createMapperInterface

      protected KotlinType createMapperInterface(KotlinFile kotlinFile)
    • addBasicInsertMethod

      protected void addBasicInsertMethod(KotlinFile kotlinFile, KotlinType kotlinType)
    • addBasicSelectManyMethod

      protected boolean addBasicSelectManyMethod(KotlinFile kotlinFile, KotlinType kotlinType)
    • generate

      protected boolean generate(KotlinFile kotlinFile, AbstractKotlinFunctionGenerator generator)
    • generate

      protected boolean generate(KotlinFile kotlinFile, KotlinType kotlinType, AbstractKotlinFunctionGenerator generator)
    • getKotlinFiles

      public List<KotlinFile> getKotlinFiles()
      Specified by:
      getKotlinFiles in class AbstractKotlinGenerator
    • addInsertOneMethod

      protected void addInsertOneMethod(KotlinFile mapperFile, KotlinType mapper, String mapperName)
    • addCommonInsertInterface

      protected void addCommonInsertInterface(KotlinFile mapperFile, KotlinType mapper)
    • addBasicInsertMultipleMethod

      protected void addBasicInsertMultipleMethod(KotlinFile kotlinFile, KotlinType kotlinType)
    • addInsertMultipleMethod

      protected void addInsertMultipleMethod(KotlinFile mapperFile, KotlinType mapper, String mapperName)
    • addInsertMultipleVarargMethod

      protected void addInsertMultipleVarargMethod(KotlinFile kotlinFile, String mapperName)
    • addGeneralCountMethod

      protected void addGeneralCountMethod(KotlinFile mapperFile, KotlinType mapper, String mapperName)
    • addGeneralDeleteMethod

      protected void addGeneralDeleteMethod(KotlinFile mapperFile, KotlinType mapper, String mapperName)
    • addColumnListProperty

      protected void addColumnListProperty(KotlinFile kotlinFile)
    • addGeneralSelectMethod

      protected void addGeneralSelectMethod(KotlinFile kotlinFile, String mapperName)
    • addSelectDistinctMethod

      protected void addSelectDistinctMethod(KotlinFile kotlinFile, String mapperName)
    • addGeneralSelectOneMethod

      protected void addGeneralSelectOneMethod(KotlinFile kotlinFile, String mapperName)
    • addGeneralUpdateMethod

      protected void addGeneralUpdateMethod(KotlinFile mapperFile, KotlinType mapper, String mapperName)
    • addUpdateAllMethod

      protected void addUpdateAllMethod(KotlinFile kotlinFile)
    • addUpdateSelectiveMethod

      protected void addUpdateSelectiveMethod(KotlinFile kotlinFile)
    • addBasicSelectOneMethod

      protected void addBasicSelectOneMethod(KotlinFile kotlinFile, KotlinType kotlinType, boolean reuseResultMap)
    • addDeleteByPrimaryKeyMethod

      protected void addDeleteByPrimaryKeyMethod(KotlinFile kotlinFile, String mapperName)
    • addInsertSelectiveMethod

      protected void addInsertSelectiveMethod(KotlinFile mapperFile, KotlinType mapper, String mapperName)
    • addSelectByPrimaryKeyMethod

      protected void addSelectByPrimaryKeyMethod(KotlinFile kotlinFile, String mapperName)
    • addUpdateByPrimaryKeyMethod

      protected void addUpdateByPrimaryKeyMethod(KotlinFile kotlinFile, String mapperName)
    • addUpdateByPrimaryKeySelectiveMethod

      protected void addUpdateByPrimaryKeySelectiveMethod(KotlinFile kotlinFile, String mapperName)