liquibase.database.typeconversion.ext
Class OracleTypeConverter
java.lang.Object
liquibase.database.typeconversion.core.AbstractTypeConverter
liquibase.database.typeconversion.core.OracleTypeConverter
liquibase.database.typeconversion.ext.OracleTypeConverter
- All Implemented Interfaces:
- liquibase.database.typeconversion.TypeConverter, liquibase.servicelocator.PrioritizedService
public class OracleTypeConverter
- extends liquibase.database.typeconversion.core.OracleTypeConverter
- Author:
- Leo Przybylski
Fields inherited from interface liquibase.servicelocator.PrioritizedService |
PRIORITY_DATABASE, PRIORITY_DEFAULT |
Methods inherited from class liquibase.database.typeconversion.core.OracleTypeConverter |
convertToCorrectObjectType, getBigIntType, getBooleanType, getCurrencyType, getDateTimeType, getDoubleType, getIntType, getNVarcharType, getTimeType, getTinyIntType, getUUIDType, getVarcharType, supports |
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 |
oneParam
protected static final List<Integer> oneParam
twoParams
protected static final List<Integer> twoParams
OracleTypeConverter
public OracleTypeConverter()
getPriority
public int getPriority()
- Specified by:
getPriority
in interface liquibase.database.typeconversion.TypeConverter
- Specified by:
getPriority
in interface liquibase.servicelocator.PrioritizedService
- Overrides:
getPriority
in class liquibase.database.typeconversion.core.OracleTypeConverter
convertDatabaseValueToObject
public Object convertDatabaseValueToObject(Object value,
int databaseDataType,
int firstParameter,
int secondParameter,
liquibase.database.Database database)
throws ParseException
- Specified by:
convertDatabaseValueToObject
in interface liquibase.database.typeconversion.TypeConverter
- Overrides:
convertDatabaseValueToObject
in class liquibase.database.typeconversion.core.OracleTypeConverter
- Throws:
ParseException
convertToDatabaseTypeString
public String convertToDatabaseTypeString(liquibase.database.structure.Column referenceColumn,
liquibase.database.Database database)
- Specified by:
convertToDatabaseTypeString
in interface liquibase.database.typeconversion.TypeConverter
- Overrides:
convertToDatabaseTypeString
in class liquibase.database.typeconversion.core.OracleTypeConverter
getSqlTypeName
protected String getSqlTypeName(int type)
throws Exception
- Convert the type value gotten from the metadata which is a value from
Types
to a String
value
that can be used in an SQL statement. Example output:
- java.sql.Types.DECIMAL(25,0)
- java.sql.Types.BIGINT
- java.sql.Types.VARCHAR(255)
- Parameters:
type
- int value found in
- Returns:
- String value including package of the type name.
- Throws:
Exception
getDataType
protected liquibase.database.structure.type.DataType getDataType(String columnTypeString,
Boolean autoIncrement,
String dataTypeName,
String precision,
String additionalInformation)
- Overrides:
getDataType
in class liquibase.database.typeconversion.core.OracleTypeConverter
Copyright © 2011 Leo Przybylski. All Rights Reserved.