liquibase.database.typeconversion.core
Class MSSQLTypeConverter
java.lang.Object
liquibase.database.typeconversion.core.AbstractTypeConverter
liquibase.database.typeconversion.core.MSSQLTypeConverter
- All Implemented Interfaces:
- TypeConverter, PrioritizedService
public class MSSQLTypeConverter
- extends AbstractTypeConverter
Method Summary |
java.lang.Object |
convertDatabaseValueToObject(java.lang.Object defaultValue,
int dataType,
int columnSize,
int decimalDigits,
Database database)
|
BlobType |
getBlobType()
|
BooleanType |
getBooleanType()
|
ClobType |
getClobType()
|
CurrencyType |
getCurrencyType()
|
DataType |
getDataType(java.lang.String columnTypeString,
java.lang.Boolean autoIncrement)
Returns the database-specific datatype for the given column configuration. |
protected DataType |
getDataType(java.lang.String columnTypeString,
java.lang.Boolean autoIncrement,
java.lang.String dataTypeName,
java.lang.String precision)
Extension of super.getDataType(String columnTypeString, Boolean autoIncrement, String dataTypeName, String precision)
Contains definition of Oracle's data-types |
DateType |
getDateType()
Returns the actual database-specific data type to use a "date" (no time information) column. |
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, getDoubleType, getFloatType, getIntType, getNumberType, getNVarcharType, getSmallIntType, getTinyIntType, getVarcharType |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MSSQLTypeConverter
public MSSQLTypeConverter()
getPriority
public int getPriority()
supports
public boolean supports(Database database)
convertDatabaseValueToObject
public java.lang.Object convertDatabaseValueToObject(java.lang.Object defaultValue,
int dataType,
int columnSize,
int decimalDigits,
Database database)
throws java.text.ParseException
- Specified by:
convertDatabaseValueToObject
in interface TypeConverter
- Overrides:
convertDatabaseValueToObject
in class AbstractTypeConverter
- Throws:
java.text.ParseException
getDataType
public DataType getDataType(java.lang.String columnTypeString,
java.lang.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(java.lang.String columnTypeString,
java.lang.Boolean autoIncrement,
java.lang.String dataTypeName,
java.lang.String precision)
- Extension of super.getDataType(String columnTypeString, Boolean autoIncrement, String dataTypeName, String precision)
Contains definition of Oracle's data-types
- 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
Copyright © 2010 Liquibase.org. All Rights Reserved.