Class TableGeneratorEvent
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.TableGeneratorEvent
- All Implemented Interfaces:
Event,Serializable
The
TableGeneratorEvent indicates that the entity identifier
uses the GenerationType.TABLE generator.- 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
ConstructorsConstructorDescriptionTableGeneratorEvent(EntityMetadata entityMetadata, String entityAttribute, boolean sequenceSupport) Instantiate the event using the provided parameters. -
Method Summary
Modifier and TypeMethodDescriptionGet theEvent.Priorityof thisEventbooleanDoes the database support sequences.Methods 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
-
TableGeneratorEvent
public TableGeneratorEvent(EntityMetadata entityMetadata, String entityAttribute, boolean sequenceSupport) Instantiate the event using the provided parameters.- Parameters:
entityMetadata- entity metadataentityAttribute- entity attributesequenceSupport- 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- Returns:
- the
Event.Priorityof thisEvent
-
getDescription
-