Package org.mariadb.jdbc.client
Enum DataType
- java.lang.Object
-
- java.lang.Enum<DataType>
-
- org.mariadb.jdbc.client.DataType
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
DataType.ColumnConstructor
-
Field Summary
Fields Modifier and Type Field Description private DataType.ColumnConstructor
columnConstructor
private int
mariadbType
(package private) static DataType[]
typeMap
private DataType.ColumnConstructor
unsignedColumnConstructor
-
Constructor Summary
Constructors Modifier Constructor Description private
DataType(int mariadbType, DataType.ColumnConstructor columnConstructor, DataType.ColumnConstructor unsignedColumnConstructor)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
get()
DataType.ColumnConstructor
getColumnConstructor()
DataType.ColumnConstructor
getUnsignedColumnConstructor()
static DataType
of(int typeValue)
static DataType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static DataType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
OLDDECIMAL
public static final DataType OLDDECIMAL
-
TINYINT
public static final DataType TINYINT
-
SMALLINT
public static final DataType SMALLINT
-
INTEGER
public static final DataType INTEGER
-
FLOAT
public static final DataType FLOAT
-
DOUBLE
public static final DataType DOUBLE
-
NULL
public static final DataType NULL
-
TIMESTAMP
public static final DataType TIMESTAMP
-
BIGINT
public static final DataType BIGINT
-
MEDIUMINT
public static final DataType MEDIUMINT
-
DATE
public static final DataType DATE
-
TIME
public static final DataType TIME
-
DATETIME
public static final DataType DATETIME
-
YEAR
public static final DataType YEAR
-
NEWDATE
public static final DataType NEWDATE
-
VARCHAR
public static final DataType VARCHAR
-
BIT
public static final DataType BIT
-
JSON
public static final DataType JSON
-
DECIMAL
public static final DataType DECIMAL
-
ENUM
public static final DataType ENUM
-
SET
public static final DataType SET
-
TINYBLOB
public static final DataType TINYBLOB
-
MEDIUMBLOB
public static final DataType MEDIUMBLOB
-
LONGBLOB
public static final DataType LONGBLOB
-
BLOB
public static final DataType BLOB
-
VARSTRING
public static final DataType VARSTRING
-
STRING
public static final DataType STRING
-
GEOMETRY
public static final DataType GEOMETRY
-
-
Field Detail
-
typeMap
static final DataType[] typeMap
-
mariadbType
private final int mariadbType
-
columnConstructor
private final DataType.ColumnConstructor columnConstructor
-
unsignedColumnConstructor
private final DataType.ColumnConstructor unsignedColumnConstructor
-
-
Constructor Detail
-
DataType
private DataType(int mariadbType, DataType.ColumnConstructor columnConstructor, DataType.ColumnConstructor unsignedColumnConstructor)
-
-
Method Detail
-
values
public static DataType[] 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 (DataType c : DataType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DataType valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
of
public static DataType of(int typeValue)
-
get
public int get()
-
getColumnConstructor
public DataType.ColumnConstructor getColumnConstructor()
-
getUnsignedColumnConstructor
public DataType.ColumnConstructor getUnsignedColumnConstructor()
-
-