Package io.ebean.config.dbplatform
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 Summary
Enum Constants Enum Constant Description ARRAYBIGINTBINARYBITBLOBBOOLEANCHARCIDRCLOBDATEDECIMALDOUBLEHSTOREINETINTEGERJSONJSONBJSONBLOBJSONCLOBJSONVARCHARLINESTRINGLONGVARBINARYLONGVARCHARMULTILINESTRINGMULTIPOINTMULTIPOLYGONPOINTPOLYGONREALSMALLINTTIMETIMESTAMPTINYINTUUIDVARBINARYVARCHAR
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DbPlatformTypecreatePlatformType()Create a platform type without scale or precision.intid()Return the JDBC java.sql.Types value.static DbTypevalueOf(String name)Returns the enum constant of this type with the specified name.static DbType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LONGVARBINARY
public static final DbType LONGVARBINARY
-
LONGVARCHAR
public static final DbType LONGVARCHAR
-
LINESTRING
public static final DbType LINESTRING
-
MULTIPOINT
public static final DbType MULTIPOINT
-
MULTILINESTRING
public static final DbType MULTILINESTRING
-
MULTIPOLYGON
public static final DbType MULTIPOLYGON
-
JSONVARCHAR
public static final DbType JSONVARCHAR
-
-
Method Detail
-
values
public static DbType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (DbType c : DbType.values()) System.out.println(c);
- 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 nameNullPointerException- 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.
-
-