Class KeyValueEvent.AfterUpdateEvent<T>
java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
org.springframework.data.keyvalue.core.event.KeyValueEvent<T>
org.springframework.data.keyvalue.core.event.KeyValueEvent.AfterUpdateEvent<T>
- Type Parameters:
T
-
- All Implemented Interfaces:
Serializable
- Enclosing class:
- KeyValueEvent<T>
KeyValueEvent
after updating an object by with a given key.- Author:
- Christoph Strobl
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.springframework.data.keyvalue.core.event.KeyValueEvent
KeyValueEvent.AfterDeleteEvent<T>, KeyValueEvent.AfterDropKeySpaceEvent<T>, KeyValueEvent.AfterGetEvent<T>, KeyValueEvent.AfterInsertEvent<T>, KeyValueEvent.AfterUpdateEvent<T>, KeyValueEvent.BeforeDeleteEvent<T>, KeyValueEvent.BeforeDropKeySpaceEvent<T>, KeyValueEvent.BeforeGetEvent<T>, KeyValueEvent.BeforeInsertEvent<T>, KeyValueEvent.BeforeUpdateEvent<T>
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionafter()
Get the current value.before()
Get the value before update.getKey()
Get the value of the element theKeyValueEvent
refers to.getType()
Get the type of the element theKeyValueEvent
refers to.Methods inherited from class org.springframework.data.keyvalue.core.event.KeyValueEvent
afterDelete, afterDropKeySpace, afterGet, afterInsert, afterUpdate, beforeDelete, beforeDropKeySpace, beforeGet, beforeInsert, beforeUpdate, getKeyspace, toString
Methods inherited from class org.springframework.context.ApplicationEvent
getTimestamp
-
Constructor Details
-
AfterUpdateEvent
-
-
Method Details
-
before
Get the value before update. Can be null.- Returns:
-
after
Get the current value.- Returns:
- can be null.
-
getPayload
Get the value of the element theKeyValueEvent
refers to. Can be null.- Returns:
-
getKey
-
getSource
- Overrides:
getSource
in classEventObject
-
getType
Get the type of the element theKeyValueEvent
refers to.- Returns:
-