com.metamatrix.query.processor.proc
Class ErrorInstruction

java.lang.Object
  extended by com.metamatrix.query.processor.program.ProgramInstruction
      extended by com.metamatrix.query.processor.proc.AbstractAssignmentInstruction
          extended by com.metamatrix.query.processor.proc.ErrorInstruction
All Implemented Interfaces:
Describable, java.lang.Cloneable

public class ErrorInstruction
extends AbstractAssignmentInstruction

This instruction updates the current variable context with the Variable defined using the declare statement that is used in constructing this instruction.


Field Summary
static java.lang.String ERROR_PREFIX
           
 
Fields inherited from interface com.metamatrix.query.processor.Describable
PROP_BINDINGS, PROP_CHILDREN, PROP_CONDITIONS, PROP_CRITERIA, PROP_DATA_COL, PROP_DEFAULT, PROP_DEFAULT_PROGRAM, PROP_ELSE, PROP_ENCODING, PROP_EXECUTION_PLAN, PROP_EXPRESSION, PROP_FORMATTED, PROP_GROUP, PROP_GROUP_COLS, PROP_IN_MEMORY, PROP_INTO_GROUP, PROP_IS_STAGING, PROP_JOIN_CRITERIA, PROP_JOIN_STRATEGY, PROP_JOIN_TYPE, PROP_MESSAGE, PROP_MODEL_NAME, PROP_NAMESPACE, PROP_NAMESPACE_DECL, PROP_NODE_COST_ESTIMATES, PROP_NODE_STATS_LIST, PROP_NODE_STATS_PROPS, PROP_OPTIONAL, PROP_OUTPUT_COLS, PROP_PROGRAM, PROP_PROGRAMS, PROP_RECURSE_DIR, PROP_REMOVE_DUPS, PROP_RESULT_SET, PROP_ROW_LIMIT, PROP_ROW_OFFSET, PROP_SELECT_COLS, PROP_SORT_COLS, PROP_SQL, PROP_TAG, PROP_THEN, PROP_TYPE, PROP_VARIABLE
 
Constructor Summary
ErrorInstruction()
          Constructor for DeclareInstruction.
 
Method Summary
 java.lang.Object clone()
          Override Object.clone() to make the method public.
protected  void getDescriptionProperties(java.util.Map props)
           
protected  void processValue(java.lang.Object value, VariableContext varContext)
           
 java.lang.String toString()
           
 
Methods inherited from class com.metamatrix.query.processor.proc.AbstractAssignmentInstruction
cloneState, getChildPlans, getDescriptionProperties, getExpression, getProcessorPlan, getProcessPlan, getVariable, process, setExpression, setProcessPlan, setVariable
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ERROR_PREFIX

public static final java.lang.String ERROR_PREFIX
See Also:
Constant Field Values
Constructor Detail

ErrorInstruction

public ErrorInstruction()
Constructor for DeclareInstruction.

Method Detail

clone

public java.lang.Object clone()
Description copied from class: ProgramInstruction
Override Object.clone() to make the method public. This method simply calls super.clone(), deferring to the default shallow cloning. Some ProcessorInstruction subclasses may need to override with custom safe or deep cloning.

Overrides:
clone in class ProgramInstruction
Returns:
shallow clone
See Also:
ProgramInstruction.clone()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getDescriptionProperties

protected void getDescriptionProperties(java.util.Map props)
Specified by:
getDescriptionProperties in class AbstractAssignmentInstruction

processValue

protected void processValue(java.lang.Object value,
                            VariableContext varContext)
                     throws MetaMatrixComponentException,
                            MetaMatrixProcessingException
Specified by:
processValue in class AbstractAssignmentInstruction
Throws:
MetaMatrixComponentException
MetaMatrixProcessingException
See Also:
com.metamatrix.query.processor.proc.AbstractAssignmentInstruction#processValue(java.lang.Object)


Copyright © 2009. All Rights Reserved.