|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--planetj.dataengine.parameter.AbstractParameter | +--planetj.dataengine.parameter.ParameterParameter
A parameter which gets its value from another parameter.
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 | |
ParameterParameter()
|
Method Summary | |
int |
getDataType()
Gets the SQL data type of the parameter |
Object |
getValue()
Gets the value of the parameter |
boolean |
isSQLParameter()
Tests if this parameter should be sent as a parameter to the DB if it is included in a SQL statement. |
Object |
loadValueFromSource(Object o)
Loads this parameter's value from a source. |
void |
setDataType(int newDataType)
Sets the SQL data type of the parameter |
void |
setToken(String token)
Sets the literal token that was used to denote this parameter in code |
void |
setValue(Object value)
Sets the value of the parameter |
Methods inherited from class planetj.dataengine.parameter.AbstractParameter |
clearValue, clone, cloneParameter, equals, getCodeReplacementString, getContext, getContextIndex, getContextSpecificId, getDefaultValueAsString, getSource, getTargetFieldDescriptor, getToken, hashCode, setContext, setDefaultValueAsString, setSource, setSQLParameter, toString |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface planetj.dataengine.parameter.IJDBCSQLParameter |
setSQLParameter |
Methods inherited from interface planetj.dataengine.parameter.IParameter |
clearValue, clone, cloneParameter, getCodeReplacementString, getContext, getContextIndex, getContextSpecificId, getSource, getTargetFieldDescriptor, getToken, setContext, setSource |
Constructor Detail |
public ParameterParameter()
Method Detail |
public int getDataType()
getDataType
in interface IParameter
getDataType
in class AbstractParameter
public Object getValue()
getValue
in interface IParameter
getValue
in class AbstractParameter
public boolean isSQLParameter()
isSQLParameter
in interface IJDBCSQLParameter
isSQLParameter
in class AbstractParameter
public Object loadValueFromSource(Object o) throws CMException
loadValueFromSource
in interface IParameter
CMException
public void setDataType(int newDataType)
setDataType
in interface IParameter
setDataType
in class AbstractParameter
public void setToken(String token) throws CMException
setToken
in interface IParameter
setToken
in class AbstractParameter
CMException
public void setValue(Object value) throws CMException
setValue
in interface IParameter
setValue
in class AbstractParameter
CMException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |