PreparedStatement object. For some queries and driver
implementations, the data that would be returned by a ParameterMetaData
object may not be available until the PreparedStatement has
been executed.
Some driver implementations may not be able to provide information about the
types and properties for each parameter marker in a CallableStatement
object.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv int | parameterCount
The number of parameters in the described statement |
| pack-priv ResultMetaData | rmd
The metadata object with which this object is constructed |
| private boolean |
| Access | Constructor and Description |
|---|---|
| pack-priv | JDBCParameterMetaData(JDBCConnection conn, ResultMetaData
A ResultMetaData object describing the statement parameters metaData)Creates a new instance of JDBCParameterMetaData. |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | checkRange(int
position to check param)Checks if the value of the param argument is a valid parameter position. |
| public String | Returns: the fully-qualified name of the class in the Java programming language that would be used by the methodPreparedStatement.setObject to set the value
in the specified parameter. This is the class name used
for custom mapping.the first parameter is 1, the second is 2, ... param)Implements java. Retrieves the fully-qualified name of the Java class whose instances
should be passed to the method |
| public int | Returns: the number of parametersImplements java. Retrieves the number of parameters in the |
| public int | Returns: mode of the parameter; one ofParameterMetaData.parameterModeIn,
ParameterMetaData.parameterModeOut, or
ParameterMetaData.parameterModeInOut
ParameterMetaData.parameterModeUnknown.the first parameter is 1, the second is 2, ... param)Implements java. Retrieves the designated parameter's mode. |
| public int | Returns: SQL type fromjava.sql.Typesthe first parameter is 1, the second is 2, ... param)Implements java. Retrieves the designated parameter's SQL type. |
| public String | Returns: type the name used by the database. If the parameter type is a user-defined type, then a fully-qualified type name is returned.the first parameter is 1, the second is 2, ... param)Implements java. Retrieves the designated parameter's database-specific type name. |
| public int | Returns: precisionthe first parameter is 1, the second is 2, ... param)Implements java. Retrieves the designated parameter's specified column size. |
| public int | Returns: scalethe first parameter is 1, the second is 2, ... param)Implements java. Retrieves the designated parameter's number of digits to right of the decimal point. |
| public int | Returns: the nullability status of the given parameter; one ofParameterMetaData.parameterNoNulls,
ParameterMetaData.parameterNullable, or
ParameterMetaData.parameterNullableUnknownthe first parameter is 1, the second is 2, ... param)Implements java. Retrieves whether null values are allowed in the designated parameter. |
| public boolean | Returns: true if so; false otherwisethe first parameter is 1, the second is 2, ... param)Implements java. Retrieves whether values for the designated parameter can be signed numbers. |
| public boolean | Returns: true if this implements the interface or directly or indirectly wraps an object that does.a Class defining an interface. iface)Implements java. Returns true if this either implements the interface argument or is directly or indirectly a wrapper for an object that does. |
| public String | Returns: a String representation of this objectOverrides java. Retrieves a String representation of this object. |
| private String | Returns: a String representation of this objectProvides the implementation of the toString() method. |
| private Type | |
| public <T> T | Returns: an object that implements the interface. May be a proxy for the actual implementing object.A Class defining an interface that the result must implement. iface)Implements java. Returns an object that implements the given interface to allow access to non-standard methods, or standard methods not exposed by the proxy. |
| parameterCount | back to summary |
|---|---|
| pack-priv int parameterCount The number of parameters in the described statement | |
| rmd | back to summary |
|---|---|
| pack-priv ResultMetaData rmd The metadata object with which this object is constructed | |
| translateTTIType | back to summary |
|---|---|
| private boolean translateTTIType | |
| JDBCParameterMetaData | back to summary |
|---|---|
| pack-priv JDBCParameterMetaData(JDBCConnection conn, ResultMetaData metaData) Creates a new instance of JDBCParameterMetaData.
| |
| checkRange | back to summary |
|---|---|
| pack-priv void checkRange(int param) throws SQLException Checks if the value of the param argument is a valid parameter position.
| |
| getParameterClassName | back to summary |
|---|---|
| public String getParameterClassName(int param) throws SQLException Implements java. Retrieves the fully-qualified name of the Java class whose instances
should be passed to the method
| |
| getParameterCount | back to summary |
|---|---|
| public int getParameterCount() throws SQLException Implements java. Retrieves the number of parameters in the
| |
| getParameterMode | back to summary |
|---|---|
| public int getParameterMode(int param) throws SQLException Implements java. Retrieves the designated parameter's mode.
| |
| getParameterType | back to summary |
|---|---|
| public int getParameterType(int param) throws SQLException Implements java. Retrieves the designated parameter's SQL type.
| |
| getParameterTypeName | back to summary |
|---|---|
| public String getParameterTypeName(int param) throws SQLException Implements java. Retrieves the designated parameter's database-specific type name.
| |
| getPrecision | back to summary |
|---|---|
| public int getPrecision(int param) throws SQLException Implements java. Retrieves the designated parameter's specified column size. The returned value represents the maximum column size for the given parameter. For numeric data, this is the maximum precision. For character data, this is the length in characters. For datetime datatypes, this is the length in characters of the String representation (assuming the maximum allowed precision of the fractional seconds component). For binary data, this is the length in bytes. For the ROWID datatype, this is the length in bytes. 0 is returned for data types where the column size is not applicable.
| |
| getScale | back to summary |
|---|---|
| public int getScale(int param) throws SQLException Implements java. Retrieves the designated parameter's number of digits to right of the decimal point. 0 is returned for data types where the scale is not applicable.
| |
| isNullable | back to summary |
|---|---|
| public int isNullable(int param) throws SQLException Implements java. Retrieves whether null values are allowed in the designated parameter.
| |
| isSigned | back to summary |
|---|---|
| public boolean isSigned(int param) throws SQLException Implements java. Retrieves whether values for the designated parameter can be signed numbers.
| |
| isWrapperFor | back to summary |
|---|---|
| public boolean isWrapperFor(Class<?> iface) throws SQLException Implements java. Returns true if this either implements the interface argument or is directly or indirectly a wrapper
for an object that does. Returns false otherwise. If this implements the interface then return true,
else if this is a wrapper then return the result of recursively calling
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Retrieves a String representation of this object.
| |
| toStringImpl | back to summary |
|---|---|
| private String toStringImpl() throws Exception Provides the implementation of the toString() method. | |
| translateType | back to summary |
|---|---|
| private Type translateType(Type type) Translates an INTERVAL type to VARCHAR. Removes time zone from datetime types. | |
| unwrap | back to summary |
|---|---|
| public <T> T unwrap(Class<T> iface) throws SQLException Implements java. Returns an object that implements the given interface to allow access to
non-standard methods, or standard methods not exposed by the proxy.
If the receiver implements the interface then the result is the receiver
or a proxy for the receiver. If the receiver is a wrapper
and the wrapped object implements the interface then the result is the
wrapped object or a proxy for the wrapped object. Otherwise return
the result of calling
| |