Package io.debezium.relational
Interface Attribute
- All Known Implementing Classes:
AttributeImpl
An immutable attribute associated with a relational table.
- Author:
- Chris Cranford
-
Method Summary
Modifier and TypeMethodDescriptionGet the attribute value as a big decimal value.Get the attribute value as a big integer value.Get the attribute value as a boolean value.asDouble()Get the attribute value as a double value.asFloat()Get the attribute value as a float value.Get the attribute value as an integer value.asLong()Get the attribute value as a long value.asString()Get the attribute value as a string value.edit()Obtain an editor that contains the same information as this attribute.static AttributeEditoreditor()Obtain an attribute editor that can be used to define an attribute.name()The attribute name.value()The attribute value.
-
Method Details
-
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 onBoolean.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
AttributeEditor edit()Obtain an editor that contains the same information as this attribute.- Returns:
- the editor; never null
-