org.apache.derby.impl.jdbc
Class EmbedParameterMetaData30
java.lang.Object
org.apache.derby.impl.jdbc.EmbedParameterSetMetaData
org.apache.derby.impl.jdbc.EmbedParameterMetaData30
- All Implemented Interfaces:
- java.sql.ParameterMetaData, java.sql.Wrapper, EngineParameterMetaData
class EmbedParameterMetaData30
- extends EmbedParameterSetMetaData
- implements java.sql.ParameterMetaData
This class implements the ParameterMetaData interface from JDBC 3.0 and 4.0.
It provides the parameter meta data for callable & prepared statements
But note that the bulk of it resides in its parent class. The reason is
we want to provide the functionality to the JDKs before JDBC3.0.
Supports
- JDBC 3.0 - java.sql.ParameterMetaData introduced in JDBC3
- JDBC 4.0 - extra methods from java.sql.Wrapper introduced in JDBC 4.0
- See Also:
ParameterMetaData
| Fields inherited from interface java.sql.ParameterMetaData |
parameterModeIn, parameterModeInOut, parameterModeOut, parameterModeUnknown, parameterNoNulls, parameterNullable, parameterNullableUnknown |
|
Method Summary |
boolean |
isWrapperFor(java.lang.Class<?> iface)
Returns false unless iface is implemented. |
|
unwrap(java.lang.Class<T> iface)
Returns this if this class implements the specified interface. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.sql.ParameterMetaData |
getParameterClassName, getParameterCount, getParameterMode, getParameterType, getParameterTypeName, getPrecision, getScale, isNullable, isSigned |
EmbedParameterMetaData30
EmbedParameterMetaData30(ParameterValueSet pvs,
DataTypeDescriptor[] types)
isWrapperFor
public boolean isWrapperFor(java.lang.Class<?> iface)
throws java.sql.SQLException
- Returns false unless
iface is implemented.
- Specified by:
isWrapperFor in interface java.sql.Wrapper
- Parameters:
iface - a class defining an interface
- Returns:
- true if this implements the interface or directly or indirectly
wraps an object that does
- Throws:
java.sql.SQLException - if an error occurs while determining
whether this is a wrapper for an object with the given interface.
unwrap
public <T> T unwrap(java.lang.Class<T> iface)
throws java.sql.SQLException
- Returns
this if this class implements the specified interface.
- Specified by:
unwrap in interface java.sql.Wrapper
- Parameters:
iface - a class defining an interface
- Returns:
- an object that implements the interface
- Throws:
java.sql.SQLException - if no object is found that implements the
interface
Apache Derby V10.10 Internals - Copyright © 2004,2013 The Apache Software Foundation. All Rights Reserved.