Interface Row


public interface Row
Optional interface that rows can extend for supporting reflection-style access to columns. If the row represents a join, dotted name paths can be used to access sub columns.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    default String
    Returns the method name for the given column name.
    Returns the column type for the given column name.
    get(String name)
    Returns the value for the given column name.
    boolean
    Returns a boolean value for the given column name, performing a conversion if necessary.
    boolean[]
    Returns a boolean array value for the given column name, performing a conversion if necessary.
    byte
    Returns a byte value for the given column name, performing a conversion if necessary.
    byte[]
    Returns a byte array value for the given column name, performing a conversion if necessary.
    char
    Returns a char value for the given column name, performing a conversion if necessary.
    char[]
    Returns a char array value for the given column name, performing a conversion if necessary.
    double
    Returns a double value for the given column name, performing a conversion if necessary.
    double[]
    Returns a double array value for the given column name, performing a conversion if necessary.
    float
    Returns a float value for the given column name, performing a conversion if necessary.
    float[]
    Returns a float array value for the given column name, performing a conversion if necessary.
    int
    Returns an int value for the given column name, performing a conversion if necessary.
    int[]
    Returns an int array value for the given column name, performing a conversion if necessary.
    long
    Returns a long value for the given column name, performing a conversion if necessary.
    long[]
    Returns a long array value for the given column name, performing a conversion if necessary.
    short
    Returns a short value for the given column name, performing a conversion if necessary.
    short[]
    Returns a short array value for the given column name, performing a conversion if necessary.
    Returns a BigDecimal value for the given column name, performing a conversion if necessary.
    Returns a BigInteger value for the given column name, performing a conversion if necessary.
    Returns a Boolean value for the given column name, performing a conversion if necessary.
    Returns a Byte value for the given column name, performing a conversion if necessary.
    Returns a Character value for the given column name, performing a conversion if necessary.
    Returns a Double value for the given column name, performing a conversion if necessary.
    Returns a Float value for the given column name, performing a conversion if necessary.
    Returns an Integer value for the given column name, performing a conversion if necessary.
    Returns a Long value for the given column name, performing a conversion if necessary.
    Returns a Short value for the given column name, performing a conversion if necessary.
    Returns a String value for the given column name, performing a conversion if necessary.
    void
    set(String name, boolean value)
    Sets a boolean value for the given column name, performing a conversion if necessary.
    void
    set(String name, boolean[] value)
    Sets a boolean array value for the given column name, performing a conversion if necessary.
    void
    set(String name, byte value)
    Sets a byte value for the given column name, performing a conversion if necessary.
    void
    set(String name, byte[] value)
    Sets a byte array value for the given column name, performing a conversion if necessary.
    void
    set(String name, char value)
    Sets a char value for the given column name, performing a conversion if necessary.
    void
    set(String name, char[] value)
    Sets a char array value for the given column name, performing a conversion if necessary.
    void
    set(String name, double value)
    Sets a double value for the given column name, performing a conversion if necessary.
    void
    set(String name, double[] value)
    Sets a double array value for the given column name, performing a conversion if necessary.
    void
    set(String name, float value)
    Sets a float value for the given column name, performing a conversion if necessary.
    void
    set(String name, float[] value)
    Sets a float array value for the given column name, performing a conversion if necessary.
    void
    set(String name, int value)
    Sets an int value for the given column name, performing a conversion if necessary.
    void
    set(String name, int[] value)
    Sets an int array value for the given column name, performing a conversion if necessary.
    void
    set(String name, long value)
    Sets a long value for the given column name, performing a conversion if necessary.
    void
    set(String name, long[] value)
    Sets a long array value for the given column name, performing a conversion if necessary.
    void
    set(String name, short value)
    Sets a short value for the given column name, performing a conversion if necessary.
    void
    set(String name, short[] value)
    Sets a short array value for the given column name, performing a conversion if necessary.
    void
    set(String name, Boolean value)
    Sets a Boolean value for the given column name, performing a conversion if necessary.
    void
    set(String name, Byte value)
    Sets a Byte value for the given column name, performing a conversion if necessary.
    void
    set(String name, Character value)
    Sets a Character value for the given column name, performing a conversion if necessary.
    void
    set(String name, Double value)
    Sets a Double value for the given column name, performing a conversion if necessary.
    void
    set(String name, Float value)
    Sets a Float value for the given column name, performing a conversion if necessary.
    void
    set(String name, Integer value)
    Sets an Integer value for the given column name, performing a conversion if necessary.
    void
    set(String name, Long value)
    Sets a Long value for the given column name, performing a conversion if necessary.
    void
    set(String name, Object value)
    Sets a value for the given column name, performing a conversion if necessary.
    void
    set(String name, Short value)
    Sets a Short value for the given column name, performing a conversion if necessary.
    void
    set(String name, String value)
    Sets a String value for the given column name, performing a conversion if necessary.
    void
    set(String name, BigDecimal value)
    Sets a BigDecimal value for the given column name, performing a conversion if necessary.
    void
    set(String name, BigInteger value)
    Sets a BigInteger value for the given column name, performing a conversion if necessary.
  • Method Details

    • columnType

      Class<?> columnType(String name)
      Returns the column type for the given column name.
      Parameters:
      name - column name
      Returns:
      column type
      Throws:
      IllegalArgumentException - if the given column name is unknown
    • columnMethodName

      default String columnMethodName(String name)
      Returns the method name for the given column name. The method name can differ from the column name if it needed to be renamed to something legal.
      Parameters:
      name - column name
      Returns:
      column method name
      Throws:
      IllegalArgumentException - if the given column name is unknown
    • get

      Object get(String name)
      Returns the value for the given column name.
      Parameters:
      name - column name
      Returns:
      the column value, possibly boxed
      Throws:
      IllegalArgumentException - if the given column name is unknown
    • get_boolean

      boolean get_boolean(String name)
      Returns a boolean value for the given column name, performing a conversion if necessary.
      Parameters:
      name - column name
      Returns:
      the column value as a boolean
      Throws:
      IllegalArgumentException - if the given column name is unknown
      ConversionException
    • get_boolean_array

      boolean[] get_boolean_array(String name)
      Returns a boolean array value for the given column name, performing a conversion if necessary.
      Parameters:
      name - column name
      Returns:
      the column value as a boolean array
      Throws:
      IllegalArgumentException - if the given column name is unknown
      ConversionException
    • get_byte

      byte get_byte(String name)
      Returns a byte value for the given column name, performing a conversion if necessary.
      Parameters:
      name - column name
      Returns:
      the column value as a byte
      Throws:
      IllegalArgumentException - if the given column name is unknown
      ConversionException
    • get_byte_array

      byte[] get_byte_array(String name)
      Returns a byte array value for the given column name, performing a conversion if necessary.
      Parameters:
      name - column name
      Returns:
      the column value as a byte array
      Throws:
      IllegalArgumentException - if the given column name is unknown
      ConversionException
    • get_short

      short get_short(String name)
      Returns a short value for the given column name, performing a conversion if necessary.
      Parameters:
      name - column name
      Returns:
      the column value as a short
      Throws:
      IllegalArgumentException - if the given column name is unknown
      ConversionException
    • get_short_array

      short[] get_short_array(String name)
      Returns a short array value for the given column name, performing a conversion if necessary.
      Parameters:
      name - column name
      Returns:
      the column value as a short array
      Throws:
      IllegalArgumentException - if the given column name is unknown
      ConversionException
    • get_char

      char get_char(String name)
      Returns a char value for the given column name, performing a conversion if necessary.
      Parameters:
      name - column name
      Returns:
      the column value as a char
      Throws:
      IllegalArgumentException - if the given column name is unknown
      ConversionException
    • get_char_array

      char[] get_char_array(String name)
      Returns a char array value for the given column name, performing a conversion if necessary.
      Parameters:
      name - column name
      Returns:
      the column value as a char array
      Throws:
      IllegalArgumentException - if the given column name is unknown
      ConversionException
    • get_int

      int get_int(String name)
      Returns an int value for the given column name, performing a conversion if necessary.
      Parameters:
      name - column name
      Returns:
      the column value as an int
      Throws:
      IllegalArgumentException - if the given column name is unknown
      ConversionException
    • get_int_array

      int[] get_int_array(String name)
      Returns an int array value for the given column name, performing a conversion if necessary.
      Parameters:
      name - column name
      Returns:
      the column value as an int array
      Throws:
      IllegalArgumentException - if the given column name is unknown
      ConversionException
    • get_long

      long get_long(String name)
      Returns a long value for the given column name, performing a conversion if necessary.
      Parameters:
      name - column name
      Returns:
      the column value as a long
      Throws:
      IllegalArgumentException - if the given column name is unknown
      ConversionException
    • get_long_array

      long[] get_long_array(String name)
      Returns a long array value for the given column name, performing a conversion if necessary.
      Parameters:
      name - column name
      Returns:
      the column value as a long array
      Throws:
      IllegalArgumentException - if the given column name is unknown
      ConversionException
    • get_float

      float get_float(String name)
      Returns a float value for the given column name, performing a conversion if necessary.
      Parameters:
      name - column name
      Returns:
      the column value as a float
      Throws:
      IllegalArgumentException - if the given column name is unknown
      ConversionException
    • get_float_array

      float[] get_float_array(String name)
      Returns a float array value for the given column name, performing a conversion if necessary.
      Parameters:
      name - column name
      Returns:
      the column value as a float array
      Throws:
      IllegalArgumentException - if the given column name is unknown
      ConversionException
    • get_double

      double get_double(String name)
      Returns a double value for the given column name, performing a conversion if necessary.
      Parameters:
      name - column name
      Returns:
      the column value as a double
      Throws:
      IllegalArgumentException - if the given column name is unknown
      ConversionException
    • get_double_array

      double[] get_double_array(String name)
      Returns a double array value for the given column name, performing a conversion if necessary.
      Parameters:
      name - column name
      Returns:
      the column value as a double array
      Throws:
      IllegalArgumentException - if the given column name is unknown
      ConversionException
    • getBoolean

      Boolean getBoolean(String name)
      Returns a Boolean value for the given column name, performing a conversion if necessary.
      Parameters:
      name - column name
      Returns:
      the column value as a Boolean
      Throws:
      IllegalArgumentException - if the given column name is unknown
      ConversionException
    • getByte

      Byte getByte(String name)
      Returns a Byte value for the given column name, performing a conversion if necessary.
      Parameters:
      name - column name
      Returns:
      the column value as a Byte
      Throws:
      IllegalArgumentException - if the given column name is unknown
      ConversionException
    • getShort

      Short getShort(String name)
      Returns a Short value for the given column name, performing a conversion if necessary.
      Parameters:
      name - column name
      Returns:
      the column value as a Short
      Throws:
      IllegalArgumentException - if the given column name is unknown
      ConversionException
    • getCharacter

      Character getCharacter(String name)
      Returns a Character value for the given column name, performing a conversion if necessary.
      Parameters:
      name - column name
      Returns:
      the column value as a Character
      Throws:
      IllegalArgumentException - if the given column name is unknown
      ConversionException
    • getInteger

      Integer getInteger(String name)
      Returns an Integer value for the given column name, performing a conversion if necessary.
      Parameters:
      name - column name
      Returns:
      the column value as an Integer
      Throws:
      IllegalArgumentException - if the given column name is unknown
      ConversionException
    • getLong

      Long getLong(String name)
      Returns a Long value for the given column name, performing a conversion if necessary.
      Parameters:
      name - column name
      Returns:
      the column value as a Long
      Throws:
      IllegalArgumentException - if the given column name is unknown
      ConversionException
    • getFloat

      Float getFloat(String name)
      Returns a Float value for the given column name, performing a conversion if necessary.
      Parameters:
      name - column name
      Returns:
      the column value as a Float
      Throws:
      IllegalArgumentException - if the given column name is unknown
      ConversionException
    • getDouble

      Double getDouble(String name)
      Returns a Double value for the given column name, performing a conversion if necessary.
      Parameters:
      name - column name
      Returns:
      the column value as a Double
      Throws:
      IllegalArgumentException - if the given column name is unknown
      ConversionException
    • getString

      String getString(String name)
      Returns a String value for the given column name, performing a conversion if necessary.
      Parameters:
      name - column name
      Returns:
      the column value as a String
      Throws:
      IllegalArgumentException - if the given column name is unknown
    • getBigInteger

      BigInteger getBigInteger(String name)
      Returns a BigInteger value for the given column name, performing a conversion if necessary.
      Parameters:
      name - column name
      Returns:
      the column value as a BigInteger
      Throws:
      IllegalArgumentException - if the given column name is unknown
      ConversionException
    • getBigDecimal

      BigDecimal getBigDecimal(String name)
      Returns a BigDecimal value for the given column name, performing a conversion if necessary.
      Parameters:
      name - column name
      Returns:
      the column value as a BigDecimal
      Throws:
      IllegalArgumentException - if the given column name is unknown
      ConversionException
    • set

      void set(String name, Object value)
      Sets a value for the given column name, performing a conversion if necessary.
      Parameters:
      name - column name
      value - the column value to set
      Throws:
      IllegalArgumentException - if the given column name is unknown
      ConversionException
    • set

      void set(String name, boolean value)
      Sets a boolean value for the given column name, performing a conversion if necessary.
      Parameters:
      name - column name
      value - the column value to set
      Throws:
      IllegalArgumentException - if the given column name is unknown
      ConversionException
    • set

      void set(String name, boolean[] value)
      Sets a boolean array value for the given column name, performing a conversion if necessary.
      Parameters:
      name - column name
      value - the column value to set
      Throws:
      IllegalArgumentException - if the given column name is unknown
      ConversionException
    • set

      void set(String name, byte value)
      Sets a byte value for the given column name, performing a conversion if necessary.
      Parameters:
      name - column name
      value - the column value to set
      Throws:
      IllegalArgumentException - if the given column name is unknown
      ConversionException
    • set

      void set(String name, byte[] value)
      Sets a byte array value for the given column name, performing a conversion if necessary.
      Parameters:
      name - column name
      value - the column value to set
      Throws:
      IllegalArgumentException - if the given column name is unknown
      ConversionException
    • set

      void set(String name, short value)
      Sets a short value for the given column name, performing a conversion if necessary.
      Parameters:
      name - column name
      value - the column value to set
      Throws:
      IllegalArgumentException - if the given column name is unknown
      ConversionException
    • set

      void set(String name, short[] value)
      Sets a short array value for the given column name, performing a conversion if necessary.
      Parameters:
      name - column name
      value - the column value to set
      Throws:
      IllegalArgumentException - if the given column name is unknown
      ConversionException
    • set

      void set(String name, char value)
      Sets a char value for the given column name, performing a conversion if necessary.
      Parameters:
      name - column name
      value - the column value to set
      Throws:
      IllegalArgumentException - if the given column name is unknown
      ConversionException
    • set

      void set(String name, char[] value)
      Sets a char array value for the given column name, performing a conversion if necessary.
      Parameters:
      name - column name
      value - the column value to set
      Throws:
      IllegalArgumentException - if the given column name is unknown
      ConversionException
    • set

      void set(String name, int value)
      Sets an int value for the given column name, performing a conversion if necessary.
      Parameters:
      name - column name
      value - the column value to set
      Throws:
      IllegalArgumentException - if the given column name is unknown
      ConversionException
    • set

      void set(String name, int[] value)
      Sets an int array value for the given column name, performing a conversion if necessary.
      Parameters:
      name - column name
      value - the column value to set
      Throws:
      IllegalArgumentException - if the given column name is unknown
      ConversionException
    • set

      void set(String name, long value)
      Sets a long value for the given column name, performing a conversion if necessary.
      Parameters:
      name - column name
      value - the column value to set
      Throws:
      IllegalArgumentException - if the given column name is unknown
      ConversionException
    • set

      void set(String name, long[] value)
      Sets a long array value for the given column name, performing a conversion if necessary.
      Parameters:
      name - column name
      value - the column value to set
      Throws:
      IllegalArgumentException - if the given column name is unknown
      ConversionException
    • set

      void set(String name, float value)
      Sets a float value for the given column name, performing a conversion if necessary.
      Parameters:
      name - column name
      value - the column value to set
      Throws:
      IllegalArgumentException - if the given column name is unknown
      ConversionException
    • set

      void set(String name, float[] value)
      Sets a float array value for the given column name, performing a conversion if necessary.
      Parameters:
      name - column name
      value - the column value to set
      Throws:
      IllegalArgumentException - if the given column name is unknown
      ConversionException
    • set

      void set(String name, double value)
      Sets a double value for the given column name, performing a conversion if necessary.
      Parameters:
      name - column name
      value - the column value to set
      Throws:
      IllegalArgumentException - if the given column name is unknown
      ConversionException
    • set

      void set(String name, double[] value)
      Sets a double array value for the given column name, performing a conversion if necessary.
      Parameters:
      name - column name
      value - the column value to set
      Throws:
      IllegalArgumentException - if the given column name is unknown
      ConversionException
    • set

      void set(String name, Boolean value)
      Sets a Boolean value for the given column name, performing a conversion if necessary.
      Parameters:
      name - column name
      value - the column value to set
      Throws:
      IllegalArgumentException - if the given column name is unknown
      ConversionException
    • set

      void set(String name, Byte value)
      Sets a Byte value for the given column name, performing a conversion if necessary.
      Parameters:
      name - column name
      value - the column value to set
      Throws:
      IllegalArgumentException - if the given column name is unknown
      ConversionException
    • set

      void set(String name, Short value)
      Sets a Short value for the given column name, performing a conversion if necessary.
      Parameters:
      name - column name
      value - the column value to set
      Throws:
      IllegalArgumentException - if the given column name is unknown
      ConversionException
    • set

      void set(String name, Character value)
      Sets a Character value for the given column name, performing a conversion if necessary.
      Parameters:
      name - column name
      value - the column value to set
      Throws:
      IllegalArgumentException - if the given column name is unknown
      ConversionException
    • set

      void set(String name, Integer value)
      Sets an Integer value for the given column name, performing a conversion if necessary.
      Parameters:
      name - column name
      value - the column value to set
      Throws:
      IllegalArgumentException - if the given column name is unknown
      ConversionException
    • set

      void set(String name, Long value)
      Sets a Long value for the given column name, performing a conversion if necessary.
      Parameters:
      name - column name
      value - the column value to set
      Throws:
      IllegalArgumentException - if the given column name is unknown
      ConversionException
    • set

      void set(String name, Float value)
      Sets a Float value for the given column name, performing a conversion if necessary.
      Parameters:
      name - column name
      value - the column value to set
      Throws:
      IllegalArgumentException - if the given column name is unknown
      ConversionException
    • set

      void set(String name, Double value)
      Sets a Double value for the given column name, performing a conversion if necessary.
      Parameters:
      name - column name
      value - the column value to set
      Throws:
      IllegalArgumentException - if the given column name is unknown
      ConversionException
    • set

      void set(String name, String value)
      Sets a String value for the given column name, performing a conversion if necessary.
      Parameters:
      name - column name
      value - the column value to set
      Throws:
      IllegalArgumentException - if the given column name is unknown
      ConversionException
    • set

      void set(String name, BigInteger value)
      Sets a BigInteger value for the given column name, performing a conversion if necessary.
      Parameters:
      name - column name
      value - the column value to set
      Throws:
      IllegalArgumentException - if the given column name is unknown
      ConversionException
    • set

      void set(String name, BigDecimal value)
      Sets a BigDecimal value for the given column name, performing a conversion if necessary.
      Parameters:
      name - column name
      value - the column value to set
      Throws:
      IllegalArgumentException - if the given column name is unknown
      ConversionException