FileDocCategorySizeDatePackage
FetchMode.javaAPI DocHibernate 3.2.51707Thu Dec 23 20:11:06 GMT 2004org.hibernate

FetchMode

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.
see
Criteria#setFetchMode(java.lang.String, FetchMode)
author
Gavin King

Fields Summary
private final String
name
private static final Map
INSTANCES
public static final FetchMode
DEFAULT
Default to the setting configured in the mapping file.
public static final FetchMode
JOIN
Fetch using an outer join. Equivalent to fetch="join".
public static final FetchMode
SELECT
Fetch eagerly, using a separate select. Equivalent to fetch="select".
public static final FetchMode
LAZY
Fetch lazily. Equivalent to outer-join="false".
public static final FetchMode
EAGER
Fetch eagerly, using an outer join. Equivalent to outer-join="true".
Constructors Summary
private FetchMode(String name)


	   
		this.name=name;
	
Methods Summary
private java.lang.ObjectreadResolve()

	
	 
		INSTANCES.put( JOIN.name, JOIN );
		INSTANCES.put( SELECT.name, SELECT );
		INSTANCES.put( DEFAULT.name, DEFAULT );
	
		return INSTANCES.get(name);
	
public java.lang.StringtoString()

		return name;