Package org.neo4j.cdc.client.model
Class EntityEvent<T extends State>
- java.lang.Object
-
- org.neo4j.cdc.client.model.EntityEvent<T>
-
- Type Parameters:
T- type of state information
- All Implemented Interfaces:
Event
- Direct Known Subclasses:
NodeEvent,RelationshipEvent
public abstract class EntityEvent<T extends State> extends Object implements Event
Describes a change event related to a node or a relationship.- See Also:
NodeState,RelationshipState
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedEntityEvent(String elementId, EventType eventType, EntityOperation operation, T before, T after)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)TgetAfter()The state of the entity after the change.TgetBefore()The state of the entity before the change.StringgetElementId()The elementId of the changed entity (node or relationship).EventTypegetEventType()Type of the changed entity.EntityOperationgetOperation()Type of the operation.inthashCode()
-
-
-
Constructor Detail
-
EntityEvent
protected EntityEvent(String elementId, EventType eventType, EntityOperation operation, T before, T after)
-
-
Method Detail
-
getElementId
public String getElementId()
The elementId of the changed entity (node or relationship).- Returns:
- element id
-
getEventType
public EventType getEventType()
Type of the changed entity.- Specified by:
getEventTypein interfaceEvent- Returns:
- event type
-
getOperation
public EntityOperation getOperation()
Type of the operation.- Returns:
- operation type
-
getBefore
public T getBefore()
The state of the entity before the change.- Returns:
- state
-
getAfter
public T getAfter()
The state of the entity after the change.- Returns:
- state
-
-