public class DataTypeWrapper extends LiquibaseDataType
COMPARATOR, PRIORITY_DATABASE, PRIORITY_DEFAULT| Constructor and Description |
|---|
DataTypeWrapper(LiquibaseDataType originalType) |
| Modifier and Type | Method and Description |
|---|---|
void |
addParameter(Object value)
Adds an object to the list of this data type's parameters.
|
boolean |
equals(Object o) |
String[] |
getAliases() |
LoadDataChange.LOAD_DATA_TYPE |
getLoadTypeName()
Returns one of the four basic data types for use in LoadData: BOOLEAN, NUMERIC, DATE or STRING
|
int |
getMaxParameters(Database database) |
int |
getMinParameters(Database database) |
String |
getName() |
Object[] |
getParameters()
Returns an array with the parameters to the data type, e.g.
|
int |
getPriority() |
LiquibaseDataType |
getUnderlyingDataType() |
int |
hashCode() |
String |
objectToSql(Object value,
Database database)
Returns the value object in a format to include in SQL.
|
Object |
stringToObject(String value,
Database database) |
boolean |
supports(Database database) |
DatabaseDataType |
toDatabaseDataType(Database database)
Transforms this data type into the native data type of the target DBMS.
|
String |
toString() |
boolean |
validate(Database database)
Validates the correct state of this data type against a given database.
|
finishInitialization, formatNumber, functionToSql, getAdditionalInformation, getRawDefinition, isCurrentDateTimeFunction, numberToSql, otherToSql, setAdditionalInformation, sqlToObjectpublic DataTypeWrapper(LiquibaseDataType originalType)
public LiquibaseDataType getUnderlyingDataType()
public String getName()
getName in class LiquibaseDataTypepublic String[] getAliases()
getAliases in class LiquibaseDataTypepublic int getPriority()
getPriority in interface PrioritizedServicegetPriority in class LiquibaseDataTypepublic boolean supports(Database database)
supports in class LiquibaseDataTypepublic int getMinParameters(Database database)
getMinParameters in class LiquibaseDataTypepublic int getMaxParameters(Database database)
getMaxParameters in class LiquibaseDataTypepublic Object[] getParameters()
LiquibaseDataTypegetParameters in class LiquibaseDataTypepublic void addParameter(Object value)
LiquibaseDataTypeLiquibaseDataType.validate(Database) is called, because the number of
allowed parameters might differ between DBMS.addParameter in class LiquibaseDataTypevalue - the new value to add as parameter.public boolean validate(Database database)
LiquibaseDataTypevalidate in class LiquibaseDataTypedatabase - the database to validate againstpublic DatabaseDataType toDatabaseDataType(Database database)
LiquibaseDataTypetoDatabaseDataType in class LiquibaseDataTypedatabase - the Database for which the native data type is to be constructedpublic String objectToSql(Object value, Database database)
LiquibaseDataTypeobjectToSql in class LiquibaseDataTypepublic String toString()
toString in class LiquibaseDataTypepublic boolean equals(Object o)
equals in class LiquibaseDataTypepublic int hashCode()
hashCode in class LiquibaseDataTypepublic LoadDataChange.LOAD_DATA_TYPE getLoadTypeName()
LiquibaseDataTypegetLoadTypeName in class LiquibaseDataTypeCopyright © 2019 Liquibase.org. All rights reserved.