public class FetchProfile extends Object
Constructor and Description |
---|
FetchProfile(String name)
A 'fetch profile' is uniquely named within a
SessionFactory , thus it is also
uniquely and easily identifiable within that
SessionFactory . |
Modifier and Type | Method and Description |
---|---|
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<String,Fetch> |
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.
|
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 sessionFactorypublic void addFetch(Association association, String fetchStyleName)
association
- The association to be fetchedfetchStyleName
- The name of the fetch style to applypublic 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<String,Fetch> getFetches()
Fetch
instances, keyed by association rolepublic boolean isContainsJoinFetchedCollection()
public boolean isContainsJoinFetchedBag()
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.