|
||||||||||
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.GenericTypeConverter
public class GenericTypeConverter
Converts to and from generic SQL Types (types located in Types
). Conversion happens at
update and generate phases. All databases are supported because the idea is a generic type
that is a median type and can be used to convert between other types. For example, when exporting
from an Oracle database, can be converted to a MySQL database quickly.
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 | |
---|---|
GenericTypeConverter()
|
Method Summary | |
---|---|
liquibase.database.structure.type.BooleanType |
getBooleanType()
|
liquibase.database.structure.type.NumberType |
getNumberType()
|
int |
getPriority()
|
boolean |
supports(liquibase.database.Database database)
Supports all databases, so this always returns true |
Methods inherited from class liquibase.database.typeconversion.core.AbstractTypeConverter |
---|
addPrecisionToType, convertDatabaseValueToObject, convertToCorrectObjectType, convertToDatabaseTypeString, getBigIntType, getBlobType, getCharType, getClobType, getCurrencyType, getDataType, getDataType, getDataType, getDataType, getDateTimeType, getDateType, getDoubleType, getFloatType, getIntType, getLongBlobType, 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 |
Field Detail |
---|
protected static final List<Integer> oneParam
protected static final List<Integer> twoParams
Constructor Detail |
---|
public GenericTypeConverter()
Method Detail |
---|
public int getPriority()
public liquibase.database.structure.type.NumberType getNumberType()
getNumberType
in class liquibase.database.typeconversion.core.AbstractTypeConverter
public boolean supports(liquibase.database.Database database)
database
- (doesn't matter)
public liquibase.database.structure.type.BooleanType getBooleanType()
getBooleanType
in interface liquibase.database.typeconversion.TypeConverter
getBooleanType
in class liquibase.database.typeconversion.core.AbstractTypeConverter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |