Package liquibase.datatype.core
Class UnknownType
java.lang.Object
liquibase.datatype.LiquibaseDataType
liquibase.datatype.core.UnknownType
- All Implemented Interfaces:
PrioritizedService
Container for a data type that is not covered by any implementation in
liquibase.datatype.core. Most often,
this class is used when a DBMS-specific data type is given of which Liquibase does not know anything about yet.-
Field Summary
Fields inherited from interface liquibase.servicelocator.PrioritizedService
COMPARATOR, PRIORITY_DATABASE, PRIORITY_DEFAULT -
Constructor Summary
ConstructorsConstructorDescriptionUnknownType(String name) UnknownType(String name, int minParameters, int maxParameters) -
Method Summary
Modifier and TypeMethodDescriptionReturns one of the four basic data types for use in LoadData: BOOLEAN, NUMERIC, DATE or STRINGbooleanobjectToSql(Object value, Database database) Returns the value object in a format to include in SQL.voidsetAutoIncrement(boolean autoIncrement) toDatabaseDataType(Database database) Transforms this data type into the native data type of the target DBMS.Methods inherited from class liquibase.datatype.LiquibaseDataType
addParameter, equals, finishInitialization, formatNumber, functionToSql, getAdditionalInformation, getAliases, getMaxParameters, getMinParameters, getName, getParameters, getPriority, getRawDefinition, hashCode, isCurrentDateTimeFunction, numberToSql, otherToSql, setAdditionalInformation, sqlToObject, supports, toString, validate
-
Constructor Details
-
UnknownType
public UnknownType() -
UnknownType
-
UnknownType
-
-
Method Details
-
isAutoIncrement
public boolean isAutoIncrement()- Overrides:
isAutoIncrementin classLiquibaseDataType
-
setAutoIncrement
public void setAutoIncrement(boolean autoIncrement) -
toDatabaseDataType
Description copied from class:LiquibaseDataTypeTransforms this data type into the native data type of the target DBMS.- Overrides:
toDatabaseDataTypein classLiquibaseDataType- Parameters:
database- theDatabasefor which the native data type is to be constructed- Returns:
- the new, native data type
-
objectToSql
Description copied from class:LiquibaseDataTypeReturns the value object in a format to include in SQL. Quote if necessary.- Overrides:
objectToSqlin classLiquibaseDataType
-
getLoadTypeName
Description copied from class:LiquibaseDataTypeReturns one of the four basic data types for use in LoadData: BOOLEAN, NUMERIC, DATE or STRING- Specified by:
getLoadTypeNamein classLiquibaseDataType- Returns:
- one of the above Strings
-