org.hibernate.engine.spi.ManagedEntity contract,
either directly or through bytecode enhancement.
| Modifier and Type | Class and Description |
|---|---|
| public static interface | EntityEntryContext.EntityEntryCrossRef
Used in building the |
| private static class | EntityEntryContext.EntityEntryCrossRefImpl
Implementation of the EntityEntryCrossRef interface |
| private static class | |
| private static class | EntityEntryContext.ManagedEntityImpl
The wrapper for entity classes which do not implement ManagedEntity |
| Modifier and Type | Field and Description |
|---|---|
| private transient int | |
| private transient boolean | |
| private transient ManagedEntity | |
| private transient IdentityHashMap | |
| private static final CoreMessageLogger | |
| private transient IdentityHashMap | |
| private transient PersistenceContext | |
| private transient Map. | |
| private transient ManagedEntity |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | addEntityEntry(Object
The entity entity, EntityEntry The entry entityEntry)Adds the entity and entry to this context, associating them together |
| private void | |
| public void | |
| public static EntityEntryContext | Returns: The deserialized EntityEntryContextThe stream to read ourselves from ois, StatefulPersistenceContext The persistence context we belong to rtn)JDK serialization hook for deserializing |
| private static EntityEntry | deserializeEntityEntry(char[] entityEntryClassNameArr, ObjectInputStream ois, StatefulPersistenceContext rtn)
|
| public void | |
| private ManagedEntity | |
| public EntityEntry | Returns: The associated EntityEntryThe entity to retrieve the EntityEntry for entity)Retrieve the associated EntityEntry for the entity |
| public int | |
| public boolean | Returns: true if it is associated with this contextThe entity to check entity)Does this entity exist in this context, associated with an EntityEntry? |
| public Map. | Returns: The safe arrayThe main bugaboo with IdentityMap that warranted this class in the first place. |
| public EntityEntry | Returns: Tjee EntityEntryThe entity to remove entity)Remove an entity from the context, returning the EntityEntry which was associated with it |
| public void | serialize(ObjectOutputStream
The stream to write ourselves to oos)JDK serialization hook for serializing |
| count | back to summary |
|---|---|
| private transient int count | |
| dirty | back to summary |
|---|---|
| private transient boolean dirty | |
| head | back to summary |
|---|---|
| private transient ManagedEntity head | |
| immutableManagedEntityXref | back to summary |
|---|---|
| private transient IdentityHashMap<ManagedEntity, EntityEntryContext. | |
| log | back to summary |
|---|---|
| private static final CoreMessageLogger log | |
| nonEnhancedEntityXref | back to summary |
|---|---|
| private transient IdentityHashMap<Object, ManagedEntity> nonEnhancedEntityXref | |
| persistenceContext | back to summary |
|---|---|
| private transient PersistenceContext persistenceContext | |
| reentrantSafeEntries | back to summary |
|---|---|
private transient Map.
| |
| tail | back to summary |
|---|---|
| private transient ManagedEntity tail | |
| EntityEntryContext | back to summary |
|---|---|
| public EntityEntryContext(PersistenceContext persistenceContext) Constructs a EntityEntryContext | |
| addEntityEntry | back to summary |
|---|---|
| public void addEntityEntry(Object entity, EntityEntry entityEntry) Adds the entity and entry to this context, associating them together
| |
| checkNotAssociatedWithOtherPersistenceContextIfMutable | back to summary |
|---|---|
| private void checkNotAssociatedWithOtherPersistenceContextIfMutable(ManagedEntity managedEntity) | |
| clear | back to summary |
|---|---|
| public void clear() Clear this context of all managed entities | |
| deserialize | back to summary |
|---|---|
| public static EntityEntryContext deserialize(ObjectInputStream ois, StatefulPersistenceContext rtn) throws IOException, ClassNotFoundException JDK serialization hook for deserializing
| |
| deserializeEntityEntry | back to summary |
|---|---|
| private static EntityEntry deserializeEntityEntry(char[] entityEntryClassNameArr, ObjectInputStream ois, StatefulPersistenceContext rtn) | |
| downgradeLocks | back to summary |
|---|---|
| public void downgradeLocks() Down-grade locks to NONE for all entities in this context | |
| getAssociatedManagedEntity | back to summary |
|---|---|
| private ManagedEntity getAssociatedManagedEntity(Object entity) | |
| getEntityEntry | back to summary |
|---|---|
| public EntityEntry getEntityEntry(Object entity) Retrieve the associated EntityEntry for the entity
| |
| getNumberOfManagedEntities | back to summary |
|---|---|
| public int getNumberOfManagedEntities() | |
| hasEntityEntry | back to summary |
|---|---|
| public boolean hasEntityEntry(Object entity) Does this entity exist in this context, associated with an EntityEntry?
| |
| reentrantSafeEntityEntries | back to summary |
|---|---|
| public Map. The main bugaboo with IdentityMap that warranted this class in the first place. Return an array of all the entity/EntityEntry pairs in this context. The array is to make sure that the iterators built off of it are safe from concurrency/reentrancy
| |
| removeEntityEntry | back to summary |
|---|---|
| public EntityEntry removeEntityEntry(Object entity) Remove an entity from the context, returning the EntityEntry which was associated with it
| |
| serialize | back to summary |
|---|---|
| public void serialize(ObjectOutputStream oos) throws IOException JDK serialization hook for serializing
| |
reentrantSafeEntityEntries() entries
| Modifier and Type | Method and Description |
|---|---|
| public Object | |
| public EntityEntry | Returns: The EntityEntry associated with the entity in this contextThe associated EntityEntry |
| getEntity | back to summary |
|---|---|
| public Object getEntity() The entity
| |
| getEntityEntry | back to summary |
|---|---|
| public EntityEntry getEntityEntry() The associated EntityEntry
| |
| Modifier and Type | Field and Description |
|---|---|
| private final Object | |
| private EntityEntry |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public Object | getEntity()
Implements org. |
| public EntityEntry | getEntityEntry()
Implements org. |
| public Object | |
| public EntityEntry | |
| public EntityEntry | setValue(EntityEntry
new value to be stored in this entry entityEntry)Implements java. |
| entity | back to summary |
|---|---|
| private final Object entity | |
| entityEntry | back to summary |
|---|---|
| private EntityEntry entityEntry | |
| EntityEntryCrossRefImpl | back to summary |
|---|---|
| private EntityEntryCrossRefImpl(Object entity, EntityEntry entityEntry) | |
| getEntity | back to summary |
|---|---|
| public Object getEntity() Implements org. Doc from org. The entity | |
| getEntityEntry | back to summary |
|---|---|
| public EntityEntry getEntityEntry() Implements org. Doc from org. The associated EntityEntry
| |
| getKey | back to summary |
|---|---|
| public Object getKey() Implements java. Doc from java. Returns the key corresponding to this entry. | |
| getValue | back to summary |
|---|---|
| public EntityEntry getValue() Implements java. Doc from java. Returns the value corresponding to this entry. If the mapping
has been removed from the backing map (by the iterator's
| |
| setValue | back to summary |
|---|---|
| public EntityEntry setValue(EntityEntry entityEntry) Implements java. Doc from java. Replaces the value corresponding to this entry with the specified
value (optional operation). (Writes through to the map.) The
behavior of this call is undefined if the mapping has already been
removed from the map (by the iterator's
| |
| Modifier and Type | Field and Description |
|---|---|
| private ManagedEntity | |
| private ManagedEntity | |
| private ManagedEntity |
| Access | Constructor and Description |
|---|---|
| public |
| managedEntity | back to summary |
|---|---|
| private ManagedEntity managedEntity | |
| next | back to summary |
|---|---|
| private ManagedEntity next | |
| previous | back to summary |
|---|---|
| private ManagedEntity previous | |
| ImmutableManagedEntityHolder | back to summary |
|---|---|
| public ImmutableManagedEntityHolder(ManagedEntity immutableManagedEntity) | |
| $$_hibernate_getEntityEntry | back to summary |
|---|---|
| public EntityEntry $$_hibernate_getEntityEntry() Implements org. Doc from org. Provides access to the associated EntityEntry.
| |
| $$_hibernate_getEntityInstance | back to summary |
|---|---|
| public Object $$_hibernate_getEntityInstance() Implements org. Doc from org. Obtain a reference to the entity instance. | |
| $$_hibernate_getNextManagedEntity | back to summary |
|---|---|
| public ManagedEntity $$_hibernate_getNextManagedEntity() Implements org. Doc from org. Part of entry linking; obtain reference to the next entry. Can be
| |
| $$_hibernate_getPreviousManagedEntity | back to summary |
|---|---|
| public ManagedEntity $$_hibernate_getPreviousManagedEntity() Implements org. Doc from org. Part of entry linking; obtain reference to the previous entry. Can be
| |
| $$_hibernate_setEntityEntry | back to summary |
|---|---|
| public void $$_hibernate_setEntityEntry(EntityEntry entityEntry) Implements org. Doc from org. Injects the EntityEntry associated with this entity instance. The EntityEntry represents state associated with the entity in regards to its association with a Hibernate Session.
| |
| $$_hibernate_setNextManagedEntity | back to summary |
|---|---|
| public void $$_hibernate_setNextManagedEntity(ManagedEntity next) Implements org. Doc from org. Part of entry linking; sets the next entry. Again, can be
| |
| $$_hibernate_setPreviousManagedEntity | back to summary |
|---|---|
| public void $$_hibernate_setPreviousManagedEntity(ManagedEntity previous) Implements org. Doc from org. Part of entry linking; sets the previous entry. Again, can be
| |
| canClearEntityEntryReference | back to summary |
|---|---|
| private boolean canClearEntityEntryReference() | |
| Modifier and Type | Field and Description |
|---|---|
| private EntityEntry | |
| private final Object | |
| private ManagedEntity | |
| private ManagedEntity |
| Access | Constructor and Description |
|---|---|
| public |
| entityEntry | back to summary |
|---|---|
| private EntityEntry entityEntry | |
| entityInstance | back to summary |
|---|---|
| private final Object entityInstance | |
| next | back to summary |
|---|---|
| private ManagedEntity next | |
| previous | back to summary |
|---|---|
| private ManagedEntity previous | |
| ManagedEntityImpl | back to summary |
|---|---|
| public ManagedEntityImpl(Object entityInstance) | |
| $$_hibernate_getEntityEntry | back to summary |
|---|---|
| public EntityEntry $$_hibernate_getEntityEntry() Implements org. Doc from org. Provides access to the associated EntityEntry.
| |
| $$_hibernate_getEntityInstance | back to summary |
|---|---|
| public Object $$_hibernate_getEntityInstance() Implements org. Doc from org. Obtain a reference to the entity instance. | |
| $$_hibernate_getNextManagedEntity | back to summary |
|---|---|
| public ManagedEntity $$_hibernate_getNextManagedEntity() Implements org. Doc from org. Part of entry linking; obtain reference to the next entry. Can be
| |
| $$_hibernate_getPreviousManagedEntity | back to summary |
|---|---|
| public ManagedEntity $$_hibernate_getPreviousManagedEntity() Implements org. Doc from org. Part of entry linking; obtain reference to the previous entry. Can be
| |
| $$_hibernate_setEntityEntry | back to summary |
|---|---|
| public void $$_hibernate_setEntityEntry(EntityEntry entityEntry) Implements org. Doc from org. Injects the EntityEntry associated with this entity instance. The EntityEntry represents state associated with the entity in regards to its association with a Hibernate Session.
| |
| $$_hibernate_setNextManagedEntity | back to summary |
|---|---|
| public void $$_hibernate_setNextManagedEntity(ManagedEntity next) Implements org. Doc from org. Part of entry linking; sets the next entry. Again, can be
| |
| $$_hibernate_setPreviousManagedEntity | back to summary |
|---|---|
| public void $$_hibernate_setPreviousManagedEntity(ManagedEntity previous) Implements org. Doc from org. Part of entry linking; sets the previous entry. Again, can be
| |