|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.ojb.broker.util.WrappedConnection
org.apache.ojb.broker.util.pooling.ByPassConnection
Simple wrapper for connections - the commit() method was a no-op.
| Field Summary |
| Fields inherited from interface java.sql.Connection |
TRANSACTION_NONE, TRANSACTION_READ_COMMITTED, TRANSACTION_READ_UNCOMMITTED, TRANSACTION_REPEATABLE_READ, TRANSACTION_SERIALIZABLE |
| Constructor Summary | |
ByPassConnection(java.sql.Connection c)
|
|
| Method Summary | |
void |
close()
close the wrapped connection |
void |
commit()
a no-op |
void |
rollback()
rollback the wrapped connection |
void |
setAutoCommit(boolean autoCommit)
a no-op |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ByPassConnection(java.sql.Connection c)
| Method Detail |
public void setAutoCommit(boolean autoCommit)
throws java.sql.SQLException
setAutoCommit in interface java.sql.ConnectionsetAutoCommit in class WrappedConnectionjava.sql.SQLException
public void commit()
throws java.sql.SQLException
commit in interface java.sql.Connectioncommit in class WrappedConnectionjava.sql.SQLException
public void close()
throws java.sql.SQLException
close in interface java.sql.Connectionclose in class WrappedConnectionjava.sql.SQLException
public void rollback()
throws java.sql.SQLException
rollback in interface java.sql.Connectionrollback in class WrappedConnectionjava.sql.SQLException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||