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 void
addAdditionalInformation(String additionalInformation)
String
getType()
boolean
isAutoIncrement()
Mainly for postgres, check if the column is a serial data type.void
setType(String type)
String
toSql()
String
toString()
-
-
-
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)
-
-