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

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


net.sf.hibernate
Class FetchMode

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

public final class FetchMode
extends Object
implements Serializable

Represents an association fetching strategy. This is used together with the Criteria API to specify runtime fetching strategies.

For HQL queries, use the FETCH keyword instead.

Author:
Gavin King
See Also:
Criteria.setFetchMode(java.lang.String, FetchMode), Serialized Form

Field Summary
static FetchMode DEFAULT
          Default to the setting configured in the mapping file.
static FetchMode EAGER
          Fetch eagerly, using an outer join.
static FetchMode LAZY
          Fetch lazily.
 
Method Summary
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

LAZY

public static final FetchMode LAZY
Fetch lazily. Equivalent to outer-join="false".


EAGER

public static final FetchMode EAGER
Fetch eagerly, using an outer join. Equivalent to outer-join="true".


DEFAULT

public static final FetchMode DEFAULT
Default to the setting configured in the mapping file.

Method Detail

toString

public String toString()