java.lang.Object
org.firebirdsql.jdbc.FBProcedureParam
- All Implemented Interfaces:
Cloneable
Represents procedure call parameter.
This class is internal API of Jaybird. Future versions may radically change, move, or make inaccessible this type.
-
Constructor Summary
ConstructorsConstructorDescriptionFBProcedureParam(int position, String paramValue) Create a newFBProcedureParaminstance. -
Method Summary
Modifier and TypeMethodDescriptionclone()booleanintgetIndex()final StringGet the variable value of this parameterfinal intGet the position of this parameterintgetType()Get the SQL type of this parameter.@Nullable ObjectgetValue()Set the value for this parameterinthashCode()final booleanisParam()Check if this parameter is a variable input parameterbooleanCheck if the value of this parameter has been setvoidsetIndex(int index) voidsetType(int type) Set the SQL type of this parametervoidSet the variable value of this parameter
-
Constructor Details
-
FBProcedureParam
Create a newFBProcedureParaminstance.- Parameters:
position- The position at which this parameter is situated in the callparamValue- The value for this parameter
-
-
Method Details
-
isParam
public final boolean isParam()Check if this parameter is a variable input parameter- Returns:
trueif this is an input parameter,falseotherwise
-
getPosition
public final int getPosition()Get the position of this parameter- Returns:
- The index of this parameter (first index is 1)
-
getIndex
public int getIndex() -
setIndex
public void setIndex(int index) -
getParamValue
Get the variable value of this parameter- Returns:
- The parameter value
-
getValue
Set the value for this parameter -
setValue
Set the variable value of this parameter- Parameters:
value- The value to be set- Throws:
SQLException- if this parameter contains a constant value
-
isValueSet
public boolean isValueSet()Check if the value of this parameter has been set- Returns:
trueif the value has been set,falseotherwise
-
getType
public int getType()Get the SQL type of this parameter.- Returns:
- The SQL type of this parameter
-
setType
public void setType(int type) Set the SQL type of this parameter- Parameters:
type- The SQL type of this parameter
-
equals
-
hashCode
public int hashCode() -
clone
-