public class DateTimeType extends LiquibaseDataType
Modifier and Type | Field and Description |
---|---|
protected static String |
SQL_DATETYPE_TIMESTAMP |
COMPARATOR, PRIORITY_DATABASE, PRIORITY_DEFAULT
Constructor and Description |
---|
DateTimeType() |
Modifier and Type | Method and Description |
---|---|
protected DateFormat |
getDateTimeFormat(Database database) |
LoadDataChange.LOAD_DATA_TYPE |
getLoadTypeName()
Returns one of the four basic data types for use in LoadData: BOOLEAN, NUMERIC, DATE or STRING
|
String |
objectToSql(Object value,
Database database)
Returns the value object in a format to include in SQL.
|
Object |
sqlToObject(String value,
Database database) |
DatabaseDataType |
toDatabaseDataType(Database database)
Transforms this data type into the native data type of the target DBMS.
|
addParameter, equals, finishInitialization, formatNumber, functionToSql, getAdditionalInformation, getAliases, getMaxParameters, getMinParameters, getName, getParameters, getPriority, getRawDefinition, hashCode, isAutoIncrement, isCurrentDateTimeFunction, numberToSql, otherToSql, setAdditionalInformation, supports, toString, validate
protected static final String SQL_DATETYPE_TIMESTAMP
public DatabaseDataType toDatabaseDataType(Database database)
LiquibaseDataType
toDatabaseDataType
in class LiquibaseDataType
database
- the Database
for which the native data type is to be constructedpublic String objectToSql(Object value, Database database)
LiquibaseDataType
objectToSql
in class LiquibaseDataType
public Object sqlToObject(String value, Database database)
sqlToObject
in class LiquibaseDataType
public LoadDataChange.LOAD_DATA_TYPE getLoadTypeName()
LiquibaseDataType
getLoadTypeName
in class LiquibaseDataType
protected DateFormat getDateTimeFormat(Database database)
Copyright © 2023 Liquibase.org. All rights reserved.