|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--planetj.dataengine.parameter.AbstractParameter
A general implementation of the IParameter interface
| 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 | |
AbstractParameter()
|
|
| Method Summary | |
Object |
clearValue()
Clears this parameter's value, returning the current value after it has been cleared. |
Object |
clone()
Clones this parameter |
IParameter |
cloneParameter()
Clones this parameter |
boolean |
equals(Object o)
Tests if the context index, token, and value of the passed IParameter object equal those of this object |
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 |
String |
getContextSpecificId()
Gets the context specific ID of this parameter. |
int |
getDataType()
Gets the SQL data type of the parameter |
String |
getDefaultValueAsString()
Gets this parameter's default value as a String |
IParameterSource |
getSource()
Gets the object from which this parameter was generated. |
FieldDescriptorRow |
getTargetFieldDescriptor()
Gets a field descriptor describing this parameter's target (i.e. |
String |
getToken()
Gets the literal token that was used to denote this parameter in code |
Object |
getValue()
Gets the value of the parameter |
int |
hashCode()
Gets a hashCode based on the context index, token, and value of this parameter |
boolean |
isSQLParameter()
Tests if this parameter should be sent as a parameter to the DB if it is included in a SQL statement. |
void |
setContext(IContext context)
Sets the parameter's context |
void |
setDataType(int newDataType)
Sets the SQL data type of the parameter |
void |
setDefaultValueAsString(String value)
Sets this parameter's default value as a String |
void |
setSource(IParameterSource newSource)
Sets the object from which this parameter was generated. |
void |
setSQLParameter(boolean sqlp)
Sets if this parameter should be sent as a parameter to the DB if it is included in a SQL statement. |
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 |
String |
toString()
Returns a String representation of this object |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface planetj.dataengine.parameter.IParameter |
loadValueFromSource |
| Constructor Detail |
public AbstractParameter()
| Method Detail |
public Object clearValue()
throws CMException
clearValue in interface IParameterCMExceptionpublic final Object clone()
clone in interface IParameterclone in class Objectpublic IParameter cloneParameter()
cloneParameter in interface IParameterpublic boolean equals(Object o)
equals in class Objectpublic String getCodeReplacementString()
getCodeReplacementString in interface IParameterpublic IContext getContext()
getContext in interface IParameterpublic int getContextIndex()
getContextIndex in interface IParameterpublic String getContextSpecificId()
getContextSpecificId in interface IParameterpublic int getDataType()
getDataType in interface IParameterpublic String getDefaultValueAsString()
public IParameterSource getSource()
getSource in interface IParameter
public FieldDescriptorRow getTargetFieldDescriptor()
throws CMException
getTargetFieldDescriptor in interface IParameterCMExceptionpublic String getToken()
getToken in interface IParameterpublic Object getValue()
getValue in interface IParameterpublic int hashCode()
hashCode in class Objectpublic boolean isSQLParameter()
public void setContext(IContext context)
setContext in interface IParameterpublic void setDataType(int newDataType)
setDataType in interface IParameterpublic void setDefaultValueAsString(String value)
public void setSource(IParameterSource newSource)
setSource in interface IParameterpublic void setSQLParameter(boolean sqlp)
public void setToken(String token)
throws CMException
setToken in interface IParameterCMException
public void setValue(Object value)
throws CMException
setValue in interface IParameterCMExceptionpublic String toString()
toString in class Object
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||