wt.pds
Interface StatementParameter

All Known Subinterfaces:
DatastoreTypeStatementParameter
All Known Implementing Classes:
AbstractArrayStatementParameter, AbstractStructStatementParameter, BasicStatementParameter, EncodedStatementParameter

public interface StatementParameter

This interface provides the abstraction for a statement parameter that may be based on a datastore type.

Supported API: false

Extendable: false


Field Summary
static String VALUE
          Label for the attribute; Value of the StatementParameter

Supported API: false
 
Method Summary
 void getArgumentValue(WTConnection a_connection, CallableStatement a_statement, int a_index)
          This method gets the value from the statement.
 Object getValue()
          Gets the value of the attribute: VALUE.
 void registerOutput(CallableStatement a_statement, int a_index)
          Registers this parameter as an output value

Supported API: false
 void setArgumentValue(WTConnection a_connection, PreparedStatement a_statement, int a_index)
          This method sets the value into the statement as an argument.
 void setValue(Object a_Value)
          Sets the value of the attribute: VALUE.
 

Field Detail

VALUE

public static final String VALUE
Label for the attribute; Value of the StatementParameter

Supported API: false

See Also:
Constant Field Values
Method Detail

getValue

public Object getValue()
Gets the value of the attribute: VALUE. Value of the StatementParameter

Supported API: false

Returns:
Object

setValue

public void setValue(Object a_Value)
              throws WTPropertyVetoException
Sets the value of the attribute: VALUE. Value of the StatementParameter

Supported API: false

Parameters:
a_Value -
Throws:
WTPropertyVetoException

setArgumentValue

public void setArgumentValue(WTConnection a_connection,
                             PreparedStatement a_statement,
                             int a_index)
                      throws SQLException,
                             WTException
This method sets the value into the statement as an argument.

Supported API: false

Parameters:
a_connection - Connection to use
a_statement - Statement to set the parameter in
a_index - Index of the parameter in the statement
Throws:
SQLException
WTException

getArgumentValue

public void getArgumentValue(WTConnection a_connection,
                             CallableStatement a_statement,
                             int a_index)
                      throws SQLException,
                             WTException
This method gets the value from the statement.

Supported API: false

Parameters:
a_connection - Connection to use
a_statement - Statement to set the parameter in
a_index - Index of the parameter in the statement
Throws:
SQLException
WTException

registerOutput

public void registerOutput(CallableStatement a_statement,
                           int a_index)
                    throws SQLException
Registers this parameter as an output value

Supported API: false

Parameters:
a_statement -
a_index - Statement parameter index
Throws:
SQLException