org.apache.ojb.broker.util.pooling
Class ByPassConnection

java.lang.Object
  extended by org.apache.ojb.broker.util.WrappedConnection
      extended by org.apache.ojb.broker.util.pooling.ByPassConnection
All Implemented Interfaces:
Connection, Wrapper

public class ByPassConnection
extends WrappedConnection

Simple wrapper for connections that make some methods to no-op for use in managed environments.

Author:
Armin Waibel

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 org.apache.ojb.broker.util.WrappedConnection
activateConnection, checkOpen, clearWarnings, close, createArrayOf, createBlob, createClob, createNClob, createSQLXML, createStatement, createStatement, createStatement, createStruct, getAutoCommit, getCatalog, getClientInfo, getClientInfo, getDelegate, getHoldability, getInnermostDelegate, getMetaData, getTransactionIsolation, getTypeMap, getWarnings, isClosed, isReadOnly, isValid, isWrapperFor, nativeSQL, passivateConnection, prepareCall, prepareCall, prepareCall, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, releaseSavepoint, rollback, setCatalog, setClientInfo, setClientInfo, setDelegate, setHoldability, setReadOnly, setSavepoint, setSavepoint, setTransactionIsolation, setTypeMap, toString, unwrap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

log

private Logger log
Constructor Detail

ByPassConnection

public ByPassConnection(Connection c)
Method Detail

setAutoCommit

public void setAutoCommit(boolean autoCommit)
                   throws SQLException
a no-op

Specified by:
setAutoCommit in interface Connection
Overrides:
setAutoCommit in class WrappedConnection
Throws:
SQLException

commit

public void commit()
            throws SQLException
a no-op

Specified by:
commit in interface Connection
Overrides:
commit in class WrappedConnection
Throws:
SQLException

rollback

public void rollback()
              throws SQLException
no-op

Specified by:
rollback in interface Connection
Overrides:
rollback in class WrappedConnection
Throws:
SQLException


Copyright © 2007-2012 The Kuali Foundation. All Rights Reserved.