Class ParamNameResolver


  • public class ParamNameResolver
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String GENERIC_NAME_PREFIX  
    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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, ...).