Interface ValueExtractor<X>

  • All Known Implementing Classes:
    BasicExtractor

    public interface ValueExtractor<X>
    Contract for extracting value via JDBC (from ResultSet or as output param from CallableStatement).
    • Method Detail

      • extract

        X extract​(java.sql.ResultSet rs,
                  java.lang.String name,
                  WrapperOptions options)
           throws java.sql.SQLException
        Extract value from result set
        Parameters:
        rs - The result set from which to extract the value
        name - The name by which to extract the value from the result set
        options - The options
        Returns:
        The extracted value
        Throws:
        java.sql.SQLException - Indicates a JDBC error occurred.
      • extract

        X extract​(java.sql.CallableStatement statement,
                  int index,
                  WrapperOptions options)
           throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • extract

        X extract​(java.sql.CallableStatement statement,
                  java.lang.String[] paramNames,
                  WrapperOptions options)
           throws java.sql.SQLException
        Throws:
        java.sql.SQLException