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()