Package org.h2.expression
Class ParameterRemote
- java.lang.Object
-
- org.h2.expression.ParameterRemote
-
- All Implemented Interfaces:
ParameterInterface
public class ParameterRemote extends java.lang.Object implements ParameterInterface
A client side (remote) parameter.
-
-
Constructor Summary
Constructors Constructor Description ParameterRemote(int index)
-
Method Summary
All Methods Static Methods Instance Methods Concrete 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.voidreadMetaData(Transfer transfer)Read the parameter meta data from the transfer object.voidsetValue(Value newValue, boolean closeOld)Set the value of the parameter.static voidwriteMetaData(Transfer transfer, ParameterInterface p)Write the parameter meta data to the transfer object.
-
-
-
Method Detail
-
setValue
public void setValue(Value newValue, boolean closeOld)
Description copied from interface:ParameterInterfaceSet the value of the parameter.- Specified by:
setValuein interfaceParameterInterface- Parameters:
newValue- the new valuecloseOld- if the old value (if one is set) should be closed
-
getParamValue
public Value getParamValue()
Description copied from interface:ParameterInterfaceGet the value of the parameter if set.- Specified by:
getParamValuein interfaceParameterInterface- Returns:
- the value or null
-
checkSet
public void checkSet()
Description copied from interface:ParameterInterfaceCheck if the value is set.- Specified by:
checkSetin interfaceParameterInterface
-
isValueSet
public boolean isValueSet()
Description copied from interface:ParameterInterfaceIs the value of a parameter set.- Specified by:
isValueSetin interfaceParameterInterface- Returns:
- true if set
-
getType
public TypeInfo getType()
Description copied from interface:ParameterInterfaceReturns the expected data type if no value is set, or the data type of the value if one is set.- Specified by:
getTypein interfaceParameterInterface- Returns:
- the data type
-
getNullable
public int getNullable()
Description copied from interface:ParameterInterfaceCheck if this column is nullable.- Specified by:
getNullablein interfaceParameterInterface- Returns:
- Column.NULLABLE_*
-
readMetaData
public void readMetaData(Transfer transfer) throws java.io.IOException
Read the parameter meta data from the transfer object.- Parameters:
transfer- the transfer object- Throws:
java.io.IOException- on failure
-
writeMetaData
public static void writeMetaData(Transfer transfer, ParameterInterface p) throws java.io.IOException
Write the parameter meta data to the transfer object.- Parameters:
transfer- the transfer objectp- the parameter- Throws:
java.io.IOException- on failure
-
-