|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.ojb.broker.util.WrappedConnection org.apache.ojb.broker.util.pooling.ByPassConnection
public class ByPassConnection
Simple wrapper for connections that make some methods to no-op for use in managed environments.
Field Summary | |
---|---|
private Logger |
log
|
Fields inherited from interface java.sql.Connection |
---|
TRANSACTION_NONE, TRANSACTION_READ_COMMITTED, TRANSACTION_READ_UNCOMMITTED, TRANSACTION_REPEATABLE_READ, TRANSACTION_SERIALIZABLE |
Constructor Summary | |
---|---|
ByPassConnection(Connection c)
|
Method Summary | |
---|---|
void |
commit()
a no-op |
void |
rollback()
no-op |
void |
setAutoCommit(boolean autoCommit)
a no-op |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private Logger log
Constructor Detail |
---|
public ByPassConnection(Connection c)
Method Detail |
---|
public void setAutoCommit(boolean autoCommit) throws SQLException
setAutoCommit
in interface Connection
setAutoCommit
in class WrappedConnection
SQLException
public void commit() throws SQLException
commit
in interface Connection
commit
in class WrappedConnection
SQLException
public void rollback() throws SQLException
rollback
in interface Connection
rollback
in class WrappedConnection
SQLException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |