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 of LiquibaseDataType, which represents data types used in changeSets (which will later be translated into the RDBMS-specific data type if required).
  • Constructor Details

    • DatabaseDataType

      public DatabaseDataType(String type)
    • DatabaseDataType

      public DatabaseDataType(String name, Object... parameters)
  • Method Details

    • 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()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getType

      public String getType()
    • setType

      public void setType(String type)