public final class

FlushMode

extends Object
implements Serializable
java.lang.Object
   ↳ org.hibernate.FlushMode

Class Overview

Represents a flushing strategy. The flush process synchronizes database state with session state by detecting state changes and executing SQL statements.

Summary

Fields
public static final FlushMode ALWAYS The Session is flushed before every query.
public static final FlushMode AUTO The Session is sometimes flushed before query execution in order to ensure that queries never return stale state.
public static final FlushMode COMMIT The Session is flushed when commit() is called.
public static final FlushMode MANUAL The Session is only ever flushed when flush() is explicitly called by the application.
public static final FlushMode NEVER This field is deprecated. use MANUAL instead.
Public Methods
static boolean isManualFlushMode(FlushMode mode)
boolean lessThan(FlushMode other)
static FlushMode parse(String name)
String toString()
[Expand]
Inherited Methods
From class java.lang.Object

Fields

public static final FlushMode ALWAYS

The Session is flushed before every query. This is almost always unnecessary and inefficient.

public static final FlushMode AUTO

The Session is sometimes flushed before query execution in order to ensure that queries never return stale state. This is the default flush mode.

public static final FlushMode COMMIT

The Session is flushed when commit() is called.

public static final FlushMode MANUAL

The Session is only ever flushed when flush() is explicitly called by the application. This mode is very efficient for read only transactions.

public static final FlushMode NEVER

This field is deprecated.
use MANUAL instead.

The Session is never flushed unless flush() is explicitly called by the application. This mode is very efficient for read only transactions.

Public Methods

public static boolean isManualFlushMode (FlushMode mode)

public boolean lessThan (FlushMode other)

public static FlushMode parse (String name)

public String toString ()