Class ReactivePersistenceContextAdapter
- java.lang.Object
-
- org.hibernate.engine.internal.StatefulPersistenceContext
-
- org.hibernate.reactive.engine.impl.ReactivePersistenceContextAdapter
-
- All Implemented Interfaces:
org.hibernate.engine.spi.PersistenceContext
public class ReactivePersistenceContextAdapter extends org.hibernate.engine.internal.StatefulPersistenceContext
Add reactive methods to aPersistenceContext
.
-
-
Constructor Summary
Constructors Constructor Description ReactivePersistenceContextAdapter(org.hibernate.engine.spi.SharedSessionContractImplementor session)
Constructs a PersistentContext, bound to the given session.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
clear()
java.lang.Object[]
getCachedDatabaseSnapshot(org.hibernate.engine.spi.EntityKey key)
java.lang.Object[]
getDatabaseSnapshot(java.lang.Object id, org.hibernate.persister.entity.EntityPersister persister)
Deprecated.void
initializeNonLazyCollections()
Deprecated.usereactiveInitializeNonLazyCollections()
instead.java.util.concurrent.CompletionStage<java.lang.Object[]>
reactiveGetDatabaseSnapshot(java.lang.Object id, org.hibernate.persister.entity.EntityPersister persister)
java.util.concurrent.CompletionStage<java.lang.Void>
reactiveInitializeNonLazyCollections()
java.lang.Object
removeEntity(org.hibernate.engine.spi.EntityKey key)
-
Methods inherited from class org.hibernate.engine.internal.StatefulPersistenceContext
addChildParent, addCollectionByKey, addCollectionHolder, addEnhancedProxy, addEntity, addEntity, addEntity, addEntry, addInitializedCollection, addInitializedDetachedCollection, addNewCollection, addNonLazyCollection, addNullProperty, addProxy, addReferenceEntry, addUninitializedCollection, addUninitializedDetachedCollection, afterLoad, afterTransactionCompletion, beforeLoad, beginRemoveOrphanBeforeUpdates, checkUniqueness, clearCollectionsByKey, containsCollection, containsDeletedUnloadedEntityKey, containsDeletedUnloadedEntityKeys, containsEntity, containsNullifiableEntityKey, containsProxy, decrementCascadeLevel, deserialize, endRemoveOrphanBeforeUpdates, forEachCollectionEntry, getBatchFetchQueue, getCascadeLevel, getCollection, getCollectionEntries, getCollectionEntriesSize, getCollectionEntry, getCollectionHolder, getCollectionOwner, getCollectionsByKey, getEntitiesByKey, getEntity, getEntity, getEntry, getIndexInOwner, getLoadContexts, getLoadedCollectionOwnerIdOrNull, getLoadedCollectionOwnerOrNull, getNaturalIdResolutions, getNaturalIdSnapshot, getNumberOfManagedEntities, getOwnerId, getProxy, getSession, getSnapshot, hasLoadContext, incrementCascadeLevel, initializeNonLazyCollections, isDefaultReadOnly, isEntryFor, isFlushing, isLoadFinished, isNullifiableEntityKeysEmpty, isPropertyNull, isReadOnly, isRemovingOrphanBeforeUpates, isStateless, managedEntitiesIterator, narrowProxy, proxyFor, proxyFor, reassociateIfUninitializedProxy, reassociateProxy, reentrantSafeEntityEntries, registerDeletedUnloadedEntityKey, registerInsertedKey, registerNullifiableEntityKey, removeChildParent, removeCollectionByKey, removeCollectionEntry, removeCollectionHolder, removeDeletedUnloadedEntityKey, removeEntry, removeProxy, replaceDelayedEntityIdentityInsertKeys, serialize, setDefaultReadOnly, setEntryStatus, setFlushing, setReadOnly, toString, unproxy, unproxyAndReassociate, useUnownedCollection, wasInsertedDuringTransaction
-
-
-
-
Method Detail
-
reactiveInitializeNonLazyCollections
public java.util.concurrent.CompletionStage<java.lang.Void> reactiveInitializeNonLazyCollections() throws org.hibernate.HibernateException
- Throws:
org.hibernate.HibernateException
-
initializeNonLazyCollections
@Deprecated public void initializeNonLazyCollections()
Deprecated.usereactiveInitializeNonLazyCollections()
instead.- Specified by:
initializeNonLazyCollections
in interfaceorg.hibernate.engine.spi.PersistenceContext
- Overrides:
initializeNonLazyCollections
in classorg.hibernate.engine.internal.StatefulPersistenceContext
-
getDatabaseSnapshot
@Deprecated public java.lang.Object[] getDatabaseSnapshot(java.lang.Object id, org.hibernate.persister.entity.EntityPersister persister) throws org.hibernate.HibernateException
Deprecated.- Specified by:
getDatabaseSnapshot
in interfaceorg.hibernate.engine.spi.PersistenceContext
- Overrides:
getDatabaseSnapshot
in classorg.hibernate.engine.internal.StatefulPersistenceContext
- Throws:
org.hibernate.HibernateException
-
reactiveGetDatabaseSnapshot
public java.util.concurrent.CompletionStage<java.lang.Object[]> reactiveGetDatabaseSnapshot(java.lang.Object id, org.hibernate.persister.entity.EntityPersister persister) throws org.hibernate.HibernateException
- Throws:
org.hibernate.HibernateException
-
getCachedDatabaseSnapshot
public java.lang.Object[] getCachedDatabaseSnapshot(org.hibernate.engine.spi.EntityKey key)
- Specified by:
getCachedDatabaseSnapshot
in interfaceorg.hibernate.engine.spi.PersistenceContext
- Overrides:
getCachedDatabaseSnapshot
in classorg.hibernate.engine.internal.StatefulPersistenceContext
-
clear
public void clear()
- Specified by:
clear
in interfaceorg.hibernate.engine.spi.PersistenceContext
- Overrides:
clear
in classorg.hibernate.engine.internal.StatefulPersistenceContext
-
removeEntity
public java.lang.Object removeEntity(org.hibernate.engine.spi.EntityKey key)
- Specified by:
removeEntity
in interfaceorg.hibernate.engine.spi.PersistenceContext
- Overrides:
removeEntity
in classorg.hibernate.engine.internal.StatefulPersistenceContext
-
-