|
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.queries.InMemoryQueryIndirectionPolicy
public class InMemoryQueryIndirectionPolicy
Purpose: Provide a means of controlling the behavior of in-memory and conforming queries that access un-instantiated indirection objects in processing the query against cached objects.
Description: This class defines the valid constant values for handling in-memory querying. The constants should be set into the query's inMemoryQueryIndirectionPolicy.
Field Summary | |
---|---|
protected int |
policy
|
protected ObjectLevelReadQuery |
query
Used to set the policy state in the query. |
static int |
SHOULD_IGNORE_EXCEPTION_RETURN_CONFORMED
If a non-instantiated indirection object is encountered the object is assumed to conform. |
static int |
SHOULD_IGNORE_EXCEPTION_RETURN_NOT_CONFORMED
If a non-instantiated indirection object is encountered the object is assumed to not conform. |
static int |
SHOULD_THROW_INDIRECTION_EXCEPTION
If a non-instantiated indirection object is encountered an exception is thrown. |
static int |
SHOULD_TRIGGER_INDIRECTION
If a non-instantiated indirection object is encountered an exception it is instantiated. |
Constructor Summary | |
---|---|
InMemoryQueryIndirectionPolicy()
|
|
InMemoryQueryIndirectionPolicy(int policyValue)
|
|
InMemoryQueryIndirectionPolicy(int policy,
ObjectLevelReadQuery query)
|
Method Summary | |
---|---|
int |
getPolicy()
|
ObjectLevelReadQuery |
getQuery()
INTERNAL: Return the query. |
void |
ignoreIndirectionExceptionReturnConformed()
|
void |
ignoreIndirectionExceptionReturnNotConformed()
|
void |
setPolicy(int policy)
|
void |
setQuery(ObjectLevelReadQuery query)
INTERNAL: Set the query. |
boolean |
shouldIgnoreIndirectionExceptionReturnConformed()
|
boolean |
shouldIgnoreIndirectionExceptionReturnNotConformed()
|
boolean |
shouldThrowIndirectionException()
|
boolean |
shouldTriggerIndirection()
|
void |
throwIndirectionException()
|
void |
triggerIndirection()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int SHOULD_THROW_INDIRECTION_EXCEPTION
public static final int SHOULD_TRIGGER_INDIRECTION
public static final int SHOULD_IGNORE_EXCEPTION_RETURN_CONFORMED
public static final int SHOULD_IGNORE_EXCEPTION_RETURN_NOT_CONFORMED
protected int policy
protected ObjectLevelReadQuery query
Constructor Detail |
---|
public InMemoryQueryIndirectionPolicy()
public InMemoryQueryIndirectionPolicy(int policyValue)
public InMemoryQueryIndirectionPolicy(int policy, ObjectLevelReadQuery query)
Method Detail |
---|
public boolean shouldTriggerIndirection()
public boolean shouldThrowIndirectionException()
public boolean shouldIgnoreIndirectionExceptionReturnConformed()
public boolean shouldIgnoreIndirectionExceptionReturnNotConformed()
public void ignoreIndirectionExceptionReturnNotConformed()
public void ignoreIndirectionExceptionReturnConformed()
public void triggerIndirection()
public void throwIndirectionException()
public int getPolicy()
public void setPolicy(int policy)
public ObjectLevelReadQuery getQuery()
public void setQuery(ObjectLevelReadQuery query)
|
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 |