|
Oracle Fusion Middleware Java API Reference for Oracle TopLink 11g Release 1 (11.1.1) B32476-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.toplink.descriptors.FetchGroupManager
public class FetchGroupManager
Purpose: The fetch group manager controls the named fetch groups defined at the descriptor level. TopLink supports multiple, overlapped fetch groups, optionally with one of them as the default fetch group.
The domain object must implement oracle.toplink.queryframework.FetchGroupTracker interface, in order to make use of the fetch group performance enhancement feature.
Please refer to FetchGroup class for the prons and cons of fetch group usage.
FetchGroup
, FetchGroupTracker
Constructor Summary | |
---|---|
FetchGroupManager() Constructor |
Method Summary | |
---|---|
void |
addFetchGroup(FetchGroup group) Add a named fetch group to the descriptor |
FetchGroup |
getDefaultFetchGroup() Return the descriptor-level default fetch group. |
ClassDescriptor |
getDescriptor() Return the referenced descriptor. |
FetchGroup |
getFetchGroup(java.lang.String groupName) Return a pre-defined named fetch group. |
java.util.Map |
getFetchGroups() Return the fetch group map: keyed by the group name, valued by the fetch group object. |
boolean |
isAttributeFetched(java.lang.Object object, java.lang.String attributeName) Return true if the attribute of the object has already been fetched |
void |
setDefaultFetchGroup(FetchGroup newDefaultFetchGroup) Set the descriptor-level default fetch group. |
void |
setDescriptor(ClassDescriptor descriptor) Set the referenced descriptor. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FetchGroupManager()
Method Detail |
---|
public void addFetchGroup(FetchGroup group)
public java.util.Map getFetchGroups()
public FetchGroup getDefaultFetchGroup()
ObjectLevelReadQuery.setShouldUseDefaultFetchGroup(boolean)
public FetchGroup getFetchGroup(java.lang.String groupName)
public void setDefaultFetchGroup(FetchGroup newDefaultFetchGroup)
ObjectLevelReadQuery.setShouldUseDefaultFetchGroup(boolean)
public boolean isAttributeFetched(java.lang.Object object, java.lang.String attributeName)
public ClassDescriptor getDescriptor()
public void setDescriptor(ClassDescriptor descriptor)
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |