|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.metamatrix.metadata.runtime.model.BasicProcedureParameter
public class BasicProcedureParameter
| Constructor Summary | |
|---|---|
BasicProcedureParameter(java.lang.String name)
|
|
BasicProcedureParameter(java.lang.String name,
BasicProcedureID procedureID)
|
|
BasicProcedureParameter(java.lang.String name,
BasicProcedureID procedureID,
DataType dType,
short paramType,
int paramPosition,
int resultSetPosition,
boolean isOpitional)
Call constructor to instantiate a procedure parameter object by passing the name that identifies the entity. |
|
| Method Summary | |
|---|---|
DataType |
getActualDataType()
|
DataType |
getDataType()
Returns the DataType this parameter will be represented as. |
java.lang.String |
getDefaultValue()
Returns the default value of parameter if it is optional. |
java.lang.String |
getName()
|
java.lang.String |
getNameInSource()
Override the super method so that when the name is returned, it is the name and not the full path for a parameter. |
short |
getParameterType()
Return short indicating the type of parameter. |
int |
getPosition()
Returns the order of parameter in relation to the other parameters that are of the same type for its procedure. |
ProcedureID |
getProcID()
Returns the procID. |
int |
getResultSetPosition()
|
boolean |
isOptional()
Returns a boolean indicating if this parameter is optional. |
void |
setDataType(DataType dataType)
|
void |
setDefaultValue(java.lang.String value)
|
void |
setIsOptional(boolean optional)
|
void |
setName(java.lang.String name)
|
void |
setParameterType(short type)
|
void |
setPosition(int pos)
|
void |
setProcID(BasicProcedureID procID)
Sets the procID. |
void |
setResultSetPosition(int resultSetPosition)
|
java.lang.String |
toString()
Returns a string representing the current state of the object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BasicProcedureParameter(java.lang.String name,
BasicProcedureID procedureID,
DataType dType,
short paramType,
int paramPosition,
int resultSetPosition,
boolean isOpitional)
public BasicProcedureParameter(java.lang.String name)
public BasicProcedureParameter(java.lang.String name,
BasicProcedureID procedureID)
| Method Detail |
|---|
public java.lang.String getNameInSource()
public DataType getDataType()
ProcedureParameterDataType this parameter will be represented as.
getDataType in interface ProcedureParameterpublic DataType getActualDataType()
public short getParameterType()
ProcedureParameter
getParameterType in interface ProcedureParameterMetadataConstants.PARAMETER_TYPESpublic boolean isOptional()
ProcedureParameter
isOptional in interface ProcedureParameterpublic int getPosition()
ProcedureParameter
getPosition in interface ProcedureParameterpublic int getResultSetPosition()
getResultSetPosition in interface ProcedureParameterpublic java.lang.String getName()
getName in interface ProcedureParameterpublic java.lang.String getDefaultValue()
ProcedureParameter
getDefaultValue in interface ProcedureParameterpublic void setIsOptional(boolean optional)
public void setPosition(int pos)
public void setParameterType(short type)
public void setDataType(DataType dataType)
public void setResultSetPosition(int resultSetPosition)
public void setName(java.lang.String name)
public void setDefaultValue(java.lang.String value)
public ProcedureID getProcID()
getProcID in interface ProcedureParameterpublic void setProcID(BasicProcedureID procID)
procID - The procID to setpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||