Top Description Inners Fields Constructors Methods
org.hibernate.engine.profile

public Class Fetch

extends Object
Class Inheritance

Models an individual fetch within a profile.
Author
Steve Ebersole

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static enum
Fetch.Style

The type or style of fetch.

Field Summary

Modifier and TypeField and Description
private final Association
private final Fetch.Style

Constructor Summary

AccessConstructor and Description
public
Fetch(Association
The association to be fetched
association
,
Fetch.Style
How to fetch it
style
)

Constructs a Fetch

Method Summary

Modifier and TypeMethod and Description
public Association
public Fetch.Style
public String
toString()

Overrides java.lang.Object.toString.

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

Field Detail

associationback to summary
private final Association association
styleback to summary
private final Fetch.Style style

Constructor Detail

Fetchback to summary
public Fetch(Association association, Fetch.Style style)

Constructs a Fetch

Parameters
association:Association

The association to be fetched

style:Fetch.Style

How to fetch it

Method Detail

getAssociationback to summary
public Association getAssociation()
getStyleback to summary
public Fetch.Style getStyle()
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.

Annotations
@Override
org.hibernate.engine.profile back to summary

public final Enum Fetch.Style

extends Enum<Fetch.Style>
Class Inheritance

The type or style of fetch. For the moment we limit this to join and select, though technically subselect would be valid here as well; however, to support subselect here would require major changes to the subselect loading code (which is needed for other things as well anyway).

Field Summary

Modifier and TypeField and Description
public static final Fetch.Style
JOIN

Fetch via a join

private final String
public static final Fetch.Style
SELECT

Fetch via a subsequent select

Constructor Summary

AccessConstructor and Description
private
Style(String name)

Method Summary

Modifier and TypeMethod and Description
public static Fetch.Style

Returns:

The style; JOIN is returned if not recognized
parse
(String
The externalized representation
name
)

Parses a style given an externalized string representation

public String
toString()

Overrides java.lang.Enum.toString.

Returns the name of this enum constant, as contained in the declaration.
public static Fetch.Style
public static Fetch.Style[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinalvalueOf

Field Detail

JOINback to summary
public static final Fetch.Style JOIN

Fetch via a join

nameback to summary
private final String name

Hides java.lang.Enum.name.

SELECTback to summary
public static final Fetch.Style SELECT

Fetch via a subsequent select

Constructor Detail

Styleback to summary
private Style(String name)

Method Detail

parseback to summary
public static Fetch.Style parse(String name)

Parses a style given an externalized string representation

Parameters
name:String

The externalized representation

Returns:Fetch.Style

The style; JOIN is returned if not recognized

toStringback to summary
public String toString()

Overrides java.lang.Enum.toString.

Doc from java.lang.Enum.toString.

Returns the name of this enum constant, as contained in the declaration. This method may be overridden, though it typically isn't necessary or desirable. An enum class should override this method when a more "programmer-friendly" string form exists.

Returns:String

the name of this enum constant

Annotations
@Override
valueOfback to summary
public static Fetch.Style valueOf(String name)
valuesback to summary
public static Fetch.Style[] values()