Class AnnotatedSelectByPrimaryKeyMethodGenerator
java.lang.Object
org.mybatis.generator.codegen.AbstractGenerator
org.mybatis.generator.codegen.mybatis3.javamapper.elements.AbstractJavaMapperMethodGenerator
org.mybatis.generator.codegen.mybatis3.javamapper.elements.SelectByPrimaryKeyMethodGenerator
org.mybatis.generator.codegen.mybatis3.javamapper.elements.annotated.AnnotatedSelectByPrimaryKeyMethodGenerator
-
Field Summary
FieldsFields inherited from class org.mybatis.generator.codegen.AbstractGenerator
context, introspectedTable, progressCallback, warnings -
Constructor Summary
ConstructorsConstructorDescriptionAnnotatedSelectByPrimaryKeyMethodGenerator(boolean useResultMapIfAvailable, boolean isSimple) -
Method Summary
Modifier and TypeMethodDescriptionprivate voidaddAnnotationImports(Interface interfaze) voidaddExtraImports(Interface interfaze) voidaddMapperAnnotations(Interface interfaze, Method method) private voidaddResultMapAnnotation(Method method) Methods inherited from class org.mybatis.generator.codegen.mybatis3.javamapper.elements.SelectByPrimaryKeyMethodGenerator
addInterfaceElementsMethods inherited from class org.mybatis.generator.codegen.mybatis3.javamapper.elements.AbstractJavaMapperMethodGenerator
addAnnotatedResults, addAnnotatedSelectImports, addPrimaryKeyMethodParameters, buildBasicUpdateByExampleMethod, buildBasicUpdateByPrimaryKeyMethod, buildByPrimaryKeyWhereClause, buildGeneratedKeyAnnotation, buildGeneratedKeyImportsIfRequired, buildInitialSelectAnnotationStrings, buildUpdateByPrimaryKeyAnnotations, getResultAnnotationMethods inherited from class org.mybatis.generator.codegen.AbstractGenerator
setContext, setIntrospectedTable, setProgressCallback, setWarnings
-
Field Details
-
useResultMapIfAvailable
private final boolean useResultMapIfAvailable
-
-
Constructor Details
-
AnnotatedSelectByPrimaryKeyMethodGenerator
public AnnotatedSelectByPrimaryKeyMethodGenerator(boolean useResultMapIfAvailable, boolean isSimple)
-
-
Method Details
-
addMapperAnnotations
- Overrides:
addMapperAnnotationsin classSelectByPrimaryKeyMethodGenerator
-
addResultMapAnnotation
-
addExtraImports
- Overrides:
addExtraImportsin classSelectByPrimaryKeyMethodGenerator
-
addAnnotationImports
-