Logo Search packages:      
Sourcecode: mysql-connector-java version File versions  Download package

TestLifecycleInterceptor.java

/**
 * 
 */
package testsuite.simple;

import java.sql.SQLException;
import java.sql.Savepoint;
import java.util.Properties;

import com.mysql.jdbc.ConnectionLifecycleInterceptor;

00012 public class TestLifecycleInterceptor implements ConnectionLifecycleInterceptor {
      static int transactionsBegun = 0;
      static int transactionsCompleted = 0;

00016       public void close() throws SQLException {

      }

00020       public boolean commit() throws SQLException {

            return true;
      }

00025       public boolean rollback() throws SQLException {

            return true;
      }

00030       public boolean rollback(Savepoint s) throws SQLException {

            return true;
      }

00035       public boolean setAutoCommit(boolean flag) throws SQLException {

            return true;
      }

00040       public boolean setCatalog(String catalog) throws SQLException {

            return true;
      }

00045       public boolean transactionBegun() throws SQLException {
            transactionsBegun++;
            return true;
      }

00050       public boolean transactionCompleted() throws SQLException {
            transactionsCompleted++;
            return true;
      }

00055       public void destroy() {

      }

      public void init(com.mysql.jdbc.Connection conn, Properties props)
                  throws SQLException {

      }

}

Generated by  Doxygen 1.6.0   Back to index