public class UnknownType extends LiquibaseDataType
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.COMPARATOR, PRIORITY_DATABASE, PRIORITY_DEFAULT
Constructor and Description |
---|
UnknownType() |
UnknownType(String name) |
UnknownType(String name,
int minParameters,
int maxParameters) |
Modifier and Type | Method and Description |
---|---|
LoadDataChange.LOAD_DATA_TYPE |
getLoadTypeName()
Returns one of the four basic data types for use in LoadData: BOOLEAN, NUMERIC, DATE or STRING
|
boolean |
isAutoIncrement() |
String |
objectToSql(Object value,
Database database)
Returns the value object in a format to include in SQL.
|
void |
setAutoIncrement(boolean autoIncrement) |
DatabaseDataType |
toDatabaseDataType(Database database)
Transforms this data type into the native data type of the target DBMS.
|
addParameter, equals, finishInitialization, formatNumber, functionToSql, getAdditionalInformation, getAliases, getMaxParameters, getMinParameters, getName, getParameters, getPriority, getRawDefinition, hashCode, isCurrentDateTimeFunction, numberToSql, otherToSql, setAdditionalInformation, sqlToObject, supports, toString, validate
public UnknownType()
public UnknownType(String name)
public UnknownType(String name, int minParameters, int maxParameters)
public boolean isAutoIncrement()
public void setAutoIncrement(boolean autoIncrement)
public DatabaseDataType toDatabaseDataType(Database database)
LiquibaseDataType
toDatabaseDataType
in class LiquibaseDataType
database
- the Database
for which the native data type is to be constructedpublic String objectToSql(Object value, Database database)
LiquibaseDataType
objectToSql
in class LiquibaseDataType
public LoadDataChange.LOAD_DATA_TYPE getLoadTypeName()
LiquibaseDataType
getLoadTypeName
in class LiquibaseDataType
Copyright © 2019 Liquibase.org. All rights reserved.