public interface EntityClassFinder extends Order
| Modifier and Type | Interface and Description |
|---|---|
static class |
EntityClassFinder.EntityClassFinderInstance
实例
|
static class |
EntityClassFinder.MapperTypeMethod
Mapper 接口和方法,用作缓存 Key
|
| Modifier and Type | Field and Description |
|---|---|
static Map<EntityClassFinder.MapperTypeMethod,Optional<Class<?>>> |
ENTITY_CLASS_MAP
缓存,避免方法执行时每次都查找
|
| Modifier and Type | Method and Description |
|---|---|
static Optional<Class<?>> |
find(Class<?> mapperType,
Method mapperMethod)
查找当前方法对应的实体类
|
Optional<Class<?>> |
findEntityClass(Class<?> mapperType,
Method mapperMethod)
查找当前方法对应的实体类
|
boolean |
isEntityClass(Class<?> clazz)
指定的类型是否为定义的实体类类型
|
static final Map<EntityClassFinder.MapperTypeMethod,Optional<Class<?>>> ENTITY_CLASS_MAP
static Optional<Class<?>> find(Class<?> mapperType, Method mapperMethod)
mapperType - Mapper 接口,不能为空mapperMethod - Mapper 接口方法,可以为空Optional<Class<?>> findEntityClass(Class<?> mapperType, Method mapperMethod)
mapperType - Mapper 接口,不能为空mapperMethod - Mapper 接口方法,可以为空boolean isEntityClass(Class<?> clazz)
clazz - 类型Copyright © 2023. All rights reserved.