1 package org.apache.ojb.broker.util.pooling; 2 3 17 18 import org.apache.ojb.broker.util.logging.Logger; 19 import org.apache.ojb.broker.util.logging.LoggerFactory; 20 import org.apache.ojb.broker.util.WrappedConnection; 21 22 import java.sql.Connection ; 23 import java.sql.SQLException ; 24 25 31 public class ByPassConnection extends WrappedConnection 32 { 33 private Logger log = LoggerFactory.getLogger(ByPassConnection.class); 34 35 public ByPassConnection(Connection c) 36 { 37 super(c); 38 this.activateConnection(); 39 } 40 41 44 public void setAutoCommit(boolean autoCommit) throws SQLException 45 { 46 50 if (log.isDebugEnabled()) log.debug("** we ignore setAutoCommit"); 51 } 52 53 56 public void commit() throws SQLException 57 { 58 63 if (log.isDebugEnabled()) log.debug("** we ignore commit"); 64 } 65 66 69 public void rollback() throws SQLException 70 { 71 77 if (log.isDebugEnabled()) log.debug("** we ignore rollback, done by server"); 78 } 79 } 80 | Popular Tags |