Fast Object Database for Java - with JPA/JDO support

addFetchGroups(groups) - JDO PersistenceManagerFactory's method

Method
javax.jdo.PersistenceManagerFactory
void addFetchGroups(
  FetchGroup... groups
)

Add the FetchGroups to the set of active fetch groups. FetchGroups are made unmodifiable before being added. FetchGroups that match existing FetchGroups replace the corresponding FetchGroups. The replaced FetchGroups become unscoped. Match is based on identical class and equal name. The methods addFetchGroups, removeFetchGroups, getFetchGroups, and removeAllFetchGroups are internally serialized.
Parameters:
groups - an array of FetchGroups
Throws:
SecurityException - if the caller is not authorized for JDOPermission ("manageMetadata")
Since:
JDO 2.2