| java.lang.Object org.apache.derby.impl.sql.GenericParameter
GenericParameter | final class GenericParameter (Code) | | A parameter. Originally lifted from ParameterValueSet.
author: jamie |
declaredClassName | String declaredClassName(Code) | | Compile time Java class name.
|
jdbcTypeId | int jdbcTypeId(Code) | | Compile time JDBC type identifier.
|
parameterMode | short parameterMode(Code) | | Mode of the parameter, from ParameterMetaData
|
registerOutPrecision | int registerOutPrecision(Code) | | When a decimal output parameter is registered we give it a
precision
|
registerOutScale | int registerOutScale(Code) | | Scale that has been registered.
|
registerOutType | int registerOutType(Code) | | Type that has been registered.
|
GenericParameter | GenericParameter(GenericParameterValueSet pvs, boolean isReturnOutputParameter)(Code) | | Constructor for a Parameter
Parameters: pvs - the parameter set that this is part of Parameters: isReturnOutputParameter - true if this is a return output parameter |
clear | void clear()(Code) | | Clear the parameter, unless it is a return
output parameter
|
getClone | public GenericParameter getClone(GenericParameterValueSet pvs)(Code) | | Clone myself. It is a shallow copy for everything but
the underlying data wrapper and its value -- e.g. for
everything but the underlying SQLInt and its int.
Parameters: pvs - the parameter value set a new generic parameter. |
getJDBCParameterNumberStr | String getJDBCParameterNumberStr()(Code) | | get string for param number
|
getPrecision | int getPrecision()(Code) | | |
getScale | int getScale()(Code) | | Return the scale of the parameter.
scale |
getValue | DataValueDescriptor getValue()(Code) | | Get the parameter value. Doesn't check to
see if it has been initialized or not.
the parameter value, may return null |
initialize | void initialize(DataValueDescriptor value, int jdbcTypeId, String className)(Code) | | Set the DataValueDescriptor and type information for this parameter
|
setOutParameter | void setOutParameter(int sqlType, int scale) throws StandardException(Code) | | Mark the parameter as an output parameter.
Parameters: sqlType - A type from java.sql.Types Parameters: scale - scale, -1 if no scale arg exception: StandardException - on error |
validate | 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 |
|
|