| |
|
| java.lang.Object com.mysql.jdbc.jdbc2.optional.WrapperBase com.mysql.jdbc.jdbc2.optional.StatementWrapper com.mysql.jdbc.jdbc2.optional.JDBC4StatementWrapper
Method Summary | |
public void | close() | public boolean | isClosed() | public boolean | isPoolable() | public boolean | isWrapperFor(Class> iface) Returns true if this either implements the interface argument or is
directly or indirectly a wrapper for an object that does. | public void | setPoolable(boolean poolable) | public synchronized 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. |
isWrapperFor | public boolean isWrapperFor(Class> iface) throws SQLException(Code) | | 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
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.
Parameters: interfaces - a Class defining an interface. true if this implements the interface or directly or indirectlywraps an object that does. throws: java.sql.SQLException - if an error occurs while determining whether this is awrapper for an object with the given interface. since: 1.6 |
unwrap | public synchronized T unwrap(java.lang.Class<T> iface) throws java.sql.SQLException(Code) | | Returns an object that implements the given interface to allow access to
non-standard methods, or standard methods not exposed by the proxy. The
result may be either the object found to implement the interface or a
proxy for that object. If the receiver implements the interface then that
is the object. If the receiver is a wrapper and the wrapped object
implements the interface then that is the object. Otherwise the object is
the result of calling unwrap recursively on the wrapped
object. If the receiver is not a wrapper and does not implement the
interface, then an SQLException is thrown.
Parameters: iface - A Class defining an interface that the result must implement. an object that implements the interface. May be a proxy for theactual implementing object. throws: java.sql.SQLException - If no object found that implements the interface since: 1.6 |
|
|
|