All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.apache.ibatis.transaction.managed.ManagedTransaction Maven / Gradle / Ivy

There is a newer version: 3.0-beta-10
Show newest version
package org.apache.ibatis.transaction.managed;

import org.apache.ibatis.transaction.Transaction;

import java.sql.Connection;
import java.sql.SQLException;

public class ManagedTransaction implements Transaction {

  private Connection connection;

  public ManagedTransaction(Connection connection) {
    this.connection = connection;
  }

  public Connection getConnection() {
    return connection;
  }

  public void commit() throws SQLException {
    // Does nothing
  }

  public void rollback() throws SQLException {
    // Does nothing
  }

  public void close() throws SQLException {
    // Does nothing
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy