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) |
void |
addMappers(String packageName,
Class<?> superType) |
<T> T |
getMapper(Class<T> type,
SqlSession sqlSession) |
Collection<Class<?>> |
getMappers() |
<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)
Copyright © 2010–2015 MyBatis.org. All rights reserved.