public class FetchProfile
extends java.lang.Object
FetchProfile| Modifier and Type | Class and Description |
|---|---|
static class |
FetchProfile.Fetch
Defines an individual association fetch within the given profile.
|
| Constructor and Description |
|---|
FetchProfile(java.lang.String name,
MetadataSource source)
Create a fetch profile representation.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addFetch(java.lang.String entity,
java.lang.String association,
java.lang.String style)
Adds a fetch to this profile.
|
boolean |
equals(java.lang.Object o) |
java.util.LinkedHashSet<FetchProfile.Fetch> |
getFetches()
Retrieve the fetches associated with this profile
|
java.lang.String |
getName()
Retrieve the name of the fetch profile.
|
MetadataSource |
getSource()
Retrieve the fetch profile source.
|
int |
hashCode() |
public FetchProfile(java.lang.String name,
MetadataSource source)
name - The name of the fetch profile.source - The source of the fetch profile (where was it defined).public java.lang.String getName()
public MetadataSource getSource()
public java.util.LinkedHashSet<FetchProfile.Fetch> getFetches()
public void addFetch(java.lang.String entity,
java.lang.String association,
java.lang.String style)
entity - The entity which contains the association to be fetchedassociation - The association to fetchstyle - The style of fetch t applypublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.ObjectCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.