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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddAnnotatedResults(Interface interfaze, Method method, List<IntrospectedColumn> nonPrimaryKeyColumns) protected voidaddAnnotatedSelectImports(Interface interfaze) abstract voidaddInterfaceElements(Interface interfaze) protected voidaddPrimaryKeyMethodParameters(boolean isSimple, Method method, Set<FullyQualifiedJavaType> importedTypes) protected MethodbuildBasicUpdateByExampleMethod(String statementId, FullyQualifiedJavaType parameterType, Set<FullyQualifiedJavaType> importedTypes) protected MethodbuildBasicUpdateByPrimaryKeyMethod(String statementId, FullyQualifiedJavaType parameterType) private StringbuildGeneratedKeyAnnotation(GeneratedKey gk, IntrospectedColumn introspectedColumn) private Set<FullyQualifiedJavaType> buildGeneratedKeyImports(GeneratedKey gk, IntrospectedColumn introspectedColumn) protected Set<FullyQualifiedJavaType> private Set<FullyQualifiedJavaType> buildUpdateByPrimaryKeyAnnotations(List<IntrospectedColumn> columnList) protected static StringgetResultAnnotation(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
-
buildGeneratedKeyAnnotation
-
buildGeneratedKeyAnnotation
-
buildGeneratedKeyImportsIfRequired
-
buildGeneratedKeyImportsIfRequired
-
buildGeneratedKeyImports
private Set<FullyQualifiedJavaType> buildGeneratedKeyImports(GeneratedKey gk, IntrospectedColumn introspectedColumn) -
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
-