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 TypeMethodDescriptionvoid
addChildParent
(Object child, Object parent) org.hibernate.collection.spi.PersistentCollection<?>
addCollectionByKey
(org.hibernate.engine.spi.CollectionKey collectionKey, org.hibernate.collection.spi.PersistentCollection<?> persistentCollection) void
addCollectionHolder
(org.hibernate.collection.spi.PersistentCollection<?> holder) void
addEnhancedProxy
(org.hibernate.engine.spi.EntityKey key, org.hibernate.engine.spi.PersistentAttributeInterceptable entity) 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) void
void
org.hibernate.engine.spi.EntityHolder
addEntityHolder
(org.hibernate.engine.spi.EntityKey key, Object entity) 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) org.hibernate.engine.spi.CollectionEntry
addInitializedCollection
(org.hibernate.persister.collection.CollectionPersister persister, org.hibernate.collection.spi.PersistentCollection<?> collection, Object id) void
addInitializedDetachedCollection
(org.hibernate.persister.collection.CollectionPersister collectionPersister, org.hibernate.collection.spi.PersistentCollection<?> collection) void
addNewCollection
(org.hibernate.persister.collection.CollectionPersister persister, org.hibernate.collection.spi.PersistentCollection<?> collection) void
addNonLazyCollection
(org.hibernate.collection.spi.PersistentCollection<?> collection) void
addNullProperty
(org.hibernate.engine.spi.EntityKey ownerKey, String propertyName) void
org.hibernate.engine.spi.EntityEntry
addReferenceEntry
(Object entity, org.hibernate.engine.spi.Status status) void
addUninitializedCollection
(org.hibernate.persister.collection.CollectionPersister persister, org.hibernate.collection.spi.PersistentCollection<?> collection, Object id) void
addUninitializedDetachedCollection
(org.hibernate.persister.collection.CollectionPersister persister, org.hibernate.collection.spi.PersistentCollection<?> collection) void
void
void
void
void
checkUniqueness
(org.hibernate.engine.spi.EntityKey key, Object object) 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) void
clear()
void
boolean
containsCollection
(org.hibernate.collection.spi.PersistentCollection<?> collection) boolean
containsDeletedUnloadedEntityKey
(org.hibernate.engine.spi.EntityKey ek) boolean
boolean
containsEntity
(org.hibernate.engine.spi.EntityKey key) boolean
containsEntityHolder
(org.hibernate.engine.spi.EntityKey key) boolean
containsNullifiableEntityKey
(Supplier<org.hibernate.engine.spi.EntityKey> sek) boolean
containsProxy
(Object proxy) int
void
void
forEachCollectionEntry
(BiConsumer<org.hibernate.collection.spi.PersistentCollection<?>, org.hibernate.engine.spi.CollectionEntry> action, boolean concurrent) org.hibernate.engine.spi.BatchFetchQueue
Object[]
getCachedDatabaseSnapshot
(org.hibernate.engine.spi.EntityKey key) int
org.hibernate.collection.spi.PersistentCollection<?>
getCollection
(org.hibernate.engine.spi.CollectionKey collectionKey) Map<org.hibernate.collection.spi.PersistentCollection<?>,
org.hibernate.engine.spi.CollectionEntry> int
org.hibernate.engine.spi.CollectionEntry
getCollectionEntry
(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.EntityHolder
getEntityHolder
(org.hibernate.engine.spi.EntityKey key) Map<org.hibernate.engine.spi.EntityKey,
org.hibernate.engine.spi.EntityHolder> org.hibernate.engine.spi.EntityEntry
getIndexInOwner
(String entity, String property, Object childObject, Map mergeMap) org.hibernate.sql.results.spi.LoadContexts
getLoadedCollectionOwnerIdOrNull
(org.hibernate.collection.spi.PersistentCollection<?> collection) getLoadedCollectionOwnerOrNull
(org.hibernate.collection.spi.PersistentCollection<?> collection) org.hibernate.engine.spi.NaturalIdResolutions
getNaturalIdSnapshot
(Object id, org.hibernate.persister.entity.EntityPersister persister) int
getOwnerId
(String entityName, String propertyName, Object childEntity, Map mergeMap) getProxy
(org.hibernate.engine.spi.EntityKey key) org.hibernate.engine.spi.SharedSessionContractImplementor
getSnapshot
(org.hibernate.collection.spi.PersistentCollection<?> coll) boolean
int
void
Deprecated.void
initializeNonLazyCollections
(Consumer<org.hibernate.collection.spi.PersistentCollection<?>> initializeAction) boolean
boolean
isEntryFor
(Object entity) boolean
boolean
boolean
boolean
isPropertyNull
(org.hibernate.engine.spi.EntityKey ownerKey, String propertyName) boolean
isReadOnly
(Object entityOrProxy) boolean
boolean
narrowProxy
(Object proxy, org.hibernate.persister.entity.EntityPersister persister, org.hibernate.engine.spi.EntityKey key, Object object) void
postLoad
(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)
boolean
void
reassociateProxy
(Object value, Object id) void
registerDeletedUnloadedEntityKey
(org.hibernate.engine.spi.EntityKey key) void
registerInsertedKey
(org.hibernate.persister.entity.EntityPersister persister, Object id) void
registerNullifiableEntityKey
(org.hibernate.engine.spi.EntityKey key) void
removeChildParent
(Object child) void
removeCollectionByKey
(org.hibernate.engine.spi.CollectionKey collectionKey) org.hibernate.engine.spi.CollectionEntry
removeCollectionEntry
(org.hibernate.collection.spi.PersistentCollection<?> collection) org.hibernate.collection.spi.PersistentCollection<?>
removeCollectionHolder
(Object array) void
removeDeletedUnloadedEntityKey
(org.hibernate.engine.spi.EntityKey key) removeEntity
(org.hibernate.engine.spi.EntityKey key) org.hibernate.engine.spi.EntityHolder
removeEntityHolder
(org.hibernate.engine.spi.EntityKey key) org.hibernate.engine.spi.EntityEntry
removeEntry
(Object entity) removeProxy
(org.hibernate.engine.spi.EntityKey key) void
replaceCollection
(org.hibernate.persister.collection.CollectionPersister persister, org.hibernate.collection.spi.PersistentCollection<?> oldCollection, org.hibernate.collection.spi.PersistentCollection<?> collection) void
replaceDelayedEntityIdentityInsertKeys
(org.hibernate.engine.spi.EntityKey oldKey, Object generatedId) void
replaceEntityEntryRowId
(Object entity, Object rowId) void
setDefaultReadOnly
(boolean readOnly) void
setEntryStatus
(org.hibernate.engine.spi.EntityEntry entry, org.hibernate.engine.spi.Status status) void
setFlushing
(boolean flushing) void
setReadOnly
(Object entityOrProxy, boolean readOnly) toString()
unproxyAndReassociate
(Object maybeProxy) org.hibernate.collection.spi.PersistentCollection<?>
useUnownedCollection
(org.hibernate.engine.spi.CollectionKey key) boolean
wasInsertedDuringTransaction
(org.hibernate.persister.entity.EntityPersister persister, Object id) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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:
initializeNonLazyCollections
in interfaceorg.hibernate.engine.spi.PersistenceContext
-
initializeNonLazyCollections
public void initializeNonLazyCollections(Consumer<org.hibernate.collection.spi.PersistentCollection<?>> initializeAction) - Specified by:
initializeNonLazyCollections
in 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:
getDatabaseSnapshot
in 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:
isStateless
in interfaceorg.hibernate.engine.spi.PersistenceContext
-
getSession
public org.hibernate.engine.spi.SharedSessionContractImplementor getSession()- Specified by:
getSession
in interfaceorg.hibernate.engine.spi.PersistenceContext
-
getLoadContexts
public org.hibernate.sql.results.spi.LoadContexts getLoadContexts()- Specified by:
getLoadContexts
in interfaceorg.hibernate.engine.spi.PersistenceContext
-
hasLoadContext
public boolean hasLoadContext()- Specified by:
hasLoadContext
in interfaceorg.hibernate.engine.spi.PersistenceContext
-
useUnownedCollection
public org.hibernate.collection.spi.PersistentCollection<?> useUnownedCollection(org.hibernate.engine.spi.CollectionKey key) - Specified by:
useUnownedCollection
in interfaceorg.hibernate.engine.spi.PersistenceContext
-
getBatchFetchQueue
public org.hibernate.engine.spi.BatchFetchQueue getBatchFetchQueue()- Specified by:
getBatchFetchQueue
in interfaceorg.hibernate.engine.spi.PersistenceContext
-
clear
public void clear()- Specified by:
clear
in interfaceorg.hibernate.engine.spi.PersistenceContext
-
setEntryStatus
public void setEntryStatus(org.hibernate.engine.spi.EntityEntry entry, org.hibernate.engine.spi.Status status) - Specified by:
setEntryStatus
in interfaceorg.hibernate.engine.spi.PersistenceContext
-
afterTransactionCompletion
public void afterTransactionCompletion()- Specified by:
afterTransactionCompletion
in interfaceorg.hibernate.engine.spi.PersistenceContext
-
getCachedDatabaseSnapshot
- Specified by:
getCachedDatabaseSnapshot
in interfaceorg.hibernate.engine.spi.PersistenceContext
-
getNaturalIdSnapshot
public Object getNaturalIdSnapshot(Object id, org.hibernate.persister.entity.EntityPersister persister) - Specified by:
getNaturalIdSnapshot
in interfaceorg.hibernate.engine.spi.PersistenceContext
-
addEntity
- Specified by:
addEntity
in interfaceorg.hibernate.engine.spi.PersistenceContext
-
getEntity
- Specified by:
getEntity
in interfaceorg.hibernate.engine.spi.PersistenceContext
-
containsEntity
public boolean containsEntity(org.hibernate.engine.spi.EntityKey key) - Specified by:
containsEntity
in interfaceorg.hibernate.engine.spi.PersistenceContext
-
removeEntity
- Specified by:
removeEntity
in interfaceorg.hibernate.engine.spi.PersistenceContext
-
addEntity
- Specified by:
addEntity
in interfaceorg.hibernate.engine.spi.PersistenceContext
-
getEntity
- Specified by:
getEntity
in interfaceorg.hibernate.engine.spi.PersistenceContext
-
getEntry
- Specified by:
getEntry
in interfaceorg.hibernate.engine.spi.PersistenceContext
-
removeEntry
- Specified by:
removeEntry
in interfaceorg.hibernate.engine.spi.PersistenceContext
-
isEntryFor
- Specified by:
isEntryFor
in interfaceorg.hibernate.engine.spi.PersistenceContext
-
getCollectionEntry
public org.hibernate.engine.spi.CollectionEntry getCollectionEntry(org.hibernate.collection.spi.PersistentCollection<?> coll) - Specified by:
getCollectionEntry
in 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:
addEntity
in 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:
addEntry
in interfaceorg.hibernate.engine.spi.PersistenceContext
-
addReferenceEntry
public org.hibernate.engine.spi.EntityEntry addReferenceEntry(Object entity, org.hibernate.engine.spi.Status status) - Specified by:
addReferenceEntry
in interfaceorg.hibernate.engine.spi.PersistenceContext
-
containsCollection
public boolean containsCollection(org.hibernate.collection.spi.PersistentCollection<?> collection) - Specified by:
containsCollection
in interfaceorg.hibernate.engine.spi.PersistenceContext
-
containsProxy
- Specified by:
containsProxy
in interfaceorg.hibernate.engine.spi.PersistenceContext
-
reassociateIfUninitializedProxy
- Specified by:
reassociateIfUninitializedProxy
in interfaceorg.hibernate.engine.spi.PersistenceContext
-
reassociateProxy
- Specified by:
reassociateProxy
in interfaceorg.hibernate.engine.spi.PersistenceContext
-
unproxy
- Specified by:
unproxy
in interfaceorg.hibernate.engine.spi.PersistenceContext
-
unproxyAndReassociate
- Specified by:
unproxyAndReassociate
in interfaceorg.hibernate.engine.spi.PersistenceContext
-
checkUniqueness
- Specified by:
checkUniqueness
in 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:
narrowProxy
in 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:
proxyFor
in interfaceorg.hibernate.engine.spi.PersistenceContext
-
proxyFor
- Specified by:
proxyFor
in interfaceorg.hibernate.engine.spi.PersistenceContext
-
proxyFor
public Object proxyFor(org.hibernate.engine.spi.EntityHolder holder, org.hibernate.persister.entity.EntityPersister persister) - Specified by:
proxyFor
in interfaceorg.hibernate.engine.spi.PersistenceContext
-
addEnhancedProxy
public void addEnhancedProxy(org.hibernate.engine.spi.EntityKey key, org.hibernate.engine.spi.PersistentAttributeInterceptable entity) - Specified by:
addEnhancedProxy
in interfaceorg.hibernate.engine.spi.PersistenceContext
-
getCollectionOwner
public Object getCollectionOwner(Object key, org.hibernate.persister.collection.CollectionPersister collectionPersister) - Specified by:
getCollectionOwner
in interfaceorg.hibernate.engine.spi.PersistenceContext
-
getLoadedCollectionOwnerOrNull
public Object getLoadedCollectionOwnerOrNull(org.hibernate.collection.spi.PersistentCollection<?> collection) - Specified by:
getLoadedCollectionOwnerOrNull
in interfaceorg.hibernate.engine.spi.PersistenceContext
-
getLoadedCollectionOwnerIdOrNull
public Object getLoadedCollectionOwnerIdOrNull(org.hibernate.collection.spi.PersistentCollection<?> collection) - Specified by:
getLoadedCollectionOwnerIdOrNull
in 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:
addUninitializedCollection
in interfaceorg.hibernate.engine.spi.PersistenceContext
-
addUninitializedDetachedCollection
public void addUninitializedDetachedCollection(org.hibernate.persister.collection.CollectionPersister persister, org.hibernate.collection.spi.PersistentCollection<?> collection) - Specified by:
addUninitializedDetachedCollection
in interfaceorg.hibernate.engine.spi.PersistenceContext
-
addNewCollection
public void addNewCollection(org.hibernate.persister.collection.CollectionPersister persister, org.hibernate.collection.spi.PersistentCollection<?> collection) - Specified by:
addNewCollection
in interfaceorg.hibernate.engine.spi.PersistenceContext
-
addInitializedDetachedCollection
public void addInitializedDetachedCollection(org.hibernate.persister.collection.CollectionPersister collectionPersister, org.hibernate.collection.spi.PersistentCollection<?> collection) - Specified by:
addInitializedDetachedCollection
in 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:
replaceCollection
in 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:
addInitializedCollection
in interfaceorg.hibernate.engine.spi.PersistenceContext
-
getCollection
public org.hibernate.collection.spi.PersistentCollection<?> getCollection(org.hibernate.engine.spi.CollectionKey collectionKey) - Specified by:
getCollection
in interfaceorg.hibernate.engine.spi.PersistenceContext
-
addNonLazyCollection
public void addNonLazyCollection(org.hibernate.collection.spi.PersistentCollection<?> collection) - Specified by:
addNonLazyCollection
in interfaceorg.hibernate.engine.spi.PersistenceContext
-
getCollectionHolder
- Specified by:
getCollectionHolder
in interfaceorg.hibernate.engine.spi.PersistenceContext
-
addCollectionHolder
public void addCollectionHolder(org.hibernate.collection.spi.PersistentCollection<?> holder) - Specified by:
addCollectionHolder
in interfaceorg.hibernate.engine.spi.PersistenceContext
-
removeCollectionHolder
- Specified by:
removeCollectionHolder
in interfaceorg.hibernate.engine.spi.PersistenceContext
-
getSnapshot
- Specified by:
getSnapshot
in interfaceorg.hibernate.engine.spi.PersistenceContext
-
getProxy
- Specified by:
getProxy
in interfaceorg.hibernate.engine.spi.PersistenceContext
-
addProxy
- Specified by:
addProxy
in interfaceorg.hibernate.engine.spi.PersistenceContext
-
removeProxy
- Specified by:
removeProxy
in 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:
claimEntityHolderIfPossible
in interfaceorg.hibernate.engine.spi.PersistenceContext
-
addEntityHolder
public org.hibernate.engine.spi.EntityHolder addEntityHolder(org.hibernate.engine.spi.EntityKey key, Object entity) - Specified by:
addEntityHolder
in interfaceorg.hibernate.engine.spi.PersistenceContext
-
getEntityHolder
public org.hibernate.engine.spi.EntityHolder getEntityHolder(org.hibernate.engine.spi.EntityKey key) - Specified by:
getEntityHolder
in interfaceorg.hibernate.engine.spi.PersistenceContext
-
containsEntityHolder
public boolean containsEntityHolder(org.hibernate.engine.spi.EntityKey key) - Specified by:
containsEntityHolder
in interfaceorg.hibernate.engine.spi.PersistenceContext
-
removeEntityHolder
public org.hibernate.engine.spi.EntityHolder removeEntityHolder(org.hibernate.engine.spi.EntityKey key) - Specified by:
removeEntityHolder
in 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:
postLoad
in interfaceorg.hibernate.engine.spi.PersistenceContext
-
getEntitiesByKey
- Specified by:
getEntitiesByKey
in interfaceorg.hibernate.engine.spi.PersistenceContext
-
getEntityHoldersByKey
@Internal public Map<org.hibernate.engine.spi.EntityKey,org.hibernate.engine.spi.EntityHolder> getEntityHoldersByKey()- Specified by:
getEntityHoldersByKey
in interfaceorg.hibernate.engine.spi.PersistenceContext
-
reentrantSafeEntityEntries
- Specified by:
reentrantSafeEntityEntries
in interfaceorg.hibernate.engine.spi.PersistenceContext
-
getNumberOfManagedEntities
public int getNumberOfManagedEntities()- Specified by:
getNumberOfManagedEntities
in interfaceorg.hibernate.engine.spi.PersistenceContext
-
getCollectionEntries
@Internal public Map<org.hibernate.collection.spi.PersistentCollection<?>,org.hibernate.engine.spi.CollectionEntry> getCollectionEntries()- Specified by:
getCollectionEntries
in 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:
forEachCollectionEntry
in interfaceorg.hibernate.engine.spi.PersistenceContext
-
getCollectionsByKey
@Deprecated public Map<org.hibernate.engine.spi.CollectionKey,org.hibernate.collection.spi.PersistentCollection<?>> getCollectionsByKey()Deprecated.- Specified by:
getCollectionsByKey
in interfaceorg.hibernate.engine.spi.PersistenceContext
-
getCascadeLevel
public int getCascadeLevel()- Specified by:
getCascadeLevel
in interfaceorg.hibernate.engine.spi.PersistenceContext
-
incrementCascadeLevel
public int incrementCascadeLevel()- Specified by:
incrementCascadeLevel
in interfaceorg.hibernate.engine.spi.PersistenceContext
-
decrementCascadeLevel
public int decrementCascadeLevel()- Specified by:
decrementCascadeLevel
in interfaceorg.hibernate.engine.spi.PersistenceContext
-
isFlushing
public boolean isFlushing()- Specified by:
isFlushing
in interfaceorg.hibernate.engine.spi.PersistenceContext
-
setFlushing
public void setFlushing(boolean flushing) - Specified by:
setFlushing
in interfaceorg.hibernate.engine.spi.PersistenceContext
-
beforeLoad
public void beforeLoad()- Specified by:
beforeLoad
in interfaceorg.hibernate.engine.spi.PersistenceContext
-
afterLoad
public void afterLoad()- Specified by:
afterLoad
in interfaceorg.hibernate.engine.spi.PersistenceContext
-
isLoadFinished
public boolean isLoadFinished()- Specified by:
isLoadFinished
in interfaceorg.hibernate.engine.spi.PersistenceContext
-
toString
-
getOwnerId
- Specified by:
getOwnerId
in interfaceorg.hibernate.engine.spi.PersistenceContext
-
getIndexInOwner
- Specified by:
getIndexInOwner
in interfaceorg.hibernate.engine.spi.PersistenceContext
-
addNullProperty
- Specified by:
addNullProperty
in interfaceorg.hibernate.engine.spi.PersistenceContext
-
isPropertyNull
- Specified by:
isPropertyNull
in interfaceorg.hibernate.engine.spi.PersistenceContext
-
isDefaultReadOnly
public boolean isDefaultReadOnly()- Specified by:
isDefaultReadOnly
in interfaceorg.hibernate.engine.spi.PersistenceContext
-
setDefaultReadOnly
public void setDefaultReadOnly(boolean readOnly) - Specified by:
setDefaultReadOnly
in interfaceorg.hibernate.engine.spi.PersistenceContext
-
isReadOnly
- Specified by:
isReadOnly
in interfaceorg.hibernate.engine.spi.PersistenceContext
-
setReadOnly
- Specified by:
setReadOnly
in interfaceorg.hibernate.engine.spi.PersistenceContext
-
isRemovingOrphanBeforeUpdates
public boolean isRemovingOrphanBeforeUpdates()- Specified by:
isRemovingOrphanBeforeUpdates
in interfaceorg.hibernate.engine.spi.PersistenceContext
-
beginRemoveOrphanBeforeUpdates
public void beginRemoveOrphanBeforeUpdates()- Specified by:
beginRemoveOrphanBeforeUpdates
in interfaceorg.hibernate.engine.spi.PersistenceContext
-
endRemoveOrphanBeforeUpdates
public void endRemoveOrphanBeforeUpdates()- Specified by:
endRemoveOrphanBeforeUpdates
in interfaceorg.hibernate.engine.spi.PersistenceContext
-
replaceDelayedEntityIdentityInsertKeys
public void replaceDelayedEntityIdentityInsertKeys(org.hibernate.engine.spi.EntityKey oldKey, Object generatedId) - Specified by:
replaceDelayedEntityIdentityInsertKeys
in interfaceorg.hibernate.engine.spi.PersistenceContext
-
replaceEntityEntryRowId
- Specified by:
replaceEntityEntryRowId
in interfaceorg.hibernate.engine.spi.PersistenceContext
-
addChildParent
- Specified by:
addChildParent
in interfaceorg.hibernate.engine.spi.PersistenceContext
-
removeChildParent
- Specified by:
removeChildParent
in interfaceorg.hibernate.engine.spi.PersistenceContext
-
registerInsertedKey
public void registerInsertedKey(org.hibernate.persister.entity.EntityPersister persister, Object id) - Specified by:
registerInsertedKey
in interfaceorg.hibernate.engine.spi.PersistenceContext
-
wasInsertedDuringTransaction
public boolean wasInsertedDuringTransaction(org.hibernate.persister.entity.EntityPersister persister, Object id) - Specified by:
wasInsertedDuringTransaction
in interfaceorg.hibernate.engine.spi.PersistenceContext
-
containsNullifiableEntityKey
- Specified by:
containsNullifiableEntityKey
in interfaceorg.hibernate.engine.spi.PersistenceContext
-
registerNullifiableEntityKey
public void registerNullifiableEntityKey(org.hibernate.engine.spi.EntityKey key) - Specified by:
registerNullifiableEntityKey
in interfaceorg.hibernate.engine.spi.PersistenceContext
-
isNullifiableEntityKeysEmpty
public boolean isNullifiableEntityKeysEmpty()- Specified by:
isNullifiableEntityKeysEmpty
in interfaceorg.hibernate.engine.spi.PersistenceContext
-
containsDeletedUnloadedEntityKey
public boolean containsDeletedUnloadedEntityKey(org.hibernate.engine.spi.EntityKey ek) - Specified by:
containsDeletedUnloadedEntityKey
in interfaceorg.hibernate.engine.spi.PersistenceContext
-
registerDeletedUnloadedEntityKey
public void registerDeletedUnloadedEntityKey(org.hibernate.engine.spi.EntityKey key) - Specified by:
registerDeletedUnloadedEntityKey
in interfaceorg.hibernate.engine.spi.PersistenceContext
-
removeDeletedUnloadedEntityKey
public void removeDeletedUnloadedEntityKey(org.hibernate.engine.spi.EntityKey key) - Specified by:
removeDeletedUnloadedEntityKey
in interfaceorg.hibernate.engine.spi.PersistenceContext
-
containsDeletedUnloadedEntityKeys
public boolean containsDeletedUnloadedEntityKeys()- Specified by:
containsDeletedUnloadedEntityKeys
in interfaceorg.hibernate.engine.spi.PersistenceContext
-
getCollectionEntriesSize
public int getCollectionEntriesSize()- Specified by:
getCollectionEntriesSize
in interfaceorg.hibernate.engine.spi.PersistenceContext
-
removeCollectionEntry
public org.hibernate.engine.spi.CollectionEntry removeCollectionEntry(org.hibernate.collection.spi.PersistentCollection<?> collection) - Specified by:
removeCollectionEntry
in interfaceorg.hibernate.engine.spi.PersistenceContext
-
clearCollectionsByKey
public void clearCollectionsByKey()- Specified by:
clearCollectionsByKey
in 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:
addCollectionByKey
in interfaceorg.hibernate.engine.spi.PersistenceContext
-
removeCollectionByKey
public void removeCollectionByKey(org.hibernate.engine.spi.CollectionKey collectionKey) - Specified by:
removeCollectionByKey
in interfaceorg.hibernate.engine.spi.PersistenceContext
-
getEntitySnapshotsByKey
- Specified by:
getEntitySnapshotsByKey
in interfaceorg.hibernate.engine.spi.PersistenceContext
-
getOrInitializeEntitySnapshotsByKey
@Internal public Map<org.hibernate.engine.spi.EntityKey,Object> getOrInitializeEntitySnapshotsByKey()- Specified by:
getOrInitializeEntitySnapshotsByKey
in interfaceorg.hibernate.engine.spi.PersistenceContext
-
managedEntitiesIterator
- Specified by:
managedEntitiesIterator
in interfaceorg.hibernate.engine.spi.PersistenceContext
-
getNaturalIdResolutions
public org.hibernate.engine.spi.NaturalIdResolutions getNaturalIdResolutions()- Specified by:
getNaturalIdResolutions
in 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.