Package com.exasol.datatype.type
Class Timestamp
- java.lang.Object
-
- com.exasol.datatype.type.AbstractTimestampDataType
-
- com.exasol.datatype.type.Timestamp
-
- All Implemented Interfaces:
DataType
public class Timestamp extends AbstractTimestampDataType
This class implements the SQl data type timestamp
-
-
Field Summary
-
Fields inherited from class com.exasol.datatype.type.AbstractTimestampDataType
DEFAULT_FRACTIONAL_SECOND_PRECISION
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(ColumnDefinitionVisitor visitor)StringgetName()-
Methods inherited from class com.exasol.datatype.type.AbstractTimestampDataType
getPrecision
-
-
-
-
Constructor Detail
-
Timestamp
public Timestamp(int precision)
Create a new instance of aTimestampdata type- Parameters:
precision- fractional seconds precision
-
Timestamp
public Timestamp()
Create a new instance of aTimestampdata type with the default fractional seconds precision (3, i.e. millisecond precision)
-
-
Method Detail
-
getName
public String getName()
- Returns:
- SQL representation of data type name
-
accept
public void accept(ColumnDefinitionVisitor visitor)
- Parameters:
visitor- instance ofColumnDefinitionVisitor
-
-