Class PostInsertGeneratorEvent
java.lang.Object
io.hypersistence.optimizer.core.event.AbstractEvent
io.hypersistence.optimizer.hibernate.event.mapping.EntityMappingEvent
io.hypersistence.optimizer.hibernate.event.mapping.EntityAttributeMappingEvent
io.hypersistence.optimizer.hibernate.event.mapping.identifier.PostInsertGeneratorEvent
- All Implemented Interfaces:
Event,Serializable
- Direct Known Subclasses:
IdentityGeneratorEvent
The
PostInsertGeneratorEvent indicates that the entity identifier
uses a post-insert identifier generator like GenerationType.IDENTITY
or the Hibernate SelectGenerator.- Since:
- 1.0.0
- Author:
- Vlad Mihalcea
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.hypersistence.optimizer.core.event.Event
Event.Priority -
Constructor Summary
ConstructorsConstructorDescriptionPostInsertGeneratorEvent(EntityMetadata entityMetadata, String entityAttribute, String identifierStrategy) Instantiate the event using the provided parameters. -
Method Summary
Modifier and TypeMethodDescriptionGet the identifier strategy.Get theEvent.Priorityof thisEventMethods inherited from class io.hypersistence.optimizer.hibernate.event.mapping.EntityAttributeMappingEvent
getEntityAttributeMethods inherited from class io.hypersistence.optimizer.hibernate.event.mapping.EntityMappingEvent
getEntityClass, getEntityNameMethods inherited from class io.hypersistence.optimizer.core.event.AbstractEvent
getInfoUrl
-
Constructor Details
-
PostInsertGeneratorEvent
public PostInsertGeneratorEvent(EntityMetadata entityMetadata, String entityAttribute, String identifierStrategy) Instantiate the event using the provided parameters.- Parameters:
entityMetadata- entity metadataentityAttribute- entity attributeidentifierStrategy- identifier strategy
-
-
Method Details
-
getIdentifierStrategy
Get the identifier strategy.- Returns:
- identifier strategy
-
getPriority
Get theEvent.Priorityof thisEvent- Returns:
- the
Event.Priorityof thisEvent
-
getDescription
-