Class ProviderContext


  • public final class ProviderContext
    extends java.lang.Object
    The context object for sql provider method.
    Since:
    3.4.5
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String databaseId  
      private java.lang.reflect.Method mapperMethod  
      private java.lang.Class<?> mapperType  
    • Constructor Summary

      Constructors 
      Constructor Description
      ProviderContext​(java.lang.Class<?> mapperType, java.lang.reflect.Method mapperMethod, java.lang.String databaseId)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getDatabaseId()
      Get a database id that provided from DatabaseIdProvider.
      java.lang.reflect.Method getMapperMethod()
      Get a mapper method that specified provider.
      java.lang.Class<?> getMapperType()
      Get a mapper interface type that specified provider.
      • Methods inherited from class java.lang.Object

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

      • mapperType

        private final java.lang.Class<?> mapperType
      • mapperMethod

        private final java.lang.reflect.Method mapperMethod
      • databaseId

        private final java.lang.String databaseId
    • Constructor Detail

      • ProviderContext

        ProviderContext​(java.lang.Class<?> mapperType,
                        java.lang.reflect.Method mapperMethod,
                        java.lang.String databaseId)
        Constructor.
        Parameters:
        mapperType - A mapper interface type that specified provider
        mapperMethod - A mapper method that specified provider
        databaseId - A database id
    • Method Detail

      • getMapperType

        public java.lang.Class<?> getMapperType()
        Get a mapper interface type that specified provider.
        Returns:
        A mapper interface type that specified provider
      • getMapperMethod

        public java.lang.reflect.Method getMapperMethod()
        Get a mapper method that specified provider.
        Returns:
        A mapper method that specified provider
      • getDatabaseId

        public java.lang.String getDatabaseId()
        Get a database id that provided from DatabaseIdProvider.
        Returns:
        A database id
        Since:
        3.5.1