|
|||||||||
| Home >> All >> org >> [ hibernate overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.hibernate
Class FetchMode

java.lang.Objectorg.hibernate.FetchMode
- All Implemented Interfaces:
- java.io.Serializable
- public final class FetchMode
- extends java.lang.Object
- implements java.io.Serializable
- extends java.lang.Object
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.
| Field Summary | |
static FetchMode |
DEFAULT
Default to the setting configured in the mapping file. |
static FetchMode |
EAGER
Deprecated. use FetchMode.JOIN |
private static java.util.Map |
INSTANCES
|
static FetchMode |
JOIN
Fetch using an outer join. |
static FetchMode |
LAZY
Deprecated. use FetchMode.SELECT |
private java.lang.String |
name
|
static FetchMode |
SELECT
Fetch eagerly, using a separate select. |
| Constructor Summary | |
private |
FetchMode(java.lang.String name)
|
| Method Summary | |
private java.lang.Object |
readResolve()
|
java.lang.String |
toString()
Convert this Object to a human-readable String. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
name
private final java.lang.String name
INSTANCES
private static final java.util.Map INSTANCES
DEFAULT
public static final FetchMode DEFAULT
- Default to the setting configured in the mapping file.
JOIN
public static final FetchMode JOIN
- Fetch using an outer join. Equivalent to fetch="join".
SELECT
public static final FetchMode SELECT
- Fetch eagerly, using a separate select. Equivalent to
fetch="select".
LAZY
public static final FetchMode LAZY
- Deprecated. use FetchMode.SELECT
- Fetch lazily. Equivalent to outer-join="false".
- Fetch lazily. Equivalent to outer-join="false".
EAGER
public static final FetchMode EAGER
- Deprecated. use FetchMode.JOIN
- Fetch eagerly, using an outer join. Equivalent to outer-join="true".
- Fetch eagerly, using an outer join. Equivalent to outer-join="true".
| Constructor Detail |
FetchMode
private FetchMode(java.lang.String name)
| Method Detail |
toString
public java.lang.String toString()
- Description copied from class:
java.lang.Object - Convert this Object to a human-readable String.
There are no limits placed on how long this String
should be or what it should contain. We suggest you
make it as intuitive as possible to be able to place
it into System.out.println() 55
and such.
It is typical, but not required, to ensure that this method never completes abruptly with a java.lang.RuntimeException.
This method will be called when performing string concatenation with this object. If the result is
null, string concatenation will instead use"null".The default implementation returns
getClass().getName() + "@" + Integer.toHexString(hashCode()).
readResolve
private java.lang.Object readResolve()
|
|||||||||
| Home >> All >> org >> [ hibernate overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
org.hibernate.FetchMode