Class KeyValueEvent.BeforeUpdateEvent<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.BeforeUpdateEvent<T>
- Type Parameters:
T
-
- All Implemented Interfaces:
Serializable
- Enclosing class:
- KeyValueEvent<T>
KeyValueEvent
before 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 TypeMethodDescriptiongetKey()
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
-
BeforeUpdateEvent
-
-
Method Details
-
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:
-