Class OutParameters

java.lang.Object
org.jdbi.v3.core.statement.OutParameters

public class OutParameters extends Object
Represents output from a Call (CallableStatement).
See Also:
Call
  • Method Details

    • getObject

      public <T> T getObject(String name, Class<T> type)
      Type-casting convenience method which obtains an object from the map, the object obtained should have been created with CallableStatementMapper
      Type Parameters:
      T - the output parameter type
      Parameters:
      name - The out parameter name
      type - The java type to obtain
      Returns:
      the output of name as type T
    • getObject

      public Object getObject(String name)
      Obtains an object from the map, the object obtained should have been created with CallableStatementMapper
      Parameters:
      name - The out parameter name
      Returns:
      the output of name as type T
    • getObject

      public Object getObject(int position)
      Type-casting convenience method which obtains an object from the results positionally object obtained should have been created with CallableStatementMapper
      Parameters:
      position - The out parameter name
      Returns:
      the output of name as type T
    • getObject

      public <T> T getObject(int pos, Class<T> type)
      Type-casting convenience method which obtains an object from the map positionally object obtained should have been created with CallableStatementMapper
      Type Parameters:
      T - the output parameter type
      Parameters:
      pos - The out parameter position
      type - The java type to obtain
      Returns:
      the output of name as type T
    • getString

      public String getString(String name)
    • getString

      public String getString(int pos)
    • getBytes

      public byte[] getBytes(String name)
    • getBytes

      public byte[] getBytes(int pos)
    • getInt

      public Integer getInt(String name)
    • getInt

      public Integer getInt(int pos)
    • getLong

      public Long getLong(String name)
    • getLong

      public Long getLong(int pos)
    • getShort

      public Short getShort(String name)
    • getShort

      public Short getShort(int pos)
    • getDate

      public Date getDate(String name)
    • getDate

      public Date getDate(int pos)
    • getTimestamp

      public Timestamp getTimestamp(String name)
    • getTimestamp

      public Timestamp getTimestamp(int pos)
    • getDouble

      public Double getDouble(String name)
    • getDouble

      public Double getDouble(int pos)
    • getFloat

      public Float getFloat(String name)
    • getFloat

      public Float getFloat(int pos)
    • getRowSet

      public ResultBearing getRowSet(String name)
    • getRowSet

      public ResultBearing getRowSet(int pos)