Package com.exasol.adapter.document.edml
Class ToDecimalMapping
- java.lang.Object
-
- com.exasol.adapter.document.edml.AbstractToColumnMapping
-
- com.exasol.adapter.document.edml.AbstractToNumberMapping
-
- com.exasol.adapter.document.edml.ToDecimalMapping
-
- All Implemented Interfaces:
MappingDefinition
public final class ToDecimalMapping extends AbstractToNumberMapping
Java representation of the EDMLtoDecimalMapping. Maps the selected document property to an ExasolDECIMALcolumn.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classToDecimalMapping.ToDecimalMappingBuilder<B extends ToDecimalMapping.ToDecimalMappingBuilder<B>>Builder forToDecimalMapping.-
Nested classes/interfaces inherited from class com.exasol.adapter.document.edml.AbstractToNumberMapping
AbstractToNumberMapping.AbstractToNumberMappingBuilder<C extends AbstractToNumberMapping,B extends AbstractToNumberMapping.AbstractToNumberMappingBuilder<C,B>>
-
Nested classes/interfaces inherited from class com.exasol.adapter.document.edml.AbstractToColumnMapping
AbstractToColumnMapping.AbstractToColumnMappingBuilder<C extends AbstractToColumnMapping,B extends AbstractToColumnMapping.AbstractToColumnMappingBuilder<C,B>>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(MappingDefinitionVisitor visitor)Accept aMappingDefinitionVisitor.static ToDecimalMapping.ToDecimalMappingBuilder<?>builder()Create a new builder forToDecimalMapping.booleanequals(Object obj)intgetDecimalPrecision()Get the precision of the ExasolDECIMALtype.intgetDecimalScale()Get the scale of the ExasolDECIMALtype.inthashCode()StringtoString()-
Methods inherited from class com.exasol.adapter.document.edml.AbstractToNumberMapping
getNotNumericBehaviour, getOverflowBehaviour
-
Methods inherited from class com.exasol.adapter.document.edml.AbstractToColumnMapping
getDescription, getDestinationName, getKey, isRequired
-
-
-
-
Method Detail
-
accept
public void accept(MappingDefinitionVisitor visitor)
Description copied from interface:MappingDefinitionAccept aMappingDefinitionVisitor.- Parameters:
visitor- visitor to accept
-
builder
public static ToDecimalMapping.ToDecimalMappingBuilder<?> builder()
Create a new builder forToDecimalMapping.- Returns:
- a new builder for
ToDecimalMapping
-
hashCode
public int hashCode()
- Overrides:
hashCodein classAbstractToNumberMapping
-
equals
public boolean equals(Object obj)
- Overrides:
equalsin classAbstractToNumberMapping
-
toString
public String toString()
- Overrides:
toStringin classAbstractToNumberMapping
-
getDecimalPrecision
public int getDecimalPrecision()
Get the precision of the ExasolDECIMALtype. Default: 18See the documentation about data types for details.
- Returns:
- the precision
-
getDecimalScale
public int getDecimalScale()
Get the scale of the ExasolDECIMALtype. Default: 0See the documentation about data types for details.
- Returns:
- decimal scale
-
-