Module org.eclipse.persistence.core
Package org.eclipse.persistence.config
Class CacheUsageIndirectionPolicy
java.lang.Object
org.eclipse.persistence.config.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.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
If conforming encounters an uninstantiated indirection/lazy object it is assumed to conform.static final String
The default type is Exception.static final String
If conforming encounters an uninstantiated indirection/lazy object an exception is thrown.static final String
If conforming encounters an uninstantiated indirection/lazy object it is assumed to not conform.static final String
If conforming encounters an uninstantiated indirection/lazy object it is triggered. -
Constructor Summary
ConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version.This constructor will be marked private and the class final. -
Method Summary
-
Field Details
-
Exception
If conforming encounters an uninstantiated indirection/lazy object an exception is thrown.- See Also:
-
Trigger
If conforming encounters an uninstantiated indirection/lazy object it is triggered.- See Also:
-
Conform
If conforming encounters an uninstantiated indirection/lazy object it is assumed to conform.- See Also:
-
NotConform
If conforming encounters an uninstantiated indirection/lazy object it is assumed to not conform.- See Also:
-
DEFAULT
The default type is Exception.- See Also:
-
-
Constructor Details
-
CacheUsageIndirectionPolicy
Deprecated, for removal: This API element is subject to removal in a future version.This constructor will be marked private and the class final. It is not designed for extensibility.
-