org.datanucleus
Class FetchGroupManager

java.lang.Object
  extended by org.datanucleus.FetchGroupManager

public class FetchGroupManager
extends java.lang.Object

Manager for dynamic fetch groups. Manages a set of fetch groups with each FetchGroup for a particular class with a name.


Constructor Summary
FetchGroupManager(OMFContext ctx)
          Constructor for a FetchGroupManager for a particular OMFContext.
 
Method Summary
 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(java.lang.Class cls, java.lang.String name)
          Method to create a new FetchGroup for the class and name.
 FetchGroup getFetchGroup(java.lang.Class cls, java.lang.String name)
          Accessor for a fetch group for the specified class.
 java.util.Set getFetchGroupsWithName(java.lang.String name)
          Accessor for the fetch groups for the specified name.
 void removeFetchGroup(FetchGroup grp)
          Method to remove a dynamic FetchGroup from use.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FetchGroupManager

public FetchGroupManager(OMFContext ctx)
Constructor for a FetchGroupManager for a particular OMFContext.

Parameters:
ctx - The OMFContext
Method Detail

addFetchGroup

public void addFetchGroup(FetchGroup grp)
Method to add a dynamic fetch group.

Parameters:
grp - The fetch group

removeFetchGroup

public void removeFetchGroup(FetchGroup grp)
Method to remove a dynamic FetchGroup from use.

Parameters:
grp - The group

getFetchGroup

public FetchGroup getFetchGroup(java.lang.Class cls,
                                java.lang.String name)
Accessor for a fetch group for the specified class. If the fetch group of this name for this class doesn't exist then will create one.

Parameters:
cls - The class
name - Name of the group
Returns:
The FetchGroup

createFetchGroup

public FetchGroup createFetchGroup(java.lang.Class cls,
                                   java.lang.String name)
Method to create a new FetchGroup for the class and name. Doesn't add it to the internally managed groups.

Parameters:
cls - The class
name - Name of the group
Returns:
The FetchGroup

getFetchGroupsWithName

public java.util.Set getFetchGroupsWithName(java.lang.String name)
Accessor for the fetch groups for the specified name.

Parameters:
name - Name of the group
Returns:
The FetchGroup

clearFetchGroups

public void clearFetchGroups()
Clear out all fetch groups from use by this manager.



Copyright © 2009. All Rights Reserved.