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
Fields -
Constructor Summary
Constructors -
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:AttributeEditorGet the name of the attribute.- Specified by:
namein interfaceAttributeEditor- Returns:
- the attribute name; may be null if not set
-
value
Description copied from interface:AttributeEditorGet the value of the attribute.- Specified by:
valuein interfaceAttributeEditor- Returns:
- the attribute value; may be null if not set
-
asString
Description copied from interface:AttributeEditorGet the attribute value as a string value.- Specified by:
asStringin interfaceAttributeEditor- Returns:
- the attribute value converted to a
String, may be null
-
asInteger
Description copied from interface:AttributeEditorGet the attribute value as an integer value.- Specified by:
asIntegerin interfaceAttributeEditor- Returns:
- the attribute value converted to an
Integer, may be null
-
asLong
Description copied from interface:AttributeEditorGet the attribute value as a long value.- Specified by:
asLongin interfaceAttributeEditor- Returns:
- the attribute value converted to a
Long, may be null
-
asBoolean
Description copied from interface:AttributeEditorGet the attribute value as a boolean value. This conversion is based onBoolean.parseBoolean(String)semantics.- Specified by:
asBooleanin interfaceAttributeEditor- Returns:
- the attribute value converted to a
Boolean, may be null
-
asBigInteger
Description copied from interface:AttributeEditorGet the attribute value as a big integer value.- Specified by:
asBigIntegerin interfaceAttributeEditor- Returns:
- the attribute value converted to a
BigInteger, may be null
-
asBigDecimal
Description copied from interface:AttributeEditorGet the attribute value as a big decimal value.- Specified by:
asBigDecimalin interfaceAttributeEditor- Returns:
- the attribute value converted to a
BigDecimal, may be null
-
asFloat
Description copied from interface:AttributeEditorGet the attribute value as a float value.- Specified by:
asFloatin interfaceAttributeEditor- Returns:
- the attribute value converted to a
Float, may be null
-
asDouble
Description copied from interface:AttributeEditorGet the attribute value as a double value.- Specified by:
asDoublein interfaceAttributeEditor- Returns:
- the attribute value converted to a
Double, may be null
-
name
Description copied from interface:AttributeEditorSet the name of the attribute.- Specified by:
namein interfaceAttributeEditor- Parameters:
name- the attribute name- Returns:
- this editor so callers can chain methods together
-
value
Description copied from interface:AttributeEditorSet the value of the attribute.- Specified by:
valuein interfaceAttributeEditor- Parameters:
value- the attribute value- Returns:
- this editor so callers can chain methods together
-
create
Description copied from interface:AttributeEditorObtain 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:
createin interfaceAttributeEditor- Returns:
- the immutable attribute definition; never null
-
toString
-