public class InMemoryQueryIndirectionPolicy
extends java.lang.Object
implements java.io.Serializable
Purpose: Used to provide the user with a means of contoling the behaviour of in memory queries that access un-instantiated indirection in the query..
Description: This class contains a state variable that is used to determine what a query should do when accesing un-instantiated indirection. Use use this policy access the policy of a query set the policy behaviour using the methods below. All read queries have the policy set to throw exception by default
Modifier and Type | Field and Description |
---|---|
protected int |
policy |
static int |
SHOULD_IGNORE_EXCEPTION_RETURN_CONFORMED |
static int |
SHOULD_IGNORE_EXCEPTION_RETURN_NOT_CONFORMED |
static int |
SHOULD_THROW_INDIRECTION_EXCEPTION |
static int |
SHOULD_TRIGGER_INDIRECTION |
Constructor and Description |
---|
InMemoryQueryIndirectionPolicy() |
InMemoryQueryIndirectionPolicy(int policyValue) |
Modifier and Type | Method and Description |
---|---|
int |
getPolicy() |
void |
ignoreIndirectionExceptionReturnConformed() |
void |
ignoreIndirectionExceptionReturnNotConformed() |
void |
setPolicy(int policy) |
boolean |
shouldIgnoreIndirectionExceptionReturnConformed() |
boolean |
shouldIgnoreIndirectionExceptionReturnNotConformed() |
boolean |
shouldThrowIndirectionException() |
boolean |
shouldTriggerIndirection() |
void |
throwIndirectionException() |
void |
triggerIndirection() |
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
public InMemoryQueryIndirectionPolicy()
public InMemoryQueryIndirectionPolicy(int policyValue)
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)