|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectliquibase.database.typeconversion.core.AbstractTypeConverter
liquibase.database.typeconversion.ext.AbstractTypeConverter
public abstract class AbstractTypeConverter
Field Summary | |
---|---|
protected static List<Integer> |
oneParam
|
protected static List<Integer> |
twoParams
|
Fields inherited from interface liquibase.servicelocator.PrioritizedService |
---|
PRIORITY_DATABASE, PRIORITY_DEFAULT |
Constructor Summary | |
---|---|
AbstractTypeConverter()
|
Method Summary | |
---|---|
Object |
convertDatabaseValueToObject(Object value,
int databaseDataType,
int firstParameter,
int secondParameter,
liquibase.database.Database database)
|
String |
convertToDatabaseTypeString(liquibase.database.structure.Column referenceColumn,
liquibase.database.Database database)
|
protected liquibase.database.structure.type.DataType |
getDataType(String columnTypeString,
Boolean autoIncrement,
String dataTypeName,
String precision,
String additionalInformation)
|
int |
getPriority()
|
protected String |
getSqlTypeName(int type)
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. |
Methods inherited from class liquibase.database.typeconversion.core.AbstractTypeConverter |
---|
addPrecisionToType, convertToCorrectObjectType, getBigIntType, getBlobType, getBooleanType, getCharType, getClobType, getCurrencyType, getDataType, getDataType, getDataType, getDateTimeType, getDateType, getDoubleType, getFloatType, getIntType, getLongBlobType, getNumberType, getNVarcharType, getSmallIntType, getTextType, getTimeType, getTinyIntType, getUUIDType, getVarcharType |
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 |
---|
getBigIntType, getBlobType, getBooleanType, getCharType, getClobType, getCurrencyType, getDataType, getDataType, getDataType, getDateTimeType, getDateType, getDoubleType, getFloatType, getIntType, getLongBlobType, getTextType, getTimeType, getTinyIntType, getUUIDType, getVarcharType, supports |
Field Detail |
---|
protected static final List<Integer> oneParam
protected static final List<Integer> twoParams
Constructor Detail |
---|
public AbstractTypeConverter()
Method Detail |
---|
public int getPriority()
getPriority
in interface liquibase.database.typeconversion.TypeConverter
getPriority
in interface liquibase.servicelocator.PrioritizedService
public Object convertDatabaseValueToObject(Object value, int databaseDataType, int firstParameter, int secondParameter, liquibase.database.Database database) throws ParseException
convertDatabaseValueToObject
in interface liquibase.database.typeconversion.TypeConverter
convertDatabaseValueToObject
in class liquibase.database.typeconversion.core.AbstractTypeConverter
ParseException
public String convertToDatabaseTypeString(liquibase.database.structure.Column referenceColumn, liquibase.database.Database database)
convertToDatabaseTypeString
in interface liquibase.database.typeconversion.TypeConverter
convertToDatabaseTypeString
in class liquibase.database.typeconversion.core.AbstractTypeConverter
protected String getSqlTypeName(int type) throws Exception
Types
to a String
value
that can be used in an SQL statement. Example output:
type
- int value found in
Exception
protected liquibase.database.structure.type.DataType getDataType(String columnTypeString, Boolean autoIncrement, String dataTypeName, String precision, String additionalInformation)
getDataType
in class liquibase.database.typeconversion.core.AbstractTypeConverter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |