|
||||||||||
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(String precision,
DataType returnTypeName)
|
Object |
convertDatabaseValueToObject(Object value,
int databaseDataType,
int firstParameter,
int secondParameter,
Database database)
|
protected Object |
convertToCorrectObjectType(String value,
int dataType,
int columnSize,
int decimalDigits,
Database database)
|
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(Object object)
|
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)
|
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. |
BlobType |
getLongBlobType()
|
NumberType |
getNumberType()
|
NVarcharType |
getNVarcharType()
Returns the actual database-specific data type to use for a "varchar" column. |
SmallIntType |
getSmallIntType()
|
TextType |
getTextType()
|
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 Object convertDatabaseValueToObject(Object value, int databaseDataType, int firstParameter, int secondParameter, Database database) throws ParseException
convertDatabaseValueToObject
in interface TypeConverter
ParseException
public DataType getDataType(Object object)
getDataType
in interface TypeConverter
protected Object convertToCorrectObjectType(String value, int dataType, int columnSize, int decimalDigits, Database database) throws ParseException
ParseException
public DataType getDataType(String columnTypeString, Boolean autoIncrement)
getDataType
in interface TypeConverter
protected DataType getDataType(String columnTypeString, Boolean autoIncrement, String dataTypeName, String precision, String additionalInformation)
protected void addPrecisionToType(String precision, DataType returnTypeName) throws NumberFormatException
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 TextType getTextType()
getTextType
in interface TypeConverter
public ClobType getClobType()
getClobType
in interface TypeConverter
public BlobType getBlobType()
getBlobType
in interface TypeConverter
public BlobType getLongBlobType()
getLongBlobType
in interface TypeConverter
public 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 |