Class MapperRegistry


  • public class MapperRegistry
    extends java.lang.Object
    Author:
    Clinton Begin, Eduardo Macarron, Lasse Voss
    • Method Summary

      Modifier and Type Method Description
      <T> void addMapper​(java.lang.Class<T> type)  
      void addMappers​(java.lang.String packageName)  
      void addMappers​(java.lang.String packageName, java.lang.Class<?> superType)  
      <T> T getMapper​(java.lang.Class<T> type, SqlSession sqlSession)  
      java.util.Collection<java.lang.Class<?>> getMappers()  
      <T> boolean hasMapper​(java.lang.Class<T> type)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MapperRegistry

        public MapperRegistry​(Configuration config)
    • Method Detail

      • getMapper

        public <T> T getMapper​(java.lang.Class<T> type,
                               SqlSession sqlSession)
      • hasMapper

        public <T> boolean hasMapper​(java.lang.Class<T> type)
      • addMapper

        public <T> void addMapper​(java.lang.Class<T> type)
      • getMappers

        public java.util.Collection<java.lang.Class<?>> getMappers()
        Since:
        3.2.2
      • addMappers

        public void addMappers​(java.lang.String packageName,
                               java.lang.Class<?> superType)
        Since:
        3.2.2
      • addMappers

        public void addMappers​(java.lang.String packageName)
        Since:
        3.2.2