|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.derby.impl.sql.GenericParameter
A parameter. Originally lifted from ParameterValueSet.
Field Summary | |
private static int |
DECIMAL_PARAMETER_DEFAULT_PRECISION
|
private static int |
DECIMAL_PARAMETER_DEFAULT_SCALE
|
(package private) java.lang.String |
declaredClassName
Compile time Java class name. |
private boolean |
isReturnOutputParameter
|
(package private) boolean |
isSet
|
(package private) int |
jdbcTypeId
Compile time JDBC type identifier. |
(package private) short |
parameterMode
Mode of the parameter, from ParameterMetaData |
private GenericParameterValueSet |
pvs
|
(package private) int |
registerOutPrecision
When a decimal output parameter is registered we give it a precision |
(package private) int |
registerOutScale
Scale that has been registered. |
(package private) int |
registerOutType
Type that has been registered. |
private DataValueDescriptor |
value
Our value |
Constructor Summary | |
(package private) |
GenericParameter(GenericParameterValueSet pvs,
boolean isReturnOutputParameter)
Constructor for a Parameter |
Method Summary | |
(package private) void |
clear()
Clear the parameter, unless it is a return output parameter |
GenericParameter |
getClone(GenericParameterValueSet pvs)
Clone myself. |
(package private) java.lang.String |
getJDBCParameterNumberStr()
get string for param number |
(package private) int |
getPrecision()
|
(package private) int |
getScale()
Return the scale of the parameter. |
(package private) DataValueDescriptor |
getValue()
Get the parameter value. |
(package private) void |
setOutParameter(int sqlType,
int scale)
Mark the parameter as an output parameter. |
(package private) void |
setStorableDataValue(DataValueDescriptor value,
int jdbcTypeId,
java.lang.String className)
Set the DataValueDescriptor for this parameter. |
(package private) void |
stuffObject(java.lang.Object newValue)
do a setValue on the particular field. |
private StandardException |
throwInvalidOutParamMap(int sqlType)
|
java.lang.String |
toString()
|
(package private) void |
validate()
Validate the parameters. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private static int DECIMAL_PARAMETER_DEFAULT_PRECISION
private static int DECIMAL_PARAMETER_DEFAULT_SCALE
private final GenericParameterValueSet pvs
private DataValueDescriptor value
int jdbcTypeId
java.lang.String declaredClassName
short parameterMode
boolean isSet
private final boolean isReturnOutputParameter
int registerOutType
int registerOutScale
int registerOutPrecision
Constructor Detail |
GenericParameter(GenericParameterValueSet pvs, boolean isReturnOutputParameter)
pvs
- the parameter set that this is part ofisReturnOutputParameter
- true if this is a return output parameterMethod Detail |
public GenericParameter getClone(GenericParameterValueSet pvs)
pvs
- the parameter value set
void setStorableDataValue(DataValueDescriptor value, int jdbcTypeId, java.lang.String className)
void clear()
DataValueDescriptor getValue()
void setOutParameter(int sqlType, int scale) throws StandardException
sqlType
- A type from java.sql.Typesscale
- scale, -1 if no scale arg
StandardException
- on errorprivate StandardException throwInvalidOutParamMap(int sqlType)
void validate() throws StandardException
StandardException
- if the parameters aren't validint getScale()
int getPrecision()
void stuffObject(java.lang.Object newValue) throws StandardException
newValue
- the value to set
StandardException
- on errorjava.lang.String getJDBCParameterNumberStr()
public java.lang.String toString()
|
Built on Mon 2007-06-04 09:58:47+0400, from revision ??? | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |