Record Class EntityMutationPlanContributor.UpdateContext
java.lang.Object
java.lang.Record
org.hibernate.action.queue.spi.decompose.entity.EntityMutationPlanContributor.UpdateContext
- Enclosing interface:
EntityMutationPlanContributor
public static record EntityMutationPlanContributor.UpdateContext(EntityPersister entityPersister, org.hibernate.action.internal.EntityUpdateAction action, int ordinalBase, SharedSessionContractImplementor session, DecompositionContext decompositionContext, Object entity, Object identifier, Object rowId, Object[] state, Object[] previousState, Object previousVersion, EntityEntry entityEntry, UpdateCacheHandling.CacheUpdate cacheUpdate)
extends Record
Context passed to update contribution hooks.
- Since:
- 8.0
-
Constructor Summary
ConstructorsConstructorDescriptionUpdateContext(EntityPersister entityPersister, org.hibernate.action.internal.EntityUpdateAction action, int ordinalBase, SharedSessionContractImplementor session, DecompositionContext decompositionContext, Object entity, Object identifier, Object rowId, Object[] state, Object[] previousState, Object previousVersion, EntityEntry entityEntry, UpdateCacheHandling.CacheUpdate cacheUpdate) Creates an instance of aUpdateContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionorg.hibernate.action.internal.EntityUpdateActionaction()Returns the value of theactionrecord component.Returns the value of thecacheUpdaterecord component.Returns the value of thedecompositionContextrecord component.entity()Returns the value of theentityrecord component.Returns the value of theentityEntryrecord component.Returns the value of theentityPersisterrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theidentifierrecord component.intReturns the value of theordinalBaserecord component.Object[]Returns the value of thepreviousStaterecord component.Returns the value of thepreviousVersionrecord component.rowId()Returns the value of therowIdrecord component.session()Returns the value of thesessionrecord component.Object[]state()Returns the value of thestaterecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
entityPersister
Returns the value of theentityPersisterrecord component.- Returns:
- the value of the
entityPersisterrecord component
-
action
public org.hibernate.action.internal.EntityUpdateAction action()Returns the value of theactionrecord component.- Returns:
- the value of the
actionrecord component
-
ordinalBase
public int ordinalBase()Returns the value of theordinalBaserecord component.- Returns:
- the value of the
ordinalBaserecord component
-
session
Returns the value of thesessionrecord component.- Returns:
- the value of the
sessionrecord component
-
decompositionContext
Returns the value of thedecompositionContextrecord component.- Returns:
- the value of the
decompositionContextrecord component
-
entity
Returns the value of theentityrecord component.- Returns:
- the value of the
entityrecord component
-
identifier
Returns the value of theidentifierrecord component.- Returns:
- the value of the
identifierrecord component
-
rowId
Returns the value of therowIdrecord component.- Returns:
- the value of the
rowIdrecord component
-
state
Returns the value of thestaterecord component.- Returns:
- the value of the
staterecord component
-
previousState
Returns the value of thepreviousStaterecord component.- Returns:
- the value of the
previousStaterecord component
-
previousVersion
Returns the value of thepreviousVersionrecord component.- Returns:
- the value of the
previousVersionrecord component
-
entityEntry
Returns the value of theentityEntryrecord component.- Returns:
- the value of the
entityEntryrecord component
-
cacheUpdate
Returns the value of thecacheUpdaterecord component.- Returns:
- the value of the
cacheUpdaterecord component
-