Package com.exasol.adapter.document.edml
Class ToTimestampMapping
- java.lang.Object
-
- com.exasol.adapter.document.edml.AbstractToColumnMapping
-
- com.exasol.adapter.document.edml.ToTimestampMapping
-
- All Implemented Interfaces:
MappingDefinition
public final class ToTimestampMapping extends AbstractToColumnMapping
Java representation of the EDMLtoTimestampMapping. Maps the selected document property to an ExasolTIMESTAMPcolumn.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classToTimestampMapping.ToTimestampMappingBuilder<B extends ToTimestampMapping.ToTimestampMappingBuilder<B>>Builder forToTimestampMapping.-
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 ToTimestampMapping.ToTimestampMappingBuilder<?>builder()Create a new builder forToTimestampMapping.booleanequals(Object obj)ConvertableMappingErrorBehaviourgetNotTimestampBehavior()Get the behaviour to apply in case a value is not a timestamp.intgetSecondsPrecision()Get the precision for the seconds part of the timestamp.inthashCode()StringtoString()-
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 ToTimestampMapping.ToTimestampMappingBuilder<?> builder()
Create a new builder forToTimestampMapping.- Returns:
- a new builder for
ToTimestampMapping
-
hashCode
public int hashCode()
- Overrides:
hashCodein classAbstractToColumnMapping
-
equals
public boolean equals(Object obj)
- Overrides:
equalsin classAbstractToColumnMapping
-
toString
public String toString()
- Overrides:
toStringin classAbstractToColumnMapping
-
getNotTimestampBehavior
public ConvertableMappingErrorBehaviour getNotTimestampBehavior()
Get the behaviour to apply in case a value is not a timestamp.- Returns:
- behaviour to apply in case a value is not a timestamp
-
getSecondsPrecision
public int getSecondsPrecision()
Get the precision for the seconds part of the timestamp.- Returns:
- precision for the seconds part of the timestamp
-
-