Class ManagedEntityEvent
java.lang.Object
io.hypersistence.optimizer.core.event.AbstractEvent
io.hypersistence.optimizer.hibernate.event.session.SessionEvent
io.hypersistence.optimizer.hibernate.event.session.ManagedEntityEvent
- All Implemented Interfaces:
Event,Serializable
- Direct Known Subclasses:
EntityAlreadyManagedEvent,OptimisticLockModeEvent,SecondaryQueryEntityFetchingEvent,TableRowAlreadyManagedEvent
The
ManagedEntityEvent indicates that the event
is specific to an entity managed by a given JPA EntityManager or
Hibernate Session.- Since:
- 2.5.0
- Author:
- Vlad Mihalcea
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.hypersistence.optimizer.core.event.Event
Event.Priority -
Method Summary
Modifier and TypeMethodDescriptionThe class of the entity that's already managed.The identifier of the entity that's already managed.protected StringGet the entity name.Methods inherited from class io.hypersistence.optimizer.core.event.AbstractEvent
getInfoUrlMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.hypersistence.optimizer.core.event.Event
getDescription, getPriority
-
Method Details
-
getEntityClass
The class of the entity that's already managed.- Returns:
- class of the entity that's already managed
-
getEntityName
Get the entity name.- Returns:
- entity name
-
getEntityIdentifier
The identifier of the entity that's already managed.- Returns:
- identifier of the entity that's already managed
-