FETCH_LOAD

FETCH_REF

static final int FETCH_REF

Constant indicating that a reference to the field's value must be
fetched, but loading data is not necessary. Used when we know the
data will be loaded anyway, such as when traversing the back-ptr of
a bidirectional relation where the other side is also being fetched.

getContext

setContext

Called automatically by the system to associate the fetch configuration
with a context before use. The fetch configuration properties should
be synchronized with the context's configuration object. Subclasses
for specific back ends cannot rely on the context's configuration
implementing their back end's configuration sub-interface.

setMaxFetchDepth

max - denotes limiting length of traversal path from a root
instance. -1 implies no limit. 0 is not
permissible.

getQueryCacheEnabled

boolean getQueryCacheEnabled()

Return whether or not query caching is enabled. If this returns
true but the datacache plugin is not installed, caching
will not be enabled. If this
returns false, query caching will not be used
even if the datacache plugin is installed.

removeFetchGroups

clearFetchGroups

Clears the set of fetch group names to use when loading
data. After this operation is invoked, only those fields in
the default fetch group (and any requested field) will be
loaded when loading an object.