| java.lang.Object com.mysql.jdbc.jdbc2.optional.WrapperBase com.mysql.jdbc.jdbc2.optional.ConnectionWrapper com.mysql.jdbc.jdbc2.optional.JDBC4ConnectionWrapper
JDBC4ConnectionWrapper | public JDBC4ConnectionWrapper(MysqlPooledConnection mysqlPooledConnection, ConnectionImpl mysqlConnection, boolean forXa) throws SQLException(Code) | | Construct a new LogicalHandle and set instance variables
Parameters: mysqlPooledConnection - reference to object that instantiated this object Parameters: mysqlConnection - physical connection to db throws: SQLException - if an error occurs. |
isValid | public synchronized boolean isValid(int timeout) throws SQLException(Code) | | Returns true if the connection has not been closed and is still valid.
The driver shall submit a query on the connection or use some other
mechanism that positively verifies the connection is still valid when
this method is called.
The query submitted by the driver to validate the connection shall be
executed in the context of the current transaction.
Parameters: timeout - -The time in seconds to wait for the database operation used tovalidate the connection to complete. If the timeout periodexpires before the operation completes, this method returnsfalse. A value of 0 indicates a timeout is not applied to thedatabase operation. true if the connection is valid, false otherwise exception: SQLException - if the value supplied for timeout is lessthen 0 since: 1.6 |
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 |
Methods inherited from com.mysql.jdbc.jdbc2.optional.ConnectionWrapper | protected void checkClosed() throws SQLException(Code)(Java Doc) public void clearWarnings() throws SQLException(Code)(Java Doc) public java.sql.PreparedStatement clientPrepare(String sql) throws SQLException(Code)(Java Doc) public java.sql.PreparedStatement clientPrepare(String sql, int resultSetType, int resultSetConcurrency) throws SQLException(Code)(Java Doc) public void close() throws SQLException(Code)(Java Doc) protected void close(boolean fireClosedEvent) throws SQLException(Code)(Java Doc) public void commit() throws SQLException(Code)(Java Doc) public java.sql.Statement createStatement() throws SQLException(Code)(Java Doc) public java.sql.Statement createStatement(int resultSetType, int resultSetConcurrency) throws SQLException(Code)(Java Doc) public java.sql.Statement createStatement(int arg0, int arg1, int arg2) throws SQLException(Code)(Java Doc) public boolean getAutoCommit() throws SQLException(Code)(Java Doc) public String getCatalog() throws SQLException(Code)(Java Doc) public int getHoldability() throws SQLException(Code)(Java Doc) public long getIdleFor()(Code)(Java Doc) protected static ConnectionWrapper getInstance(MysqlPooledConnection mysqlPooledConnection, ConnectionImpl mysqlConnection, boolean forXa) throws SQLException(Code)(Java Doc) public java.sql.DatabaseMetaData getMetaData() throws SQLException(Code)(Java Doc) public int getTransactionIsolation() throws SQLException(Code)(Java Doc) public java.util.Map getTypeMap() throws SQLException(Code)(Java Doc) public java.sql.SQLWarning getWarnings() throws SQLException(Code)(Java Doc) public boolean isClosed() throws SQLException(Code)(Java Doc) protected boolean isInGlobalTx()(Code)(Java Doc) public boolean isMasterConnection() throws SQLException(Code)(Java Doc) public boolean isReadOnly() throws SQLException(Code)(Java Doc) public boolean isSameResource(Connection c)(Code)(Java Doc) public String nativeSQL(String sql) throws SQLException(Code)(Java Doc) public void ping() throws SQLException(Code)(Java Doc) public java.sql.CallableStatement prepareCall(String sql) throws SQLException(Code)(Java Doc) public java.sql.CallableStatement prepareCall(String sql, int resultSetType, int resultSetConcurrency) throws SQLException(Code)(Java Doc) public java.sql.CallableStatement prepareCall(String arg0, int arg1, int arg2, int arg3) throws SQLException(Code)(Java Doc) public java.sql.PreparedStatement prepareStatement(String sql) throws SQLException(Code)(Java Doc) public java.sql.PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency) throws SQLException(Code)(Java Doc) public java.sql.PreparedStatement prepareStatement(String arg0, int arg1, int arg2, int arg3) throws SQLException(Code)(Java Doc) public java.sql.PreparedStatement prepareStatement(String arg0, int arg1) throws SQLException(Code)(Java Doc) public java.sql.PreparedStatement prepareStatement(String arg0, int[] arg1) throws SQLException(Code)(Java Doc) public java.sql.PreparedStatement prepareStatement(String arg0, String[] arg1) throws SQLException(Code)(Java Doc) public void releaseSavepoint(Savepoint arg0) throws SQLException(Code)(Java Doc) public void rollback() throws SQLException(Code)(Java Doc) public void rollback(Savepoint arg0) throws SQLException(Code)(Java Doc) public void setAutoCommit(boolean autoCommit) throws SQLException(Code)(Java Doc) public void setCatalog(String catalog) throws SQLException(Code)(Java Doc) public void setHoldability(int arg0) throws SQLException(Code)(Java Doc) protected void setInGlobalTx(boolean flag)(Code)(Java Doc) public void setReadOnly(boolean readOnly) throws SQLException(Code)(Java Doc) public java.sql.Savepoint setSavepoint() throws SQLException(Code)(Java Doc) public java.sql.Savepoint setSavepoint(String arg0) throws SQLException(Code)(Java Doc) public void setTransactionIsolation(int level) throws SQLException(Code)(Java Doc) public void setTypeMap(java.util.Map map) throws SQLException(Code)(Java Doc)
|
|
|