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
Modifier and TypeClassDescriptionprotected static enum
-
Field Summary
Fields inherited from class org.mybatis.generator.codegen.AbstractGenerator
context, introspectedTable, progressCallback, warnings
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract void
addElements
(XmlElement parentElement) protected Attribute
buildColumnAttribute
(IntrospectedColumn introspectedColumn) protected XmlElement
buildConstructorElement
(boolean includeBlobColumns) protected XmlElement
buildInitialInsert
(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 XmlElement
buildUpdateByExampleElement
(String statementId, List<IntrospectedColumn> columns) protected XmlElement
buildUpdateByPrimaryKeyElement
(String statementId, String parameterType, List<IntrospectedColumn> columns) protected XmlElement
protected XmlElement
protected XmlElement
protected XmlElement
getSelectKey
(IntrospectedColumn introspectedColumn, GeneratedKey generatedKey) This method should return an XmlElement for the select key used to automatically generate keys.protected XmlElement
Methods 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)
-