Top Description Methods
org.h2.expression

public Interface ParameterInterface

Known Direct Implementers
org.h2.expression.ParameterRemote, org.h2.expression.Parameter
Imports
org.h2.message.DbException, org.h2.value.TypeInfo, .Value

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

Method Summary

Modifier and TypeMethod and Description
public void
checkSet()

Check if the value is set.

public int

Returns:

Column.NULLABLE_*
getNullable
()

Check if this column is nullable.

public Value

Returns:

the value or null
getParamValue
()

Get the value of the parameter if set.

public TypeInfo

Returns:

the data type
getType
()

Returns the expected data type if no value is set, or the data type of the value if one is set.

public boolean

Returns:

true if set
isValueSet
()

Is the value of a parameter set.

public void
setValue(Value
the new value
value
,
boolean
if the old value (if one is set) should be closed
closeOld
)

Set the value of the parameter.

Method Detail

checkSetback to summary
public void checkSet() throws DbException

Check if the value is set.

Exceptions
DbException:
if not set.
getNullableback to summary
public int getNullable()

Check if this column is nullable.

Returns:int

Column.NULLABLE_*

getParamValueback to summary
public Value getParamValue()

Get the value of the parameter if set.

Returns:Value

the value or null

getTypeback to summary
public TypeInfo getType()

Returns the expected data type if no value is set, or the data type of the value if one is set.

Returns:TypeInfo

the data type

isValueSetback to summary
public boolean isValueSet()

Is the value of a parameter set.

Returns:boolean

true if set

setValueback to summary
public void setValue(Value value, boolean closeOld)

Set the value of the parameter.

Parameters
value:Value

the new value

closeOld:boolean

if the old value (if one is set) should be closed