Enum ColumnType
- java.lang.Object
-
- java.lang.Enum<ColumnType>
-
- com.github.shyiko.mysql.binlog.event.deserialization.ColumnType
-
- All Implemented Interfaces:
Serializable,Comparable<ColumnType>
public enum ColumnType extends Enum<ColumnType>
- Author:
- Stanley Shyiko
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ColumnTypebyCode(int code)intgetCode()static ColumnTypevalueOf(String name)Returns the enum constant of this type with the specified name.static ColumnType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DECIMAL
public static final ColumnType DECIMAL
-
TINY
public static final ColumnType TINY
-
SHORT
public static final ColumnType SHORT
-
LONG
public static final ColumnType LONG
-
FLOAT
public static final ColumnType FLOAT
-
DOUBLE
public static final ColumnType DOUBLE
-
NULL
public static final ColumnType NULL
-
TIMESTAMP
public static final ColumnType TIMESTAMP
-
LONGLONG
public static final ColumnType LONGLONG
-
INT24
public static final ColumnType INT24
-
DATE
public static final ColumnType DATE
-
TIME
public static final ColumnType TIME
-
DATETIME
public static final ColumnType DATETIME
-
YEAR
public static final ColumnType YEAR
-
NEWDATE
public static final ColumnType NEWDATE
-
VARCHAR
public static final ColumnType VARCHAR
-
BIT
public static final ColumnType BIT
-
TIMESTAMP_V2
public static final ColumnType TIMESTAMP_V2
-
DATETIME_V2
public static final ColumnType DATETIME_V2
-
TIME_V2
public static final ColumnType TIME_V2
-
JSON
public static final ColumnType JSON
-
NEWDECIMAL
public static final ColumnType NEWDECIMAL
-
ENUM
public static final ColumnType ENUM
-
SET
public static final ColumnType SET
-
TINY_BLOB
public static final ColumnType TINY_BLOB
-
MEDIUM_BLOB
public static final ColumnType MEDIUM_BLOB
-
LONG_BLOB
public static final ColumnType LONG_BLOB
-
BLOB
public static final ColumnType BLOB
-
VAR_STRING
public static final ColumnType VAR_STRING
-
STRING
public static final ColumnType STRING
-
GEOMETRY
public static final ColumnType GEOMETRY
-
-
Method Detail
-
values
public static ColumnType[] 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 (ColumnType c : ColumnType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ColumnType 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
-
getCode
public int getCode()
-
byCode
public static ColumnType byCode(int code)
-
-