public class FlexMapperRegistry extends org.apache.ibatis.binding.MapperRegistry
| 限定符和类型 | 字段和说明 |
|---|---|
private FlexConfiguration |
config |
private Map<Class<?>,FlexMapperProxyFactory<?>> |
knownMappers |
| 构造器和说明 |
|---|
FlexMapperRegistry(FlexConfiguration config) |
| 限定符和类型 | 方法和说明 |
|---|---|
<T> void |
addMapper(Class<T> type) |
void |
addMappers(String packageName)
Adds the mappers.
|
void |
addMappers(String packageName,
Class<?> superType)
Adds the mappers.
|
<T> T |
getMapper(Class<T> type,
org.apache.ibatis.session.SqlSession sqlSession) |
Collection<Class<?>> |
getMappers()
Gets the mappers.
|
<T> boolean |
hasMapper(Class<T> type) |
private final FlexConfiguration config
private final Map<Class<?>,FlexMapperProxyFactory<?>> knownMappers
public FlexMapperRegistry(FlexConfiguration config)
public <T> T getMapper(Class<T> type, org.apache.ibatis.session.SqlSession sqlSession)
getMapper 在类中 org.apache.ibatis.binding.MapperRegistrypublic <T> boolean hasMapper(Class<T> type)
hasMapper 在类中 org.apache.ibatis.binding.MapperRegistrypublic <T> void addMapper(Class<T> type)
addMapper 在类中 org.apache.ibatis.binding.MapperRegistrypublic Collection<Class<?>> getMappers()
getMappers 在类中 org.apache.ibatis.binding.MapperRegistrypublic void addMappers(String packageName, Class<?> superType)
addMappers 在类中 org.apache.ibatis.binding.MapperRegistrypackageName - the package namesuperType - the super typepublic void addMappers(String packageName)
addMappers 在类中 org.apache.ibatis.binding.MapperRegistrypackageName - the package nameCopyright © 2024. All rights reserved.