Class OutParameters

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

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

    • getObject

      @CheckForNull 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

      @CheckForNull 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

      @CheckForNull 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

      @CheckForNull 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

      @CheckForNull public String getString(String name)
    • getString

      @CheckForNull public String getString(int pos)
    • getBytes

      @CheckForNull public byte[] getBytes(String name)
    • getBytes

      @CheckForNull public byte[] getBytes(int pos)
    • getInt

      @CheckForNull public Integer getInt(String name)
    • getInt

      @CheckForNull public Integer getInt(int pos)
    • getLong

      @CheckForNull public Long getLong(String name)
    • getLong

      @CheckForNull public Long getLong(int pos)
    • getShort

      @CheckForNull public Short getShort(String name)
    • getShort

      @CheckForNull public Short getShort(int pos)
    • getDate

      @CheckForNull public Date getDate(String name)
    • getDate

      @CheckForNull public Date getDate(int pos)
    • getTimestamp

      @CheckForNull public Timestamp getTimestamp(String name)
    • getTimestamp

      @CheckForNull public Timestamp getTimestamp(int pos)
    • getDouble

      @CheckForNull public Double getDouble(String name)
    • getDouble

      @CheckForNull public Double getDouble(int pos)
    • getFloat

      @CheckForNull public Float getFloat(String name)
    • getFloat

      @CheckForNull public Float getFloat(int pos)
    • getRowSet

      @NonNull public ResultBearing getRowSet(String name)
    • getRowSet

      @NonNull public ResultBearing getRowSet(int pos)