Top Description Fields Constructors Methods
org.hibernate

public final Class FetchMode

extends Object
implements Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable
Imports
java.io.Serializable, java.util.HashMap, .Map

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)

Field Summary

Modifier and TypeField and Description
public static final FetchMode
DEFAULT

Default to the setting configured in the mapping file.

public static final FetchMode
EAGER

Fetch eagerly, using an outer join.

private static final Map<K, V>
public static final FetchMode
JOIN

Fetch using an outer join.

public static final FetchMode
LAZY

Fetch lazily.

private final String
public static final FetchMode
SELECT

Fetch eagerly, using a separate select.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
private Object
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

DEFAULTback to summary
public static final FetchMode DEFAULT

Default to the setting configured in the mapping file.

EAGERback to summary
public static final FetchMode EAGER

Deprecated

use FetchMode.JOIN

Fetch eagerly, using an outer join. Equivalent to outer-join="true".

INSTANCESback to summary
private static final Map<K, V> INSTANCES
JOINback to summary
public static final FetchMode JOIN

Fetch using an outer join. Equivalent to fetch="join".

LAZYback to summary
public static final FetchMode LAZY

Deprecated

use FetchMode.SELECT

Fetch lazily. Equivalent to outer-join="false".

nameback to summary
private final String name
SELECTback to summary
public static final FetchMode SELECT

Fetch eagerly, using a separate select. Equivalent to fetch="select".

Constructor Detail

FetchModeback to summary
private FetchMode(String name)

Method Detail

readResolveback to summary
private Object readResolve()
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.