Package org.hibernate.engine.internal
Class EntityEntryExtraStateHolder
- java.lang.Object
-
- org.hibernate.engine.internal.EntityEntryExtraStateHolder
-
- All Implemented Interfaces:
EntityEntryExtraState
public class EntityEntryExtraStateHolder extends Object implements EntityEntryExtraState
Contains optional state fromEntityEntry
.
-
-
Constructor Summary
Constructors Constructor Description EntityEntryExtraStateHolder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addExtraState(EntityEntryExtraState extraState)
Attach additional state to the core state ofEntityEntry
Object[]
getDeletedState()
<T extends EntityEntryExtraState>
TgetExtraState(Class<T> extraStateType)
Retrieve additional state by class type or null if no extra state of that type is present.void
setDeletedState(Object[] deletedState)
-
-
-
Method Detail
-
getDeletedState
public Object[] getDeletedState()
-
setDeletedState
public void setDeletedState(Object[] deletedState)
-
addExtraState
public void addExtraState(EntityEntryExtraState extraState)
Description copied from interface:EntityEntryExtraState
Attach additional state to the core state ofEntityEntry
Implementations must delegate to the next state or add it as next state if last in line.
- Specified by:
addExtraState
in interfaceEntityEntryExtraState
-
getExtraState
public <T extends EntityEntryExtraState> T getExtraState(Class<T> extraStateType)
Description copied from interface:EntityEntryExtraState
Retrieve additional state by class type or null if no extra state of that type is present.Implementations must return self if they match or delegate discovery to the next state in line.
- Specified by:
getExtraState
in interfaceEntityEntryExtraState
-
-