|
EclipseLink 2.0.0, build 'v20091127-r5931' API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.persistence.config.CacheUsageIndirectionPolicy
public class CacheUsageIndirectionPolicy
In-memory querying and conforming indirection policy. The class contains all the valid values for QueryHints.INDIRECTION_POLICY query hint. This can be used on a query with a CACHE_USAGE hint to configure the behavior of in-memory querying and conforming's treatment of uninstantiated indirection/lazy relationships. This is only relevant when the query traverses a join across a lazy relationship. JPA Query Hint Usage:
query.setHint(QueryHints.INDIRECTION_POLICY, CacheUsageIndirectionPolicy.Trigger);
or
@QueryHint(name=QueryHints.INDIRECTION_POLICY, value=CacheUsageIndirectionPolicy.Trigger)
Hint values are case-insensitive. "" could be used instead of default value CacheUsageIndirectionPolicy.Exception.
QueryHints.INDIRECTION_POLICY
,
ObjectLevelReadQuery.setInMemoryQueryIndirectionPolicyState(int)
Field Summary | |
---|---|
static java.lang.String |
Conform
If conforming encounters an uninstantiated indirection/lazy object it is assumed to conform. |
static java.lang.String |
DEFAULT
The default type is Exception. |
static java.lang.String |
Exception
If conforming encounters an uninstantiated indirection/lazy object an exception is thrown. |
static java.lang.String |
NotConform
If conforming encounters an uninstantiated indirection/lazy object it is assumed to not conform. |
static java.lang.String |
Trigger
If conforming encounters an uninstantiated indirection/lazy object it is triggered. |
Constructor Summary | |
---|---|
CacheUsageIndirectionPolicy()
|
Method Summary |
---|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String Exception
public static final java.lang.String Trigger
public static final java.lang.String Conform
public static final java.lang.String NotConform
public static final java.lang.String DEFAULT
Constructor Detail |
---|
public CacheUsageIndirectionPolicy()
|
EclipseLink 2.0.0, build 'v20091127-r5931' API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |