Method Summary |
|
boolean | allAreSet() Tells whether all the parameters are set and ready for execution. |
public boolean | checkNoDeclaredOutputParameters() Check that there are not output parameters defined
by the parameter set. |
void | clearParameters() Sets all parameters to an uninitialized state. |
ParameterValueSet | getClone() Clone the ParameterValueSet and its contents. |
public DataValueDescriptor | getParameter(int position) Returns the parameter at the given position. |
public int | getParameterCount() Returns the number of parameters in this set. |
public DataValueDescriptor | getParameterForGet(int position) Get the DataValueDescriptor for an INOUT or OUT parameter.
Parameters: position - Zero based index of the parameter. |
public DataValueDescriptor | getParameterForSet(int position) Returns the parameter at the given position in order to set it. |
public short | getParameterMode(int parameterIndex) |
public int | getPrecision(int parameterIndex) Return the precision of the given parameter index in this pvs.
Parameters: parameterIndex - the first parameter is 1, the second is 2, ... |
DataValueDescriptor | getReturnValueForSet() Get the value of the return parameter in order to set it. |
public int | getScale(int parameterIndex) Return the scale of the given parameter index in this pvs.
Parameters: parameterIndex - the first parameter is 1, the second is 2, ... |
public boolean | hasReturnOutputParameter() Is there a return output parameter in this pvs. |
void | initialize(DataTypeDescriptor[] types) Initialize the parameter set by allocating DataValueDescriptor
corresponding to the passed in type for each parameter. |
void | registerOutParameter(int parameterIndex, int sqlType, int scale) Mark the parameter as an output parameter.
Parameters: parameterIndex - The ordinal position of a parameter to setto the given value. Parameters: sqlType - A type from java.sql.Types Parameters: scale - the scale to use. |
void | setParameterAsObject(int parameterIndex, Object value) Set the value of this user defined parameter to the passed in Object. |
void | setParameterMode(int position, int mode) Set the mode of the parameter, called when setting up static method calls and stored procedures. |
public void | transferDataValues(ParameterValueSet pvstarget) Set the parameter values of the pvstarget to equal those
set in this PVS.
Used to transfer saved SPS parameters to the actual
prepared statement parameters once associated parameters
have been established. |
void | validate() Validate the parameters. |