Package org.mariadb.r2dbc.util
Enum MariadbType
- java.lang.Object
-
- java.lang.Enum<MariadbType>
-
- org.mariadb.r2dbc.util.MariadbType
-
- All Implemented Interfaces:
io.r2dbc.spi.Type,Serializable,Comparable<MariadbType>
public enum MariadbType extends Enum<MariadbType> implements io.r2dbc.spi.Type
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Codec<?>getDefaultCodec()Class<?>getJavaType()StringgetName()static MariadbTypevalueOf(String name)Returns the enum constant of this type with the specified name.static MariadbType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TINYINT
public static final MariadbType TINYINT
-
UNSIGNED_TINYINT
public static final MariadbType UNSIGNED_TINYINT
-
SMALLINT
public static final MariadbType SMALLINT
-
UNSIGNED_SMALLINT
public static final MariadbType UNSIGNED_SMALLINT
-
INTEGER
public static final MariadbType INTEGER
-
UNSIGNED_INTEGER
public static final MariadbType UNSIGNED_INTEGER
-
FLOAT
public static final MariadbType FLOAT
-
DOUBLE
public static final MariadbType DOUBLE
-
BIGINT
public static final MariadbType BIGINT
-
UNSIGNED_BIGINT
public static final MariadbType UNSIGNED_BIGINT
-
TIME
public static final MariadbType TIME
-
TIMESTAMP
public static final MariadbType TIMESTAMP
-
DATE
public static final MariadbType DATE
-
BIT
public static final MariadbType BIT
-
BOOLEAN
public static final MariadbType BOOLEAN
-
BYTES
public static final MariadbType BYTES
-
BLOB
public static final MariadbType BLOB
-
VARCHAR
public static final MariadbType VARCHAR
-
CLOB
public static final MariadbType CLOB
-
BINARY
public static final MariadbType BINARY
-
DECIMAL
public static final MariadbType DECIMAL
-
-
Method Detail
-
values
public static MariadbType[] 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 (MariadbType c : MariadbType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MariadbType 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
-
getJavaType
public Class<?> getJavaType()
- Specified by:
getJavaTypein interfaceio.r2dbc.spi.Type
-
getName
public String getName()
- Specified by:
getNamein interfaceio.r2dbc.spi.Type
-
getDefaultCodec
public Codec<?> getDefaultCodec()
-
-