| Modifier and Type | Field and Description |
|---|---|
| private static int | |
| private static int | |
| pack-priv String | declaredClassName
Compile time Java class name. |
| private final boolean | |
| pack-priv boolean | |
| pack-priv int | jdbcTypeId
Compile time JDBC type identifier. |
| pack-priv short | parameterMode
Mode of the parameter, from ParameterMetaData |
| private final GenericParameterValueSet | |
| pack-priv int | registerOutPrecision
When a decimal output parameter is registered we give it a precision |
| pack-priv int | registerOutScale
Scale that has been registered. |
| pack-priv int | registerOutType
Type that has been registered. |
| private DataValueDescriptor | value
Our value |
| Access | Constructor and Description |
|---|---|
| pack-priv | GenericParameter(GenericParameterValueSet
the parameter set that this is part of pvs, boolean true if this is a return output parameter isReturnOutputParameter)Constructor for a Parameter |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| public GenericParameter | Returns: a new generic parameter.the parameter value set pvs)Clone myself. |
| pack-priv String | |
| pack-priv int | |
| pack-priv int | |
| pack-priv DataValueDescriptor | |
| pack-priv void | initialize(DataValueDescriptor value, int jdbcTypeId, String className)
Set the DataValueDescriptor and type information for this parameter |
| pack-priv void | setOutParameter(int
A type from java.sql.Types sqlType, int scale, -1 if no scale arg scale)Mark the parameter as an output parameter. |
| private StandardException | |
| public String | |
| pack-priv void |
| DECIMAL_PARAMETER_DEFAULT_PRECISION | back to summary |
|---|---|
| private static int DECIMAL_PARAMETER_DEFAULT_PRECISION | |
| DECIMAL_PARAMETER_DEFAULT_SCALE | back to summary |
|---|---|
| private static int DECIMAL_PARAMETER_DEFAULT_SCALE | |
| declaredClassName | back to summary |
|---|---|
| pack-priv String declaredClassName Compile time Java class name. | |
| isReturnOutputParameter | back to summary |
|---|---|
| private final boolean isReturnOutputParameter | |
| isSet | back to summary |
|---|---|
| pack-priv boolean isSet | |
| jdbcTypeId | back to summary |
|---|---|
| pack-priv int jdbcTypeId Compile time JDBC type identifier. | |
| parameterMode | back to summary |
|---|---|
| pack-priv short parameterMode Mode of the parameter, from ParameterMetaData | |
| pvs | back to summary |
|---|---|
| private final GenericParameterValueSet pvs | |
| registerOutPrecision | back to summary |
|---|---|
| pack-priv int registerOutPrecision When a decimal output parameter is registered we give it a precision | |
| registerOutScale | back to summary |
|---|---|
| pack-priv int registerOutScale Scale that has been registered. | |
| registerOutType | back to summary |
|---|---|
| pack-priv int registerOutType Type that has been registered. | |
| value | back to summary |
|---|---|
| private DataValueDescriptor value Our value | |
| GenericParameter | back to summary |
|---|---|
| pack-priv GenericParameter(GenericParameterValueSet pvs, boolean isReturnOutputParameter) Constructor for a Parameter
| |
| clear | back to summary |
|---|---|
| pack-priv void clear() Clear the parameter, unless it is a return output parameter | |
| getClone | back to summary |
|---|---|
| public GenericParameter getClone(GenericParameterValueSet pvs) 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.
| |
| getJDBCParameterNumberStr | back to summary |
|---|---|
| pack-priv String getJDBCParameterNumberStr() get string for param number | |
| getPrecision | back to summary |
|---|---|
| pack-priv int getPrecision() | |
| getScale | back to summary |
|---|---|
| pack-priv int getScale() Return the scale of the parameter.
| |
| getValue | back to summary |
|---|---|
| pack-priv DataValueDescriptor getValue() Get the parameter value. Doesn't check to see if it has been initialized or not.
| |
| initialize | back to summary |
|---|---|
| pack-priv void initialize(DataValueDescriptor value, int jdbcTypeId, String className) Set the DataValueDescriptor and type information for this parameter | |
| setOutParameter | back to summary |
|---|---|
| pack-priv void setOutParameter(int sqlType, int scale) throws StandardException Mark the parameter as an output parameter.
| |
| throwInvalidOutParamMap | back to summary |
|---|---|
| private StandardException throwInvalidOutParamMap(int sqlType) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |
| validate | back to summary |
|---|---|
| pack-priv void validate() throws StandardException 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().
| |