Package liquibase.datatype
Class DatabaseDataType
- java.lang.Object
-
- liquibase.datatype.DatabaseDataType
-
public class DatabaseDataType extends Object
This class represents a native data type used by a specific RDBMS. This is in contrast ofLiquibaseDataType, which represents data types used in changeSets (which will later be translated into the RDBMS-specific data type if required).
-
-
Constructor Summary
Constructors Constructor Description DatabaseDataType(String type)DatabaseDataType(String name, Object... parameters)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAdditionalInformation(String additionalInformation)StringgetType()booleanisAutoIncrement()Mainly for postgres, check if the column is a serial data type.voidsetType(String type)StringtoSql()StringtoString()
-
-
-
Method Detail
-
addAdditionalInformation
public void addAdditionalInformation(String additionalInformation)
-
isAutoIncrement
public boolean isAutoIncrement()
Mainly for postgres, check if the column is a serial data type.- Returns:
- Whether the type is serial
-
toSql
public String toSql()
-
getType
public String getType()
-
setType
public void setType(String type)
-
-