|
||||||||||
| 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 TypeConverterParseExceptionpublic 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
NumberFormatExceptionpublic DataType getDataType(ColumnConfig columnConfig)
getDataType in interface TypeConverterpublic DateType getDateType()
getDateType in interface TypeConverterpublic TimeType getTimeType()
getTimeType in interface TypeConverterpublic DateTimeType getDateTimeType()
getDateTimeType in interface TypeConverterpublic BigIntType getBigIntType()
getBigIntType in interface TypeConverterpublic CharType getCharType()
getCharType in interface TypeConverterpublic VarcharType getVarcharType()
getVarcharType in interface TypeConverterpublic NVarcharType getNVarcharType()
public FloatType getFloatType()
getFloatType in interface TypeConverterpublic DoubleType getDoubleType()
getDoubleType in interface TypeConverterpublic IntType getIntType()
getIntType in interface TypeConverterpublic TinyIntType getTinyIntType()
getTinyIntType in interface TypeConverterpublic SmallIntType getSmallIntType()
public BooleanType getBooleanType()
getBooleanType in interface TypeConverterpublic NumberType getNumberType()
public CurrencyType getCurrencyType()
getCurrencyType in interface TypeConverterpublic UUIDType getUUIDType()
getUUIDType in interface TypeConverterpublic TextType getTextType()
getTextType in interface TypeConverterpublic ClobType getClobType()
getClobType in interface TypeConverterpublic BlobType getBlobType()
getBlobType in interface TypeConverterpublic 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 | |||||||||