站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Hibernate 2.1.8 正式版 API 英文文档

FlushMode (Hibernate API Documentation) - Hibernate 2.1.8 正式版 API 英文文档


net.sf.hibernate
Class FlushMode

java.lang.Object
  extended bynet.sf.hibernate.FlushMode
All Implemented Interfaces:
Serializable

public final class FlushMode
extends Object
implements Serializable

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

Author:
Gavin King
See Also:
Session.setFlushMode(FlushMode), Serialized Form

Field Summary
static FlushMode AUTO
          The Session is sometimes flushed before query execution in order to ensure that queries never return stale state.
static FlushMode COMMIT
          The Session is flushed when Transaction.commit() is called.
static FlushMode NEVER
          The Session is never flushed unless flush() is explicitly called by the application.
 
Method Summary
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NEVER

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


COMMIT

public static final FlushMode COMMIT
The Session is flushed when Transaction.commit() is called.


AUTO

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.

Method Detail

toString

public String toString()