liquibase.datatype.core
Class DateTimeType

java.lang.Object
  extended by liquibase.datatype.LiquibaseDataType
      extended by liquibase.datatype.core.DateTimeType
All Implemented Interfaces:
PrioritizedService
Direct Known Subclasses:
TimestampType

public class DateTimeType
extends LiquibaseDataType


Field Summary
 
Fields inherited from interface liquibase.servicelocator.PrioritizedService
PRIORITY_DATABASE, PRIORITY_DEFAULT
 
Constructor Summary
DateTimeType()
           
 
Method Summary
protected  DateFormat getDateTimeFormat(Database database)
           
 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)
           
 
Methods inherited from class liquibase.datatype.LiquibaseDataType
addParameter, equals, finishInitialization, getAdditionalInformation, getAliases, getMaxParameters, getMinParameters, getName, getParameters, getPriority, hashCode, isCurrentDateTimeFunction, setAdditionalInformation, supports, toString, validate
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DateTimeType

public DateTimeType()
Method Detail

toDatabaseDataType

public DatabaseDataType toDatabaseDataType(Database database)
Overrides:
toDatabaseDataType in class LiquibaseDataType

objectToSql

public String objectToSql(Object value,
                          Database database)
Description copied from class: LiquibaseDataType
Returns the value object in a format to include in SQL. Quote if necessary.

Overrides:
objectToSql in class LiquibaseDataType

sqlToObject

public Object sqlToObject(String value,
                          Database database)
Overrides:
sqlToObject in class LiquibaseDataType

getDateTimeFormat

protected DateFormat getDateTimeFormat(Database database)


Copyright © 2014 Liquibase.org. All Rights Reserved.