|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectJdbcControl.SQLParameter
public static class JdbcControl.SQLParameter
Nested class used for specifing parameters for a callable statement. If a method in a control extension takes an array of SQLParameter, the JdbcControl treats the SQL as a CallableStatement and inserts values into the statement from the SQLParameter array. After the CallableStatement executes, results are mapped into OUT type parameters found int the SQLParameter array. NOTE: To invoke a callable statement which does not take any arguments, an SQLParameter array of size zero must be passed to the JDBCControl method.
Field Summary | |
---|---|
int |
dir
Parameter direction. |
static int |
IN
IN direction constant. |
static int |
INOUT
IN and OUT directions constant. |
static int |
OUT
OUT direction constant. |
int |
type
Parameter SQL data type. |
Object |
value
Parameter value. |
Constructor Summary | |
---|---|
JdbcControl.SQLParameter(Object value)
Create a new SQLParameter with the specified value. |
|
JdbcControl.SQLParameter(Object value,
int type)
Create a new SQLParameter with the specified value and SQL data type. |
|
JdbcControl.SQLParameter(Object value,
int type,
int dir)
Create a new SQLParameter with the specified value, SQL data type and direction. |
Method Summary | |
---|---|
Object |
clone()
Clone this parameter. |
Methods inherited from class Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int IN
public static final int OUT
public static final int INOUT
public Object value
public int type
public int dir
Constructor Detail |
---|
public JdbcControl.SQLParameter(Object value)
value
- The parameter value.public JdbcControl.SQLParameter(Object value, int type)
value
- The parameter value.type
- SQL data type.public JdbcControl.SQLParameter(Object value, int type, int dir)
value
- The parameter value.type
- SQL data type.dir
- IN / OUT or INOUTMethod Detail |
---|
public Object clone()
clone
in class Object
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |