Class AbstractXmlElementGenerator
java.lang.Object
org.mybatis.generator.codegen.AbstractGenerator
org.mybatis.generator.codegen.mybatis3.xmlmapper.elements.AbstractXmlElementGenerator
- Direct Known Subclasses:
BaseColumnListElementGenerator,BlobColumnListElementGenerator,CountByExampleElementGenerator,DeleteByExampleElementGenerator,DeleteByPrimaryKeyElementGenerator,ExampleWhereClauseElementGenerator,InsertElementGenerator,InsertSelectiveElementGenerator,ResultMapWithBLOBsElementGenerator,ResultMapWithoutBLOBsElementGenerator,SelectByExampleWithBLOBsElementGenerator,SelectByExampleWithoutBLOBsElementGenerator,SelectByPrimaryKeyElementGenerator,SimpleSelectAllElementGenerator,SimpleSelectByPrimaryKeyElementGenerator,UpdateByExampleSelectiveElementGenerator,UpdateByExampleWithBLOBsElementGenerator,UpdateByExampleWithoutBLOBsElementGenerator,UpdateByPrimaryKeySelectiveElementGenerator,UpdateByPrimaryKeyWithBLOBsElementGenerator,UpdateByPrimaryKeyWithoutBLOBsElementGenerator
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static enum -
Field Summary
Fields inherited from class org.mybatis.generator.codegen.AbstractGenerator
context, introspectedTable, progressCallback, warnings -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidaddElements(XmlElement parentElement) protected AttributebuildColumnAttribute(IntrospectedColumn introspectedColumn) protected XmlElementbuildConstructorElement(boolean includeBlobColumns) protected XmlElementbuildInitialInsert(String statementId, FullyQualifiedJavaType parameterType) protected List<TextElement> protected List<XmlElement> buildResultMapItems(AbstractXmlElementGenerator.ResultElementType elementType, List<IntrospectedColumn> columns) protected List<TextElement> buildSelectList(String initial, List<IntrospectedColumn> columns) protected List<TextElement> buildSelectList(List<IntrospectedColumn> columns) protected XmlElementbuildUpdateByExampleElement(String statementId, List<IntrospectedColumn> columns) protected XmlElementbuildUpdateByPrimaryKeyElement(String statementId, String parameterType, List<IntrospectedColumn> columns) protected XmlElementprotected XmlElementprotected XmlElementprotected XmlElementgetSelectKey(IntrospectedColumn introspectedColumn, GeneratedKey generatedKey) This method should return an XmlElement for the select key used to automatically generate keys.protected XmlElementMethods inherited from class org.mybatis.generator.codegen.AbstractGenerator
setContext, setIntrospectedTable, setProgressCallback, setWarnings
-
Constructor Details
-
AbstractXmlElementGenerator
protected AbstractXmlElementGenerator()
-
-
Method Details
-
addElements
-
getSelectKey
This method should return an XmlElement for the select key used to automatically generate keys.- Parameters:
introspectedColumn- the column related to the select key statementgeneratedKey- the generated key for the current table- Returns:
- the selectKey element
-
getBaseColumnListElement
-
getBlobColumnListElement
-
getExampleIncludeElement
-
getUpdateByExampleIncludeElement
-
buildSelectList
-
buildSelectList
-
buildPrimaryKeyWhereClause
-
buildInitialInsert
-
buildResultMapItems
protected List<XmlElement> buildResultMapItems(AbstractXmlElementGenerator.ResultElementType elementType, List<IntrospectedColumn> columns) -
buildConstructorElement
-
buildColumnAttribute
-
buildUpdateByExampleElement
protected XmlElement buildUpdateByExampleElement(String statementId, List<IntrospectedColumn> columns) -
buildUpdateByPrimaryKeyElement
protected XmlElement buildUpdateByPrimaryKeyElement(String statementId, String parameterType, List<IntrospectedColumn> columns)
-