Enum Class EventDeserializer.CompatibilityMode
java.lang.Object
java.lang.Enum<EventDeserializer.CompatibilityMode>
com.github.shyiko.mysql.binlog.event.deserialization.EventDeserializer.CompatibilityMode
- All Implemented Interfaces:
Serializable,Comparable<EventDeserializer.CompatibilityMode>,Constable
- Enclosing class:
EventDeserializer
public static enum EventDeserializer.CompatibilityMode
extends Enum<EventDeserializer.CompatibilityMode>
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionReturn CHAR/VARCHAR/BINARY/VARBINARY values as byte[]|s (instead of String|s).Return DATETIME/DATETIME_V2/TIMESTAMP/TIMESTAMP_V2/DATE/TIME/TIME_V2 values as long|s (number of milliseconds since the epoch (00:00:00 Coordinated Universal Time (UTC), Thursday, 1 January 1970, not counting leap seconds)) (instead of java.util.Date/java.sql.Timestamp/java.sql.Date/new java.sql.Time).Same asDATE_AND_TIME_AS_LONGbut values are returned in microseconds.Return TINY/SHORT/INT24/LONG/LONGLONG values as byte[]|s (instead of int|s).Return Long.MIN_VALUE instead of null if year/month/day is 0.Deprecated.Return 0 instead of null if year/month/day is 0. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static EventDeserializer.CompatibilityMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DATE_AND_TIME_AS_LONG
Return DATETIME/DATETIME_V2/TIMESTAMP/TIMESTAMP_V2/DATE/TIME/TIME_V2 values as long|s (number of milliseconds since the epoch (00:00:00 Coordinated Universal Time (UTC), Thursday, 1 January 1970, not counting leap seconds)) (instead of java.util.Date/java.sql.Timestamp/java.sql.Date/new java.sql.Time).This option is going to be enabled by default starting from mysql-binlog-connector-java@1.0.0.
-
DATE_AND_TIME_AS_LONG_MICRO
Same asDATE_AND_TIME_AS_LONGbut values are returned in microseconds. -
INVALID_DATE_AND_TIME_AS_ZERO
Return 0 instead of null if year/month/day is 0. Affects DATETIME/DATETIME_V2/DATE/TIME/TIME_V2. -
INVALID_DATE_AND_TIME_AS_NEGATIVE_ONE
Deprecated.Return -1 instead of null if year/month/day is 0. Affects DATETIME/DATETIME_V2/DATE/TIME/TIME_V2. -
INVALID_DATE_AND_TIME_AS_MIN_VALUE
Return Long.MIN_VALUE instead of null if year/month/day is 0. Affects DATETIME/DATETIME_V2/DATE/TIME/TIME_V2. -
CHAR_AND_BINARY_AS_BYTE_ARRAY
Return CHAR/VARCHAR/BINARY/VARBINARY values as byte[]|s (instead of String|s).This option is going to be enabled by default starting from mysql-binlog-connector-java@1.0.0.
-
INTEGER_AS_BYTE_ARRAY
Return TINY/SHORT/INT24/LONG/LONGLONG values as byte[]|s (instead of int|s).
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-