oracle.toplink.queryframework
Class InMemoryQueryIndirectionPolicy
java.lang.Object
oracle.toplink.queryframework.InMemoryQueryIndirectionPolicy
- All Implemented Interfaces:
- java.io.Serializable
- 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
- Since:
- TopLink/Java 3.6.3
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SHOULD_THROW_INDIRECTION_EXCEPTION
public static final int SHOULD_THROW_INDIRECTION_EXCEPTION
-
- See Also:
- Constant Field Values
SHOULD_TRIGGER_INDIRECTION
public static final int SHOULD_TRIGGER_INDIRECTION
-
- See Also:
- Constant Field Values
SHOULD_IGNORE_EXCEPTION_RETURN_CONFORMED
public static final int SHOULD_IGNORE_EXCEPTION_RETURN_CONFORMED
-
- See Also:
- Constant Field Values
SHOULD_IGNORE_EXCEPTION_RETURN_NOT_CONFORMED
public static final int SHOULD_IGNORE_EXCEPTION_RETURN_NOT_CONFORMED
-
- See Also:
- Constant Field Values
InMemoryQueryIndirectionPolicy
public InMemoryQueryIndirectionPolicy()
InMemoryQueryIndirectionPolicy
public InMemoryQueryIndirectionPolicy(int policyValue)
shouldTriggerIndirection
public boolean shouldTriggerIndirection()
shouldThrowIndirectionException
public boolean shouldThrowIndirectionException()
shouldIgnoreIndirectionExceptionReturnConformed
public boolean shouldIgnoreIndirectionExceptionReturnConformed()
shouldIgnoreIndirectionExceptionReturnNotConformed
public boolean shouldIgnoreIndirectionExceptionReturnNotConformed()
ignoreIndirectionExceptionReturnNotConformed
public void ignoreIndirectionExceptionReturnNotConformed()
ignoreIndirectionExceptionReturnConformed
public void ignoreIndirectionExceptionReturnConformed()
triggerIndirection
public void triggerIndirection()
throwIndirectionException
public void throwIndirectionException()
getPolicy
public int getPolicy()
setPolicy
public void setPolicy(int policy)