Class VavrOptionMapper<T>

  • All Implemented Interfaces:
    ColumnMapper<io.vavr.control.Option<T>>

    class VavrOptionMapper<T>
    extends java.lang.Object
    implements ColumnMapper<io.vavr.control.Option<T>>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.reflect.Type nestedType  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private VavrOptionMapper​(java.lang.reflect.Type nestedType)  
    • Field Detail

      • nestedType

        private final java.lang.reflect.Type nestedType
    • Constructor Detail

      • VavrOptionMapper

        private VavrOptionMapper​(java.lang.reflect.Type nestedType)
    • Method Detail

      • map

        public io.vavr.control.Option<T> map​(java.sql.ResultSet r,
                                             int columnNumber,
                                             StatementContext ctx)
                                      throws java.sql.SQLException
        Description copied from interface: ColumnMapper
        Map the given column of the current row of the result set to an Object. This method should not cause the result set to advance; allow Jdbi to do that, please.
        Specified by:
        map in interface ColumnMapper<T>
        Parameters:
        r - the result set being iterated
        columnNumber - the column number to map (starts at 1)
        ctx - the statement context
        Returns:
        the value to return for this column
        Throws:
        java.sql.SQLException - if anything goes wrong go ahead and let this percolate; Jdbi will handle it