|
Tuscany DAS for Relational Databases | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Parameter
Describes a single parameter for a parameterized SQL statement.
Field Summary | |
---|---|
static int |
IN
Value for "Direction" that indicates that a parameter is soley for input. |
static int |
IN_OUT
Value for "Direction" that indicates that a parameter is for both input and output. |
static int |
OUT
Value for "Direction" that indicates that a parameter is soley for output. |
Method Summary | |
---|---|
Converter |
getConverter()
TODO Not sure this is is needed. |
int |
getDirection()
|
int |
getIndex()
|
String |
getName()
|
Type |
getType()
|
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(String name)
Sets the name of the parameter |
void |
setType(Type type)
A parameter has a type in terms of SDO2 DataTypes. |
void |
setValue(Object value)
Sets the value of the parameter. |
Field Detail |
---|
static final int IN
static final int OUT
static final int IN_OUT
Method Detail |
---|
void setType(Type type)
SDODataTypes
Explicit definition of type is required only for OUT parameters of stored procedures commands
type
- void setIndex(int index)
index
- The index of the parametervoid setName(String name)
name
- the parameter namevoid setValue(Object value)
value
- The value for the parametervoid setDirection(int direction)
direction
- the parameters directionvoid setConverter(Converter converter)
converter
- Type getType()
SDODataTypes
Converter getConverter()
int getIndex()
String getName()
Object getValue()
int getDirection()
|
Tuscany DAS for Relational Databases | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |