Fetch profiles compete with JPA-defined named entity graphs. The semantics of these two facilities are not identical, however, since a fetch profile is a list, not a graph, and is not by nature rooted at any one particular entity. Instead, given a root entity as input, an active fetch profile contributes to the determination of the fetch graph.
A named fetch profile may be enabled in a given session
by calling org..
org.hibernate.mapping.FetchProfile
| Modifier and Type | Field and Description |
|---|---|
| private @Nullable Fetch | |
| private boolean | |
| private boolean | |
| private final Map | |
| private static final CoreMessageLogger | |
| private final String |
| Access | Constructor and Description |
|---|---|
| public | FetchProfile(String
The name under which we are bound in the sessionFactory name)Constructs a |
| Modifier and Type | Method and Description |
|---|---|
| public void | addFetch(Association
The association to be fetched association, String The name of the fetch style to apply fetchStyleName)
Deprecated
for removal. No longer used
Add a fetch override to the profile.
|
| public void | addFetch(Association
The association to be fetched association, Fetch.The style to apply style
Deprecated
for removal. No longer used
Add a fetch override to the profile.
|
| public void | |
| public @Nullable Fetch | Returns: TheFetch, or null if there was
no Fetch for the given associationThe role name identifying the association role)Obtain the fetch override associated with the given role. |
| public Map | |
| public String | |
| public boolean | |
| public boolean | Returns: Value for property 'containsJoinFetchedBag'.
Deprecated
for removal. No longer used
Does this fetch profile contained any bag join fetches?
|
| public boolean | isContainsJoinFetchedCollection()
Deprecated
for removal. No longer used
Does this fetch profile contain any collection join fetches?
|
| public String |
| bagJoinFetch | back to summary |
|---|---|
| private @Nullable Fetch bagJoinFetch | |
| containsJoinFetchedBag | back to summary |
|---|---|
| private boolean containsJoinFetchedBag | |
| containsJoinFetchedCollection | back to summary |
|---|---|
| private boolean containsJoinFetchedCollection | |
| fetches | back to summary |
|---|---|
| private final Map<String, Fetch> fetches | |
| LOG | back to summary |
|---|---|
| private static final CoreMessageLogger LOG | |
| name | back to summary |
|---|---|
| private final String name | |
| FetchProfile | back to summary |
|---|---|
| public FetchProfile(String name) Constructs a
| |
| addFetch | back to summary |
|---|---|
| public void addFetch(Association association, String fetchStyleName)
Deprecated for removal. No longer used Add a fetch override to the profile.
| |
| addFetch | back to summary |
|---|---|
| public void addFetch(Association association, Fetch. Deprecated for removal. No longer used Add a fetch override to the profile.
| |
| addFetch | back to summary |
|---|---|
| public void addFetch(final Fetch fetch) Add a fetch override to the profile. | |
| getFetchByRole | back to summary |
|---|---|
| public @Nullable Fetch getFetchByRole(String role) Obtain the fetch override associated with the given role. | |
| getFetches | back to summary |
|---|---|
| public Map A map of | |
| getName | back to summary |
|---|---|
| public String getName() The name of this fetch profile | |
| hasSubselectLoadableCollectionsEnabled | back to summary |
|---|---|
| public boolean hasSubselectLoadableCollectionsEnabled(EntityPersister persister) | |
| isContainsJoinFetchedBag | back to summary |
|---|---|
| public boolean isContainsJoinFetchedBag()
Deprecated for removal. No longer used Does this fetch profile contained any bag join fetches?
| |
| isContainsJoinFetchedCollection | back to summary |
|---|---|
| public boolean isContainsJoinFetchedCollection()
Deprecated for removal. No longer used Does this fetch profile contain any collection join fetches?
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |