Package org.hibernate.engine.internal
Class ReactivePersistenceContextAdapter
java.lang.Object
org.hibernate.engine.internal.ReactivePersistenceContextAdapter
- All Implemented Interfaces:
org.hibernate.engine.spi.PersistenceContext
public class ReactivePersistenceContextAdapter
extends Object
implements org.hibernate.engine.spi.PersistenceContext
Add reactive methods to a
PersistenceContext.-
Constructor Summary
ConstructorsConstructorDescriptionReactivePersistenceContextAdapter(org.hibernate.engine.spi.PersistenceContext persistenceContext) Constructs a PersistentContext, bound to the given session. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddChildParent(Object child, Object parent) org.hibernate.collection.spi.PersistentCollection<?>addCollectionByKey(org.hibernate.engine.spi.CollectionKey collectionKey, org.hibernate.collection.spi.PersistentCollection<?> persistentCollection) voidaddCollectionHolder(org.hibernate.collection.spi.PersistentCollection<?> holder) voidaddEnhancedProxy(org.hibernate.engine.spi.EntityKey key, org.hibernate.engine.spi.PersistentAttributeInterceptable entity) org.hibernate.engine.spi.EntityEntryaddEntity(Object entity, org.hibernate.engine.spi.Status status, Object[] loadedState, org.hibernate.engine.spi.EntityKey entityKey, Object version, org.hibernate.LockMode lockMode, boolean existsInDatabase, org.hibernate.persister.entity.EntityPersister persister, boolean disableVersionIncrement) voidvoidorg.hibernate.engine.spi.EntityHolderaddEntityHolder(org.hibernate.engine.spi.EntityKey key, Object entity) org.hibernate.engine.spi.EntityEntryaddEntry(Object entity, org.hibernate.engine.spi.Status status, Object[] loadedState, Object rowId, Object id, Object version, org.hibernate.LockMode lockMode, boolean existsInDatabase, org.hibernate.persister.entity.EntityPersister persister, boolean disableVersionIncrement) org.hibernate.engine.spi.CollectionEntryaddInitializedCollection(org.hibernate.persister.collection.CollectionPersister persister, org.hibernate.collection.spi.PersistentCollection<?> collection, Object id) voidaddInitializedDetachedCollection(org.hibernate.persister.collection.CollectionPersister collectionPersister, org.hibernate.collection.spi.PersistentCollection<?> collection) voidaddNewCollection(org.hibernate.persister.collection.CollectionPersister persister, org.hibernate.collection.spi.PersistentCollection<?> collection) voidaddNonLazyCollection(org.hibernate.collection.spi.PersistentCollection<?> collection) voidaddNullProperty(org.hibernate.engine.spi.EntityKey ownerKey, String propertyName) voidorg.hibernate.engine.spi.EntityEntryaddReferenceEntry(Object entity, org.hibernate.engine.spi.Status status) voidaddUninitializedCollection(org.hibernate.persister.collection.CollectionPersister persister, org.hibernate.collection.spi.PersistentCollection<?> collection, Object id) voidaddUninitializedDetachedCollection(org.hibernate.persister.collection.CollectionPersister persister, org.hibernate.collection.spi.PersistentCollection<?> collection) voidvoidvoidvoidvoidcheckUniqueness(org.hibernate.engine.spi.EntityKey key, Object object) org.hibernate.engine.spi.EntityHolderclaimEntityHolderIfPossible(org.hibernate.engine.spi.EntityKey key, Object entity, org.hibernate.sql.results.jdbc.spi.JdbcValuesSourceProcessingState processingState, org.hibernate.sql.results.graph.entity.EntityInitializer<?> initializer) voidclear()voidbooleancontainsCollection(org.hibernate.collection.spi.PersistentCollection<?> collection) booleancontainsDeletedUnloadedEntityKey(org.hibernate.engine.spi.EntityKey ek) booleanbooleancontainsEntity(org.hibernate.engine.spi.EntityKey key) booleancontainsEntityHolder(org.hibernate.engine.spi.EntityKey key) booleancontainsNullifiableEntityKey(Supplier<org.hibernate.engine.spi.EntityKey> sek) booleancontainsProxy(Object proxy) intvoidvoidforEachCollectionEntry(BiConsumer<org.hibernate.collection.spi.PersistentCollection<?>, org.hibernate.engine.spi.CollectionEntry> action, boolean concurrent) org.hibernate.engine.spi.BatchFetchQueueObject[]getCachedDatabaseSnapshot(org.hibernate.engine.spi.EntityKey key) intorg.hibernate.collection.spi.PersistentCollection<?>getCollection(org.hibernate.engine.spi.CollectionKey collectionKey) Map<org.hibernate.collection.spi.PersistentCollection<?>,org.hibernate.engine.spi.CollectionEntry> intorg.hibernate.engine.spi.CollectionEntrygetCollectionEntry(org.hibernate.collection.spi.PersistentCollection<?> coll) org.hibernate.collection.spi.PersistentCollection<?>getCollectionHolder(Object array) getCollectionOwner(Object key, org.hibernate.persister.collection.CollectionPersister collectionPersister) Map<org.hibernate.engine.spi.CollectionKey,org.hibernate.collection.spi.PersistentCollection<?>> Deprecated.Object[]getDatabaseSnapshot(Object id, org.hibernate.persister.entity.EntityPersister persister) Deprecated.getEntity(org.hibernate.engine.spi.EntityKey key) getEntity(org.hibernate.engine.spi.EntityUniqueKey euk) org.hibernate.engine.spi.EntityHoldergetEntityHolder(org.hibernate.engine.spi.EntityKey key) Map<org.hibernate.engine.spi.EntityKey,org.hibernate.engine.spi.EntityHolder> org.hibernate.engine.spi.EntityEntrygetIndexInOwner(String entity, String property, Object childObject, Map mergeMap) org.hibernate.sql.results.spi.LoadContextsgetLoadedCollectionOwnerIdOrNull(org.hibernate.collection.spi.PersistentCollection<?> collection) getLoadedCollectionOwnerOrNull(org.hibernate.collection.spi.PersistentCollection<?> collection) org.hibernate.engine.spi.NaturalIdResolutionsgetNaturalIdSnapshot(Object id, org.hibernate.persister.entity.EntityPersister persister) intgetOwnerId(String entityName, String propertyName, Object childEntity, Map mergeMap) getProxy(org.hibernate.engine.spi.EntityKey key) org.hibernate.engine.spi.SharedSessionContractImplementorgetSnapshot(org.hibernate.collection.spi.PersistentCollection<?> coll) booleanintvoidDeprecated.voidinitializeNonLazyCollections(Consumer<org.hibernate.collection.spi.PersistentCollection<?>> initializeAction) booleanbooleanisEntryFor(Object entity) booleanbooleanbooleanbooleanisPropertyNull(org.hibernate.engine.spi.EntityKey ownerKey, String propertyName) booleanisReadOnly(Object entityOrProxy) booleanbooleannarrowProxy(Object proxy, org.hibernate.persister.entity.EntityPersister persister, org.hibernate.engine.spi.EntityKey key, Object object) voidpostLoad(org.hibernate.sql.results.jdbc.spi.JdbcValuesSourceProcessingState processingState, Consumer<org.hibernate.engine.spi.EntityHolder> loadedConsumer) proxyFor(org.hibernate.engine.spi.EntityHolder holder, org.hibernate.persister.entity.EntityPersister persister) proxyFor(org.hibernate.persister.entity.EntityPersister persister, org.hibernate.engine.spi.EntityKey key, Object impl) reactiveGetDatabaseSnapshot(Object id, org.hibernate.persister.entity.EntityPersister persister) reactivePostLoad(org.hibernate.sql.results.jdbc.spi.JdbcValuesSourceProcessingState processingState, Consumer<org.hibernate.engine.spi.EntityHolder> holderConsumer) Reactive version ofPersistenceContext.postLoad(JdbcValuesSourceProcessingState, Consumer)booleanvoidreassociateProxy(Object value, Object id) voidregisterDeletedUnloadedEntityKey(org.hibernate.engine.spi.EntityKey key) voidregisterInsertedKey(org.hibernate.persister.entity.EntityPersister persister, Object id) voidregisterNullifiableEntityKey(org.hibernate.engine.spi.EntityKey key) voidremoveChildParent(Object child) voidremoveCollectionByKey(org.hibernate.engine.spi.CollectionKey collectionKey) org.hibernate.engine.spi.CollectionEntryremoveCollectionEntry(org.hibernate.collection.spi.PersistentCollection<?> collection) org.hibernate.collection.spi.PersistentCollection<?>removeCollectionHolder(Object array) voidremoveDeletedUnloadedEntityKey(org.hibernate.engine.spi.EntityKey key) removeEntity(org.hibernate.engine.spi.EntityKey key) org.hibernate.engine.spi.EntityHolderremoveEntityHolder(org.hibernate.engine.spi.EntityKey key) org.hibernate.engine.spi.EntityEntryremoveEntry(Object entity) removeProxy(org.hibernate.engine.spi.EntityKey key) voidreplaceCollection(org.hibernate.persister.collection.CollectionPersister persister, org.hibernate.collection.spi.PersistentCollection<?> oldCollection, org.hibernate.collection.spi.PersistentCollection<?> collection) voidreplaceDelayedEntityIdentityInsertKeys(org.hibernate.engine.spi.EntityKey oldKey, Object generatedId) voidreplaceEntityEntryRowId(Object entity, Object rowId) voidsetDefaultReadOnly(boolean readOnly) voidsetEntryStatus(org.hibernate.engine.spi.EntityEntry entry, org.hibernate.engine.spi.Status status) voidsetFlushing(boolean flushing) voidsetReadOnly(Object entityOrProxy, boolean readOnly) toString()unproxyAndReassociate(Object maybeProxy) org.hibernate.collection.spi.PersistentCollection<?>useUnownedCollection(org.hibernate.engine.spi.CollectionKey key) booleanwasInsertedDuringTransaction(org.hibernate.persister.entity.EntityPersister persister, Object id) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.hibernate.engine.spi.PersistenceContext
detachEntity
-
Constructor Details
-
ReactivePersistenceContextAdapter
public ReactivePersistenceContextAdapter(org.hibernate.engine.spi.PersistenceContext persistenceContext) Constructs a PersistentContext, bound to the given session.
-
-
Method Details
-
reactiveInitializeNonLazyCollections
public CompletionStage<Void> reactiveInitializeNonLazyCollections() throws org.hibernate.HibernateException- Throws:
org.hibernate.HibernateException
-
initializeNonLazyCollections
Deprecated.usereactiveInitializeNonLazyCollections()instead.- Specified by:
initializeNonLazyCollectionsin interfaceorg.hibernate.engine.spi.PersistenceContext
-
initializeNonLazyCollections
public void initializeNonLazyCollections(Consumer<org.hibernate.collection.spi.PersistentCollection<?>> initializeAction) - Specified by:
initializeNonLazyCollectionsin interfaceorg.hibernate.engine.spi.PersistenceContext
-
getDatabaseSnapshot
@Deprecated public Object[] getDatabaseSnapshot(Object id, org.hibernate.persister.entity.EntityPersister persister) throws org.hibernate.HibernateException Deprecated.- Specified by:
getDatabaseSnapshotin interfaceorg.hibernate.engine.spi.PersistenceContext- Throws:
org.hibernate.HibernateException
-
reactiveGetDatabaseSnapshot
public CompletionStage<Object[]> reactiveGetDatabaseSnapshot(Object id, org.hibernate.persister.entity.EntityPersister persister) throws org.hibernate.HibernateException - Throws:
org.hibernate.HibernateException
-
isStateless
public boolean isStateless()- Specified by:
isStatelessin interfaceorg.hibernate.engine.spi.PersistenceContext
-
getSession
public org.hibernate.engine.spi.SharedSessionContractImplementor getSession()- Specified by:
getSessionin interfaceorg.hibernate.engine.spi.PersistenceContext
-
getLoadContexts
public org.hibernate.sql.results.spi.LoadContexts getLoadContexts()- Specified by:
getLoadContextsin interfaceorg.hibernate.engine.spi.PersistenceContext
-
hasLoadContext
public boolean hasLoadContext()- Specified by:
hasLoadContextin interfaceorg.hibernate.engine.spi.PersistenceContext
-
useUnownedCollection
public org.hibernate.collection.spi.PersistentCollection<?> useUnownedCollection(org.hibernate.engine.spi.CollectionKey key) - Specified by:
useUnownedCollectionin interfaceorg.hibernate.engine.spi.PersistenceContext
-
getBatchFetchQueue
public org.hibernate.engine.spi.BatchFetchQueue getBatchFetchQueue()- Specified by:
getBatchFetchQueuein interfaceorg.hibernate.engine.spi.PersistenceContext
-
clear
public void clear()- Specified by:
clearin interfaceorg.hibernate.engine.spi.PersistenceContext
-
setEntryStatus
public void setEntryStatus(org.hibernate.engine.spi.EntityEntry entry, org.hibernate.engine.spi.Status status) - Specified by:
setEntryStatusin interfaceorg.hibernate.engine.spi.PersistenceContext
-
afterTransactionCompletion
public void afterTransactionCompletion()- Specified by:
afterTransactionCompletionin interfaceorg.hibernate.engine.spi.PersistenceContext
-
getCachedDatabaseSnapshot
- Specified by:
getCachedDatabaseSnapshotin interfaceorg.hibernate.engine.spi.PersistenceContext
-
getNaturalIdSnapshot
public Object getNaturalIdSnapshot(Object id, org.hibernate.persister.entity.EntityPersister persister) - Specified by:
getNaturalIdSnapshotin interfaceorg.hibernate.engine.spi.PersistenceContext
-
addEntity
- Specified by:
addEntityin interfaceorg.hibernate.engine.spi.PersistenceContext
-
getEntity
- Specified by:
getEntityin interfaceorg.hibernate.engine.spi.PersistenceContext
-
containsEntity
public boolean containsEntity(org.hibernate.engine.spi.EntityKey key) - Specified by:
containsEntityin interfaceorg.hibernate.engine.spi.PersistenceContext
-
removeEntity
- Specified by:
removeEntityin interfaceorg.hibernate.engine.spi.PersistenceContext
-
addEntity
- Specified by:
addEntityin interfaceorg.hibernate.engine.spi.PersistenceContext
-
getEntity
- Specified by:
getEntityin interfaceorg.hibernate.engine.spi.PersistenceContext
-
getEntry
- Specified by:
getEntryin interfaceorg.hibernate.engine.spi.PersistenceContext
-
removeEntry
- Specified by:
removeEntryin interfaceorg.hibernate.engine.spi.PersistenceContext
-
isEntryFor
- Specified by:
isEntryForin interfaceorg.hibernate.engine.spi.PersistenceContext
-
getCollectionEntry
public org.hibernate.engine.spi.CollectionEntry getCollectionEntry(org.hibernate.collection.spi.PersistentCollection<?> coll) - Specified by:
getCollectionEntryin interfaceorg.hibernate.engine.spi.PersistenceContext
-
addEntity
public org.hibernate.engine.spi.EntityEntry addEntity(Object entity, org.hibernate.engine.spi.Status status, Object[] loadedState, org.hibernate.engine.spi.EntityKey entityKey, Object version, org.hibernate.LockMode lockMode, boolean existsInDatabase, org.hibernate.persister.entity.EntityPersister persister, boolean disableVersionIncrement) - Specified by:
addEntityin interfaceorg.hibernate.engine.spi.PersistenceContext
-
addEntry
public org.hibernate.engine.spi.EntityEntry addEntry(Object entity, org.hibernate.engine.spi.Status status, Object[] loadedState, Object rowId, Object id, Object version, org.hibernate.LockMode lockMode, boolean existsInDatabase, org.hibernate.persister.entity.EntityPersister persister, boolean disableVersionIncrement) - Specified by:
addEntryin interfaceorg.hibernate.engine.spi.PersistenceContext
-
addReferenceEntry
public org.hibernate.engine.spi.EntityEntry addReferenceEntry(Object entity, org.hibernate.engine.spi.Status status) - Specified by:
addReferenceEntryin interfaceorg.hibernate.engine.spi.PersistenceContext
-
containsCollection
public boolean containsCollection(org.hibernate.collection.spi.PersistentCollection<?> collection) - Specified by:
containsCollectionin interfaceorg.hibernate.engine.spi.PersistenceContext
-
containsProxy
- Specified by:
containsProxyin interfaceorg.hibernate.engine.spi.PersistenceContext
-
reassociateIfUninitializedProxy
- Specified by:
reassociateIfUninitializedProxyin interfaceorg.hibernate.engine.spi.PersistenceContext
-
reassociateProxy
- Specified by:
reassociateProxyin interfaceorg.hibernate.engine.spi.PersistenceContext
-
unproxy
- Specified by:
unproxyin interfaceorg.hibernate.engine.spi.PersistenceContext
-
unproxyAndReassociate
- Specified by:
unproxyAndReassociatein interfaceorg.hibernate.engine.spi.PersistenceContext
-
checkUniqueness
- Specified by:
checkUniquenessin interfaceorg.hibernate.engine.spi.PersistenceContext
-
narrowProxy
public Object narrowProxy(Object proxy, org.hibernate.persister.entity.EntityPersister persister, org.hibernate.engine.spi.EntityKey key, Object object) - Specified by:
narrowProxyin interfaceorg.hibernate.engine.spi.PersistenceContext
-
proxyFor
public Object proxyFor(org.hibernate.persister.entity.EntityPersister persister, org.hibernate.engine.spi.EntityKey key, Object impl) - Specified by:
proxyForin interfaceorg.hibernate.engine.spi.PersistenceContext
-
proxyFor
- Specified by:
proxyForin interfaceorg.hibernate.engine.spi.PersistenceContext
-
proxyFor
public Object proxyFor(org.hibernate.engine.spi.EntityHolder holder, org.hibernate.persister.entity.EntityPersister persister) - Specified by:
proxyForin interfaceorg.hibernate.engine.spi.PersistenceContext
-
addEnhancedProxy
public void addEnhancedProxy(org.hibernate.engine.spi.EntityKey key, org.hibernate.engine.spi.PersistentAttributeInterceptable entity) - Specified by:
addEnhancedProxyin interfaceorg.hibernate.engine.spi.PersistenceContext
-
getCollectionOwner
public Object getCollectionOwner(Object key, org.hibernate.persister.collection.CollectionPersister collectionPersister) - Specified by:
getCollectionOwnerin interfaceorg.hibernate.engine.spi.PersistenceContext
-
getLoadedCollectionOwnerOrNull
public Object getLoadedCollectionOwnerOrNull(org.hibernate.collection.spi.PersistentCollection<?> collection) - Specified by:
getLoadedCollectionOwnerOrNullin interfaceorg.hibernate.engine.spi.PersistenceContext
-
getLoadedCollectionOwnerIdOrNull
public Object getLoadedCollectionOwnerIdOrNull(org.hibernate.collection.spi.PersistentCollection<?> collection) - Specified by:
getLoadedCollectionOwnerIdOrNullin interfaceorg.hibernate.engine.spi.PersistenceContext
-
addUninitializedCollection
public void addUninitializedCollection(org.hibernate.persister.collection.CollectionPersister persister, org.hibernate.collection.spi.PersistentCollection<?> collection, Object id) - Specified by:
addUninitializedCollectionin interfaceorg.hibernate.engine.spi.PersistenceContext
-
addUninitializedDetachedCollection
public void addUninitializedDetachedCollection(org.hibernate.persister.collection.CollectionPersister persister, org.hibernate.collection.spi.PersistentCollection<?> collection) - Specified by:
addUninitializedDetachedCollectionin interfaceorg.hibernate.engine.spi.PersistenceContext
-
addNewCollection
public void addNewCollection(org.hibernate.persister.collection.CollectionPersister persister, org.hibernate.collection.spi.PersistentCollection<?> collection) - Specified by:
addNewCollectionin interfaceorg.hibernate.engine.spi.PersistenceContext
-
addInitializedDetachedCollection
public void addInitializedDetachedCollection(org.hibernate.persister.collection.CollectionPersister collectionPersister, org.hibernate.collection.spi.PersistentCollection<?> collection) - Specified by:
addInitializedDetachedCollectionin interfaceorg.hibernate.engine.spi.PersistenceContext
-
replaceCollection
public void replaceCollection(org.hibernate.persister.collection.CollectionPersister persister, org.hibernate.collection.spi.PersistentCollection<?> oldCollection, org.hibernate.collection.spi.PersistentCollection<?> collection) - Specified by:
replaceCollectionin interfaceorg.hibernate.engine.spi.PersistenceContext
-
addInitializedCollection
public org.hibernate.engine.spi.CollectionEntry addInitializedCollection(org.hibernate.persister.collection.CollectionPersister persister, org.hibernate.collection.spi.PersistentCollection<?> collection, Object id) - Specified by:
addInitializedCollectionin interfaceorg.hibernate.engine.spi.PersistenceContext
-
getCollection
public org.hibernate.collection.spi.PersistentCollection<?> getCollection(org.hibernate.engine.spi.CollectionKey collectionKey) - Specified by:
getCollectionin interfaceorg.hibernate.engine.spi.PersistenceContext
-
addNonLazyCollection
public void addNonLazyCollection(org.hibernate.collection.spi.PersistentCollection<?> collection) - Specified by:
addNonLazyCollectionin interfaceorg.hibernate.engine.spi.PersistenceContext
-
getCollectionHolder
- Specified by:
getCollectionHolderin interfaceorg.hibernate.engine.spi.PersistenceContext
-
addCollectionHolder
public void addCollectionHolder(org.hibernate.collection.spi.PersistentCollection<?> holder) - Specified by:
addCollectionHolderin interfaceorg.hibernate.engine.spi.PersistenceContext
-
removeCollectionHolder
- Specified by:
removeCollectionHolderin interfaceorg.hibernate.engine.spi.PersistenceContext
-
getSnapshot
- Specified by:
getSnapshotin interfaceorg.hibernate.engine.spi.PersistenceContext
-
getProxy
- Specified by:
getProxyin interfaceorg.hibernate.engine.spi.PersistenceContext
-
addProxy
- Specified by:
addProxyin interfaceorg.hibernate.engine.spi.PersistenceContext
-
removeProxy
- Specified by:
removeProxyin interfaceorg.hibernate.engine.spi.PersistenceContext
-
claimEntityHolderIfPossible
public org.hibernate.engine.spi.EntityHolder claimEntityHolderIfPossible(org.hibernate.engine.spi.EntityKey key, Object entity, org.hibernate.sql.results.jdbc.spi.JdbcValuesSourceProcessingState processingState, org.hibernate.sql.results.graph.entity.EntityInitializer<?> initializer) - Specified by:
claimEntityHolderIfPossiblein interfaceorg.hibernate.engine.spi.PersistenceContext
-
addEntityHolder
public org.hibernate.engine.spi.EntityHolder addEntityHolder(org.hibernate.engine.spi.EntityKey key, Object entity) - Specified by:
addEntityHolderin interfaceorg.hibernate.engine.spi.PersistenceContext
-
getEntityHolder
public org.hibernate.engine.spi.EntityHolder getEntityHolder(org.hibernate.engine.spi.EntityKey key) - Specified by:
getEntityHolderin interfaceorg.hibernate.engine.spi.PersistenceContext
-
containsEntityHolder
public boolean containsEntityHolder(org.hibernate.engine.spi.EntityKey key) - Specified by:
containsEntityHolderin interfaceorg.hibernate.engine.spi.PersistenceContext
-
removeEntityHolder
public org.hibernate.engine.spi.EntityHolder removeEntityHolder(org.hibernate.engine.spi.EntityKey key) - Specified by:
removeEntityHolderin interfaceorg.hibernate.engine.spi.PersistenceContext
-
postLoad
public void postLoad(org.hibernate.sql.results.jdbc.spi.JdbcValuesSourceProcessingState processingState, Consumer<org.hibernate.engine.spi.EntityHolder> loadedConsumer) - Specified by:
postLoadin interfaceorg.hibernate.engine.spi.PersistenceContext
-
getEntitiesByKey
- Specified by:
getEntitiesByKeyin interfaceorg.hibernate.engine.spi.PersistenceContext
-
getEntityHoldersByKey
@Internal public Map<org.hibernate.engine.spi.EntityKey,org.hibernate.engine.spi.EntityHolder> getEntityHoldersByKey()- Specified by:
getEntityHoldersByKeyin interfaceorg.hibernate.engine.spi.PersistenceContext
-
reentrantSafeEntityEntries
- Specified by:
reentrantSafeEntityEntriesin interfaceorg.hibernate.engine.spi.PersistenceContext
-
getNumberOfManagedEntities
public int getNumberOfManagedEntities()- Specified by:
getNumberOfManagedEntitiesin interfaceorg.hibernate.engine.spi.PersistenceContext
-
getCollectionEntries
@Internal public Map<org.hibernate.collection.spi.PersistentCollection<?>,org.hibernate.engine.spi.CollectionEntry> getCollectionEntries()- Specified by:
getCollectionEntriesin interfaceorg.hibernate.engine.spi.PersistenceContext
-
forEachCollectionEntry
public void forEachCollectionEntry(BiConsumer<org.hibernate.collection.spi.PersistentCollection<?>, org.hibernate.engine.spi.CollectionEntry> action, boolean concurrent) - Specified by:
forEachCollectionEntryin interfaceorg.hibernate.engine.spi.PersistenceContext
-
getCollectionsByKey
@Deprecated public Map<org.hibernate.engine.spi.CollectionKey,org.hibernate.collection.spi.PersistentCollection<?>> getCollectionsByKey()Deprecated.- Specified by:
getCollectionsByKeyin interfaceorg.hibernate.engine.spi.PersistenceContext
-
getCascadeLevel
public int getCascadeLevel()- Specified by:
getCascadeLevelin interfaceorg.hibernate.engine.spi.PersistenceContext
-
incrementCascadeLevel
public int incrementCascadeLevel()- Specified by:
incrementCascadeLevelin interfaceorg.hibernate.engine.spi.PersistenceContext
-
decrementCascadeLevel
public int decrementCascadeLevel()- Specified by:
decrementCascadeLevelin interfaceorg.hibernate.engine.spi.PersistenceContext
-
isFlushing
public boolean isFlushing()- Specified by:
isFlushingin interfaceorg.hibernate.engine.spi.PersistenceContext
-
setFlushing
public void setFlushing(boolean flushing) - Specified by:
setFlushingin interfaceorg.hibernate.engine.spi.PersistenceContext
-
beforeLoad
public void beforeLoad()- Specified by:
beforeLoadin interfaceorg.hibernate.engine.spi.PersistenceContext
-
afterLoad
public void afterLoad()- Specified by:
afterLoadin interfaceorg.hibernate.engine.spi.PersistenceContext
-
isLoadFinished
public boolean isLoadFinished()- Specified by:
isLoadFinishedin interfaceorg.hibernate.engine.spi.PersistenceContext
-
toString
-
getOwnerId
- Specified by:
getOwnerIdin interfaceorg.hibernate.engine.spi.PersistenceContext
-
getIndexInOwner
- Specified by:
getIndexInOwnerin interfaceorg.hibernate.engine.spi.PersistenceContext
-
addNullProperty
- Specified by:
addNullPropertyin interfaceorg.hibernate.engine.spi.PersistenceContext
-
isPropertyNull
- Specified by:
isPropertyNullin interfaceorg.hibernate.engine.spi.PersistenceContext
-
isDefaultReadOnly
public boolean isDefaultReadOnly()- Specified by:
isDefaultReadOnlyin interfaceorg.hibernate.engine.spi.PersistenceContext
-
setDefaultReadOnly
public void setDefaultReadOnly(boolean readOnly) - Specified by:
setDefaultReadOnlyin interfaceorg.hibernate.engine.spi.PersistenceContext
-
isReadOnly
- Specified by:
isReadOnlyin interfaceorg.hibernate.engine.spi.PersistenceContext
-
setReadOnly
- Specified by:
setReadOnlyin interfaceorg.hibernate.engine.spi.PersistenceContext
-
isRemovingOrphanBeforeUpdates
public boolean isRemovingOrphanBeforeUpdates()- Specified by:
isRemovingOrphanBeforeUpdatesin interfaceorg.hibernate.engine.spi.PersistenceContext
-
beginRemoveOrphanBeforeUpdates
public void beginRemoveOrphanBeforeUpdates()- Specified by:
beginRemoveOrphanBeforeUpdatesin interfaceorg.hibernate.engine.spi.PersistenceContext
-
endRemoveOrphanBeforeUpdates
public void endRemoveOrphanBeforeUpdates()- Specified by:
endRemoveOrphanBeforeUpdatesin interfaceorg.hibernate.engine.spi.PersistenceContext
-
replaceDelayedEntityIdentityInsertKeys
public void replaceDelayedEntityIdentityInsertKeys(org.hibernate.engine.spi.EntityKey oldKey, Object generatedId) - Specified by:
replaceDelayedEntityIdentityInsertKeysin interfaceorg.hibernate.engine.spi.PersistenceContext
-
replaceEntityEntryRowId
- Specified by:
replaceEntityEntryRowIdin interfaceorg.hibernate.engine.spi.PersistenceContext
-
addChildParent
- Specified by:
addChildParentin interfaceorg.hibernate.engine.spi.PersistenceContext
-
removeChildParent
- Specified by:
removeChildParentin interfaceorg.hibernate.engine.spi.PersistenceContext
-
registerInsertedKey
public void registerInsertedKey(org.hibernate.persister.entity.EntityPersister persister, Object id) - Specified by:
registerInsertedKeyin interfaceorg.hibernate.engine.spi.PersistenceContext
-
wasInsertedDuringTransaction
public boolean wasInsertedDuringTransaction(org.hibernate.persister.entity.EntityPersister persister, Object id) - Specified by:
wasInsertedDuringTransactionin interfaceorg.hibernate.engine.spi.PersistenceContext
-
containsNullifiableEntityKey
- Specified by:
containsNullifiableEntityKeyin interfaceorg.hibernate.engine.spi.PersistenceContext
-
registerNullifiableEntityKey
public void registerNullifiableEntityKey(org.hibernate.engine.spi.EntityKey key) - Specified by:
registerNullifiableEntityKeyin interfaceorg.hibernate.engine.spi.PersistenceContext
-
isNullifiableEntityKeysEmpty
public boolean isNullifiableEntityKeysEmpty()- Specified by:
isNullifiableEntityKeysEmptyin interfaceorg.hibernate.engine.spi.PersistenceContext
-
containsDeletedUnloadedEntityKey
public boolean containsDeletedUnloadedEntityKey(org.hibernate.engine.spi.EntityKey ek) - Specified by:
containsDeletedUnloadedEntityKeyin interfaceorg.hibernate.engine.spi.PersistenceContext
-
registerDeletedUnloadedEntityKey
public void registerDeletedUnloadedEntityKey(org.hibernate.engine.spi.EntityKey key) - Specified by:
registerDeletedUnloadedEntityKeyin interfaceorg.hibernate.engine.spi.PersistenceContext
-
removeDeletedUnloadedEntityKey
public void removeDeletedUnloadedEntityKey(org.hibernate.engine.spi.EntityKey key) - Specified by:
removeDeletedUnloadedEntityKeyin interfaceorg.hibernate.engine.spi.PersistenceContext
-
containsDeletedUnloadedEntityKeys
public boolean containsDeletedUnloadedEntityKeys()- Specified by:
containsDeletedUnloadedEntityKeysin interfaceorg.hibernate.engine.spi.PersistenceContext
-
getCollectionEntriesSize
public int getCollectionEntriesSize()- Specified by:
getCollectionEntriesSizein interfaceorg.hibernate.engine.spi.PersistenceContext
-
removeCollectionEntry
public org.hibernate.engine.spi.CollectionEntry removeCollectionEntry(org.hibernate.collection.spi.PersistentCollection<?> collection) - Specified by:
removeCollectionEntryin interfaceorg.hibernate.engine.spi.PersistenceContext
-
clearCollectionsByKey
public void clearCollectionsByKey()- Specified by:
clearCollectionsByKeyin interfaceorg.hibernate.engine.spi.PersistenceContext
-
addCollectionByKey
public org.hibernate.collection.spi.PersistentCollection<?> addCollectionByKey(org.hibernate.engine.spi.CollectionKey collectionKey, org.hibernate.collection.spi.PersistentCollection<?> persistentCollection) - Specified by:
addCollectionByKeyin interfaceorg.hibernate.engine.spi.PersistenceContext
-
removeCollectionByKey
public void removeCollectionByKey(org.hibernate.engine.spi.CollectionKey collectionKey) - Specified by:
removeCollectionByKeyin interfaceorg.hibernate.engine.spi.PersistenceContext
-
getEntitySnapshotsByKey
- Specified by:
getEntitySnapshotsByKeyin interfaceorg.hibernate.engine.spi.PersistenceContext
-
getOrInitializeEntitySnapshotsByKey
@Internal public Map<org.hibernate.engine.spi.EntityKey,Object> getOrInitializeEntitySnapshotsByKey()- Specified by:
getOrInitializeEntitySnapshotsByKeyin interfaceorg.hibernate.engine.spi.PersistenceContext
-
managedEntitiesIterator
- Specified by:
managedEntitiesIteratorin interfaceorg.hibernate.engine.spi.PersistenceContext
-
getNaturalIdResolutions
public org.hibernate.engine.spi.NaturalIdResolutions getNaturalIdResolutions()- Specified by:
getNaturalIdResolutionsin interfaceorg.hibernate.engine.spi.PersistenceContext
-
reactivePostLoad
public CompletionStage<Void> reactivePostLoad(org.hibernate.sql.results.jdbc.spi.JdbcValuesSourceProcessingState processingState, Consumer<org.hibernate.engine.spi.EntityHolder> holderConsumer) Reactive version ofPersistenceContext.postLoad(JdbcValuesSourceProcessingState, Consumer)
-
reactiveInitializeNonLazyCollections()instead.