Interface Row

  • All Superinterfaces:
    Map<String,​Object>
    All Known Implementing Classes:
    RowImpl

    public interface Row
    extends Map<String,​Object>
    A row of data as column name->value pairs. Values are strongly typed, and column names are case sensitive.
    Author:
    James Ahlborn
    Usage:
    General: This class is general use.
    • Method Detail

      • getId

        RowId getId()
        Returns:
        the id of this row
      • getString

        String getString​(String name)
        Convenience method which gets the value for the row with the given name, casting it to a String (DataTypes TEXT, MEMO, GUID).
      • getBoolean

        Boolean getBoolean​(String name)
        Convenience method which gets the value for the row with the given name, casting it to a Boolean (DataType BOOLEAN).
      • getByte

        Byte getByte​(String name)
        Convenience method which gets the value for the row with the given name, casting it to a Byte (DataType BYTE).
      • getShort

        Short getShort​(String name)
        Convenience method which gets the value for the row with the given name, casting it to a Short (DataType INT).
      • getInt

        Integer getInt​(String name)
        Convenience method which gets the value for the row with the given name, casting it to a Integer (DataType LONG).
      • getBigDecimal

        BigDecimal getBigDecimal​(String name)
        Convenience method which gets the value for the row with the given name, casting it to a BigDecimal (DataTypes MONEY, NUMERIC).
      • getFloat

        Float getFloat​(String name)
        Convenience method which gets the value for the row with the given name, casting it to a Float (DataType FLOAT).
      • getDouble

        Double getDouble​(String name)
        Convenience method which gets the value for the row with the given name, casting it to a Double (DataType DOUBLE).
      • getLocalDateTime

        LocalDateTime getLocalDateTime​(String name)
        Convenience method which gets the value for the row with the given name, casting it to a LocalDateTime (DataType SHORT_DATE_TIME or EXT_DATE_TIME). This method will only work for Database instances configured for DateTimeType.LOCAL_DATE_TIME.
      • getBytes

        byte[] getBytes​(String name)
        Convenience method which gets the value for the row with the given name, casting it to a byte[] (DataTypes BINARY, OLE).
      • getBlob

        OleBlob getBlob​(String name)
        Convenience method which gets the value for the row with the given name, converting it to an OleBlob (DataTypes OLE).

        Note, the OleBlob should be closed after use.