java.sql.ParameterMetaData, java.sql.Wrapperpublic class VirtuosoParameterMetaData
extends java.lang.Object
implements java.sql.ParameterMetaData
ParameterMetaData metadata = statement.getParameterMetaData()
PreparedStatement,
VirtuosoPreparedStatement.getParameterMetaData()| Modifier and Type | Field | Description |
|---|---|---|
protected Vector |
parameters |
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.String |
getParameterClassName(int param) |
|
int |
getParameterCount() |
|
int |
getParameterMode(int param) |
|
int |
getParameterType(int param) |
|
java.lang.String |
getParameterTypeName(int param) |
|
int |
getPrecision(int param) |
|
int |
getScale(int param) |
|
int |
isNullable(int param) |
|
boolean |
isSigned(int param) |
|
boolean |
isWrapperFor(java.lang.Class<?> iface) |
Returns true if this either implements the interface argument or is directly or indirectly a wrapper
for an object that does.
|
<T> T |
unwrap(java.lang.Class<T> iface) |
Returns an object that implements the given interface to allow access to
non-standard methods, or standard methods not exposed by the proxy.
|
protected Vector parameters
public int getParameterCount()
throws VirtuosoException
getParameterCount in interface java.sql.ParameterMetaDataVirtuosoExceptionpublic int isNullable(int param)
throws VirtuosoException
isNullable in interface java.sql.ParameterMetaDataVirtuosoExceptionpublic boolean isSigned(int param)
throws VirtuosoException
isSigned in interface java.sql.ParameterMetaDataVirtuosoExceptionpublic int getPrecision(int param)
throws VirtuosoException
getPrecision in interface java.sql.ParameterMetaDataVirtuosoExceptionpublic int getScale(int param)
throws VirtuosoException
getScale in interface java.sql.ParameterMetaDataVirtuosoExceptionpublic int getParameterType(int param)
throws VirtuosoException
getParameterType in interface java.sql.ParameterMetaDataVirtuosoExceptionpublic java.lang.String getParameterTypeName(int param)
throws VirtuosoException
getParameterTypeName in interface java.sql.ParameterMetaDataVirtuosoExceptionpublic java.lang.String getParameterClassName(int param)
throws VirtuosoException
getParameterClassName in interface java.sql.ParameterMetaDataVirtuosoExceptionpublic int getParameterMode(int param)
throws VirtuosoException
getParameterMode in interface java.sql.ParameterMetaDataVirtuosoExceptionpublic <T> T unwrap(java.lang.Class<T> iface)
throws java.sql.SQLException
unwrap recursively on the wrapped object
or a proxy for that result. If the receiver is not a
wrapper and does not implement the interface, then an SQLException is thrown.unwrap in interface java.sql.Wrapperiface - A Class defining an interface that the result must implement.java.sql.SQLException - If no object found that implements the interfacepublic boolean isWrapperFor(java.lang.Class<?> iface)
throws java.sql.SQLException
isWrapperFor on the wrapped
object. If this does not implement the interface and is not a wrapper, return false.
This method should be implemented as a low-cost operation compared to unwrap so that
callers can use this method to avoid expensive unwrap calls that may fail. If this method
returns true then calling unwrap with the same argument should succeed.isWrapperFor in interface java.sql.Wrapperiface - a Class defining an interface.java.sql.SQLException - if an error occurs while determining whether this is a wrapper
for an object with the given interface.