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, isCurrentDateTimeFunction, numberToSql, otherToSql, setAdditionalInformation, supports, toString, validateprotected static final String SQL_DATETYPE_TIMESTAMP
public DatabaseDataType toDatabaseDataType(Database database)
LiquibaseDataTypetoDatabaseDataType in class LiquibaseDataTypedatabase - the Database for which the native data type is to be constructedpublic String objectToSql(Object value, Database database)
LiquibaseDataTypeobjectToSql in class LiquibaseDataTypepublic Object sqlToObject(String value, Database database)
sqlToObject in class LiquibaseDataTypepublic LoadDataChange.LOAD_DATA_TYPE getLoadTypeName()
LiquibaseDataTypegetLoadTypeName in class LiquibaseDataTypeprotected DateFormat getDateTimeFormat(Database database)
Copyright © 2019 Liquibase.org. All rights reserved.