org.hibernate.engine.internal
Class EntityEntryContext
java.lang.Object
org.hibernate.engine.internal.EntityEntryContext
public class EntityEntryContext
- extends Object
Defines a context for maintaining the relation between an entity associated with the Session ultimately owning this
EntityEntryContext instance and that entity's corresponding EntityEntry. 2 approaches are supported:
-
the entity->EntityEntry association is maintained in a Map within this class
-
the EntityEntry is injected into the entity via it implementing the
ManagedEntity
contract,
either directly or through bytecode enhancement.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EntityEntryContext
public EntityEntryContext()
addEntityEntry
public void addEntityEntry(Object entity,
EntityEntry entityEntry)
hasEntityEntry
public boolean hasEntityEntry(Object entity)
getEntityEntry
public EntityEntry getEntityEntry(Object entity)
removeEntityEntry
public EntityEntry removeEntityEntry(Object entity)
reentrantSafeEntityEntries
public Map.Entry<Object,EntityEntry>[] reentrantSafeEntityEntries()
clear
public void clear()
downgradeLocks
public void downgradeLocks()
serialize
public void serialize(ObjectOutputStream oos)
throws IOException
- Throws:
IOException
deserialize
public static EntityEntryContext deserialize(ObjectInputStream ois,
StatefulPersistenceContext rtn)
throws IOException,
ClassNotFoundException
- Throws:
IOException
ClassNotFoundException
getNumberOfManagedEntities
public int getNumberOfManagedEntities()
Copyright © 2001-2015 Red Hat, Inc. All Rights Reserved.