Interface LoadBinder

  • Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface LoadBinder
    Extracts a value from ResultSet into and converts it to suitable Java type
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.Object convert​(java.sql.ResultSet rs, int index)
      Extracts a value from ResultSet into and converts it to suitable Java type
    • Method Detail

      • convert

        java.lang.Object convert​(java.sql.ResultSet rs,
                                 int index)
                          throws java.lang.Exception
        Extracts a value from ResultSet into and converts it to suitable Java type
        Parameters:
        rs - resultset
        index - column index (1-based)
        Returns:
        resulting value
        Throws:
        java.lang.Exception - when anything goes wrong