Class ReactivePersistenceContextAdapter

  • All Implemented Interfaces:
    org.hibernate.engine.spi.PersistenceContext

    public class ReactivePersistenceContextAdapter
    extends org.hibernate.engine.internal.StatefulPersistenceContext
    Add reactive methods to a PersistenceContext.
    • 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.
      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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ReactivePersistenceContextAdapter

        public ReactivePersistenceContextAdapter​(org.hibernate.engine.spi.SharedSessionContractImplementor session)
        Constructs a PersistentContext, bound to the given session.
        Parameters:
        session - The session "owning" this context.
    • 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.
        Specified by:
        initializeNonLazyCollections in interface org.hibernate.engine.spi.PersistenceContext
        Overrides:
        initializeNonLazyCollections in class org.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 interface org.hibernate.engine.spi.PersistenceContext
        Overrides:
        getDatabaseSnapshot in class org.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 interface org.hibernate.engine.spi.PersistenceContext
        Overrides:
        getCachedDatabaseSnapshot in class org.hibernate.engine.internal.StatefulPersistenceContext
      • clear

        public void clear()
        Specified by:
        clear in interface org.hibernate.engine.spi.PersistenceContext
        Overrides:
        clear in class org.hibernate.engine.internal.StatefulPersistenceContext
      • removeEntity

        public java.lang.Object removeEntity​(org.hibernate.engine.spi.EntityKey key)
        Specified by:
        removeEntity in interface org.hibernate.engine.spi.PersistenceContext
        Overrides:
        removeEntity in class org.hibernate.engine.internal.StatefulPersistenceContext