| java.lang.Object org.apache.derby.impl.sql.GenericParameterValueSet
Constructor Summary | |
| GenericParameterValueSet(ClassInspector ci, int numParms, boolean hasReturnOutputParam) Constructor for a GenericParameterValueSet
Parameters: numParms - The number of parameters in the new ParameterValueSet Parameters: hasReturnOutputParam - if we have a ? = call syntax. |
GenericParameterValueSet | GenericParameterValueSet(ClassInspector ci, int numParms, boolean hasReturnOutputParam)(Code) | | Constructor for a GenericParameterValueSet
Parameters: numParms - The number of parameters in the new ParameterValueSet Parameters: hasReturnOutputParam - if we have a ? = call syntax. Note thatthis is NOT the same thing as an output parameter -- returnoutput parameters are special cases of output parameters. |
checkNoDeclaredOutputParameters | public boolean checkNoDeclaredOutputParameters()(Code) | | Check that there are not output parameters defined
by the parameter set. If there are unknown parameter
types they are forced to input types. i.e. Cloudscape static method
calls with parameters that are array.
true if a declared Java Procedure INOUT or OUT parameter is in the set, false otherwise. |
getParameterCount | public int getParameterCount()(Code) | | Returns the number of parameters in this set.
The number of parameters in this set. |
getParameterMode | public short getParameterMode(int parameterIndex)(Code) | | Return the mode of the parameter according to JDBC 3.0 ParameterMetaData
Parameters: parameterIndex - the first parameter is 1, the second is 2, ... |
getParameterNumber | public int getParameterNumber(GenericParameter theParam)(Code) | | Return the parameter number (in jdbc lingo, i.e. 1 based)
for the given parameter. Linear search.
the parameter number, or 0 if not found |
getPrecision | public int getPrecision(int parameterIndex)(Code) | | Return the precision of the given parameter index in this pvs.
Parameters: parameterIndex - the first parameter is 1, the second is 2, ... precision |
getScale | public int getScale(int parameterIndex)(Code) | | Return the scale of the given parameter index in this pvs.
Parameters: parameterIndex - the first parameter is 1, the second is 2, ... scale |
hasReturnOutputParameter | public boolean hasReturnOutputParameter()(Code) | | Is there a return output parameter in this pvs. A return
parameter is from a CALL statement of the following
syntax: ? = CALL myMethod()
true if it has a return parameter |
initialize | public void initialize(DataTypeDescriptor[] types)(Code) | | Initialize the set by allocating a holder DataValueDescriptor object
for each parameter.
|
registerOutParameter | public void registerOutParameter(int parameterIndex, int sqlType, int scale) throws StandardException(Code) | | Mark the parameter as an output parameter.
Parameters: parameterIndex - The ordinal parameterIndex of a parameter to setto the given value. Parameters: sqlType - A type from java.sql.Types Parameters: scale - the scale to use. -1 means ignore scale exception: StandardException - on error |
setParameterMode | public void setParameterMode(int position, int mode)(Code) | | |
validate | public void validate() throws StandardException(Code) | | Validate the parameters. This is done for situations where
we cannot validate everything in the setXXX() calls. In
particular, before we do an execute() on a CallableStatement,
we need to go through the parameters and make sure that
all parameters are set up properly. The motivator for this
is that setXXX() can be called either before or after
registerOutputParamter(), we cannot be sure we have the types
correct until we get to execute().
exception: StandardException - if the parameters aren't valid |
|
|