| |
|
| java.lang.Object com.mysql.jdbc.MysqlParameterMetadata
parameterCount | int parameterCount(Code) | | |
returnSimpleMetadata | boolean returnSimpleMetadata(Code) | | |
MysqlParameterMetadata | MysqlParameterMetadata(Field[] fieldInfo, int parameterCount)(Code) | | |
MysqlParameterMetadata | MysqlParameterMetadata(int count)(Code) | | Used for "fake" basic metadata for client-side prepared statements when
we don't know the parameter types.
Parameters: parameterCount - |
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 indirectly wraps an object that does. throws: java.sql.SQLException - if an error occurs while determining whether this is a wrapperfor an object with the given interface. since: 1.6 |
unwrap | public Object unwrap(Class 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 the actual implementing object. throws: java.sql.SQLException - If no object found that implements the interface since: 1.6 |
|
|
|