Known Direct Subclasses
DefaultAutoFlushEventListener |
Defines the default flush event listeners used by hibernate for
flushing session state in response to generated auto-flush events. |
DefaultDirtyCheckEventListener |
Defines the default dirty-check event listener used by hibernate for
checking the session for dirtiness in response to generated dirty-check
events. |
DefaultFlushEventListener |
Defines the default flush event listeners used by hibernate for
flushing session state in response to generated flush events. |
|
Class Overview
A convenience base class for listeners whose functionality results in flushing.
Summary
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
|
Public Constructors
public
AbstractFlushingEventListener
()
Protected Methods
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
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
1. Recreate the collection key -> collection map
2. rebuild the collection entries
3. call Interceptor.postFlush()