Interface Attribute

All Known Implementing Classes:
AttributeImpl

@Immutable public interface Attribute
An immutable attribute associated with a relational table.
Author:
Chris Cranford
  • Method Details

    • editor

      static AttributeEditor editor()
      Obtain an attribute editor that can be used to define an attribute.
      Returns:
      the editor; never null
    • name

      String name()
      The attribute name.
      Returns:
      the name of the attribute, never null
    • value

      String value()
      The attribute value.
      Returns:
      the value of the attribute, may be null
    • asString

      String asString()
      Get the attribute value as a string value.
      Returns:
      the attribute value converted to a String, may be null
    • asInteger

      Integer asInteger()
      Get the attribute value as an integer value.
      Returns:
      the attribute value converted to an Integer, may be null
    • asLong

      Long asLong()
      Get the attribute value as a long value.
      Returns:
      the attribute value converted to a Long, may be null
    • asBoolean

      Boolean asBoolean()
      Get the attribute value as a boolean value. This conversion is based on Boolean.parseBoolean(String) semantics.
      Returns:
      the attribute value converted to a Boolean, may be null
    • asBigInteger

      BigInteger asBigInteger()
      Get the attribute value as a big integer value.
      Returns:
      the attribute value converted to a BigInteger, may be null
    • asBigDecimal

      BigDecimal asBigDecimal()
      Get the attribute value as a big decimal value.
      Returns:
      the attribute value converted to a BigDecimal, may be null
    • asFloat

      Float asFloat()
      Get the attribute value as a float value.
      Returns:
      the attribute value converted to a Float, may be null
    • asDouble

      Double asDouble()
      Get the attribute value as a double value.
      Returns:
      the attribute value converted to a Double, may be null
    • edit

      Obtain an editor that contains the same information as this attribute.
      Returns:
      the editor; never null