java.lang.Object | |
↳ | org.hibernate.FlushMode |
Represents a flushing strategy. The flush process synchronizes database state with session state by detecting state changes and executing SQL statements.
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
ALWAYS | The Session is flushed before every query. |
||||||||||
AUTO | The Session is sometimes flushed before query execution
in order to ensure that queries never return stale state. |
||||||||||
COMMIT | The Session is flushed when commit()
is called. |
||||||||||
MANUAL | The Session is only ever flushed when flush()
is explicitly called by the application. |
||||||||||
NEVER |
This field is deprecated.
use MANUAL instead.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
The Session
is flushed before every query. This is
almost always unnecessary and inefficient.
The Session
is sometimes flushed before query execution
in order to ensure that queries never return stale state. This
is the default flush mode.