BeforeExecutionGenerator which delegates to a ValueGenerator.
Underlies the GeneratorType annotation.
| Modifier and Type | Field and Description |
|---|---|
| private final EnumSet | |
| private final ValueGenerator | generator
Deprecated
as a consequence of
ValueGenerator being deprecated.
|
| Access | Constructor and Description |
|---|---|
| public | VmValueGeneration(GeneratorType annotation)
Deprecated
as a consequence of
GeneratorType being deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
| public Object | generate(SharedSessionContractImplementor
The session from which the request originates. session, Object The instance of the object owning the attribute for which we are generating a value. owner, Object The current value assigned to the property, or currentValue, EventType nullThe type of event that has triggered generation of a new value eventType)Implements org. |
| public EnumSet | getEventTypes()
Implements org. |
| eventTypes | back to summary |
|---|---|
| private final EnumSet<EventType> eventTypes | |
| generator | back to summary |
|---|---|
| private final ValueGenerator<?> generator
Deprecated as a consequence of | |
| VmValueGeneration | back to summary |
|---|---|
| public VmValueGeneration(GeneratorType annotation)
Deprecated as a consequence of | |
| generate | back to summary |
|---|---|
| public Object generate(SharedSessionContractImplementor session, Object owner, Object currentValue, EventType eventType) Implements org. Doc from org. Generate a value.
| |
| getEventTypes | back to summary |
|---|---|
| public EnumSet Implements org. Doc from org. The event types for which this generator should be called to produce a new value.
Identifier generators must return | |