|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.hibernate.mapping.FetchProfile
public class FetchProfile
A fetch profile allows a user to dynamically modify the fetching strategy used for particular associations at runtime, whereas that information was historically only statically defined in the metadata.
This class represent the data as it is defined in their metadata.
FetchProfile
Nested Class Summary | |
---|---|
static class |
FetchProfile.Fetch
Defines an individual association fetch within the given profile. |
Constructor Summary | |
---|---|
FetchProfile(String name,
MetadataSource source)
Create a fetch profile representation. |
Method Summary | |
---|---|
void |
addFetch(String entity,
String association,
String style)
Adds a fetch to this profile. |
boolean |
equals(Object o)
|
LinkedHashSet<FetchProfile.Fetch> |
getFetches()
Retrieve the fetches associated with this profile |
String |
getName()
Retrieve the name of the fetch profile. |
MetadataSource |
getSource()
Retrieve the fetch profile source. |
int |
hashCode()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FetchProfile(String name, MetadataSource source)
name
- The name of the fetch profile.source
- The source of the fetch profile (where was it defined).Method Detail |
---|
public String getName()
public MetadataSource getSource()
public LinkedHashSet<FetchProfile.Fetch> getFetches()
public void addFetch(String entity, String association, String style)
entity
- The entity which contains the association to be fetchedassociation
- The association to fetchstyle
- The style of fetch t applypublic boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |