Class CallableStatementParameters
java.lang.Object
com.mcpdbwizard.pub.StatementParameters2
com.mcpdbwizard.pub.CallableStatementParameters
A set of parameters for a Callable Statement statement
call
This class represents OUT or IN/OUT parameters for a Stored Procedure or function. It extends StatementParameters2 which represents IN parameters and is used by both SQL statements and Procedures.
Under normal circumstances MCPDBWizard users will have no reason to use this class directly - the created code will use it.
Copyright 2003-2026 ATB Consultancy Services Ltd (formerly Orinda Software Ltd, Dublin, Ireland)
- Version:
- 7
- Author:
- devteam@mcpdbwizard.com
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected boolean[]Array of boolean for keeping track of whether parameters are set or not.Fields inherited from class com.mcpdbwizard.pub.StatementParameters2
inputParameterFilesizeArray, inputParameterSetArray, parameterArray, parameterOpaqueTypeNameArray, parameterTypeArray, theLog -
Constructor Summary
ConstructorsConstructorDescriptionCallableStatementParameters(int howMany, LogInterface theLog) Create a set of statement Parameters of sizehowMany.CallableStatementParameters(String sqlStatement, LogInterface theLog) Create a set of statement Parameters by counting '?' -
Method Summary
Modifier and TypeMethodDescriptionvoidbindParameters(CallableStatement theCallableStatement) Bind these parameters to a Prepared Statement.voidcheckSet()Complain if not all parameters set...voidClear our parameter arrayvoidsetOutParam(int parameterId, int parameterType) Set an out parametervoidsetOutParam(int parameterId, int parameterType, String parameterOpaqueTypeName) Set an OPAQUE out parametervoidsetPlSqlIndexArrayOutParam(int parameterId, PlsqlIndexByTable2 parameterValue) Set an out parameter for a PL/SQL Index By Table In order to retrieve a PL/SQL Index By Table you need to specify the data type you are expecting and how many records can be in the array.voidsetPlSqlTableArrayOutParam(int parameterId, PlsqlArray parameterValue) Set an out parameter for a PL/SQL Array In order to retrieve a PL/SQL varray or table you need to specify the oracle collection name.voidunloadParameters(CallableStatement theCallableStatement) Unload these parameter from a Prepared Statement.Methods inherited from class com.mcpdbwizard.pub.StatementParameters2
bindParameters, checkBuild, checkRange, getParam, getParamCount, getParameters, getSignature, setNativeBooleanParam, setParam, setParam, setParam, setParam, setParam, setParam, setParam, setParam, setParam, setParam, setParam, setParam, setParam, setParam, setParam, setParam, setParam, setParam, setParam, setParam, setParam, setParam, setParam, setParam, setParam, setParam, setParam, setParam, setParam, setParam, setParam, setParam, setParam, setParam, setParam, setParam, setParam, setPlSqlIndexArrayParam, setPlSqlTableArrayParam, setVectorBinaryParam, setVectorSparseParam
-
Field Details
-
outputParameterSetArray
protected boolean[] outputParameterSetArrayArray of boolean for keeping track of whether parameters are set or not.
-
-
Constructor Details
-
CallableStatementParameters
Create a set of statement Parameters of sizehowMany.- Parameters:
howMany- The number of parameters the statement requires.
-
CallableStatementParameters
Create a set of statement Parameters by counting '?' characters in a SQL statement- Parameters:
sqlStatement- The statement that we will be working with
-
-
Method Details
-
clearParameters
public void clearParameters()Clear our parameter array- Overrides:
clearParametersin classStatementParameters2
-
setPlSqlIndexArrayOutParam
public void setPlSqlIndexArrayOutParam(int parameterId, PlsqlIndexByTable2 parameterValue) throws CSException Set an out parameter for a PL/SQL Index By Table In order to retrieve a PL/SQL Index By Table you need to specify the data type you are expecting and how many records can be in the array. parametervalue is used to store this as well as the resulting array.- Parameters:
parameterId- The id of the parameter to set. Id's start at 0.parameterValue-- Throws:
CSException- ifparameterIdis not a valid parameter.- Since:
- Oracle 10g / 4.0.1798
-
setPlSqlTableArrayOutParam
public void setPlSqlTableArrayOutParam(int parameterId, PlsqlArray parameterValue) throws CSException Set an out parameter for a PL/SQL Array In order to retrieve a PL/SQL varray or table you need to specify the oracle collection name. parametervalue is used to store this as well as the resulting array.- Parameters:
parameterId- The id of the parameter to set. Id's start at 0.parameterValue-- Throws:
CSException- ifparameterIdis not a valid parameter.- Since:
- Oracle 9i / 4.0.1885
-
setOutParam
Set an out parameter- Parameters:
parameterId- The id of the parameter to set. Id's start at 0.parameterType- A parameter type- Throws:
CSException- ifparameterIdis not a valid parameter.
-
setOutParam
public void setOutParam(int parameterId, int parameterType, String parameterOpaqueTypeName) throws CSException Set an OPAQUE out parameter- Parameters:
parameterId- The id of the parameter to set. Id's start at 0.parameterType- A parameter typeparameterOpaqueTypeName- Underlying data type name- Throws:
CSException- ifparameterIdis not a valid parameter.- Since:
- 6.0.2746
-
bindParameters
Bind these parameters to a Prepared Statement.- Parameters:
theCallableStatement- The prepared statement you want these parameters bound to.- Throws:
CSException- Since:
- Oracle 10g / 4.0.1798 Support for PL/SQL INDEX BY tables
-
unloadParameters
Unload these parameter from a Prepared Statement.- Parameters:
theCallableStatement- The prepared statement you want these parameters unloaded from.- Throws:
CSException- Since:
- Oracle 10g / 4.0.1798 Support for PL/SQL INDEX BY tables, Oracle 9.0.1 / 4.0.1847 Support for PL/SQL tables
-
checkSet
Complain if not all parameters set...- Overrides:
checkSetin classStatementParameters2- Throws:
CSException- if one or more parameters is not set.
-