Class AbstractArgumentFactory<T>

    • Constructor Detail

      • AbstractArgumentFactory

        protected AbstractArgumentFactory​(int sqlType)
        Constructs an ArgumentFactory for type T.
        Parameters:
        sqlType - the Types constant to use when the argument value is null.
    • Method Detail

      • innerBuild

        private Argument innerBuild​(java.lang.reflect.Type type,
                                    java.lang.Object value,
                                    ConfigRegistry config)
      • build

        protected abstract Argument build​(T value,
                                          ConfigRegistry config)
        Produce an argument object for the given value. When the implementation class has accepted a given type, it must then produce an argument instance or throw an exception.
        Parameters:
        value - the value to convert to an argument
        config - the config registry
        Returns:
        An Argument for the given value. Must not be null!