EclipseLink 2.0.0, build 'v20091127-r5931' API Reference

org.eclipse.persistence.config
Class CacheUsageIndirectionPolicy

java.lang.Object
  extended by org.eclipse.persistence.config.CacheUsageIndirectionPolicy

public class CacheUsageIndirectionPolicy
extends java.lang.Object

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.

See Also:
QueryHints.INDIRECTION_POLICY, ObjectLevelReadQuery.setInMemoryQueryIndirectionPolicyState(int)
Author:
James Sutherland

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

Exception

public static final java.lang.String Exception
If conforming encounters an uninstantiated indirection/lazy object an exception is thrown.

See Also:
Constant Field Values

Trigger

public static final java.lang.String Trigger
If conforming encounters an uninstantiated indirection/lazy object it is triggered.

See Also:
Constant Field Values

Conform

public static final java.lang.String Conform
If conforming encounters an uninstantiated indirection/lazy object it is assumed to conform.

See Also:
Constant Field Values

NotConform

public static final java.lang.String NotConform
If conforming encounters an uninstantiated indirection/lazy object it is assumed to not conform.

See Also:
Constant Field Values

DEFAULT

public static final java.lang.String DEFAULT
The default type is Exception.

See Also:
Constant Field Values
Constructor Detail

CacheUsageIndirectionPolicy

public CacheUsageIndirectionPolicy()

EclipseLink 2.0.0, build 'v20091127-r5931' API Reference