planetj.dataengine.parameter
Class RowParameter

java.lang.Object
  |
  +--planetj.dataengine.parameter.AbstractParameter
        |
        +--planetj.dataengine.parameter.FieldOrUsageIdParameter
              |
              +--planetj.dataengine.parameter.RowParameter
All Implemented Interfaces:
Cloneable, IJDBCSQLParameter, INamedParameter, IParameter, Serializable

public class RowParameter
extends FieldOrUsageIdParameter

A parameter whose value can be extracted from a Row object. The value can either be extracted by field name, or by usage id

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface planetj.dataengine.parameter.IParameter
CONTEXT_SPECIFIC_ID_END, CONTEXT_SPECIFIC_ID_START, DEFAULT_DATA_TYPE, ID_START, PARAMETER_INDEX_PREFIX
 
Constructor Summary
RowParameter()
           
 
Method Summary
 Object extractValueFromSource(Row source)
          Gets the value which this parameter is interested in out of the Row.
 Object loadValueFromSource(Object source)
          Loads this parameter's value from a source.
 void setToken(String token)
          Sets the literal token that was used to denote this parameter in code
 
Methods inherited from class planetj.dataengine.parameter.FieldOrUsageIdParameter
getParameterName, isFieldNameParameter, isUsageIdParameter
 
Methods inherited from class planetj.dataengine.parameter.AbstractParameter
clearValue, clone, cloneParameter, equals, getCodeReplacementString, getContext, getContextIndex, getContextSpecificId, getDataType, getDefaultValueAsString, getSource, getTargetFieldDescriptor, getToken, getValue, hashCode, isSQLParameter, setContext, setDataType, setDefaultValueAsString, setSource, setSQLParameter, setValue, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface planetj.dataengine.parameter.IJDBCSQLParameter
isSQLParameter, setSQLParameter
 
Methods inherited from interface planetj.dataengine.parameter.IParameter
clearValue, clone, cloneParameter, getCodeReplacementString, getContext, getContextIndex, getContextSpecificId, getDataType, getSource, getTargetFieldDescriptor, getToken, getValue, setContext, setDataType, setSource, setValue
 

Constructor Detail

RowParameter

public RowParameter()
Method Detail

extractValueFromSource

public Object extractValueFromSource(Row source)
                              throws CMException
Gets the value which this parameter is interested in out of the Row. The value is not set into this parameter

CMException

loadValueFromSource

public Object loadValueFromSource(Object source)
                           throws CMException
Loads this parameter's value from a source. The object passed in may be ignored if the parameter already knows the source from which its value should be extracted.

CMException

setToken

public void setToken(String token)
Sets the literal token that was used to denote this parameter in code

Specified by:
setToken in interface IParameter
Overrides:
setToken in class AbstractParameter