Module io.ebean.api

Enum DbType

java.lang.Object
java.lang.Enum<DbType>
io.ebean.config.dbplatform.DbType
All Implemented Interfaces:
Serializable, Comparable<DbType>

public enum DbType extends Enum<DbType>
The known DB types that are mapped.

This includes extra types such as UUID, JSON, JSONB and HSTORE.

  • Enum Constant Details

    • BOOLEAN

      public static final DbType BOOLEAN
    • BIT

      public static final DbType BIT
    • INTEGER

      public static final DbType INTEGER
    • BIGINT

      public static final DbType BIGINT
    • SMALLINT

      public static final DbType SMALLINT
    • TINYINT

      public static final DbType TINYINT
    • REAL

      public static final DbType REAL
    • DOUBLE

      public static final DbType DOUBLE
    • DECIMAL

      public static final DbType DECIMAL
    • VARCHAR

      public static final DbType VARCHAR
    • CHAR

      public static final DbType CHAR
    • BLOB

      public static final DbType BLOB
    • CLOB

      public static final DbType CLOB
    • LONGVARBINARY

      public static final DbType LONGVARBINARY
    • LONGVARCHAR

      public static final DbType LONGVARCHAR
    • VARBINARY

      public static final DbType VARBINARY
    • BINARY

      public static final DbType BINARY
    • DATE

      public static final DbType DATE
    • TIME

      public static final DbType TIME
    • TIMESTAMP

      public static final DbType TIMESTAMP
    • ARRAY

      public static final DbType ARRAY
    • LOCALDATETIME

      public static final DbType LOCALDATETIME
    • UUID

      public static final DbType UUID
    • INET

      public static final DbType INET
    • CIDR

      public static final DbType CIDR
    • POINT

      public static final DbType POINT
    • POLYGON

      public static final DbType POLYGON
    • LINESTRING

      public static final DbType LINESTRING
    • MULTIPOINT

      public static final DbType MULTIPOINT
    • MULTILINESTRING

      public static final DbType MULTILINESTRING
    • MULTIPOLYGON

      public static final DbType MULTIPOLYGON
    • HSTORE

      public static final DbType HSTORE
    • JSON

      public static final DbType JSON
    • JSONB

      public static final DbType JSONB
    • JSONCLOB

      public static final DbType JSONCLOB
    • JSONBLOB

      public static final DbType JSONBLOB
    • JSONVARCHAR

      public static final DbType JSONVARCHAR
  • Method Details

    • values

      public static DbType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static DbType valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • id

      public int id()
      Return the JDBC java.sql.Types value.
    • createPlatformType

      public DbPlatformType createPlatformType()
      Create a platform type without scale or precision.