JDO Method
in javax.jdo.PersistenceManager

FetchGroup getFetchGroup(
  Class cls, 
  String name
)


Get a modifiable FetchGroup for the Class and name. If a modifiable FetchGroup already exists in the PersistenceManager scope, return it. If not, create and populate a new FetchGroup from the existing definition in the PersistenceManager or PersistenceManagerFactory. If the definition for the FetchGroup is not in scope in either the PersistenceManager or PersistenceManagerFactory, create it with no members. The FetchGroup immediately becomes active and in scope of the PersistenceManager, and hides the corresponding fetch group in the PersistenceManagerFactory.
Parameters:
cls - the class or interface for the FetchGroup
name - the name of the fetch group
Return:
the FetchGroup
Throws:
JDOUserException - if the class is not a persistence-capable class or interface
Since:
JDO 2.2