liquibase.database.typeconversion.core
Class MSSQLTypeConverter

java.lang.Object
  extended by liquibase.database.typeconversion.core.AbstractTypeConverter
      extended by liquibase.database.typeconversion.core.MSSQLTypeConverter
All Implemented Interfaces:
TypeConverter, PrioritizedService

public class MSSQLTypeConverter
extends AbstractTypeConverter


Field Summary
 
Fields inherited from interface liquibase.servicelocator.PrioritizedService
PRIORITY_DATABASE, PRIORITY_DEFAULT
 
Constructor Summary
MSSQLTypeConverter()
           
 
Method Summary
 Object convertDatabaseValueToObject(Object defaultValue, int dataType, int columnSize, int decimalDigits, Database database)
           
 BlobType getBlobType()
           
 BooleanType getBooleanType()
           
 ClobType getClobType()
           
 CurrencyType getCurrencyType()
           
 DataType getDataType(String columnTypeString, Boolean autoIncrement)
          Returns the database-specific datatype for the given column configuration.
protected  DataType getDataType(String columnTypeString, Boolean autoIncrement, String dataTypeName, String precision, String additionalInformation)
           
 DateType getDateType()
          Returns the actual database-specific data type to use a "date" (no time information) column.
 DoubleType getDoubleType()
          Returns the actual database-specific data type to use for a "double" column.
 NumberType getNumberType()
           
 int getPriority()
           
 TimeType getTimeType()
          Returns the actual database-specific data type to use a "time" column.
 UUIDType getUUIDType()
           
 boolean supports(Database database)
           
 
Methods inherited from class liquibase.database.typeconversion.core.AbstractTypeConverter
addPrecisionToType, convertToCorrectObjectType, convertToDatabaseTypeString, getBigIntType, getCharType, getDataType, getDataType, getDateTimeType, getFloatType, getIntType, getLongBlobType, getNVarcharType, getSmallIntType, getTextType, getTinyIntType, getVarcharType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MSSQLTypeConverter

public MSSQLTypeConverter()
Method Detail

getPriority

public int getPriority()

supports

public boolean supports(Database database)

convertDatabaseValueToObject

public Object convertDatabaseValueToObject(Object defaultValue,
                                           int dataType,
                                           int columnSize,
                                           int decimalDigits,
                                           Database database)
                                    throws ParseException
Specified by:
convertDatabaseValueToObject in interface TypeConverter
Overrides:
convertDatabaseValueToObject in class AbstractTypeConverter
Throws:
ParseException

getDataType

public DataType getDataType(String columnTypeString,
                            Boolean autoIncrement)
Description copied from class: AbstractTypeConverter
Returns the database-specific datatype for the given column configuration. This method will convert some generic column types (e.g. boolean, currency) to the correct type for the current database.

Specified by:
getDataType in interface TypeConverter
Overrides:
getDataType in class AbstractTypeConverter

getDataType

protected DataType getDataType(String columnTypeString,
                               Boolean autoIncrement,
                               String dataTypeName,
                               String precision,
                               String additionalInformation)
Overrides:
getDataType in class AbstractTypeConverter

getDateType

public DateType getDateType()
Description copied from class: AbstractTypeConverter
Returns the actual database-specific data type to use a "date" (no time information) column.

Specified by:
getDateType in interface TypeConverter
Overrides:
getDateType in class AbstractTypeConverter

getTimeType

public TimeType getTimeType()
Description copied from class: AbstractTypeConverter
Returns the actual database-specific data type to use a "time" column.

Specified by:
getTimeType in interface TypeConverter
Overrides:
getTimeType in class AbstractTypeConverter

getBooleanType

public BooleanType getBooleanType()
Specified by:
getBooleanType in interface TypeConverter
Overrides:
getBooleanType in class AbstractTypeConverter

getCurrencyType

public CurrencyType getCurrencyType()
Specified by:
getCurrencyType in interface TypeConverter
Overrides:
getCurrencyType in class AbstractTypeConverter

getUUIDType

public UUIDType getUUIDType()
Specified by:
getUUIDType in interface TypeConverter
Overrides:
getUUIDType in class AbstractTypeConverter

getClobType

public ClobType getClobType()
Specified by:
getClobType in interface TypeConverter
Overrides:
getClobType in class AbstractTypeConverter

getBlobType

public BlobType getBlobType()
Specified by:
getBlobType in interface TypeConverter
Overrides:
getBlobType in class AbstractTypeConverter

getNumberType

public NumberType getNumberType()
Overrides:
getNumberType in class AbstractTypeConverter

getDoubleType

public DoubleType getDoubleType()
Description copied from class: AbstractTypeConverter
Returns the actual database-specific data type to use for a "double" column.

Specified by:
getDoubleType in interface TypeConverter
Overrides:
getDoubleType in class AbstractTypeConverter
Returns:
database-specific type for double


Copyright © 2012 Liquibase.org. All Rights Reserved.