public class FetchGroupManager extends Object
Constructor and Description |
---|
FetchGroupManager(NucleusContext ctx)
Constructor for a FetchGroupManager for a particular Context.
|
Modifier and Type | Method and Description |
---|---|
void |
addFetchGroup(FetchGroup grp)
Method to add a dynamic fetch group.
|
void |
clearFetchGroups()
Clear out all fetch groups from use by this manager.
|
FetchGroup |
createFetchGroup(Class cls,
String name)
Method to create a new FetchGroup for the class and name.
|
FetchGroup |
getFetchGroup(Class cls,
String name)
Accessor for a fetch group for the specified class.
|
Set<FetchGroup> |
getFetchGroupsWithName(String name)
Accessor for the fetch groups for the specified name.
|
void |
removeFetchGroup(FetchGroup grp)
Method to remove a dynamic FetchGroup from use.
|
public FetchGroupManager(NucleusContext ctx)
ctx
- The Contextpublic void addFetchGroup(FetchGroup grp)
grp
- The fetch grouppublic void removeFetchGroup(FetchGroup grp)
grp
- The grouppublic FetchGroup getFetchGroup(Class cls, String name)
cls
- The classname
- Name of the grouppublic FetchGroup createFetchGroup(Class cls, String name)
cls
- The classname
- Name of the grouppublic Set<FetchGroup> getFetchGroupsWithName(String name)
name
- Name of the grouppublic void clearFetchGroups()
Copyright © 2015. All rights reserved.