org.hibernate.engine.profile
public class FetchProfile extends java.lang.Object
Constructor and Description |
---|
FetchProfile(java.lang.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,
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) |
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)
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, 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)
public boolean isContainsJoinFetchedCollection()
public boolean isContainsJoinFetchedBag()
Copyright © 2014. All Rights Reserved.