public class FetchProfile
extends java.lang.Object
This class defines the runtime representation of this data.
Constructor and Description |
---|
FetchProfile(java.lang.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,
java.lang.String fetchStyleName)
Add a fetch to the profile.
|
void |
addFetch(Fetch fetch)
Add a fetch to the profile.
|
Fetch |
getFetchByRole(java.lang.String role)
Obtain the fetch associated with the given role.
|
java.util.Map<java.lang.String,Fetch> |
getFetches()
Getter for property 'fetches'.
|
java.lang.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(java.lang.String name)
name
- The name under which we are bound in the sessionFactorypublic void addFetch(Association association, java.lang.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 java.lang.String getName()
public java.util.Map<java.lang.String,Fetch> getFetches()
Fetch
instances, keyed by association rolepublic Fetch getFetchByRole(java.lang.String role)
role
- The role identifying the fetchnull
if a matching one was not foundpublic boolean isContainsJoinFetchedCollection()
public boolean isContainsJoinFetchedBag()
Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.