public class DynamicSqlMapperGenerator extends AbstractJavaClientGenerator
Modifier and Type | Field and Description |
---|---|
protected FragmentGenerator |
fragmentGenerator |
protected boolean |
hasGeneratedKeys |
protected FullyQualifiedJavaType |
recordType |
protected String |
resultMapId |
protected String |
tableFieldName |
context, introspectedTable, progressCallback, warnings
Constructor and Description |
---|
DynamicSqlMapperGenerator(String project) |
requiresXMLGenerator
addDefaultConstructor, addDefaultConstructorWithGeneratedAnnotatoin, getGetter, getProject, getRootClass
setContext, setIntrospectedTable, setProgressCallback, setWarnings
protected FullyQualifiedJavaType recordType
protected String resultMapId
protected String tableFieldName
protected FragmentGenerator fragmentGenerator
protected boolean hasGeneratedKeys
public DynamicSqlMapperGenerator(String project)
public List<CompilationUnit> getCompilationUnits()
getCompilationUnits
in class AbstractJavaGenerator
protected void preCalculate()
protected Interface createBasicInterface()
protected TopLevelClass getSupportClass()
protected void addInsertOneMethod(Interface interfaze)
protected void addCommonInsertInterface(Interface interfaze)
protected void addBasicInsertMultipleMethod(Interface interfaze)
protected void addInsertMultipleMethod(Interface interfaze)
protected void addGeneralCountMethod(Interface interfaze)
protected void addGeneralDeleteMethod(Interface interfaze)
protected void addSelectListField(Interface interfaze)
protected void addGeneralSelectMethod(Interface interfaze)
protected void addSelectDistinctMethod(Interface interfaze)
protected void addGeneralSelectOneMethod(Interface interfaze)
protected void addGeneralUpdateMethod(Interface interfaze)
protected void addUpdateAllMethod(Interface interfaze)
protected void addUpdateSelectiveMethod(Interface interfaze)
protected void addBasicSelectOneMethod(Interface interfaze, boolean reuseResultMap)
protected void addDeleteByPrimaryKeyMethod(Interface interfaze)
protected void addInsertSelectiveMethod(Interface interfaze)
protected void addSelectByPrimaryKeyMethod(Interface interfaze)
protected void addUpdateByPrimaryKeyMethod(Interface interfaze)
protected void addUpdateByPrimaryKeySelectiveMethod(Interface interfaze)
protected void addBasicInsertMethod(Interface interfaze)
protected boolean addBasicSelectManyMethod(Interface interfaze)
protected boolean generate(Interface interfaze, AbstractMethodGenerator generator)
public AbstractXmlGenerator getMatchedXMLGenerator()
AbstractJavaClientGenerator
getMatchedXMLGenerator
in class AbstractJavaClientGenerator
Copyright © 2006–2023 MyBatis.org. All rights reserved.