public class FetchProfile extends Object
Constructor and Description |
---|
FetchProfile(String name)
Constructs a FetchProfile, supplying its unique name (unique within the 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)
Obtain the fetch associated with the given 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)
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 Fetch getFetchByRole(String role)
role
- The role identifying the fetchnull
if a matching one was not foundpublic boolean isContainsJoinFetchedCollection()
public boolean isContainsJoinFetchedBag()
Copyright © 2019 JBoss by Red Hat. All rights reserved.