Class 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 Detail

      • DatabaseDataType

        public DatabaseDataType​(String type)
      • DatabaseDataType

        public DatabaseDataType​(String name,
                                Object... parameters)
    • 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)