|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hibernate.engine.profile.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.
| Constructor Summary | |
|---|---|
FetchProfile(String name)
A 'fetch profile' is uniquely named within a SessionFactory, thus it is also
uniquely and easily identifiable within that
SessionFactory. |
|
| Method Summary | |
|---|---|
void |
addFetch(Association association,
Fetch.Style style)
Add a fetch to the profile. |
void |
addFetch(Association association,
String fetchStyleName)
Add a fetch to the profile. |
void |
addFetch(Fetch fetch)
Add a fetch to the profile. |
Fetch |
getFetchByRole(String role)
|
Map |
getFetches()
Getter for property 'fetches'. |
String |
getName()
Getter for property 'name'. |
boolean |
isContainsJoinFetchedBag()
Getter for property 'containsJoinFetchedBag', which flags whether this fetch profile contained any bag join fetches |
boolean |
isContainsJoinFetchedCollection()
Getter for property 'containsJoinFetchedCollection', which flags whether this fetch profile contained any collection join fetches. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FetchProfile(String name)
SessionFactory, thus it is also
uniquely and easily identifiable within that
SessionFactory.
name - The name under which we are bound in the sessionFactory| Method Detail |
|---|
public void addFetch(Association association,
String fetchStyleName)
association - The association to be fetchedfetchStyleName - The name of the fetch style to apply
public void addFetch(Association association,
Fetch.Style style)
association - The association to be fetchedstyle - The style to applypublic void addFetch(Fetch fetch)
fetch - The fetch to add.public String getName()
public Map getFetches()
Fetch instances,
keyed by associaion role
public Fetch getFetchByRole(String role)
public boolean isContainsJoinFetchedCollection()
public boolean isContainsJoinFetchedBag()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||