Class DynamicSqlMapperGenerator


public class DynamicSqlMapperGenerator extends AbstractJavaClientGenerator
  • Field Details

    • recordType

      protected FullyQualifiedJavaType recordType
    • resultMapId

      protected String resultMapId
    • tableFieldName

      protected String tableFieldName
    • fragmentGenerator

      protected FragmentGenerator fragmentGenerator
    • hasGeneratedKeys

      protected boolean hasGeneratedKeys
  • Constructor Details

    • DynamicSqlMapperGenerator

      public DynamicSqlMapperGenerator(String project)
  • Method Details

    • getCompilationUnits

      public List<CompilationUnit> getCompilationUnits()
      Specified by:
      getCompilationUnits in class AbstractJavaGenerator
    • preCalculate

      protected void preCalculate()
    • createBasicInterface

      protected Interface createBasicInterface()
    • getSupportClass

      protected TopLevelClass getSupportClass()
    • addInsertOneMethod

      protected void addInsertOneMethod(Interface interfaze)
    • addCommonInsertInterface

      protected void addCommonInsertInterface(Interface interfaze)
    • addBasicInsertMultipleMethod

      protected void addBasicInsertMultipleMethod(Interface interfaze)
    • addInsertMultipleMethod

      protected void addInsertMultipleMethod(Interface interfaze)
    • addGeneralCountMethod

      protected void addGeneralCountMethod(Interface interfaze)
    • addGeneralDeleteMethod

      protected void addGeneralDeleteMethod(Interface interfaze)
    • addSelectListField

      protected void addSelectListField(Interface interfaze)
    • addGeneralSelectMethod

      protected void addGeneralSelectMethod(Interface interfaze)
    • addSelectDistinctMethod

      protected void addSelectDistinctMethod(Interface interfaze)
    • addGeneralSelectOneMethod

      protected void addGeneralSelectOneMethod(Interface interfaze)
    • addGeneralUpdateMethod

      protected void addGeneralUpdateMethod(Interface interfaze)
    • addUpdateAllMethod

      protected void addUpdateAllMethod(Interface interfaze)
    • addUpdateSelectiveMethod

      protected void addUpdateSelectiveMethod(Interface interfaze)
    • addBasicSelectOneMethod

      protected void addBasicSelectOneMethod(Interface interfaze, boolean reuseResultMap)
    • addDeleteByPrimaryKeyMethod

      protected void addDeleteByPrimaryKeyMethod(Interface interfaze)
    • addInsertSelectiveMethod

      protected void addInsertSelectiveMethod(Interface interfaze)
    • addSelectByPrimaryKeyMethod

      protected void addSelectByPrimaryKeyMethod(Interface interfaze)
    • addUpdateByPrimaryKeyMethod

      protected void addUpdateByPrimaryKeyMethod(Interface interfaze)
    • addUpdateByPrimaryKeySelectiveMethod

      protected void addUpdateByPrimaryKeySelectiveMethod(Interface interfaze)
    • addBasicInsertMethod

      protected void addBasicInsertMethod(Interface interfaze)
    • addBasicSelectManyMethod

      protected boolean addBasicSelectManyMethod(Interface interfaze)
    • generate

      protected boolean generate(Interface interfaze, AbstractMethodGenerator generator)
    • getMatchedXMLGenerator

      public AbstractXmlGenerator getMatchedXMLGenerator()
      Description copied from class: AbstractJavaClientGenerator
      Returns an instance of the XML generator associated with this client generator.
      Specified by:
      getMatchedXMLGenerator in class AbstractJavaClientGenerator
      Returns:
      the matched XML generator. May return null if no XML is required by this generator