org.datanucleus.query.evaluator.memory
Class VariableNotSetException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.datanucleus.query.evaluator.memory.VariableNotSetException
All Implemented Interfaces:
java.io.Serializable

public class VariableNotSetException
extends java.lang.RuntimeException

Exception representing a variable not having its value currently set in the query.

See Also:
Serialized Form

Field Summary
protected  VariableExpression varExpr
           
protected  java.lang.Object[] variableValues
           
 
Constructor Summary
VariableNotSetException(VariableExpression varExpr)
          Constructor when we don't know the possible values.
VariableNotSetException(VariableExpression varExpr, java.lang.Object[] values)
          Constructor when we know the possible variable values.
 
Method Summary
 java.lang.Object[] getValues()
          Accessor for the possible variable values (if known).
 VariableExpression getVariableExpression()
          Accessor for the variable expression that is not set.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

varExpr

protected VariableExpression varExpr

variableValues

protected java.lang.Object[] variableValues
Constructor Detail

VariableNotSetException

public VariableNotSetException(VariableExpression varExpr)
Constructor when we don't know the possible values.

Parameters:
varExpr - The variable expression

VariableNotSetException

public VariableNotSetException(VariableExpression varExpr,
                               java.lang.Object[] values)
Constructor when we know the possible variable values.

Parameters:
values - The values
Method Detail

getVariableExpression

public VariableExpression getVariableExpression()
Accessor for the variable expression that is not set.

Returns:
The variable expression

getValues

public java.lang.Object[] getValues()
Accessor for the possible variable values (if known).

Returns:
The values


Copyright © 2010. All Rights Reserved.