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.
|
<T> FetchGroup<T> |
createFetchGroup(Class<T> cls,
String name)
Method to create a new FetchGroup for the class and name.
|
<T> FetchGroup<T> |
getFetchGroup(Class<T> cls,
String name,
boolean createIfNotPresent)
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 <T> FetchGroup<T> getFetchGroup(Class<T> cls, String name, boolean createIfNotPresent)
T
- Type that the FetchGroup is forcls
- The classname
- Name of the groupcreateIfNotPresent
- Whether this method should create+add a FetchGroup if on with this name isn't found.public <T> FetchGroup<T> createFetchGroup(Class<T> cls, String name)
T
- Type that the FetchGroup is forcls
- The classname
- Name of the grouppublic Set<FetchGroup> getFetchGroupsWithName(String name)
name
- Name of the grouppublic void clearFetchGroups()
Copyright © 2019. All rights reserved.