|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectplanetj.dataengine.parameter.AbstractParameter
planetj.dataengine.parameter.AbstractNamedParameter
planetj.dataengine.parameter.RequestParameter
planetj.dataengine.parameter.RequestPromptParameter
planetj.dataengine.parameter.SQLPromptParameter
A parameter which corresponds to an SQLComparison. Note that a single comparison may have multiple parameters, but each parameter has a single SQLComparison
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, PARAMETER_VALUE_ACTUAL, PARAMETER_VALUE_DISPLAY, PARAMETER_VALUE_UNKNOWN |
Constructor Summary | |
SQLPromptParameter()
|
Method Summary | |
SQLComparison |
getComparison()
Deprecated. Because it's not used |
Field |
getDisplayField(ExecutingContext ec)
Gets the field to use when displaying a prompt to the user. |
FieldDescriptorRow |
getDisplayFieldDescriptor()
Gets the field descriptor to use when prompting the user for the parameter value. |
protected int |
getFieldDescriptorId()
Gets the ID of the field descriptor to use for display purposes. |
java.lang.String |
getOperationString()
Gets a String representing an operation which applies to this parameter. |
java.lang.String |
getParameterName()
Gets the name of this parameter (may be null). |
SQLContext |
getSQLContext()
Gets the SQLContext associated with this parameter |
java.lang.Object |
getValue()
Gets the value of this parameter |
java.lang.Object |
loadValueFromSource(java.lang.Object source,
int valueType)
Loads this parameter's value from a source. |
void |
setComparison(SQLComparison comparison)
Deprecated. Because it's not used |
void |
setOperationString(java.lang.String operationString)
Sets a String representing an operation which applies to this parameter. |
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 this parameter, and possibly the value of its contained display field as well |
void |
setValue(java.lang.Object value,
boolean useField)
Sets the value of this parameter, and possibly the value of its contained display field as well |
Methods inherited from class planetj.dataengine.parameter.RequestPromptParameter |
clearValue, cloneParameter, getDisplayField, isDisplay, setDisplay |
Methods inherited from class planetj.dataengine.parameter.AbstractNamedParameter |
getValueKey, setValueKey |
Methods inherited from class planetj.dataengine.parameter.AbstractParameter |
clone, equals, getCodeReplacementString, getContext, getContextIndex, getContextSpecificId, getDataType, getDefaultValueAsString, getId, getSource, getTargetFieldDescriptor, getToken, hasAssignedValue, hashCode, isSQLParameter, isValueLoaded, loadValueFromSource, setContext, setContextIndex, setContextInternal, setDataType, setDefaultValueAsString, setSource, setSQLParameter, setTokenInternal, setValueInternal, toString |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface planetj.dataengine.parameter.IParameter |
clone, getCodeReplacementString, getContext, getContextIndex, getContextSpecificId, getDataType, getSource, getTargetFieldDescriptor, getToken, hasAssignedValue, loadValueFromSource, setContext, setDataType, setSource |
Methods inherited from interface planetj.dataengine.parameter.IJDBCSQLParameter |
isSQLParameter, setSQLParameter |
Constructor Detail |
public SQLPromptParameter()
Method Detail |
public SQLComparison getComparison()
public Field getDisplayField(ExecutingContext ec) throws CMException
getDisplayField
in interface IDisplayParameter
getDisplayField
in class RequestPromptParameter
ec
- current context in which code is executing.
CMException
public FieldDescriptorRow getDisplayFieldDescriptor() throws CMException
CMException
protected int getFieldDescriptorId()
public java.lang.String getOperationString()
public java.lang.String getParameterName() throws CMException
getParameterName
in interface INamedParameter
getParameterName
in class AbstractNamedParameter
CMException
public SQLContext getSQLContext()
public java.lang.Object getValue()
getValue
in interface IParameter
getValue
in class AbstractParameter
public java.lang.Object loadValueFromSource(java.lang.Object source, int valueType) throws CMException
loadValueFromSource
in interface IParameter
loadValueFromSource
in class RequestParameter
CMException
public void setComparison(SQLComparison comparison)
public void setOperationString(java.lang.String operationString)
public void setToken(java.lang.String token) throws CMException
setToken
in interface IParameter
setToken
in class RequestPromptParameter
CMException
public void setValue(java.lang.Object value) throws CMException
setValue
in interface IParameter
setValue
in class AbstractParameter
CMException
public void setValue(java.lang.Object value, boolean useField) throws CMException
value
- The value which is being setuseField
- When true, the value passed in is used to set the field's value, and then the field's
SQL value is used to set this parameter's value. When false, the value is sent directly to the
parameter; the field is ignored.
CMException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |