Package org.apache.ibatis.reflection
Class ParamNameResolver
- java.lang.Object
-
- org.apache.ibatis.reflection.ParamNameResolver
-
public class ParamNameResolver extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
GENERIC_NAME_PREFIX
-
Constructor Summary
Constructors Constructor Description ParamNameResolver(Configuration config, java.lang.reflect.Method method)
-
Method Summary
Modifier and Type Method Description java.lang.Object
getNamedParams(java.lang.Object[] args)
A single non-special parameter is returned without a name.java.lang.String[]
getNames()
Returns parameter names referenced by SQL providers.
-
-
-
Field Detail
-
GENERIC_NAME_PREFIX
public static final java.lang.String GENERIC_NAME_PREFIX
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ParamNameResolver
public ParamNameResolver(Configuration config, java.lang.reflect.Method method)
-
-
Method Detail
-
getNames
public java.lang.String[] getNames()
Returns parameter names referenced by SQL providers.
-
getNamedParams
public java.lang.Object getNamedParams(java.lang.Object[] args)
A single non-special parameter is returned without a name. Multiple parameters are named using the naming rule. In addition to the default names, this method also adds the generic names (param1, param2, ...).
-
-