Class AbstractJavaMapperMethodGenerator
java.lang.Object
org.mybatis.generator.codegen.AbstractGenerator
org.mybatis.generator.codegen.mybatis3.javamapper.elements.AbstractJavaMapperMethodGenerator
- Direct Known Subclasses:
CountByExampleMethodGenerator
,DeleteByExampleMethodGenerator
,DeleteByPrimaryKeyMethodGenerator
,InsertMethodGenerator
,InsertSelectiveMethodGenerator
,SelectAllMethodGenerator
,SelectByExampleWithBLOBsMethodGenerator
,SelectByExampleWithoutBLOBsMethodGenerator
,SelectByPrimaryKeyMethodGenerator
,UpdateByExampleSelectiveMethodGenerator
,UpdateByExampleWithBLOBsMethodGenerator
,UpdateByExampleWithoutBLOBsMethodGenerator
,UpdateByPrimaryKeySelectiveMethodGenerator
,UpdateByPrimaryKeyWithBLOBsMethodGenerator
,UpdateByPrimaryKeyWithoutBLOBsMethodGenerator
-
Field Summary
Fields inherited from class org.mybatis.generator.codegen.AbstractGenerator
context, introspectedTable, progressCallback, warnings
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
addAnnotatedResults
(Interface interfaze, Method method, List<IntrospectedColumn> nonPrimaryKeyColumns) protected void
addAnnotatedSelectImports
(Interface interfaze) abstract void
addInterfaceElements
(Interface interfaze) protected void
addPrimaryKeyMethodParameters
(boolean isSimple, Method method, Set<FullyQualifiedJavaType> importedTypes) protected Method
buildBasicUpdateByExampleMethod
(String statementId, FullyQualifiedJavaType parameterType, Set<FullyQualifiedJavaType> importedTypes) protected Method
buildBasicUpdateByPrimaryKeyMethod
(String statementId, FullyQualifiedJavaType parameterType) protected Set
<FullyQualifiedJavaType> buildUpdateByPrimaryKeyAnnotations
(List<IntrospectedColumn> columnList) protected static String
getResultAnnotation
(Interface interfaze, IntrospectedColumn introspectedColumn, boolean idColumn, boolean constructorBased) Methods inherited from class org.mybatis.generator.codegen.AbstractGenerator
setContext, setIntrospectedTable, setProgressCallback, setWarnings
-
Constructor Details
-
AbstractJavaMapperMethodGenerator
protected AbstractJavaMapperMethodGenerator()
-
-
Method Details
-
addInterfaceElements
-
getResultAnnotation
protected static String getResultAnnotation(Interface interfaze, IntrospectedColumn introspectedColumn, boolean idColumn, boolean constructorBased) -
buildGeneratedKeyAnnotation
-
buildGeneratedKeyImportsIfRequired
-
addAnnotatedSelectImports
-
buildByPrimaryKeyWhereClause
-
buildUpdateByPrimaryKeyAnnotations
-
addPrimaryKeyMethodParameters
protected void addPrimaryKeyMethodParameters(boolean isSimple, Method method, Set<FullyQualifiedJavaType> importedTypes) -
addAnnotatedResults
protected void addAnnotatedResults(Interface interfaze, Method method, List<IntrospectedColumn> nonPrimaryKeyColumns) -
buildBasicUpdateByExampleMethod
protected Method buildBasicUpdateByExampleMethod(String statementId, FullyQualifiedJavaType parameterType, Set<FullyQualifiedJavaType> importedTypes) -
buildBasicUpdateByPrimaryKeyMethod
protected Method buildBasicUpdateByPrimaryKeyMethod(String statementId, FullyQualifiedJavaType parameterType) -
buildInitialSelectAnnotationStrings
-