Enum EventType
- java.lang.Object
-
- java.lang.Enum<EventType>
-
- io.debezium.connector.oracle.logminer.events.EventType
-
- All Implemented Interfaces:
Serializable,Comparable<EventType>
public enum EventType extends Enum<EventType>
Represents all supported event types that are loaded from Oracle LogMiner.- Author:
- Chris Cranford
-
-
Enum Constant Summary
Enum Constants Enum Constant Description COMMITDDLDELETEINSERTLOB_ERASELOB_TRIMLOB_WRITEMISSING_SCNROLLBACKSELECT_LOB_LOCATORSTARTUNSUPPORTEDUPDATE
-
Constructor Summary
Constructors Modifier Constructor Description privateEventType(int value)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EventTypefrom(int value)Resolve an EventType from a numeric event type operation code.intgetValue()static EventTypevalueOf(String name)Returns the enum constant of this type with the specified name.static EventType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INSERT
public static final EventType INSERT
-
DELETE
public static final EventType DELETE
-
UPDATE
public static final EventType UPDATE
-
DDL
public static final EventType DDL
-
START
public static final EventType START
-
COMMIT
public static final EventType COMMIT
-
SELECT_LOB_LOCATOR
public static final EventType SELECT_LOB_LOCATOR
-
LOB_WRITE
public static final EventType LOB_WRITE
-
LOB_TRIM
public static final EventType LOB_TRIM
-
LOB_ERASE
public static final EventType LOB_ERASE
-
MISSING_SCN
public static final EventType MISSING_SCN
-
ROLLBACK
public static final EventType ROLLBACK
-
UNSUPPORTED
public static final EventType UNSUPPORTED
-
-
Field Detail
-
types
private static EventType[] types
-
value
private int value
-
-
Method Detail
-
values
public static EventType[] 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 (EventType c : EventType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EventType 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
-
getValue
public int getValue()
-
from
public static EventType from(int value)
Resolve an EventType from a numeric event type operation code.- Parameters:
value- the operation code- Returns:
- the event type, will be
UNSUPPORTEDif the code is not supported.
-
-