Class BasicBinder<J>

    • Constructor Detail

      • BasicBinder

        public BasicBinder​(JavaType<J> javaDescriptor,
                           JdbcType jdbcType)
    • Method Detail

      • getJavaTypeDescriptor

        public JavaType<J> getJavaTypeDescriptor()
      • getJdbcTypeDescriptor

        public JdbcType getJdbcTypeDescriptor()
      • doBindNull

        protected void doBindNull​(PreparedStatement st,
                                  int index,
                                  WrapperOptions options)
                           throws SQLException
        Perform the null binding.
        Parameters:
        st - The prepared statement
        index - The index at which to bind
        options - The binding options
        Throws:
        SQLException - Indicates a problem binding to the prepared statement.
      • doBindNull

        protected void doBindNull​(CallableStatement st,
                                  String name,
                                  WrapperOptions options)
                           throws SQLException
        Perform the null binding.
        Parameters:
        st - The CallableStatement
        name - The name at which to bind
        options - The binding options
        Throws:
        SQLException - Indicates a problem binding to the callable statement.
      • doBind

        protected abstract void doBind​(PreparedStatement st,
                                       J value,
                                       int index,
                                       WrapperOptions options)
                                throws SQLException
        Perform the binding. Safe to assume that value is not null.
        Parameters:
        st - The prepared statement
        value - The value to bind (not null).
        index - The index at which to bind
        options - The binding options
        Throws:
        SQLException - Indicates a problem binding to the prepared statement.
      • doBind

        protected abstract void doBind​(CallableStatement st,
                                       J value,
                                       String name,
                                       WrapperOptions options)
                                throws SQLException
        Perform the binding. Safe to assume that value is not null.
        Parameters:
        st - The CallableStatement
        value - The value to bind (not null).
        name - The name at which to bind
        options - The binding options
        Throws:
        SQLException - Indicates a problem binding to the callable statement.