liquibase.database.typeconversion.core
Class OracleTypeConverter

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

public class OracleTypeConverter
extends AbstractTypeConverter


Field Summary
 
Fields inherited from interface liquibase.servicelocator.PrioritizedService
PRIORITY_DATABASE, PRIORITY_DEFAULT
 
Constructor Summary
OracleTypeConverter()
           
 
Method Summary
 Object convertDatabaseValueToObject(Object defaultValue, int dataType, int columnSize, int decimalDigits, Database database)
           
protected  Object convertToCorrectObjectType(String value, int dataType, int columnSize, int decimalDigits, Database database)
           
 String convertToDatabaseTypeString(Column referenceColumn, Database database)
           
 BigIntType getBigIntType()
           
 BooleanType getBooleanType()
           
 CurrencyType getCurrencyType()
           
protected  DataType getDataType(String columnTypeString, Boolean autoIncrement, String dataTypeName, String precision, String additionalInformation)
          Extension of super.getDataType(String columnTypeString, Boolean autoIncrement, String dataTypeName, String precision)
Contains definition of Oracle's data-types
 DateTimeType getDateTimeType()
           
 DoubleType getDoubleType()
          Returns the actual database-specific data type to use for a "double" column.
 IntType getIntType()
          Returns the actual database-specific data type to use for a "int" column.
 NVarcharType getNVarcharType()
          Returns the actual database-specific data type to use for a "varchar" column.
 int getPriority()
           
 TimeType getTimeType()
          Returns the actual database-specific data type to use a "time" column.
 TinyIntType getTinyIntType()
          Returns the actual database-specific data type to use for a "tinyint" column.
 UUIDType getUUIDType()
           
 VarcharType getVarcharType()
          Returns the actual database-specific data type to use for a "varchar" column.
 boolean supports(Database database)
           
 
Methods inherited from class liquibase.database.typeconversion.core.AbstractTypeConverter
addPrecisionToType, getBlobType, getCharType, getClobType, getDataType, getDataType, getDataType, getDateType, getFloatType, getLongBlobType, getNumberType, getSmallIntType, getTextType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OracleTypeConverter

public OracleTypeConverter()
Method Detail

getPriority

public int getPriority()

supports

public boolean supports(Database database)

getDataType

protected DataType getDataType(String columnTypeString,
                               Boolean autoIncrement,
                               String dataTypeName,
                               String precision,
                               String additionalInformation)
Extension of super.getDataType(String columnTypeString, Boolean autoIncrement, String dataTypeName, String precision)
Contains definition of Oracle's data-types

Overrides:
getDataType in class AbstractTypeConverter

convertToDatabaseTypeString

public String convertToDatabaseTypeString(Column referenceColumn,
                                          Database database)
Specified by:
convertToDatabaseTypeString in interface TypeConverter
Overrides:
convertToDatabaseTypeString in class AbstractTypeConverter

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

convertToCorrectObjectType

protected Object convertToCorrectObjectType(String value,
                                            int dataType,
                                            int columnSize,
                                            int decimalDigits,
                                            Database database)
                                     throws ParseException
Overrides:
convertToCorrectObjectType in class AbstractTypeConverter
Throws:
ParseException

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

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

getDateTimeType

public DateTimeType getDateTimeType()
Specified by:
getDateTimeType in interface TypeConverter
Overrides:
getDateTimeType in class AbstractTypeConverter

getBigIntType

public BigIntType getBigIntType()
Specified by:
getBigIntType in interface TypeConverter
Overrides:
getBigIntType in class AbstractTypeConverter

getIntType

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

Specified by:
getIntType in interface TypeConverter
Overrides:
getIntType in class AbstractTypeConverter
Returns:
database-specific type for int

getVarcharType

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

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

getNVarcharType

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

Overrides:
getNVarcharType 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

getTinyIntType

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

Specified by:
getTinyIntType in interface TypeConverter
Overrides:
getTinyIntType in class AbstractTypeConverter
Returns:
database-specific type for tinyint


Copyright © 2012 Liquibase.org. All Rights Reserved.