Package org.h2.expression
Interface ParameterInterface
-
- All Known Implementing Classes:
Parameter,ParameterRemote
public interface ParameterInterfaceThe interface for client side (remote) and server side parameters.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcheckSet()Check if the value is set.intgetNullable()Check if this column is nullable.ValuegetParamValue()Get the value of the parameter if set.TypeInfogetType()Returns the expected data type if no value is set, or the data type of the value if one is set.booleanisValueSet()Is the value of a parameter set.voidsetValue(Value value, boolean closeOld)Set the value of the parameter.
-
-
-
Method Detail
-
setValue
void setValue(Value value, boolean closeOld)
Set the value of the parameter.- Parameters:
value- the new valuecloseOld- if the old value (if one is set) should be closed
-
getParamValue
Value getParamValue()
Get the value of the parameter if set.- Returns:
- the value or null
-
checkSet
void checkSet() throws DbExceptionCheck if the value is set.- Throws:
DbException- if not set.
-
isValueSet
boolean isValueSet()
Is the value of a parameter set.- Returns:
- true if set
-
getType
TypeInfo getType()
Returns the expected data type if no value is set, or the data type of the value if one is set.- Returns:
- the data type
-
getNullable
int getNullable()
Check if this column is nullable.- Returns:
- Column.NULLABLE_*
-
-