Top Description Fields Constructors Methods
org.hibernate

public final Enum FetchMode

extends Enum<FetchMode>
Class Inheritance

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.

public static final FetchMode
JOIN

Fetch using an outer join.

public static final FetchMode
LAZY

Fetch lazily.

public static final FetchMode
SELECT

Fetch eagerly, using a separate select.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static FetchMode
public static FetchMode[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

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".

Annotations
@Deprecated
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".

Annotations
@Deprecated
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()

Method Detail

valueOfback to summary
public static FetchMode valueOf(String name)
valuesback to summary
public static FetchMode[] values()