public abstract class AbstractFlushingEventListener extends Object implements JpaBootstrapSensitive, Serializable
Constructor and Description |
---|
AbstractFlushingEventListener() |
Modifier and Type | Method and Description |
---|---|
protected void |
flushEverythingToExecutions(FlushEvent event)
Coordinates the processing necessary to get things ready for executions
as db calls by preping the session caches and moving the appropriate
entities and collections to their respective execution queues.
|
protected Object |
getAnything() |
protected CascadingAction |
getCascadingAction() |
protected void |
performExecutions(EventSource session)
Execute all SQL (and second-level cache updates) in a special order so that foreign-key constraints cannot
be violated:
Inserts, in the order they were performed
Updates
Deletion of collection elements
Insertion of collection elements
Deletes, in the order they were performed
|
protected void |
postFlush(SessionImplementor session)
1.
|
protected void |
postPostFlush(SessionImplementor session) |
void |
wasJpaBootstrap(boolean wasJpaBootstrap) |
public void wasJpaBootstrap(boolean wasJpaBootstrap)
wasJpaBootstrap
in interface JpaBootstrapSensitive
protected void flushEverythingToExecutions(FlushEvent event) throws HibernateException
event
- The flush event.HibernateException
- Error flushing caches to execution queues.protected Object getAnything()
protected CascadingAction getCascadingAction()
protected void performExecutions(EventSource session)
session
- The session being flushedprotected void postFlush(SessionImplementor session) throws HibernateException
HibernateException
protected void postPostFlush(SessionImplementor session)
Copyright © 2021 JBoss by Red Hat. All rights reserved.