Package org.h2.expression
Class ParameterRemote
java.lang.Object
org.h2.expression.ParameterRemote
- All Implemented Interfaces:
ParameterInterface
A client side (remote) parameter.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
checkSet()
Check if the value is set.int
Check if this column is nullable.Get the value of the parameter if set.getType()
Returns the expected data type if no value is set, or the data type of the value if one is set.boolean
Is the value of a parameter set.void
readMetaData
(Transfer transfer) Read the parameter meta data from the transfer object.void
Set the value of the parameter.static void
writeMetaData
(Transfer transfer, ParameterInterface p) Write the parameter meta data to the transfer object.
-
Field Details
-
value
-
index
private final int index -
type
-
nullable
private int nullable
-
-
Constructor Details
-
ParameterRemote
public ParameterRemote(int index)
-
-
Method Details
-
setValue
Description copied from interface:ParameterInterface
Set the value of the parameter.- Specified by:
setValue
in interfaceParameterInterface
- Parameters:
newValue
- the new valuecloseOld
- if the old value (if one is set) should be closed
-
getParamValue
Description copied from interface:ParameterInterface
Get the value of the parameter if set.- Specified by:
getParamValue
in interfaceParameterInterface
- Returns:
- the value or null
-
checkSet
public void checkSet()Description copied from interface:ParameterInterface
Check if the value is set.- Specified by:
checkSet
in interfaceParameterInterface
-
isValueSet
public boolean isValueSet()Description copied from interface:ParameterInterface
Is the value of a parameter set.- Specified by:
isValueSet
in interfaceParameterInterface
- Returns:
- true if set
-
getType
Description copied from interface:ParameterInterface
Returns the expected data type if no value is set, or the data type of the value if one is set.- Specified by:
getType
in interfaceParameterInterface
- Returns:
- the data type
-
getNullable
public int getNullable()Description copied from interface:ParameterInterface
Check if this column is nullable.- Specified by:
getNullable
in interfaceParameterInterface
- Returns:
- Column.NULLABLE_*
-
readMetaData
Read the parameter meta data from the transfer object.- Parameters:
transfer
- the transfer object- Throws:
IOException
- on failure
-
writeMetaData
Write the parameter meta data to the transfer object.- Parameters:
transfer
- the transfer objectp
- the parameter- Throws:
IOException
- on failure
-