Class MapperAnnotationBuilder
java.lang.Object
org.apache.ibatis.builder.annotation.MapperAnnotationBuilder
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final MapperBuilderAssistantprivate final Configurationprivate static final Set<Class<? extends Annotation>> private final Class<?> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidapplyConstructorArgs(Arg[] args, Class<?> resultType, List<ResultMapping> resultMappings) private DiscriminatorapplyDiscriminator(String resultMapId, Class<?> resultType, TypeDiscriminator discriminator) private voidapplyResultMap(String resultMapId, Class<?> returnType, Arg[] args, Result[] results, TypeDiscriminator discriminator) private voidapplyResults(Result[] results, Class<?> resultType, List<ResultMapping> resultMappings) private SqlSourcebuildSqlSource(Annotation annotation, Class<?> parameterType, LanguageDriver languageDriver, Method method) private SqlSourcebuildSqlSourceFromStrings(String[] strings, Class<?> parameterTypeClass, LanguageDriver languageDriver) private booleancanHaveStatement(Method method) private PropertiesconvertToProperties(Property[] properties) private voidcreateDiscriminatorResultMaps(String resultMapId, Class<?> resultType, TypeDiscriminator discriminator) private StringfindColumnPrefix(Result result) private StringgenerateResultMapName(Method method) private final Optional<MapperAnnotationBuilder.AnnotationWrapper> getAnnotationWrapper(Method method, boolean errorIfNoMatch, Class<? extends Annotation>... targetTypes) getAnnotationWrapper(Method method, boolean errorIfNoMatch, Collection<Class<? extends Annotation>> targetTypes) private LanguageDrivergetLanguageDriver(Method method) private Class<?> getParameterType(Method method) private Class<?> getReturnType(Method method) private KeyGeneratorhandleSelectKeyAnnotation(SelectKey selectKeyAnnotation, String baseStatementId, Class<?> parameterTypeClass, LanguageDriver languageDriver) private booleanhasNestedResultMap(Result result) private booleanhasNestedSelect(Result result) private booleanprivate voidprivate StringnestedResultMapId(Result result) private StringnestedSelectId(Result result) private StringnullOrEmpty(String value) voidparse()private voidprivate voidprivate voidprivate StringparseResultMap(Method method) (package private) voidparseStatement(Method method)
-
Field Details
-
statementAnnotationTypes
-
configuration
-
assistant
-
type
-
-
Constructor Details
-
MapperAnnotationBuilder
-
-
Method Details
-
parse
public void parse() -
canHaveStatement
-
parsePendingMethods
private void parsePendingMethods() -
loadXmlResource
private void loadXmlResource() -
parseCache
private void parseCache() -
convertToProperties
-
parseCacheRef
private void parseCacheRef() -
parseResultMap
-
generateResultMapName
-
applyResultMap
private void applyResultMap(String resultMapId, Class<?> returnType, Arg[] args, Result[] results, TypeDiscriminator discriminator) -
createDiscriminatorResultMaps
private void createDiscriminatorResultMaps(String resultMapId, Class<?> resultType, TypeDiscriminator discriminator) -
applyDiscriminator
private Discriminator applyDiscriminator(String resultMapId, Class<?> resultType, TypeDiscriminator discriminator) -
parseStatement
-
getLanguageDriver
-
getParameterType
-
getReturnType
-
applyResults
private void applyResults(Result[] results, Class<?> resultType, List<ResultMapping> resultMappings) -
findColumnPrefix
-
nestedResultMapId
-
hasNestedResultMap
-
nestedSelectId
-
isLazy
-
hasNestedSelect
-
applyConstructorArgs
private void applyConstructorArgs(Arg[] args, Class<?> resultType, List<ResultMapping> resultMappings) -
nullOrEmpty
-
handleSelectKeyAnnotation
private KeyGenerator handleSelectKeyAnnotation(SelectKey selectKeyAnnotation, String baseStatementId, Class<?> parameterTypeClass, LanguageDriver languageDriver) -
buildSqlSource
private SqlSource buildSqlSource(Annotation annotation, Class<?> parameterType, LanguageDriver languageDriver, Method method) -
buildSqlSourceFromStrings
private SqlSource buildSqlSourceFromStrings(String[] strings, Class<?> parameterTypeClass, LanguageDriver languageDriver) -
getAnnotationWrapper
@SafeVarargs private final Optional<MapperAnnotationBuilder.AnnotationWrapper> getAnnotationWrapper(Method method, boolean errorIfNoMatch, Class<? extends Annotation>... targetTypes) -
getAnnotationWrapper
private Optional<MapperAnnotationBuilder.AnnotationWrapper> getAnnotationWrapper(Method method, boolean errorIfNoMatch, Collection<Class<? extends Annotation>> targetTypes)
-