|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A Parameter in a DataEngnine operation. All classes which implement this interface should provide a default constructor
Field Summary | |
static char |
CONTEXT_SPECIFIC_ID_END
Char with which all parameter context specific id's (NOT unqiue id's) end |
static char |
CONTEXT_SPECIFIC_ID_START
|
static int |
DEFAULT_DATA_TYPE
Default data type for parameter values. |
static char |
ID_START
Char with which all parameter context specific id's begin |
static java.lang.String |
PARAMETER_INDEX_PREFIX
Constant which can be used to identify a parameter by index |
static int |
PARAMETER_VALUE_ACTUAL
|
static int |
PARAMETER_VALUE_DISPLAY
|
static int |
PARAMETER_VALUE_UNKNOWN
|
Method Summary | |
java.lang.Object |
clearValue()
Clears this parameter's value, returning the current value after it has been cleared. |
java.lang.Object |
clone()
Clones this parameter |
IParameter |
cloneParameter()
Clones this parameter |
java.lang.String |
getCodeReplacementString()
Gets the String which represents this parameter's value in a String of code. |
IContext |
getContext()
Gets the parameter's context |
int |
getContextIndex()
Gets the (0-based) index of this parameter within its context |
java.lang.String |
getContextSpecificId()
Gets the context specific ID of this parameter. |
int |
getDataType()
Gets the SQL data type of the parameter |
IParameterSource |
getSource()
Gets the object from which this parameter was generated. |
FieldDescriptorRow |
getTargetFieldDescriptor()
Gets a field descriptor describing this parameter's target (i.e. |
java.lang.String |
getToken()
Gets the literal token that was used to denote this parameter in code |
java.lang.Object |
getValue()
Gets the value of the parameter |
boolean |
hasAssignedValue()
Tests if this parameter has been assigned a value. |
java.lang.Object |
loadValueFromSource(java.lang.Object source)
Loads this parameter's value from a source. |
java.lang.Object |
loadValueFromSource(java.lang.Object source,
int valueType)
Loads this parameter's value from a source. |
void |
setContext(IContext context)
Sets the parameter's context |
void |
setDataType(int newDataType)
Sets the SQL data type of the parameter |
void |
setSource(IParameterSource source)
Sets the object from which this parameter was generated. |
void |
setToken(java.lang.String token)
Sets the literal token that was used to denote this parameter in code |
void |
setValue(java.lang.Object value)
Sets the value of the parameter |
Field Detail |
public static final int DEFAULT_DATA_TYPE
public static final char ID_START
public static final char CONTEXT_SPECIFIC_ID_START
public static final char CONTEXT_SPECIFIC_ID_END
public static final java.lang.String PARAMETER_INDEX_PREFIX
public static final int PARAMETER_VALUE_UNKNOWN
public static final int PARAMETER_VALUE_ACTUAL
public static final int PARAMETER_VALUE_DISPLAY
Method Detail |
public java.lang.Object clearValue() throws CMException
CMException
public java.lang.Object clone()
public IParameter cloneParameter()
public java.lang.String getCodeReplacementString() throws DataEngineException
DataEngineException
public IContext getContext()
public int getContextIndex()
public java.lang.String getContextSpecificId()
public int getDataType()
public IParameterSource getSource()
public FieldDescriptorRow getTargetFieldDescriptor() throws CMException
CMException
public java.lang.String getToken()
public java.lang.Object getValue()
public boolean hasAssignedValue()
public java.lang.Object loadValueFromSource(java.lang.Object source) throws CMException
source
- source Object to use to extract the parameters value
CMException
public java.lang.Object loadValueFromSource(java.lang.Object source, int valueType) throws CMException
source
- source Object to use to extract the parameters valuevalueType
- the type of value to extract. (e.g. actual value or a display value)
CMException
public void setContext(IContext context)
public void setDataType(int newDataType)
public void setSource(IParameterSource source)
public void setToken(java.lang.String token) throws CMException
CMException
public void setValue(java.lang.Object value) throws CMException
CMException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |