|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectliquibase.database.typeconversion.core.AbstractTypeConverter
public abstract class AbstractTypeConverter
Field Summary |
---|
Fields inherited from interface liquibase.servicelocator.PrioritizedService |
---|
PRIORITY_DATABASE, PRIORITY_DEFAULT |
Constructor Summary | |
---|---|
AbstractTypeConverter()
|
Method Summary | |
---|---|
protected void |
addPrecisionToType(java.lang.String precision,
DataType returnTypeName)
|
java.lang.Object |
convertDatabaseValueToObject(java.lang.Object value,
int databaseDataType,
int firstParameter,
int secondParameter,
Database database)
|
protected java.lang.Object |
convertToCorrectObjectType(java.lang.String value,
int dataType,
int columnSize,
int decimalDigits,
Database database)
|
java.lang.String |
convertToDatabaseTypeString(Column referenceColumn,
Database database)
|
BigIntType |
getBigIntType()
|
BlobType |
getBlobType()
|
BooleanType |
getBooleanType()
|
CharType |
getCharType()
Returns the actual database-specific data type to use for a "char" column. |
ClobType |
getClobType()
|
CurrencyType |
getCurrencyType()
|
DataType |
getDataType(ColumnConfig columnConfig)
|
DataType |
getDataType(java.lang.Object object)
|
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)
|
DateTimeType |
getDateTimeType()
|
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. |
FloatType |
getFloatType()
Returns the actual database-specific data type to use for a "float" column. |
IntType |
getIntType()
Returns the actual database-specific data type to use for a "int" column. |
NumberType |
getNumberType()
|
NVarcharType |
getNVarcharType()
Returns the actual database-specific data type to use for a "varchar" column. |
SmallIntType |
getSmallIntType()
|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface liquibase.database.typeconversion.TypeConverter |
---|
getPriority, supports |
Constructor Detail |
---|
public AbstractTypeConverter()
Method Detail |
---|
public java.lang.Object convertDatabaseValueToObject(java.lang.Object value, int databaseDataType, int firstParameter, int secondParameter, Database database) throws java.text.ParseException
convertDatabaseValueToObject
in interface TypeConverter
java.text.ParseException
public DataType getDataType(java.lang.Object object)
getDataType
in interface TypeConverter
protected java.lang.Object convertToCorrectObjectType(java.lang.String value, int dataType, int columnSize, int decimalDigits, Database database) throws java.text.ParseException
java.text.ParseException
public DataType getDataType(java.lang.String columnTypeString, java.lang.Boolean autoIncrement)
getDataType
in interface TypeConverter
protected DataType getDataType(java.lang.String columnTypeString, java.lang.Boolean autoIncrement, java.lang.String dataTypeName, java.lang.String precision)
protected void addPrecisionToType(java.lang.String precision, DataType returnTypeName) throws java.lang.NumberFormatException
java.lang.NumberFormatException
public DataType getDataType(ColumnConfig columnConfig)
getDataType
in interface TypeConverter
public DateType getDateType()
getDateType
in interface TypeConverter
public TimeType getTimeType()
getTimeType
in interface TypeConverter
public DateTimeType getDateTimeType()
getDateTimeType
in interface TypeConverter
public BigIntType getBigIntType()
getBigIntType
in interface TypeConverter
public CharType getCharType()
getCharType
in interface TypeConverter
public VarcharType getVarcharType()
getVarcharType
in interface TypeConverter
public NVarcharType getNVarcharType()
public FloatType getFloatType()
getFloatType
in interface TypeConverter
public DoubleType getDoubleType()
getDoubleType
in interface TypeConverter
public IntType getIntType()
getIntType
in interface TypeConverter
public TinyIntType getTinyIntType()
getTinyIntType
in interface TypeConverter
public SmallIntType getSmallIntType()
public BooleanType getBooleanType()
getBooleanType
in interface TypeConverter
public NumberType getNumberType()
public CurrencyType getCurrencyType()
getCurrencyType
in interface TypeConverter
public UUIDType getUUIDType()
getUUIDType
in interface TypeConverter
public ClobType getClobType()
getClobType
in interface TypeConverter
public BlobType getBlobType()
getBlobType
in interface TypeConverter
public java.lang.String convertToDatabaseTypeString(Column referenceColumn, Database database)
convertToDatabaseTypeString
in interface TypeConverter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |