Search in sources :

Example 1 with RefreshEvent

use of org.hibernate.event.spi.RefreshEvent in project hibernate-orm by hibernate.

the class SessionImpl method refresh.

@Override
@Deprecated
public void refresh(String entityName, Object object, LockOptions lockOptions) throws HibernateException {
    checkOpen();
    fireRefresh(new RefreshEvent(entityName, object, lockOptions, this));
}
Also used : RefreshEvent(org.hibernate.event.spi.RefreshEvent)

Example 2 with RefreshEvent

use of org.hibernate.event.spi.RefreshEvent in project hibernate-orm by hibernate.

the class SessionImpl method refresh.

@Override
public void refresh(String entityName, Object object, RefreshContext refreshedAlready) throws HibernateException {
    checkOpenOrWaitingForAutoClose();
    fireRefresh(refreshedAlready, new RefreshEvent(entityName, object, this));
}
Also used : RefreshEvent(org.hibernate.event.spi.RefreshEvent)

Example 3 with RefreshEvent

use of org.hibernate.event.spi.RefreshEvent in project hibernate-orm by hibernate.

the class SessionImpl method refresh.

@Override
public void refresh(Object object, LockMode lockMode) throws HibernateException {
    checkOpen();
    fireRefresh(new RefreshEvent(object, lockMode, this));
}
Also used : RefreshEvent(org.hibernate.event.spi.RefreshEvent)

Example 4 with RefreshEvent

use of org.hibernate.event.spi.RefreshEvent in project hibernate-orm by hibernate.

the class SessionImpl method refresh.

@Override
@Deprecated
public void refresh(String entityName, Object object) throws HibernateException {
    checkOpen();
    fireRefresh(new RefreshEvent(entityName, object, this));
}
Also used : RefreshEvent(org.hibernate.event.spi.RefreshEvent)

Example 5 with RefreshEvent

use of org.hibernate.event.spi.RefreshEvent in project hibernate-orm by hibernate.

the class SessionImpl method refresh.

// refresh() operations ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@Override
public void refresh(Object object) throws HibernateException {
    checkOpen();
    fireRefresh(new RefreshEvent(null, object, this));
}
Also used : RefreshEvent(org.hibernate.event.spi.RefreshEvent)

Aggregations

RefreshEvent (org.hibernate.event.spi.RefreshEvent)7 Serializable (java.io.Serializable)1 MethodHandles (java.lang.invoke.MethodHandles)1 Map (java.util.Map)1 CompletionStage (java.util.concurrent.CompletionStage)1 HibernateException (org.hibernate.HibernateException)1 LockMode (org.hibernate.LockMode)1 LockOptions (org.hibernate.LockOptions)1 PersistentObjectException (org.hibernate.PersistentObjectException)1 UnresolvableObjectException (org.hibernate.UnresolvableObjectException)1 CollectionDataAccess (org.hibernate.cache.spi.access.CollectionDataAccess)1 EntityDataAccess (org.hibernate.cache.spi.access.EntityDataAccess)1 SoftLock (org.hibernate.cache.spi.access.SoftLock)1 CascadePoint (org.hibernate.engine.internal.CascadePoint)1 ActionQueue (org.hibernate.engine.spi.ActionQueue)1 EntityEntry (org.hibernate.engine.spi.EntityEntry)1 EntityKey (org.hibernate.engine.spi.EntityKey)1 PersistenceContext (org.hibernate.engine.spi.PersistenceContext)1 SessionFactoryImplementor (org.hibernate.engine.spi.SessionFactoryImplementor)1 EvictVisitor (org.hibernate.event.internal.EvictVisitor)1