Package liquibase.datatype.core
Class TimestampType
java.lang.Object
liquibase.datatype.LiquibaseDataType
liquibase.datatype.core.DateTimeType
liquibase.datatype.core.TimestampType
- All Implemented Interfaces:
PrioritizedService
- Direct Known Subclasses:
TimestampTypeSnowflake
Data type support for TIMESTAMP data types in various DBMS. All DBMS are at least expected to support the
year, month, day, hour, minute and second parts. Optionally, fractional seconds and time zone information can be
specified as well.
-
Field Summary
Fields inherited from class liquibase.datatype.core.DateTimeType
SQL_DATETYPE_TIMESTAMPFields inherited from interface liquibase.servicelocator.PrioritizedService
COMPARATOR, PRIORITY_DATABASE, PRIORITY_DEFAULT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns one of the four basic data types for use in LoadData: BOOLEAN, NUMERIC, DATE or STRINGtoDatabaseDataType(Database database) Returns a DBMS-specific String representation of this TimestampType for use in SQL statements.Methods inherited from class liquibase.datatype.core.DateTimeType
getDateTimeFormat, objectToSql, sqlToObjectMethods inherited from class liquibase.datatype.LiquibaseDataType
addParameter, equals, finishInitialization, formatNumber, functionToSql, getAdditionalInformation, getAliases, getMaxParameters, getMinParameters, getName, getParameters, getPriority, getRawDefinition, hashCode, isAutoIncrement, isCurrentDateTimeFunction, numberToSql, otherToSql, setAdditionalInformation, supports, toString, validate
-
Constructor Details
-
TimestampType
public TimestampType()
-
-
Method Details
-
toDatabaseDataType
Returns a DBMS-specific String representation of this TimestampType for use in SQL statements.- Overrides:
toDatabaseDataTypein classDateTimeType- Parameters:
database- the database for which the String must be generated- Returns:
- a String with the DBMS-specific type specification
-
getLoadTypeName
Description copied from class:LiquibaseDataTypeReturns one of the four basic data types for use in LoadData: BOOLEAN, NUMERIC, DATE or STRING- Overrides:
getLoadTypeNamein classDateTimeType- Returns:
- one of the above Strings
-