Package org.apache.ibatis.binding
Class MapperMethod.MethodSignature
- java.lang.Object
-
- org.apache.ibatis.binding.MapperMethod.MethodSignature
-
- Enclosing class:
- MapperMethod
public static class MapperMethod.MethodSignature extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringmapKeyprivate ParamNameResolverparamNameResolverprivate java.lang.IntegerresultHandlerIndexprivate booleanreturnsCursorprivate booleanreturnsManyprivate booleanreturnsMapprivate booleanreturnsOptionalprivate booleanreturnsVoidprivate java.lang.Class<?>returnTypeprivate java.lang.IntegerrowBoundsIndex
-
Constructor Summary
Constructors Constructor Description MethodSignature(Configuration configuration, java.lang.Class<?> mapperInterface, java.lang.reflect.Method method)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectconvertArgsToSqlCommandParam(java.lang.Object[] args)ResultHandlerextractResultHandler(java.lang.Object[] args)RowBoundsextractRowBounds(java.lang.Object[] args)java.lang.StringgetMapKey()private java.lang.StringgetMapKey(java.lang.reflect.Method method)java.lang.Class<?>getReturnType()private java.lang.IntegergetUniqueParamIndex(java.lang.reflect.Method method, java.lang.Class<?> paramType)booleanhasResultHandler()booleanhasRowBounds()booleanreturnsCursor()booleanreturnsMany()booleanreturnsMap()booleanreturnsOptional()return whether return type isjava.util.Optional.booleanreturnsVoid()
-
-
-
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
-
paramNameResolver
private final ParamNameResolver paramNameResolver
-
-
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 isjava.util.Optional.- Returns:
- return
true, if return type isjava.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)
-
-