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

java.lang.Object
  extended byorg.apache.ojb.broker.util.WrappedConnection
      extended byorg.apache.ojb.broker.util.pooling.ByPassConnection
All Implemented Interfaces:
java.sql.Connection

public class ByPassConnection
extends WrappedConnection

Simple wrapper for connections - the commit() method was a no-op.

Author:
Armin Waibel

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

Constructor Detail

ByPassConnection

public ByPassConnection(java.sql.Connection c)
Method Detail

setAutoCommit

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

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

commit

public void commit()
            throws java.sql.SQLException
a no-op

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

close

public void close()
           throws java.sql.SQLException
close the wrapped connection

Specified by:
close in interface java.sql.Connection
Overrides:
close in class WrappedConnection
Throws:
java.sql.SQLException

rollback

public void rollback()
              throws java.sql.SQLException
rollback the wrapped connection

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


Authors: Thomas Mahler and others. (C) 2000 - 2003 Apache Software Foundation
All rights reserved. Published under the Apache License.
http://db.apache.org/ojb
Version: 1.0.rc5, 2003-12-14