Package liquibase.datatype.core
Class DateTimeType
java.lang.Object
liquibase.datatype.LiquibaseDataType
liquibase.datatype.core.DateTimeType
- All Implemented Interfaces:
PrioritizedService
- Direct Known Subclasses:
TimestampType
-
Field Summary
Fields inherited from interface liquibase.servicelocator.PrioritizedService
COMPARATOR, PRIORITY_DATABASE, PRIORITY_DEFAULT
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected DateFormat
getDateTimeFormat
(Database database) Returns one of the four basic data types for use in LoadData: BOOLEAN, NUMERIC, DATE or STRINGobjectToSql
(Object value, Database database) Returns the value object in a format to include in SQL.sqlToObject
(String value, Database database) toDatabaseDataType
(Database database) Transforms this data type into the native data type of the target DBMS.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
-
Field Details
-
SQL_DATETYPE_TIMESTAMP
- See Also:
-
-
Constructor Details
-
DateTimeType
public DateTimeType()
-
-
Method Details
-
toDatabaseDataType
Description copied from class:LiquibaseDataType
Transforms this data type into the native data type of the target DBMS.- Overrides:
toDatabaseDataType
in classLiquibaseDataType
- Parameters:
database
- theDatabase
for which the native data type is to be constructed- Returns:
- the new, native data type
-
objectToSql
Description copied from class:LiquibaseDataType
Returns the value object in a format to include in SQL. Quote if necessary.- Overrides:
objectToSql
in classLiquibaseDataType
-
sqlToObject
- Overrides:
sqlToObject
in classLiquibaseDataType
-
getLoadTypeName
Description copied from class:LiquibaseDataType
Returns one of the four basic data types for use in LoadData: BOOLEAN, NUMERIC, DATE or STRING- Specified by:
getLoadTypeName
in classLiquibaseDataType
- Returns:
- one of the above Strings
-
getDateTimeFormat
-