public class MapperRegistry extends Object
Constructor and Description |
---|
MapperRegistry(Configuration config) |
Modifier and Type | Method and Description |
---|---|
<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,
SqlSession sqlSession) |
Collection<Class<?>> |
getMappers()
Gets the mappers.
|
<T> boolean |
hasMapper(Class<T> type) |
public MapperRegistry(Configuration config)
public <T> T getMapper(Class<T> type, SqlSession sqlSession)
public <T> boolean hasMapper(Class<T> type)
public <T> void addMapper(Class<T> type)
public Collection<Class<?>> getMappers()
public void addMappers(String packageName, Class<?> superType)
packageName
- the package namesuperType
- the super typepublic void addMappers(String packageName)
packageName
- the package nameCopyright © 2009–2021 MyBatis.org. All rights reserved.