Class MapperMethod.MethodSignature

  • Enclosing class:
    MapperMethod

    public static class MapperMethod.MethodSignature
    extends java.lang.Object
    • Field Detail

      • returnsMany

        private final boolean returnsMany
      • returnsMap

        private final boolean returnsMap
      • returnsVoid

        private final boolean returnsVoid
      • returnsCursor

        private final boolean returnsCursor
      • returnsOptional

        private final boolean returnsOptional
      • returnType

        private final java.lang.Class<?> returnType
      • mapKey

        private final java.lang.String mapKey
      • resultHandlerIndex

        private final java.lang.Integer resultHandlerIndex
      • rowBoundsIndex

        private final java.lang.Integer rowBoundsIndex
    • Constructor Detail

      • MethodSignature

        public MethodSignature​(Configuration configuration,
                               java.lang.Class<?> mapperInterface,
                               java.lang.reflect.Method method)
    • Method Detail

      • convertArgsToSqlCommandParam

        public java.lang.Object convertArgsToSqlCommandParam​(java.lang.Object[] args)
      • hasRowBounds

        public boolean hasRowBounds()
      • extractRowBounds

        public RowBounds extractRowBounds​(java.lang.Object[] args)
      • hasResultHandler

        public boolean hasResultHandler()
      • extractResultHandler

        public ResultHandler extractResultHandler​(java.lang.Object[] args)
      • getReturnType

        public java.lang.Class<?> getReturnType()
      • returnsMany

        public boolean returnsMany()
      • returnsMap

        public boolean returnsMap()
      • returnsVoid

        public boolean returnsVoid()
      • returnsCursor

        public boolean returnsCursor()
      • returnsOptional

        public boolean returnsOptional()
        return whether return type is java.util.Optional.
        Returns:
        return true, if return type is java.util.Optional
        Since:
        3.5.0
      • getUniqueParamIndex

        private java.lang.Integer getUniqueParamIndex​(java.lang.reflect.Method method,
                                                      java.lang.Class<?> paramType)
      • getMapKey

        public java.lang.String getMapKey()
      • getMapKey

        private java.lang.String getMapKey​(java.lang.reflect.Method method)