Package liquibase.datatype.core
Class TimestampType
- java.lang.Object
-
- liquibase.datatype.LiquibaseDataType
-
- liquibase.datatype.core.DateTimeType
-
- liquibase.datatype.core.TimestampType
-
- All Implemented Interfaces:
PrioritizedService
public class TimestampType extends DateTimeType
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_TIMESTAMP
-
Fields inherited from interface liquibase.servicelocator.PrioritizedService
COMPARATOR, PRIORITY_DATABASE, PRIORITY_DEFAULT
-
-
Constructor Summary
Constructors Constructor Description TimestampType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LoadDataChange.LOAD_DATA_TYPE
getLoadTypeName()
Returns one of the four basic data types for use in LoadData: BOOLEAN, NUMERIC, DATE or STRINGDatabaseDataType
toDatabaseDataType(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, sqlToObject
-
Methods 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
-
-
-
-
Method Detail
-
toDatabaseDataType
public DatabaseDataType toDatabaseDataType(Database database)
Returns a DBMS-specific String representation of this TimestampType for use in SQL statements.- Overrides:
toDatabaseDataType
in classDateTimeType
- Parameters:
database
- the database for which the String must be generated- Returns:
- a String with the DBMS-specific type specification
-
getLoadTypeName
public LoadDataChange.LOAD_DATA_TYPE getLoadTypeName()
Description copied from class:LiquibaseDataType
Returns one of the four basic data types for use in LoadData: BOOLEAN, NUMERIC, DATE or STRING- Overrides:
getLoadTypeName
in classDateTimeType
- Returns:
- one of the above Strings
-
-