Class IdentityGeneratorEvent
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
io.hypersistence.optimizer.hibernate.event.mapping.identifier.IdentityGeneratorEvent
- All Implemented Interfaces:
Event,Serializable
The
IdentityGeneratorEvent indicates that the entity identifier
uses the GenerationType.IDENTITY strategy.- Since:
- 1.3.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
ConstructorsConstructorDescriptionIdentityGeneratorEvent(EntityMetadata entityMetadata, String entityAttribute, String identifierStrategy, boolean supportsSequences) Instantiate the event using the provided parameters.SQLServerDataSourceProvider -
Method Summary
Modifier and TypeMethodDescriptionGet theEvent.Priorityof thisEventbooleanDoes the database support sequences.Methods inherited from class io.hypersistence.optimizer.hibernate.event.mapping.identifier.PostInsertGeneratorEvent
getIdentifierStrategyMethods 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
-
IdentityGeneratorEvent
public IdentityGeneratorEvent(EntityMetadata entityMetadata, String entityAttribute, String identifierStrategy, boolean supportsSequences) Instantiate the event using the provided parameters.SQLServerDataSourceProvider- Parameters:
entityMetadata- entity metadataentityAttribute- entity attributeidentifierStrategy- identifier strategysupportsSequences- if the underlying database supports sequence objects
-
-
Method Details
-
isSequenceSupport
public boolean isSequenceSupport()Does the database support sequences.- Returns:
- database sequence support
-
getPriority
Get theEvent.Priorityof thisEvent- Specified by:
getPriorityin interfaceEvent- Overrides:
getPriorityin classPostInsertGeneratorEvent- Returns:
- the
Event.Priorityof thisEvent
-
getDescription
- Specified by:
getDescriptionin interfaceEvent- Overrides:
getDescriptionin classPostInsertGeneratorEvent- Returns:
- the
Stringdescription of thisEvent
-