| Modifier and Type | Field and Description |
|---|---|
| private Map | |
| private BatchFetchQueue | |
| private int | |
| private Map | |
| private Map | |
| private boolean | |
| private Map | |
| private Map | |
| private Map | |
| private Map | |
| private boolean | |
| private boolean | |
| private static final int | |
| private HashMap | |
| private LoadContexts | |
| private int | |
| private static final Logger | |
| public static final Object | |
| private List | |
| private HashSet | |
| private HashSet | |
| private Map | |
| private Map | |
| private static final Logger | |
| private SessionImplementor | |
| private Map |
| Access | Constructor and Description |
|---|---|
| public | StatefulPersistenceContext(SessionImplementor
The session "owning" this context. session)Constructs a PersistentContext, bound to the given session. |
| Modifier and Type | Method and Description |
|---|---|
| public void | addChildParent(Object child, Object parent)
Implements org. |
| private void | addCollection(PersistentCollection
The collection for which we are adding an entry. coll, CollectionEntry The entry representing the collection. entry, Serializable The key of the collection's entry. key)Add an collection to the cache, with a given collection entry. |
| private void | addCollection(PersistentCollection
The collection for which we are adding an entry. collection, CollectionPersister The collection persister persister)Add a collection to the cache, creating a new collection entry for it |
| public void | addCollectionHolder(PersistentCollection holder)
Implements org. |
| public void | addEntity(EntityKey key, Object entity)
Implements org. |
| public void | addEntity(EntityUniqueKey euk, Object entity)
Implements org. |
| public EntityEntry | addEntity(final Object entity, final Status status, final Object[] loadedState, final EntityKey entityKey, final Object version, final LockMode lockMode, final boolean existsInDatabase, final EntityPersister persister, final boolean disableVersionIncrement, boolean lazyPropertiesAreUnfetched)
Implements org. |
| public EntityEntry | addEntry(final Object entity, final Status status, final Object[] loadedState, final Object rowId, final Serializable id, final Object version, final LockMode lockMode, final boolean existsInDatabase, final EntityPersister persister, final boolean disableVersionIncrement, boolean lazyPropertiesAreUnfetched)
Implements org. |
| public CollectionEntry | addInitializedCollection(CollectionPersister persister, PersistentCollection collection, Serializable id)
Implements org. |
| public void | addInitializedDetachedCollection(CollectionPersister collectionPersister, PersistentCollection collection)
Implements org. |
| public void | addNewCollection(CollectionPersister persister, PersistentCollection
The collection to be associated with the persistence context collection)Implements org. |
| public void | addNonLazyCollection(PersistentCollection collection)
Implements org. |
| public void | addNullProperty(EntityKey ownerKey, String propertyName)
Implements org. |
| public void | addProxy(EntityKey key, Object proxy)
Implements org. |
| public void | addUninitializedCollection(CollectionPersister persister, PersistentCollection collection, Serializable id)
Implements org. |
| public void | addUninitializedDetachedCollection(CollectionPersister persister, PersistentCollection collection)
Implements org. |
| public void | addUnownedCollection(CollectionKey key, PersistentCollection collection)
Implements org. |
| public void | afterLoad()
Implements org. |
| public void | afterTransactionCompletion()
Implements org. |
| public void | beforeLoad()
Implements org. |
| public void | checkUniqueness(EntityKey key, Object
The entity reference against which to perform the uniqueness check. object)Implements org. |
| private void | |
| public void | clear()
Implements org. |
| private void | |
| public boolean | containsCollection(PersistentCollection collection)
Implements org. |
| public boolean | containsEntity(EntityKey key)
Implements org. |
| public boolean | containsProxy(Object entity)
Implements org. |
| public int | decrementCascadeLevel()
Implements org. |
| public static StatefulPersistenceContext | |
| public BatchFetchQueue | getBatchFetchQueue()
Implements org. |
| public Object[] | Returns: The cached snapshotThe entity key for which to retrieve the cached snapshot key)Implements org. |
| public int | getCascadeLevel()
Implements org. |
| public PersistentCollection | getCollection(CollectionKey collectionKey)
Implements org. |
| public Map | getCollectionEntries()
Implements org. |
| public CollectionEntry | getCollectionEntry(PersistentCollection coll)
Implements org. |
| public CollectionEntry | getCollectionEntryOrNull(Object collection)
Implements org. |
| public PersistentCollection | getCollectionHolder(Object array)
Implements org. |
| public Object | getCollectionOwner(Serializable key, CollectionPersister collectionPersister)
Implements org. |
| public Map | getCollectionsByKey()
Implements org. |
| public Object[] | getDatabaseSnapshot(Serializable id, EntityPersister persister)
Implements org. |
| public Map | getEntitiesByKey()
Implements org. |
| public Object | getEntity(EntityKey key)
Implements org. |
| public Object | getEntity(EntityUniqueKey euk)
Implements org. |
| public Map | getEntityEntries()
Implements org. |
| public EntityEntry | Returns: The EntityEntry for the given entity.The entity for which to locate the EntityEntry. entity)Implements org. |
| public Object | getIndexInOwner(String entity, String property, Object childEntity, Map<K, V> mergeMap)
Implements org. |
| private Object | getIndexInParent(String property, Object childEntity, EntityPersister persister, CollectionPersister collectionPersister, Object potentialParent)
|
| public LoadContexts | getLoadContexts()
Implements org. |
| public Serializable | Returns: the owner ID if available from the collection's loaded key; otherwise, returns nullThe persistent collection collection)Implements org. |
| private Serializable | Returns: the owner ID if available from the collection's loaded key; otherwise, returns nullThe collection entry ce)Get the ID for the entity that owned this persistent collection when it was loaded |
| public Object | Returns: the owner, if its entity ID is available from the collection's loaded key and the owner entity is in the persistence context; otherwise, returns nullThe persistent collection collection)Implements org. |
| public Object[] | getNaturalIdSnapshot(Serializable id, EntityPersister persister)
Implements org. |
| public HashSet | getNullifiableEntityKeys()
Implements org. |
| public Serializable | Returns: The id of the entityName instance which is said to own the child; null if an appropriate owner not located.The entity name for the entity type which would own the child entityName, String The name of the property on the owning entity type which would name this child association. propertyName, Object The child entity instance for which to locate the owner instance id. childEntity, Map<K, V> A map of non-persistent instances from an on-going merge operation (possibly null). mergeMap)Implements org. |
| public Map | |
| public Object | getProxy(EntityKey key)
Implements org. |
| public SessionImplementor | getSession()
Implements org. |
| public Serializable | getSnapshot(PersistentCollection coll)
Implements org. |
| public boolean | |
| public int | incrementCascadeLevel()
Implements org. |
| public void | initializeNonLazyCollections()
Implements org. |
| private void | |
| public boolean | isDefaultReadOnly()
Implements org. |
| public boolean | isEntryFor(Object entity)
Implements org. |
| public boolean | isFlushing()
Implements org. |
| private boolean | isFoundInParent(String property, Object childEntity, EntityPersister persister, CollectionPersister collectionPersister, Object potentialParent)
|
| public boolean | isLoadFinished()
Implements org. |
| public boolean | isPropertyNull(EntityKey ownerKey, String propertyName)
Implements org. |
| public boolean | isReadOnly(Object entityOrProxy)
Implements org. |
| public boolean | |
| public Object | Returns: An appropriately narrowed instance.The proxy instance to be narrowed. proxy, EntityPersister The persister for the proxied entity. persister, EntityKey The internal cache key for the proxied entity. key, Object (optional) the actual proxied entity instance. object)Implements org. |
| public Object | proxyFor(EntityPersister persister, EntityKey key, Object impl)
Implements org. |
| public Object | proxyFor(Object impl)
Implements org. |
| public boolean | Returns: Whether the passed value represented an actual proxy which got initialized.The possible proxy to be reassociated. value)Implements org. |
| public void | reassociateProxy(Object value, Serializable id)
Implements org. |
| private void | reassociateProxy(LazyInitializer
The proxy initializer. li, HibernateProxy The proxy to reassociate. proxy)Associate a proxy that was instantiated by another session with this session |
| public void | registerInsertedKey(EntityPersister
The entity persister persister, Serializable The id id)Implements org. |
| public void | removeChildParent(Object child)
Implements org. |
| public PersistentCollection | removeCollectionHolder(Object array)
Implements org. |
| public Object | removeEntity(EntityKey key)
Implements org. |
| public EntityEntry | removeEntry(Object entity)
Implements org. |
| public Object | Returns: The proxy reference.The key of the entity proxy to be removed key)Implements org. |
| public void | replaceDelayedEntityIdentityInsertKeys(EntityKey oldKey, Serializable generatedId)
Implements org. |
| public void | serialize(ObjectOutputStream
The stream to which the persistence context should get written oos)Used by the owning session to explicitly control serialization of the persistence context. |
| public void | setDefaultReadOnly(boolean
true, the default for loaded entities/proxies is read-only;
false, the default for loaded entities/proxies is modifiable defaultReadOnly)Implements org. |
| private void | |
| public void | setEntryStatus(EntityEntry entry, Status status)
Implements org. |
| public void | setFlushing(boolean flushing)
Implements org. |
| private void | |
| private void | |
| public void | setReadOnly(Object
an entity or HibernateProxy object, boolean if true, the entity or proxy is made read-only;
if false, the entity or proxy is made modifiable. readOnly)Implements org. |
| public String | Returns: a string representation of the object.Overrides java. Implements org. |
| public Object | unproxy(Object maybeProxy)
Implements org. |
| public Object | Returns: The unproxied instance.The reference to be unproxied if it currently represents a proxy. maybeProxy)Implements org. |
| public PersistentCollection | useUnownedCollection(CollectionKey key)
Implements org. |
| public boolean | wasInsertedDuringTransaction(EntityPersister
The entity persister persister, Serializable The id id)Implements org. |