Class BindParameterCustomizerFactory

java.lang.Object
org.jdbi.v3.sqlobject.statement.BindParameterCustomizerFactory
All Implemented Interfaces:
ParameterCustomizerFactory

public class BindParameterCustomizerFactory extends Object implements ParameterCustomizerFactory
Standard implementation of ParameterCustomizerFactory that delegates to BindFactory.createForParameter(Annotation, Class, Method, Parameter, int, Type) passing null for Annotation parameter.
  • Constructor Details

    • BindParameterCustomizerFactory

      public BindParameterCustomizerFactory()
  • Method Details

    • createForParameter

      public SqlStatementParameterCustomizer createForParameter(Class<?> sqlObjectType, Method method, Parameter param, int index, Type type)
      Description copied from interface: ParameterCustomizerFactory
      Creates parameter customizer used to bind sql statement parameters when parameter is not explicitly annotated
      Specified by:
      createForParameter in interface ParameterCustomizerFactory
      Parameters:
      sqlObjectType - sql object class (interface)
      method - the method which was identified as an SQL method
      param - the parameter to bind
      index - the method parameter index
      type - the method parameter type
      Returns:
      the customizer which will be applied to the generated statement