Package io.debezium.relational
Class AttributeEditorImpl
java.lang.Object
io.debezium.relational.AttributeEditorImpl
- All Implemented Interfaces:
AttributeEditor
Implementation of the
AttributeEditor
contract.- Author:
- Chris Cranford
-
Field Summary
-
Constructor Summary
-
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.create()
Obtain an immutable attribute definition representing the current state of this editor.name()
Get the name of the attribute.Set the name of the attribute.toString()
value()
Get the value of the attribute.Set the value of the attribute.
-
Field Details
-
name
-
value
-
-
Constructor Details
-
AttributeEditorImpl
protected AttributeEditorImpl()
-
-
Method Details
-
name
Description copied from interface:AttributeEditor
Get the name of the attribute.- Specified by:
name
in interfaceAttributeEditor
- Returns:
- the attribute name; may be null if not set
-
value
Description copied from interface:AttributeEditor
Get the value of the attribute.- Specified by:
value
in interfaceAttributeEditor
- Returns:
- the attribute value; may be null if not set
-
asString
Description copied from interface:AttributeEditor
Get the attribute value as a string value.- Specified by:
asString
in interfaceAttributeEditor
- Returns:
- the attribute value converted to a
String
, may be null
-
asInteger
Description copied from interface:AttributeEditor
Get the attribute value as an integer value.- Specified by:
asInteger
in interfaceAttributeEditor
- Returns:
- the attribute value converted to an
Integer
, may be null
-
asLong
Description copied from interface:AttributeEditor
Get the attribute value as a long value.- Specified by:
asLong
in interfaceAttributeEditor
- Returns:
- the attribute value converted to a
Long
, may be null
-
asBoolean
Description copied from interface:AttributeEditor
Get the attribute value as a boolean value. This conversion is based onBoolean.parseBoolean(String)
semantics.- Specified by:
asBoolean
in interfaceAttributeEditor
- Returns:
- the attribute value converted to a
Boolean
, may be null
-
asBigInteger
Description copied from interface:AttributeEditor
Get the attribute value as a big integer value.- Specified by:
asBigInteger
in interfaceAttributeEditor
- Returns:
- the attribute value converted to a
BigInteger
, may be null
-
asBigDecimal
Description copied from interface:AttributeEditor
Get the attribute value as a big decimal value.- Specified by:
asBigDecimal
in interfaceAttributeEditor
- Returns:
- the attribute value converted to a
BigDecimal
, may be null
-
asFloat
Description copied from interface:AttributeEditor
Get the attribute value as a float value.- Specified by:
asFloat
in interfaceAttributeEditor
- Returns:
- the attribute value converted to a
Float
, may be null
-
asDouble
Description copied from interface:AttributeEditor
Get the attribute value as a double value.- Specified by:
asDouble
in interfaceAttributeEditor
- Returns:
- the attribute value converted to a
Double
, may be null
-
name
Description copied from interface:AttributeEditor
Set the name of the attribute.- Specified by:
name
in interfaceAttributeEditor
- Parameters:
name
- the attribute name- Returns:
- this editor so callers can chain methods together
-
value
Description copied from interface:AttributeEditor
Set the value of the attribute.- Specified by:
value
in interfaceAttributeEditor
- Parameters:
value
- the attribute value- Returns:
- this editor so callers can chain methods together
-
create
Description copied from interface:AttributeEditor
Obtain an immutable attribute definition representing the current state of this editor. Typically, an editor is created and used to build an attribute, and then discarded. However, this editor with its current state can be reused after this method, since the resulting attribute definition no longer refers to any of the data used in this editor.- Specified by:
create
in interfaceAttributeEditor
- Returns:
- the immutable attribute definition; never null
-
toString
-