ParameterInterface

The interface for client side (remote) and server side parameters.

Methods
void checkSet()
Check if the value is set.
void checkSet() throws DbException
Check if the value is set.
Throws:
DbException - if not set.
int getNullable()
Check if this column is nullable.
int getNullable()
Check if this column is nullable.
Returns:
Column.NULLABLE_*
Value getParamValue()
Get the value of the parameter if set.
Value getParamValue()
Get the value of the parameter if set.
Returns:
the value or null
long getPrecision()
Get the expected precision of this parameter.
long getPrecision()
Get the expected precision of this parameter.
Returns:
the expected precision
int getScale()
Get the expected scale of this parameter.
int getScale()
Get the expected scale of this parameter.
Returns:
the expected scale
int getType()
Get the expected data type of the parameter if no value is set, or the data type of the value if one is set.
int getType()
Get the expected data type of the parameter if no value is set, or the data type of the value if one is set.
Returns:
the data type
boolean isValueSet()
Is the value of a parameter set.
boolean isValueSet()
Is the value of a parameter set.
Returns:
true if set
void setValue(Value value, boolean closeOld)
Set the value of the parameter.
void setValue(Value value, boolean closeOld)
Set the value of the parameter.
Parameters:
value - the new value
closeOld - if the old value (if one is set) should be closed