public class DeleteEvent
extends org.springframework.context.ApplicationEvent
source
Constructor and Description |
---|
DeleteEvent(Key[] keysToDelete,
Class targetEntityClass,
Iterable targetIds,
Iterable targetEntities)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
Key[] |
getKeys()
Get the keys that were deleted in this operation.
|
Optional<Iterable> |
getOptionalTargetEntities()
Get thetarget entity objects deleted.
|
Optional<Class> |
getOptionalTargetEntityClass()
Get the target entity type deleted.
|
Optional<Iterable> |
getOptionalTargetIds()
Get the target entity ID values deleted.
|
int |
hashCode() |
getSource, toString
public DeleteEvent(Key[] keysToDelete, Class targetEntityClass, Iterable targetIds, Iterable targetEntities)
keysToDelete
- The keys that are deleted in this operation (never null
).targetEntityClass
- The target entity type deleted. This may be null
depending on
the specific delete operation.targetIds
- The target entity ID values deleted. This may be null
depending on the
specific delete operation.targetEntities
- The target entity objects deleted. This may be null
depending on
the specific delete operation.public Key[] getKeys()
public Optional<Class> getOptionalTargetEntityClass()
public Optional<Iterable> getOptionalTargetIds()
public Optional<Iterable> getOptionalTargetEntities()
Copyright © 2022. All rights reserved.