|
|||||||||||
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 IParameter
CMException
public final Object clone()
clone
in interface IParameter
clone
in class Object
public IParameter cloneParameter()
cloneParameter
in interface IParameter
public boolean equals(Object o)
equals
in class Object
public String getCodeReplacementString()
getCodeReplacementString
in interface IParameter
public IContext getContext()
getContext
in interface IParameter
public int getContextIndex()
getContextIndex
in interface IParameter
public String getContextSpecificId()
getContextSpecificId
in interface IParameter
public int getDataType()
getDataType
in interface IParameter
public String getDefaultValueAsString()
public IParameterSource getSource()
getSource
in interface IParameter
public FieldDescriptorRow getTargetFieldDescriptor() throws CMException
getTargetFieldDescriptor
in interface IParameter
CMException
public String getToken()
getToken
in interface IParameter
public Object getValue()
getValue
in interface IParameter
public int hashCode()
hashCode
in class Object
public boolean isSQLParameter()
public void setContext(IContext context)
setContext
in interface IParameter
public void setDataType(int newDataType)
setDataType
in interface IParameter
public void setDefaultValueAsString(String value)
public void setSource(IParameterSource newSource)
setSource
in interface IParameter
public void setSQLParameter(boolean sqlp)
public void setToken(String token) throws CMException
setToken
in interface IParameter
CMException
public void setValue(Object value) throws CMException
setValue
in interface IParameter
CMException
public String toString()
toString
in class Object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |