|
Tuscany DAS for Relational Databases | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tuscany.das.rdb.impl.ParameterImpl
public class ParameterImpl
Field Summary |
---|
Fields inherited from interface org.apache.tuscany.das.rdb.Parameter |
---|
IN, IN_OUT, OUT |
Constructor Summary | |
---|---|
ParameterImpl()
|
|
ParameterImpl(int index)
|
|
ParameterImpl(java.lang.String name)
|
Method Summary | |
---|---|
Converter |
getConverter()
TODO Not sure this is is needed. |
int |
getDirection()
|
int |
getIndex()
|
java.lang.String |
getName()
|
commonj.sdo.Type |
getType()
|
java.lang.Object |
getValue()
|
void |
setConverter(Converter converter)
TODO Not sure this method is needed. |
void |
setDirection(int direction)
Parameters are typically IN and this is the default. |
void |
setIndex(int index)
Set the index of the parameter. |
void |
setName(java.lang.String name)
Sets the name of the parameter |
void |
setType(commonj.sdo.Type type)
A parameter has a type in terms of SDO2 DataTypes. |
void |
setValue(java.lang.Object value)
Sets the value of the parameter. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ParameterImpl()
public ParameterImpl(java.lang.String name)
public ParameterImpl(int index)
Method Detail |
---|
public void setType(commonj.sdo.Type type)
Parameter
SDODataTypes
Explicit definition of type is required only for OUT parameters of stored procedures commands
setType
in interface Parameter
public void setIndex(int index)
Parameter
setIndex
in interface Parameter
index
- The index of the parameterpublic void setName(java.lang.String name)
Parameter
setName
in interface Parameter
name
- the parameter namepublic void setValue(java.lang.Object value)
Parameter
setValue
in interface Parameter
value
- The value for the parameterpublic void setDirection(int direction)
Parameter
setDirection
in interface Parameter
direction
- the parameters directionpublic commonj.sdo.Type getType()
getType
in interface Parameter
SDODataTypes
public int getIndex()
getIndex
in interface Parameter
public java.lang.String getName()
getName
in interface Parameter
public java.lang.Object getValue()
getValue
in interface Parameter
public int getDirection()
getDirection
in interface Parameter
public void setConverter(Converter converter)
Parameter
setConverter
in interface Parameter
public Converter getConverter()
Parameter
getConverter
in interface Parameter
public java.lang.String toString()
toString
in class java.lang.Object
|
Tuscany DAS for Relational Databases | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |