com.github.shyiko.mysql.binlog.event.deserialization
Enum ColumnType

java.lang.Object
  extended by java.lang.Enum<ColumnType>
      extended by com.github.shyiko.mysql.binlog.event.deserialization.ColumnType
All Implemented Interfaces:
Serializable, Comparable<ColumnType>

public enum ColumnType
extends Enum<ColumnType>

Author:
Stanley Shyiko

Enum Constant Summary
BIT
           
BLOB
           
DATE
           
DATETIME
           
DATETIME_V2
           
DECIMAL
           
DOUBLE
           
ENUM
           
FLOAT
           
GEOMETRY
           
INT24
           
JSON
           
LONG
           
LONG_BLOB
           
LONGLONG
           
MEDIUM_BLOB
           
NEWDATE
           
NEWDECIMAL
           
NULL
           
SET
           
SHORT
           
STRING
           
TIME
           
TIME_V2
           
TIMESTAMP
           
TIMESTAMP_V2
           
TINY
           
TINY_BLOB
           
VAR_STRING
           
VARCHAR
           
YEAR
           
 
Method Summary
static ColumnType byCode(int code)
           
 int getCode()
           
static ColumnType valueOf(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.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

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 name
NullPointerException - if the argument is null

getCode

public int getCode()

byCode

public static ColumnType byCode(int code)


Copyright © 2016. All Rights Reserved.